/**
 * Restaurant— Global styles (mobile-first, delivery-app inspired UI)
 */

:root {
  /* Dynamic theme variables (overridden by Firestore settings/config) */
  --primary-color: #555555;
  --primary-color-dark: #333333;
  --main-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  /* Backwards-compatible aliases used throughout the CSS */
  --brand-primary: var(--primary-color);
  --brand-primary-dark: var(--primary-color-dark);
  --font-sans: var(--main-font);

  /* Admin/KOT theme variables (overridden by Firestore settings/config) */
  --admin-red-bg: #ffebee;
  --admin-red-border: #c62828;
  --admin-green-bg: #e8f5e9;
  --admin-green-border: #2e7d32;
  --admin-yellow-bg: #fff8e1;
  --admin-yellow-border: #f57f17;
  --admin-white-bg: #ffffff;
  --admin-white-border: #bdbdbd;

  /* KOT item colors (overridden by settings/config) */
  --kot-old-item-color: #111827;
  --kot-new-item-color: #15803d;

  /* CUSTOMIZE HERE: Surfaces */
  --bg-page: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #333;
  --text-muted: #666;
  --border-soft: #e8e8e8;
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
  --radius-card: 16px;
  --radius-pill: 999px;

  /* Train themed accents */
  --track-rail: rgba(61, 65, 82, 0.16);
  --track-tie: color-mix(in srgb, var(--primary-color) 20%, transparent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ==========================================================================
   Global theme utility (shared across index/admin/manage)
   - Light mode emoji: 🚆
   - Dark mode emoji: 🚂 with glow
   ========================================================================== */
.theme-emoji {
  display: inline-block;
  transition: filter 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}

[data-bs-theme="dark"] .theme-emoji {
  filter: drop-shadow(0 0 8px rgba(255, 214, 102, 0.9));
  text-shadow: 0 0 8px rgba(255, 214, 102, 0.9);
}

.steam-headlight {
  filter: drop-shadow(0 0 8px rgba(255, 214, 102, 0.95));
  text-shadow: 0 0 8px rgba(255, 214, 102, 0.95);
}

/* Better Bootstrap dark-theme contrast when data-bs-theme="dark" is enabled */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .table,
[data-bs-theme="dark"] .modal-content {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: rgba(15, 23, 42, 0.92) !important;
  color: var(--text-primary) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: rgba(229, 231, 235, 0.55) !important;
}

.app-header {
  position: relative;
  overflow: hidden;
  padding: 30px 20px;
  text-align: center;
}

.app-header__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.app-header__title {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0;
}

.app-header__tagline {
  text-align: center;
  position: relative;
  z-index: 2;
}

.menu-theme-toggle {
  border-color: rgba(255, 255, 255, 0.6);
}

.menu-theme-toggle:hover {
  border-color: #fff;
}

.app-header__title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.back-link svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  stroke-width: 2.5;
}

/* Inline back-link for cart page (beside title) */
.back-link--inline {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  margin: 0 10px 0 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex-shrink: 0;
}

.back-link--inline svg {
  width: 18px;
  height: 18px;
}

.app-header__row--centered {
  justify-content: center;
  align-items: center;
}

.category-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--bg-page);
  justify-content: flex-start;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex: 0 0 auto;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.08);
}

.category-pill.is-active {
  background: #3d4152;
  color: #fff;
  border-color: #3d4152;
}

.menu-section {
  padding: 0.5rem 1rem 6rem;
  min-height: 60vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 50h100M0 60h100M0 40h100' stroke='%23d32f2f' stroke-opacity='0.03' stroke-width='2'/%3E%3Ccircle cx='20' cy='55' r='3' fill='%23d32f2f' fill-opacity='0.05'/%3E%3Ccircle cx='50' cy='45' r='2' fill='%23d32f2f' fill-opacity='0.05'/%3E%3Ccircle cx='80' cy='55' r='3' fill='%23d32f2f' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Grouped "All" view (category sections) */
.menu-group {
  display: block;
}

.menu-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.75rem 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.menu-group__header:hover {
  opacity: 0.85;
}

.menu-group__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(26, 26, 26, 0.92);
}

.menu-group__chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.menu-group__chevron svg {
  width: 100%;
  height: 100%;
  stroke: rgba(26, 26, 26, 0.6);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-group.is-collapsed .menu-group__chevron {
  transform: rotate(-90deg);
}

.menu-group__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  overflow: visible;
  transition: opacity 0.25s ease;
  max-height: none;
  opacity: 1;
}

.menu-group.is-collapsed .menu-group__content {
  display: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.menu-group__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .menu-group__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-card {
  display: flex;
  gap: 12px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px;
  margin-bottom: 12px;
  align-items: stretch;
  /* Stretch to allow internal vertical alignment */
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu-card__img-wrap {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.menu-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-card__meta {
  margin: 4px 0;
  font-size: 0.75rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-card__price {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.menu-card__actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.btn-add {
  border: none;
  background: #fff;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 1.25rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px var(--primary-color);
  cursor: pointer;
  text-transform: uppercase;
}

.btn-add:hover {
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.stepper button {
  border: none;
  background: var(--primary-color);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  cursor: pointer;
  line-height: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.stepper button:hover {
  background: var(--primary-color-dark);
}

.stepper span {
  font-weight: 700;
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
}

.cart-bar {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  width: auto;
  z-index: 1100;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  padding: 12px 20px;
  background: #60b246;
  /* Swiggy-style green for cart */
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  border: none;
}

.cart-bar.is-visible {
  transform: translateY(0);
}

.cart-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.cart-bar__count {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.cart-bar__cta {
  flex: 0 0 auto;
}

.btn-view-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #fff;
  border: none;
  font-weight: 800;
  padding: 0;
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.btn-view-cart:hover {
  transform: translateY(-2px);
  color: #fff;
}

.page-cart .cart-main {
  padding: 1rem 1rem 6rem;
  max-width: 640px;
  margin: 0 auto;
}

.form-label-sm {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.cart-line {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.cart-train-illustration {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  opacity: 0.8;
}

.cart-line:last-child {
  border-bottom: none;
}

.cart-line__info {
  flex: 1;
  min-width: 0;
}

.cart-line__name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.cart-line__unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.cart-summary-box {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1rem;
  margin-bottom: 1rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-soft);
}

.place-order-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top,
      rgba(248, 249, 250, 0.98),
      rgba(248, 249, 250, 0.9));
  border-top: 1px solid var(--border-soft);
}

.btn-place-order {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: block;
  border: none;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-color);
}

.btn-place-order:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.success-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 60px 20px 120px;
  text-align: center;
  background: var(--bg-page);
}

.success-tick {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  animation: pop-in 0.5s cubic-bezier(0.22, 1.65, 0.36, 1) both;
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.success-tick svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw-check 0.6s 0.25s ease forwards;
}

@keyframes pop-in {
  from {
    transform: scale(0.6);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.success-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 20px 0 0 0;
  color: var(--text-primary);
}

.success-hero .text-muted {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0 0;
}

.success-pay {
  font-weight: 900;
  font-size: 1.92rem;
  color: #111;
  margin: 70px 0 40px 0;
  line-height: 1.3;
}

.train-illustration {
  margin: 20px 0;
}

.btn-order-more {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 20px;
  right: 20px;
  width: calc(100% - 40px);
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 16px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.35);
  z-index: 100;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-order-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(211, 47, 47, 0.45);
  color: #fff;
}

/* Modern input fields for cart page */
.page-cart .form-control,
.page-cart input[type="number"] {
  background: #e9ecef;
  border: none;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  font-family: var(--main-font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.page-cart .form-control:focus,
.page-cart input[type="number"]:focus {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.page-cart .form-control::placeholder {
  color: #9aa0a6;
}

.page-cart .form-label-sm {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Error glow for validation */
.error-glow {
  border: 2px solid #ff4d4d !important;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.4) !important;
  transition: 0.3s;
}

.toast-host {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0;
}

.toast {
  pointer-events: auto;
  max-width: min(92vw, 420px);
  min-width: 280px;
  background: #2d2d2d;
  color: #fff;
  padding: 14px 24px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(-150%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  text-align: center;
}

.toast.is-show {
  transform: translateY(0);
  opacity: 1;
}

.toast--error {
  background: #ff4444;
}

/* Validation Modal for Cart Page */
.validation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.validation-modal.is-open {
  display: flex;
}

.validation-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.validation-modal__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #424242;
  color: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  max-width: 320px;
  width: calc(100% - 40px);
  text-align: center;
  animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.validation-modal__icon {
  width: 56px;
  height: 56px;
  background: #ffc107;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.validation-modal__icon svg {
  width: 28px;
  height: 28px;
  stroke: #333;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.validation-modal__icon span {
  line-height: 1;
}

.validation-modal__text {
  margin: 0 0 20px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.validation-modal__btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.validation-modal__btn:hover {
  background: var(--primary-color-dark);
}

.admin-body {
  background: #ececec;
  min-height: 100vh;
}

.admin-header {
  background: #1f2937;
  color: #fff;
  padding: 1rem 1.25rem;
}

.admin-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Swiggy-style floating menu launcher and category sheet */
/* ☰ Floating Menu Button (Bottom-Left) */
.floating-menu-btn {
  position: fixed !important;
  bottom: calc(90px + env(safe-area-inset-bottom)) !important;
  left: 16px !important;
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.floating-menu-btn:active {
  transform: scale(0.9);
}


.floating-menu-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.floating-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.category-overlay.is-open {
  display: block;
}

.category-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.category-overlay__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 16px 16px 0 0;
  max-height: 70vh;
  overflow: auto;
  padding: 1rem;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
}

.category-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.category-overlay__list {
  display: grid;
  gap: 0.5rem;
}

.category-overlay__item {
  border: 1px solid var(--border-soft);
  background: transparent;
  color: inherit;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-weight: 700;
  text-align: left;
}

.category-anchor {
  scroll-margin-top: 20px;
}

[data-bs-theme="dark"] body[data-page="menu"] {
  --bg-page: #121212;
  --bg-card: #1b1b1b;
  --text-primary: #f5f5f5;
  --text-muted: #b8b8b8;
  --border-soft: #2a2a2a;
}

[data-bs-theme="dark"] .menu-card {
  border-color: #2e2e2e;
}

[data-bs-theme="dark"] .menu-group__title {
  color: #ececec;
}

.sortable-category-item {
  cursor: grab;
}

.sortable-ghost {
  opacity: 0.5;
}

.admin-header h1 {
  margin: 0;
  font-size: 1.25rem;
}

.admin-header p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.kot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .kot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .kot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kot-card {
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.kot-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 10px;
  border-radius: 10px;
  background: repeating-linear-gradient(90deg,
      transparent 0 12px,
      rgba(61, 65, 82, 0.15) 12px 16px),
    linear-gradient(rgba(61, 65, 82, 0.11), rgba(61, 65, 82, 0.11));
  opacity: 0.55;
  pointer-events: none;
}

.kot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.kot-card--red {
  background: var(--admin-red-bg);
  border-color: var(--admin-red-border);
  cursor: default;
}

.kot-card--red:hover {
  transform: none;
}

.kot-card--green {
  background: var(--admin-green-bg);
  border-color: var(--admin-green-border);
}

.kot-card--yellow {
  background: var(--admin-yellow-bg);
  border-color: var(--admin-yellow-border);
}

.kot-card--white {
  background: var(--admin-white-bg);
  border-color: var(--admin-white-border);
  cursor: default;
}

.kot-card__table {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 0.35rem;
}

.kot-card__meta {
  font-size: 0.85rem;
  color: #424242;
  margin: 0 0 0.75rem;
}

.kot-card__count {
  margin: -0.45rem 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 900;
  color: rgba(31, 41, 55, 0.85);
}

.kot-card__items {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.kot-card__items li {
  padding: 0.2rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.kot-card__items li:last-child {
  border-bottom: none;
}

.kot-item--highlight {
  color: #1b5e20;
  font-weight: 800;
}

.kot-item--new {
  color: var(--kot-new-item-color);
  font-weight: 900;
}

.kot-item--old-addon {
  color: var(--kot-old-item-color);
}

.kot-card__total {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.kot-card__badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.kot-card__actions {
  margin-top: 0.85rem;
}

.btn-clear-table {
  width: 100%;
  border: none;
  background: #37474f;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-clear-table:hover {
  background: #263238;
}

.admin-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-control:disabled,
.form-select:disabled {
  background-color: #f0f0f0;
  opacity: 1;
}

.kot-card--white:hover {
  transform: none;
}

/* Error glow for validation */
.error-glow {
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 0 15px var(--primary-color) !important;
  transition: 0.3s;
}

/* =========================================================
   🚀 FINAL DYNAMIC PREMIUM THEME (CONFLICT-FREE)
   ========================================================= */

/* 1. Deep Dark Background & Category Titles (Visible White) */
body[data-page] {
  background-color: #111111 !important;
  color: #ffffff !important;
}

.menu-section {
  background-image: none !important;
  background-color: #111111 !important;
}

.menu-group__title {
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
  margin-bottom: 10px !important;
}

/* 2. Header (Soft Dynamic Neon Glow) */
body[data-page] .app-header {
  border-bottom: 2px solid var(--primary-color) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 5px 25px var(--primary-color) !important;
  border-radius: 0 0 25px 25px !important;
  margin-bottom: 30px !important;
}

body[data-page] .app-header::before {
  border-radius: 0 0 25px 25px !important;
}

/* 3. Menu Item Cards (Gap kam kar diya) */
/* 3. Menu Item Cards (Gap ekdam minimal kar diya) */
.menu-item-card,
.menu-card {
  background: #181818 !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 16px !important;
  margin-top: 0px !important;
  /* Top gap zero */
  margin-bottom: 10px !important;
  /* Bottom gap ekdam tight */
  padding: 15px 15px 15px 110px !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 120px !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5) !important;
  overflow: visible !important;
}

/* Veg/Non-Veg Logo Absolute Fix (SVG + IMG dono ke liye) */
.menu-card__meta img,
.menu-card__meta svg,
.menu-item-card-body img,
.menu-item-card-body svg,
.veg-icon,
.non-veg-icon {
  position: relative !important;
  /* Global absolute positioning ko todne ke liye */
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 15px !important;
  height: 15px !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-block !important;
  background: transparent !important;
  margin-right: 4px !important;
}

/* Veg/Non-Veg container alignment */
.menu-card__meta {
  display: flex !important;
  align-items: center !important;
  color: #aaaaaa !important;
  margin: 4px 0 !important;
}

/* 4. Glowing Circular Images (Direct Child Fix) */
.menu-item-card>img,
.menu-card__img-wrap,
.menu-item-placeholder {
  position: absolute !important;
  left: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 0 15px var(--primary-color), 0 10px 20px rgba(0, 0, 0, 0.8) !important;
  z-index: 10 !important;
  object-fit: cover !important;
  background: #222222 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.menu-item-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 45px !important;
  line-height: 1 !important;
}

/* Agar platform image ke upar koi div (wrapper) use kar raha hai, toh uske liye */
.menu-card__img-wrap img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: none !important;
  position: static !important;
  transform: none !important;
}

/* 5. Text & Pricing Inside Card (Alignment Fix & White Price) */
.menu-item-card-body {
  margin-top: 22px !important;
  /* Ye lagane se item name aur baaki details niche shift ho jayenge */
}

.menu-item-card-body h3,
.menu-item-card h3 {
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin: 0 0 5px 0 !important;
}

.menu-item-card-body p,
.menu-item-card p {
  color: #aaaaaa !important;
}

/* Price Theme link hta ke strictly white */
.menu-item-card-body .price,
.menu-item-card .price {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 1.3rem !important;
  margin: 0 !important;
}

/* 6. Buttons (+ / - / ADD) (Dynamic Neon Linked) */
.qty-btn-container,
.menu-card__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  gap: 12px !important;
  margin-top: 10px !important;
}

.btn-add {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid var(--primary-color) !important;
  border-radius: 6px !important;
  padding: 6px 20px !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px var(--primary-color) !important;
}

.stepper {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 4px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 25px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.qty-btn,
.stepper button {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid var(--primary-color) !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  font-weight: 400 !important;
  padding: 0 !important;
  box-shadow: 0 0 10px var(--primary-color) !important;
}

.stepper span {
  color: #ffffff !important;
  margin: 0 8px !important;
}

/* 7. Floating Menu Button (Transparent Glass Type) */
.floating-menu-btn {
  bottom: 100px !important;
  left: 15px !important;
  background: rgba(20, 20, 20, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
  z-index: 1050 !important;
}

.floating-menu-btn svg {
  stroke: #ffffff !important;
}

/* 8. Cart Bar & View Cart Button (White Transparent Match) */
.cart-bottom-bar,
.cart-bar {
  background: rgba(18, 18, 18, 0.9) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid #333 !important;
  border-radius: 30px !important;
  padding: 10px 20px !important;
  bottom: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
  z-index: 1100 !important;
}

.cart-bottom-bar .btn-view-cart,
.cart-bar .btn-view-cart {
  background: rgba(255, 255, 255, 0.15) !important;
  /* White Transparent Type */
  backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  border-radius: 20px !important;
  padding: 6px 16px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* 9. Category Overlay (50vh Lock & Sleek Close Button) */
.category-overlay__panel {
  background: #111111 !important;
  border-top: 2px solid var(--primary-color) !important;
  border-radius: 16px 16px 0 0 !important;
  height: 50vh !important;
  max-height: 50vh !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.9) !important;
}

.category-overlay__head {
  padding: 15px 20px !important;
  background: #151515 !important;
  border-bottom: 1px solid #2a2a2a !important;
  flex-shrink: 0 !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.category-overlay__list {
  padding: 15px 20px calc(15px + env(safe-area-inset-bottom)) !important;
  overflow-y: auto !important;
  flex: 1 !important;
}

.category-overlay__item {
  background: #1a1a1a !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  padding: 12px 15px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  display: block !important;
  width: 100% !important;
  text-align: left !important;
}

/* The Sleek Close Button (Fixing the ugly white box) */
.category-overlay__head .close-btn-glass,
.category-overlay__head button {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  /* Forces it to be circular */
  width: 32px !important;
  height: 32px !important;
  font-size: 20px !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: 0.2s !important;
  box-shadow: none !important;
}

.category-overlay__head button:active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transform: scale(0.9) !important;
}

/* =========================================================
   🛒 CART PAGE - GUARANTEED FIX (KILLING ALL CONFLICTS)
   ========================================================= */

/* 1. Force Deep Dark Background for the whole page */
body[data-page="cart"] {
  background-color: #111111 !important;
  color: #ffffff !important;
}

/* 2. Kill the White Boxes (Cart Summary) */
body[data-page="cart"] .cart-summary-box {
  background-color: #181818 !important;
  border: 1px solid #2a2a2a !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6) !important;
  border-radius: 16px !important;
}

/* 3. Fix all text colors inside the boxes */
body[data-page="cart"] .cart-summary-box h2,
body[data-page="cart"] .cart-line__name,
body[data-page="cart"] .cart-total-row span {
  color: #ffffff !important;
}

body[data-page="cart"] .form-label-sm,
body[data-page="cart"] .cart-line__unit {
  color: #aaaaaa !important;
}

/* 4. Inputs (Table/People) - Dark Sockets */
body[data-page="cart"] .form-control,
body[data-page="cart"] input[type="number"] {
  background-color: #0a0a0a !important;
  color: #ffffff !important;
  border: 1px solid #222 !important;
  box-shadow: inset 4px 4px 8px #000000, inset -4px -4px 8px #151515 !important;
  border-radius: 12px !important;
}

body[data-page="cart"] .form-control:focus,
body[data-page="cart"] input[type="number"]:focus {
  border-color: var(--primary-color) !important;
  box-shadow: inset 2px 2px 5px #000000, 0 0 12px color-mix(in srgb, var(--primary-color) 35%, transparent) !important;
  outline: none !important;
}

/* Placeholder softening for Cart Inputs */
body[data-page="cart"] .form-control::placeholder,
body[data-page="cart"] input[type="number"]::placeholder {
  color: #555555 !important;
  font-style: var(--main-font) !important;
  font-weight: 400 !important;
  opacity: 3 !important;
}

/* 5. Stepper Fix (Extra space hatane ke liye padding aur gap adjust kiya hai) */
body[data-page="cart"] .stepper {
  background-color: #0a0a0a !important;
  border: 1px solid #222 !important;
  border-radius: 25px !important;
  box-shadow: inset 3px 3px 6px #000000, inset -3px -3px 6px #151515 !important;
  padding: 1px 2px !important;
  /* Yahan se extra width kam hogi */
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  /* Buttons aur number ke beech ki fixed doori */
}

body[data-page="cart"] .stepper button {
  color: var(--primary-color) !important;
  background: transparent !important;
}

body[data-page="cart"] .stepper span {
  color: #ffffff !important;
}

/* 6. Bottom Bar (Kill white/grey gradient forever) */
/* Place Order wrap ka unwanted border hide karna */
body[data-page="cart"] .place-order-wrap {
  background-color: #111111 !important;
  /* Direct solid black/dark grey */
  background-image: none !important;
  /* Pinkish gradient ko kill karne ke liye */
  border-top: none !important;
  /* Unwanted border hide kiya */
  backdrop-filter: none !important;
  /* Transparency hatayi taaki peeche ka color na jhaanke */
  box-shadow: 0 -20px 40px #111111 !important;
  padding: 15px 20px calc(15px + env(safe-area-inset-bottom)) !important;
  z-index: 2000 !important;
}

/* 7. Place Order Button - Premium Neon 3D */
body[data-page="cart"] .btn-place-order {
  background-color: #0d0d0d !important;
  color: #ffffff !important;
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 0 20px var(--primary-color), inset 0 0 10px var(--primary-color) !important;
  border-radius: 14px !important;
  text-transform: uppercase !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  transition: all 0.2s ease !important;
}

body[data-page="cart"] .btn-place-order:active {
  transform: scale(0.96) !important;
  background-color: var(--primary-color) !important;
  color: #111111 !important;
  box-shadow: 0 0 10px var(--primary-color), inset 0 0 30px var(--primary-color) !important;
}

/* 2. Train GIF: Dark theme ke sath merge karne ke liye opacity aur shadow */
body[data-page="cart"] .cart-train-illustration {
  opacity: 0.65 !important;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.9)) !important;
}

/* =========================================================
   🚂 FINAL 3D NEON VALIDATION MODAL (SOFT GLOW)
   ========================================================= */

/* 1. Modal Panel: Pitch Black with All-around Soft Neon Border */
body[data-page="cart"] .validation-modal__panel {
  background: #050505 !important;
  /* Hardcore Black background */
  border: 2px solid var(--primary-color) !important;
  border-radius: 28px !important;
  /* Uniform soft neon glow around all edges */
  box-shadow: 0 0 20px var(--primary-color), inset 0 0 10px color-mix(in srgb, var(--primary-color) 10%, transparent) !important;
  padding: 40px 20px !important;
  max-width: 340px !important;
}

/* 2. Icon Socket: Deep Recessed (Deeper Hardware Feel) */
body[data-page="cart"] .validation-modal__icon {
  background: #000000 !important;
  width: 75px !important;
  height: 75px !important;
  border: 1px solid #1a1a1a !important;
  margin: 0 auto 25px !important;
  /* Inner shadow to make the icon look like it's inside a hole */
  box-shadow: inset 6px 6px 12px #000000, inset -2px -2px 6px #111 !important;
}

/* 3. Modal Text Visibility */
body[data-page="cart"] .validation-modal__text {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
  margin-bottom: 30px !important;
}

/* 4. OK Button: Pure Neon Hardware Knob */
body[data-page="cart"] .validation-modal__btn {
  background: #050505 !important;
  color: #ffffff !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 12px !important;
  padding: 10px 45px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  /* Glowing Tactile Button */
  box-shadow: 0 0 12px var(--primary-color), inset 0 0 8px var(--primary-color) !important;
  transition: all 0.15s ease !important;
}

body[data-page="cart"] .validation-modal__btn:active {
  transform: scale(0.95) !important;
  background: var(--primary-color) !important;
  color: #000000 !important;
  box-shadow: 0 0 5px var(--primary-color) !important;
}

/* =========================================================
   🎉 SUCCESS PAGE (NO-SCROLL PERFECT FIT & TICK FIX)
   ========================================================= */

/* 1. Full Screen Lock (Kills Scrolling Completely) */
body[data-page="success"] {
  height: 100vh !important;
  height: 100dvh !important;
  /* Mobile browsers ke liye perfect fit */
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #111111 !important;
}

/* 2. Header Adjustments */
body[data-page="success"] .app-header {
  flex-shrink: 0 !important;
  margin-bottom: 0 !important;
  padding: 30px 20px !important;
  /* Height thodi kam ki taaki baki content fit aaye */
}

/* 3. Hero Section (Flexbox for automatic even spacing) */
body[data-page="success"] .success-hero {
  flex: 1 !important;
  min-height: 0 !important;
  padding: 15px 20px 25px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-evenly !important;
  /* Har item ke beech perfect space dega */
  background-color: #111111 !important;
}

/* 4. Fix The Tick Animation (Dark Circle + Green Checkmark) */
body[data-page="success"] .success-tick {
  background: #111111 !important;
  /* Dark circle */
  border: 2px solid #4caf50 !important;
  /* Glowing green border */
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.4), inset 0 0 10px rgba(76, 175, 80, 0.2) !important;
  margin: 0 !important;
  /* Remove old excessive margin */
}

body[data-page="success"] .success-tick svg {
  stroke: #4caf50 !important;
  /* Green tick draw hoga ab */
}

/* 5. Typography (Margins removed for flexbox) */
body[data-page="success"] .success-title {
  color: #ffffff !important;
  margin: 0 !important;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8) !important;
}

body[data-page="success"] .text-muted {
  color: #bbbbbb !important;
  font-size: 1.15rem !important;
  margin: 0 !important;
}

/* Pay at counter - Deep Antique Dark Gold (Zero Yellow) */
body[data-page="success"] .success-pay {
  color: #9B7631 !important;
  /* Deep Dark Gold / Antique Bronze */
  /* Glow ko thoda aur soft kiya hai aur dark shadow sharp rakhi hai */
  text-shadow: 0 0 12px rgba(155, 118, 49, 0.15), 2px 2px 5px rgba(0, 0, 0, 0.95) !important;
  font-size: 1.8rem !important;
  margin: 0 !important;
  text-align: center !important;
  font-weight: 900 !important;

  background: none !important;
  -webkit-text-fill-color: initial !important;
  filter: none !important;
}

/* 6. Train GIF Size Control (Locked at 200x150) */
body[data-page="success"] .train-illustration {
  margin: 0 0 85px 0 !important;
  /* YAHAN SE ADJUST KAREN: Is 90px ko badhaenge toh train aur upar jayegi, kam karenge toh niche aayegi */
  display: flex !important;
  justify-content: center !important;
}

body[data-page="success"] .train-illustration img {
  opacity: 0.8 !important;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.9)) !important;
  width: 200px !important;
  height: 180px !important;
  object-fit: contain !important;
}

/* 7. Order More Button (Shifted slightly up) */
body[data-page="success"] .btn-order-more {
  position: fixed !important;
  bottom: 35px !important;
  /* 25px se 45px kar diya thoda upar uthane ke liye */
  left: 20px !important;
  right: 20px !important;
  width: calc(100% - 40px) !important;
  margin: 0 !important;
  background-color: #0d0d0d !important;
  color: #ffffff !important;
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 0 15px var(--primary-color), inset 0 0 10px var(--primary-color) !important;
  border-radius: 14px !important;
  text-transform: uppercase !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  transition: all 0.2s ease !important;
  z-index: 1000 !important;
}

body[data-page="success"] .btn-order-more:active {
  transform: scale(0.96) !important;
  background-color: var(--primary-color) !important;
  color: #111111 !important;
}

/* Veg/Non-Veg Icon Standard Appearance */
.badge-type {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 3px !important;
  flex-shrink: 0 !important;
  position: relative !important;
  margin-right: 6px !important;
  background: transparent !important;
}

.badge-type::after {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  position: absolute !important;
}

/* Green Veg Mark */
.badge-type--veg {
  border: 2px solid #2e7d32 !important;
}

.badge-type--veg::after {
  background-color: #2e7d32 !important;
}

/* Red Non-Veg Mark */
.badge-type--nonveg {
  border: 2px solid #c62828 !important;
}

.badge-type--nonveg::after {
  background-color: #c62828 !important;
}

/* Perfect Horizontal Alignment for Price & Button */
.menu-item-bottom-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 12px !important;
  /* Space above price/button */
  width: 100% !important;
}

/* Ensure the price text doesn't misalign the vertical centering */
.menu-item-card-body .price {
  margin: 0 !important;
}

/* =========================================================
   🔼 CATEGORY COLLAPSE BUTTON UI UPGRADE
   ========================================================= */

.menu-group__chevron {
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  /* Soft transparent circle */
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  /* Subtle border */
  border-radius: 50% !important;
  /* Make it a perfect circle */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease !important;
  padding: 6px !important;
  /* Spacing inside the circle */
  flex-shrink: 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

.menu-group__chevron svg {
  width: 100% !important;
  height: 100% !important;
  stroke: #ffffff !important;
  /* Pure white arrow so it's 100% visible */
  stroke-width: 2.5 !important;
}

/* Active state when clicked/collapsed */
.menu-group.is-collapsed .menu-group__chevron {
  transform: rotate(-90deg) !important;
  /* Keeps the rotation logic */
  background: rgba(255, 255, 255, 0.03) !important;
  /* Dims slightly when collapsed */
  border-color: rgba(255, 255, 255, 0.05) !important;
}

/* SKELETON LOADER STYLES */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

.skeleton-card {
  background: rgba(255, 255, 255, 0.05);
  /* Dark theme match */
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skel-img,
.skel-text,
.skel-btn {
  background: #2a2a2a;
  background-image: linear-gradient(to right, #2a2a2a 0%, #3a3a3a 20%, #2a2a2a 40%, #2a2a2a 100%);
  background-repeat: no-repeat;
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

.skel-img {
  height: 160px;
  width: 100%;
}

.skel-text {
  height: 18px;
  width: 80%;
}

.skel-text.short {
  width: 50%;
}

.skel-btn {
  height: 35px;
  width: 100%;
  margin-top: 5px;
}

#print-receipt-container {
  display: none;
}

@media print {

  /* Step 1: Default page margins zero karein */
  @page {
    margin: 0;
    size: 80mm auto;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
  }

  /* Step 2: Body ke direct bachon (main website content) ko space-free hide karein */
  body>*:not(#print-receipt-container) {
    display: none !important;
  }

  /* Step 3: Sirf receipt ko show karein */
  #print-receipt-container {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    color: #000;
    background: #fff;
    font-size: 12px;
    page-break-inside: avoid;
  }

  /* Yahan se aapka baaki receipt ka styling same rahega */
  .receipt-content {
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
  }

  .receipt-title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-transform: uppercase;
  }

  .receipt-address {
    text-align: center;
    font-size: 10px;
    margin: 0 0 10px 0;
  }

  .receipt-divider {
    border-top: 1px dashed #000;
    border-bottom: none;
    margin: 8px 0;
  }

  .receipt-meta {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
  }

  .receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin: 5px 0;
  }

  .receipt-table th {
    border-bottom: 1px dashed #000;
    padding-bottom: 4px;
    font-weight: bold;
  }

  .receipt-total {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: bold;
    margin: 5px 0;
  }

  .receipt-greeting {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
  }
}

.floating-back-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  /* Darker tint for high contrast */
  border: 1px solid rgba(255, 255, 255, 0.5);
  /* Softer white border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  /* Shadow for depth */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  backdrop-filter: blur(8px);
  /* Stronger blur */
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.floating-back-btn svg {
  width: 18px;
  height: 18px;
}

.floating-back-btn:active,
.floating-back-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}