/* ==========================================================================
   DAR | RES group — Onboard Train Restaurant System Stylesheet
   Brand Palette:
   - Dark Navy: #1C3155
   - Warm Gray: #888580
   - White: #FFFFFF
   - Light Background: #F7F7F5
   - Warm Beige Accent: #EFECE6 / #E4DFD6
   ========================================================================== */

:root {
  --color-primary: #1C3155;
  --color-primary-light: #2A4778;
  --color-primary-dark: #12213A;
  
  --color-warm-gray: #888580;
  --color-warm-gray-light: #B4B1AB;
  
  --color-bg-light: #F7F7F5;
  --color-bg-card: #FFFFFF;
  --color-bg-accent: #EFECE6;
  --color-bg-subtle: #F0EEE9;
  
  --color-text-main: #1C2534;
  --color-text-muted: #6B7280;
  --color-white: #FFFFFF;
  
  --color-status-new: #3B82F6;
  --color-status-accepted: #6366F1;
  --color-status-preparing: #F59E0B;
  --color-status-ready: #10B981;
  --color-status-delivering: #8B5CF6;
  --color-status-delivered: #059669;
  --color-status-cancelled: #EF4444;

  --color-border: rgba(136, 133, 128, 0.22);
  --color-border-light: rgba(136, 133, 128, 0.12);
  
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(28, 49, 85, 0.04);
  --shadow-md: 0 6px 24px rgba(28, 49, 85, 0.08);
  --shadow-lg: 0 16px 40px rgba(28, 49, 85, 0.14);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   BUTTONS & FORM CONTROLS
   ========================================================================== */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(28, 49, 85, 0.18);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(28, 49, 85, 0.26);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--color-bg-accent);
  border-color: var(--color-primary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-label.required::after {
  content: ' *';
  color: #EF4444;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: 0.92rem;
  color: var(--color-text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(28, 49, 85, 0.12);
}

.form-control.highlight-input {
  border-color: var(--color-primary);
  background: #F4F7FB;
  font-weight: 600;
}

/* ==========================================================================
   PASSENGER HEADER
   ========================================================================== */
.passenger-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 14px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.passenger-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.p-nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-main);
  padding: 6px 0;
  transition: color 0.2s;
}

.p-nav-link:hover, .p-nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.passenger-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.train-seat-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-accent);
  border: 1px solid var(--color-border-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.lang-selector-pill {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-accent);
  padding: 2px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-light);
}

.lang-toggle-btn {
  border: none;
  background: none;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-warm-gray);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-cart-trigger {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(28, 49, 85, 0.18);
  flex-shrink: 0;
}

.btn-cart-trigger:hover {
  transform: scale(1.03);
}

.cart-badge-count {
  background: #EF4444;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   OFFLINE & SERVICE BANNERS
   ========================================================================== */
.ordering-closed-banner {
  background: #FEF3C7;
  border-bottom: 1px solid #F59E0B;
  color: #92400E;
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.ordering-closed-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.offline-indicator {
  background: #DC2626;
  color: #FFFFFF;
  text-align: center;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.train-hero-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--color-primary-dark);
  padding: 60px 0;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
}

.hero-vignette {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(18, 33, 58, 0.94) 0%, rgba(28, 49, 85, 0.8) 55%, rgba(28, 49, 85, 0.4) 100%);
}

.hero-content-box {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: var(--color-white);
}

.hero-tag-railway {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #E2DFD7;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}

.rail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 14px;
}

.hero-description {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #E4DFD6;
  line-height: 1.55;
  margin-bottom: 28px;
  font-weight: 300;
}

.hero-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-btn {
  padding: 12px 28px;
  font-size: 0.88rem;
}

.hero-travel-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(8px);
  width: fit-content;
}

.travel-col {
  display: flex;
  flex-direction: column;
}

.travel-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #B4B1AB;
}

.travel-value {
  font-size: 1.05rem;
  color: var(--color-white);
}

.travel-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.how-it-works-section {
  padding: 56px 0 40px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 36px;
}

.sub-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-warm-gray);
  text-transform: uppercase;
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--color-primary);
  margin-top: 4px;
}

.rail-steps-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.rail-step-card {
  flex: 1;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: center;
  position: relative;
}

.step-badge {
  width: 34px;
  height: 34px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.rail-step-connector {
  width: 24px;
  height: 2px;
  background: var(--color-warm-gray-light);
  flex-shrink: 0;
}

/* ==========================================================================
   STICKY CATEGORY BAR
   ========================================================================== */
.sticky-category-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 80;
  background: rgba(247, 247, 245, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  padding: 10px 0;
}

.categories-scroll-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px;
}

.categories-scroll-tray::-webkit-scrollbar {
  height: 3px;
}

.categories-scroll-tray::-webkit-scrollbar-thumb {
  background: var(--color-warm-gray-light);
  border-radius: 3px;
}

.cat-pill {
  white-space: nowrap;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  color: var(--color-warm-gray);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.cat-pill.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(28, 49, 85, 0.2);
}

/* ==========================================================================
   MENU SECTION & DISH CARDS
   ========================================================================== */
.passenger-menu-section {
  padding: 36px 0 80px;
  flex-grow: 1;
}

.menu-filter-bar {
  max-width: 520px;
  margin: 0 auto 28px;
}

.search-input-box {
  position: relative;
}

.search-input-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-warm-gray);
}

.dish-search-input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-size: 0.92rem;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dish-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(28, 49, 85, 0.1);
}

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dish-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dish-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dish-card.sold-out {
  opacity: 0.65;
}

.dish-card-img-wrap {
  position: relative;
  height: 180px;
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-accent);
}

.dish-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.dish-card:hover .dish-card-img-wrap img {
  transform: scale(1.04);
}

.sold-out-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #EF4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.dish-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dish-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.dish-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}

.dish-price {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.dish-sub-name {
  font-size: 0.78rem;
  color: var(--color-warm-gray);
  font-style: italic;
  margin-bottom: 8px;
}

.dish-ingredients {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
  flex-grow: 1;
}

.dish-variants-row {
  margin-bottom: 12px;
}

.variant-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-warm-gray);
  display: block;
  margin-bottom: 4px;
}

.variant-select {
  width: 100%;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
  font-size: 0.82rem;
  color: var(--color-text-main);
  outline: none;
}

.dish-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border-light);
  gap: 10px;
}

.dish-weight-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-warm-gray);
  background: var(--color-bg-accent);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.dish-action-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-counter {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-light);
  overflow: hidden;
}

.qty-btn {
  border: none;
  background: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-primary);
  transition: background 0.15s;
}

.qty-btn:hover {
  background: var(--color-border-light);
}

.qty-num {
  width: 22px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-add-to-cart {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn-add-to-cart:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.btn-sold-out-disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

/* Service Charge Banner */
.service-charge-banner {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.sc-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

.sc-content strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.sc-content p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   CART DRAWER & SUMMARY
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18, 33, 58, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 100vw;
  height: 100%;
  background: var(--color-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-header-title h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
}

.btn-close-cart {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-warm-gray);
  cursor: pointer;
}

.cart-destination-pill {
  background: var(--color-bg-accent);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--color-border-light);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-size: 0.9rem;
  color: var(--color-primary);
}

.cart-item-var {
  font-size: 0.76rem;
  color: var(--color-warm-gray);
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-light);
}

.c-qty-btn {
  border: none;
  background: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 0.9rem;
}

.c-qty-val {
  width: 20px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.cart-line-total {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 60px;
  text-align: right;
}

.cart-remove-btn {
  border: none;
  background: none;
  color: #EF4444;
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-empty-box {
  text-align: center;
  padding: 48px 20px;
  color: var(--color-warm-gray);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.cart-summary-section {
  padding: 20px;
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
}

.cart-calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}

.service-charge-row {
  color: var(--color-primary);
  font-weight: 500;
}

.cart-calc-row.total-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.checkout-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
}

.btn-clear-cart {
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--color-warm-gray);
  font-size: 0.8rem;
  margin-top: 8px;
  cursor: pointer;
}

/* ==========================================================================
   FLOATING MOBILE CART BAR
   ========================================================================== */
.floating-mobile-cart-bar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(28, 49, 85, 0.35);
  z-index: 90;
  transition: transform 0.2s ease;
}

.floating-mobile-cart-bar.visible {
  display: flex;
}

.floating-cart-info {
  display: flex;
  flex-direction: column;
}

.cart-items-qty {
  font-size: 0.75rem;
  color: #DCD6CC;
}

.cart-sum {
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-float-cart {
  background: var(--color-white);
  color: var(--color-primary);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ==========================================================================
   CHECKOUT MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18, 33, 58, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 16px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
}

.checkout-modal-card {
  max-width: 580px;
  padding: 32px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-warm-gray);
  cursor: pointer;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-review-box {
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 18px 0;
}

.review-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.review-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.review-row {
  display: flex;
  justify-content: space-between;
}

.review-total-line {
  border-top: 1px solid var(--color-border);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.btn-submit-order {
  width: 100%;
  padding: 14px;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   ORDER TRACKING PAGE
   ========================================================================== */
.tracking-main {
  padding: 40px 0 80px;
  flex-grow: 1;
}

.tracking-container {
  max-width: 680px;
}

.tracking-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.order-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.order-number-pill {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.order-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.status-new { background: #E0E7FF; color: #3730A3; }
.status-accepted { background: #EEF2FF; color: #4F46E5; }
.status-preparing { background: #FEF3C7; color: #B45309; }
.status-ready { background: #D1FAE5; color: #065F46; }
.status-out_for_delivery { background: #EDE9FE; color: #5B21B6; }
.status-delivered { background: #DEF7EC; color: #03543F; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

.tracking-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--color-primary);
  margin-bottom: 6px;
}

.tracking-subtext {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 24px;
}

.tracking-destination-box {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dest-item {
  display: flex;
  flex-direction: column;
}

.dest-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--color-warm-gray);
  font-weight: 600;
}

.dest-val {
  font-size: 1.05rem;
  color: var(--color-primary);
}

.dest-divider {
  width: 1px;
  height: 28px;
  background: var(--color-border);
}

/* Stepper Timeline */
.timeline-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding: 0 10px;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  width: 64px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s;
}

.step-node.completed .step-circle {
  background: var(--color-primary);
  color: #FFFFFF;
}

.step-node.current .step-circle {
  background: #F59E0B;
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.step-title {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-warm-gray);
}

.step-node.completed .step-title,
.step-node.current .step-title {
  color: var(--color-primary);
}

.step-line {
  flex-grow: 1;
  height: 3px;
  background: #E5E7EB;
  margin: 0 4px 18px;
  transition: background 0.3s;
}

.step-line.filled {
  background: var(--color-primary);
}

/* Breakdown List */
.order-items-breakdown {
  border-top: 1px solid var(--color-border-light);
  padding-top: 24px;
  margin-bottom: 24px;
}

.breakdown-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.b-var {
  color: var(--color-warm-gray);
  font-size: 0.8rem;
  margin-left: 4px;
}

.b-qty {
  font-weight: 600;
  margin-left: 6px;
  color: var(--color-primary);
}

.breakdown-totals {
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.calc-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.calc-line.grand-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.order-comment-box {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.comment-label {
  font-weight: 700;
  color: #B45309;
  display: block;
}

/* ==========================================================================
   KITCHEN KANBAN STYLES
   ========================================================================== */
.kitchen-body {
  background: #0F1A2E;
  color: #E2DFD7;
}

.kitchen-header {
  background: #15243E;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kitchen-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kitchen-logo {
  height: 42px;
  width: auto;
  background: #fff;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.kitchen-main-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #FFFFFF;
}

.kitchen-station-badge {
  font-size: 0.75rem;
  color: #94A3B8;
}

.kitchen-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-audio-toggle, .btn-stock-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-audio-toggle:hover, .btn-stock-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.kitchen-user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.btn-logout {
  color: #F87171;
  font-weight: 600;
}

.kitchen-kanban-wrapper {
  padding: 20px;
  overflow-x: auto;
  flex-grow: 1;
}

.kanban-board-grid {
  display: grid;
  grid-template-columns: repeat(6, 320px);
  gap: 16px;
  min-height: calc(100vh - 120px);
}

.kanban-col {
  background: #172846;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kanban-col-header {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-title-wrap h2 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #FFFFFF;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-new { background: #3B82F6; box-shadow: 0 0 8px #3B82F6; }
.dot-accepted { background: #6366F1; }
.dot-preparing { background: #F59E0B; }
.dot-ready { background: #10B981; }
.dot-delivery { background: #8B5CF6; }
.dot-completed { background: #059669; }

.col-badge-count {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.kanban-cards-tray {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.kanban-empty-col {
  text-align: center;
  padding: 40px 10px;
  color: #64748B;
  font-size: 0.85rem;
}

.kitchen-card {
  background: #1E3357;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.kitchen-card.pulse-new {
  border-color: #3B82F6;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

.k-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.k-order-no {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.k-order-time {
  font-size: 0.78rem;
  color: #94A3B8;
}

.k-card-destination {
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.k-dest-badge {
  font-size: 0.72rem;
  color: #94A3B8;
  text-transform: uppercase;
}

.k-dest-seat {
  font-size: 1.05rem;
  color: #38BDF8;
}

.k-passenger {
  font-size: 0.78rem;
  color: #CBD5E1;
}

.k-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.k-item-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.k-qty {
  color: #F59E0B;
}

.k-item-title {
  color: #F8FAFC;
}

.k-comment-alert {
  background: rgba(245, 158, 11, 0.15);
  border-left: 3px solid #F59E0B;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: #FDE68A;
  margin-bottom: 12px;
}

.k-card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.k-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38BDF8;
}

.k-actions-tray {
  display: flex;
  gap: 8px;
}

.k-btn {
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  flex-grow: 1;
  text-align: center;
}

.k-btn-accept { background: #3B82F6; color: #fff; }
.k-btn-prepare { background: #F59E0B; color: #fff; }
.k-btn-ready { background: #10B981; color: #fff; }
.k-btn-send { background: #8B5CF6; color: #fff; }
.k-btn-cancel { background: rgba(239, 68, 68, 0.2); color: #FCA5A5; flex-grow: 0; }

/* Stock Modal in Kitchen */
.stock-modal-card {
  max-width: 600px;
  background: #172846;
  color: #fff;
  padding: 24px;
}

.stock-modal-card .modal-title {
  color: #fff;
}

.modal-intro {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 16px;
}

.stock-search-box {
  margin-bottom: 16px;
}

.stock-items-scroll-list {
  max-height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stock-row {
  background: #1E3357;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stock-item-info {
  display: flex;
  flex-direction: column;
}

.stock-item-kz {
  font-size: 0.78rem;
  color: #94A3B8;
}

.stock-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38BDF8;
}

/* Switch Toggle UI */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #64748B;
  transition: .3s;
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #10B981;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* ==========================================================================
   DELIVERY STAFF STYLES
   ========================================================================== */
.staff-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  padding: 14px 0;
}

.staff-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-logo {
  height: 44px;
}

.staff-title-box h1 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
}

.staff-role-badge {
  font-size: 0.75rem;
  color: var(--color-warm-gray);
}

.staff-user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.staff-main-container {
  padding: 24px 0 60px;
  flex-grow: 1;
}

.staff-tabs-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 10px;
  overflow-x: auto;
}

.staff-tab-btn {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-tab-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.staff-badge {
  background: #EF4444;
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.staff-tab-content {
  display: none;
}

.staff-tab-content.active {
  display: block;
}

.staff-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.staff-order-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.delivering-card {
  border-left: 5px solid #8B5CF6;
}

.s-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.s-order-no {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.s-status-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.s-status-tag.ready { background: #D1FAE5; color: #065F46; }
.s-status-tag.delivering { background: #EDE9FE; color: #5B21B6; }
.s-status-tag.delivered { background: #DEF7EC; color: #03543F; }

.s-destination-banner {
  background: #F0F4F8;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.s-dest-box {
  display: flex;
  flex-direction: column;
}

.s-dest-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-warm-gray);
}

.wagon-big, .seat-big {
  font-size: 1.35rem;
  color: var(--color-primary);
}

.s-passenger-row {
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s-phone-link {
  color: var(--color-primary);
  font-weight: 600;
}

.s-items-preview {
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.82rem;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.s-comment-alert {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  padding: 6px 10px;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.btn-take-delivery {
  width: 100%;
  background: #10B981;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-finish-delivery {
  width: 100%;
  background: #059669;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-header {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 14px 0;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo {
  height: 42px;
  background: #fff;
  padding: 2px;
  border-radius: var(--radius-sm);
}

.admin-title-box h1 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.admin-badge {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-nav-link {
  color: #B4B1AB;
  font-size: 0.88rem;
  font-weight: 500;
}

.admin-nav-link.active, .admin-nav-link:hover {
  color: #fff;
  font-weight: 600;
}

.admin-main {
  padding: 36px 0 80px;
  flex-grow: 1;
}

.admin-mode-banner {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mode-status-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 8px;
}

.mode-open { background: #D1FAE5; color: #065F46; }
.mode-closed { background: #FEE2E2; color: #991B1B; }

.btn-mode-toggle {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.kpi-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--color-warm-gray);
  display: block;
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
}

.active-count { color: #F59E0B; }
.success-count { color: #10B981; }
.cancel-count { color: #EF4444; }

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-data-table th, .admin-data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.88rem;
}

.admin-data-table th {
  background: var(--color-bg-light);
  font-weight: 600;
  color: var(--color-primary);
}

.btn-link-action {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Trains & QR Cards */
.train-admin-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.train-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.train-number-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
}

.train-route-text {
  font-size: 0.9rem;
  color: var(--color-warm-gray);
}

.carriages-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.carriage-admin-pill {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-info strong {
  color: var(--color-primary);
  font-size: 1rem;
}

.c-token-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.btn-copy-url {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  cursor: pointer;
}

/* ==========================================================================
   AUTH PAGE STYLES
   ========================================================================== */
.auth-page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #172846 100%);
}

.auth-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  height: 54px;
  margin: 0 auto 14px;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--color-warm-gray);
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
}

.auth-error-msg {
  background: #FEE2E2;
  color: #991B1B;
  border-left: 3px solid #EF4444;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.auth-demo-hint {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.auth-demo-hint ul {
  list-style: none;
  margin-top: 6px;
}

.auth-back-link {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* Toast Container */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-msg {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease-out;
}

.toast-msg.fade-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .passenger-nav {
    display: none;
  }

  .rail-steps-track {
    flex-direction: column;
    gap: 16px;
  }

  .rail-step-connector {
    width: 2px;
    height: 18px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .cart-label {
    display: none;
  }

  .train-hero-section {
    min-height: 380px;
    padding: 36px 0;
  }

  .hero-travel-card {
    width: 100%;
    justify-content: space-between;
  }

  .dishes-grid {
    grid-template-columns: 1fr;
  }

  .form-row-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tracking-card {
    padding: 22px 16px;
  }

  .timeline-stepper {
    padding: 0;
  }

  .step-node {
    width: 48px;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .btn-hamburger {
    display: flex !important;
  }

  .about-dining-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .reports-split-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MOBILE HAMBURGER & NAVIGATION DRAWER
   ========================================================================== */
.btn-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  color: var(--color-primary);
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 30px;
}
.btn-hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 290px;
  height: 100vh;
  background: #ffffff;
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-drawer.open {
  transform: translateX(300px);
}
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 33, 58, 0.4);
  z-index: 1000;
  display: none;
}
.mobile-nav-backdrop.open {
  display: block;
}
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 20px;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav-links a, .mobile-nav-links button {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 6px 0;
}

/* ==========================================================================
   ABOUT ONBOARD DINING & HOW IT WORKS
   ========================================================================== */
.about-dining-section {
  padding: 64px 0;
  background: #ffffff;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}
.about-dining-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-dining-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-dining-content h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.about-dining-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 1.02rem;
  margin-bottom: 24px;
}
.about-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--color-primary);
}
.about-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: bold;
}

/* ==========================================================================
   CONTACTS SECTION
   ========================================================================== */
.contacts-section {
  padding: 56px 0;
  background: var(--color-bg-light);
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.contact-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(28, 49, 85, 0.06);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.contact-info strong {
  display: block;
  color: var(--color-primary);
  font-size: 1rem;
}
.contact-info span {
  font-size: 0.88rem;
  color: var(--color-warm-gray);
}

/* ==========================================================================
   MY ORDER TRACKING MODAL
   ========================================================================== */
.my-order-card {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.my-order-no {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.05rem;
}
.my-order-loc {
  font-size: 0.85rem;
  color: var(--color-warm-gray);
}

/* ==========================================================================
   ADMIN QR & REPORTS STYLING
   ========================================================================== */
.qr-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.qr-management-card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.qr-preview-box {
  width: 160px;
  height: 160px;
  margin: 14px auto;
  border: 2px dashed var(--color-border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}
.qr-svg-image {
  width: 100%;
  height: 100%;
  display: block;
}
.qr-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}
.btn-print-qr, .btn-download-svg, .btn-toggle-qr {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: #fff;
  font-weight: 600;
}
.btn-print-qr {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.reports-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.report-box {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.report-title {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 18px;
}
.perf-metric-row {
  margin-bottom: 20px;
}
.perf-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.perf-bar-track {
  height: 10px;
  background: var(--color-bg-accent);
  border-radius: 5px;
  overflow: hidden;
}
.perf-bar-fill {
  height: 100%;
  background: var(--color-status-ready);
  border-radius: 5px;
}
.status-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.s-pill {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(28,49,85,0.06);
}
.badge-qty {
  display: inline-block;
  background: var(--color-bg-accent);
  color: var(--color-primary);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.orders-filter-card {
  background: #ffffff;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}
.order-items-compact {
  font-size: 0.85rem;
  line-height: 1.4;
}
.item-comment-tag {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #b45309;
  background: #fffbeb;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}
.currency-tag {
  font-size: 0.85rem;
  color: var(--color-warm-gray);
  font-weight: 500;
}



/* Dish Description */
.dish-desc {
  font-size: 0.85rem;
  color: var(--color-warm-gray);
  line-height: 1.45;
  margin-bottom: 8px;
}

/* ==========================================================================
   LUNCHBOXES SECTION & CARDS STYLING (TEXT-ONLY, RESPONSIVE, 3 LANGUAGES)
   ========================================================================== */
.lunchbox-cat-pill {
  background: rgba(197, 168, 128, 0.15) !important;
  color: var(--color-primary) !important;
  border-color: #C5A880 !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}
.lunchbox-cat-pill:hover {
  background: var(--color-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--color-primary) !important;
}

.btn-lunchbox-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #C5A880;
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(28, 49, 85, 0.05);
  white-space: nowrap;
}
.btn-lunchbox-shortcut:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 49, 85, 0.15);
}
.btn-lunchbox-shortcut .lb-shortcut-arrow {
  transition: transform 0.2s ease;
}
.btn-lunchbox-shortcut:hover .lb-shortcut-arrow {
  transform: translateX(3px);
}

.lunchboxes-top-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border-light);
  padding: 14px 0;
}
.lunchboxes-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-back-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-back-menu:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.btn-header-back-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(197, 168, 128, 0.2);
  color: var(--color-primary);
  border: 1px solid #C5A880;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-header-back-menu:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.lunchbox-breadcrumbs {
  font-size: 0.84rem;
  color: var(--color-warm-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lunchbox-breadcrumbs a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.lunchbox-breadcrumbs a:hover {
  color: #C5A880;
  text-decoration: underline;
}
.lunchbox-breadcrumbs .bc-curr {
  font-weight: 600;
  color: var(--color-text-main);
}

.lunchbox-hero-section {
  background: linear-gradient(135deg, #1C3155 0%, #15243E 100%);
  color: #FFFFFF;
  padding: 48px 0 36px 0;
  position: relative;
  border-bottom: 2px solid #C5A880;
}
.lunchbox-header-box {
  max-width: 820px;
}
.lunchbox-tag-badge {
  display: inline-block;
  background: rgba(197, 168, 128, 0.22);
  border: 1px solid #C5A880;
  color: #F3E8D6;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.lunchbox-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.lunchbox-subtitle {
  font-size: 1.05rem;
  color: #D1D5DB;
  line-height: 1.5;
  margin: 0 0 24px 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.lunchbox-features-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.lb-feat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #E2DFD7;
}
.lb-feat-item svg {
  color: #C5A880;
  stroke-width: 2.5;
}

.lunchboxes-container-section {
  padding: 48px 0 64px 0;
  background: #F8F9FA;
}

.lunchbox-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.lunchbox-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  position: relative;
}
.lunchbox-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(28, 49, 85, 0.12);
  border-color: #C5A880;
}

.lb-card-header {
  padding: 24px 24px 18px 24px;
  border-bottom: 1px solid var(--color-border-light);
  background: linear-gradient(to bottom, #FAFAFA 0%, #FFFFFF 100%);
}
.lb-card-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.lb-badge-icon {
  font-size: 1.15rem;
}
.lb-badge-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #92400E;
  background: #FEF3C7;
  padding: 2px 8px;
  border-radius: 4px;
}
.lb-card-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 10px 0;
  line-height: 1.2;
}
.lb-weights-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(28, 49, 85, 0.05);
  border: 1px dashed rgba(28, 49, 85, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}
.lb-weights-label {
  font-size: 0.78rem;
  color: var(--color-warm-gray);
  font-weight: 500;
}
.lb-weights-digits {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.lb-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.lb-contents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F3F4F6;
}
.lb-contents-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
}
.lb-contents-total {
  font-size: 0.84rem;
  font-weight: 700;
  color: #C5A880;
  background: #FFFDF9;
  border: 1px solid #F0E6D6;
  padding: 2px 8px;
  border-radius: 4px;
}

.lb-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lb-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #F9FAFB;
  border: 1px solid #F3F4F6;
  transition: background 0.15s ease;
}
.lb-item-row:hover {
  background: #F3F4F6;
}
.lb-item-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-grow: 1;
  min-width: 0;
}
.lb-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C5A880;
  flex-shrink: 0;
  margin-top: 5px;
}
.lb-item-name {
  font-size: 0.92rem;
  color: var(--color-text-main);
  line-height: 1.45;
  font-weight: 500;
  overflow-wrap: break-word;
  word-break: break-word;
}
.lb-item-weight {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  background: #FFFFFF;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #E5E7EB;
  flex-shrink: 0;
  white-space: nowrap;
}

.lb-card-footer {
  padding: 14px 24px;
  background: #FAFAFA;
  border-top: 1px solid var(--color-border-light);
}
.lb-halal-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-warm-gray);
}
.lb-halal-note svg {
  color: #10B981;
}

.lunchboxes-return-banner {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.lb-return-content {
  max-width: 650px;
}
.lb-return-content h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--color-primary);
  margin: 0 0 6px 0;
}
.lb-return-content p {
  font-size: 0.9rem;
  color: var(--color-warm-gray);
  margin: 0;
  line-height: 1.5;
}
.lb-return-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Responsive Overrides for Lunchbox Section */
@media (max-width: 768px) {
  .lunchbox-title {
    font-size: 2.1rem;
  }
  .lunchbox-hero-section {
    padding: 32px 0 24px 0;
  }
  .lunchbox-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .btn-header-back-menu {
    display: none;
  }
  .lunchboxes-return-banner {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .lb-return-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   MOBILE ADAPTATION (телефон / планшет бейімделуі)
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
button, a, select, label, summary { touch-action: manipulation; }

/* Ланчбокс карточкасының нөмірі (1, 2, 3) */
.lb-card-title {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

@media (max-width: 768px) {
  .container { padding-left: 16px; padding-right: 16px; }

  /* iOS: 16px-тен кіші өріс фокус алғанда бет өздігінен үлкейіп кетеді */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select, textarea, .form-control, .dish-search-input {
    font-size: 16px;
  }
  .dish-search-input::placeholder { font-size: 0.88rem; }

  /* Басу аймағы кемінде ~40-44px */
  .btn-hamburger { width: 44px; height: 44px; padding: 12px 9px; }
  .lang-toggle-btn { padding: 8px 10px; min-height: 34px; }
  .btn-close-modal, .btn-close-cart { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .qty-btn { width: 36px; height: 36px; }
  .c-qty-btn { width: 32px; height: 32px; }
  .cart-remove-btn { min-width: 36px; min-height: 36px; }
  .btn-add-to-cart { min-height: 40px; }
  .cat-pill { min-height: 40px; display: inline-flex; align-items: center; }
  .mobile-nav-link, .mobile-nav-links a, .mobile-nav-links button { min-height: 44px; display: flex; align-items: center; }
  .passenger-header-right { gap: 8px; }

  /* Толық биіктік (мекенжай жолағы бар телефондарда) */
  .mobile-nav-drawer { height: 100vh; height: 100dvh; }
  .cart-drawer { width: 100%; height: 100vh; height: 100dvh; right: -105%; }
  .cart-drawer.open { right: 0; }
  .cart-summary-section { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }

  /* Төменгі себет жолағы мен хабарлама (iPhone төменгі жолағын ескеру) */
  .floating-mobile-cart-bar {
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .toast-container {
    top: auto;
    left: 14px;
    right: 14px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    align-items: stretch;
  }
  .toast-msg { text-align: center; }

  /* Терезелер — төменнен шығатын парақ (bottom sheet) */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-card {
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    -webkit-overflow-scrolling: touch;
  }
  .checkout-modal-card {
    max-width: none;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }
  .form-row-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* ---------- Әкімші панелі ---------- */
  .admin-header { padding: 10px 0; }
  .admin-header .header-inner {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 6px;
  }
  .admin-brand { gap: 10px; }
  .admin-logo { height: 36px; }
  .admin-title-box h1 { font-size: 1.1rem; line-height: 1.25; }
  .admin-badge { font-size: 0.68rem; }
  .admin-nav {
    overflow-x: auto;
    white-space: nowrap;
    gap: 18px;
    padding: 4px 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav-link, .admin-nav .btn-logout { flex: 0 0 auto; padding: 8px 0; }
  .admin-main { padding: 20px 0 60px; }
  .admin-mode-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }
  .btn-mode-toggle { width: 100%; min-height: 44px; }
  .admin-kpi-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 1.5rem; }
  .admin-actions-group { flex-wrap: wrap; gap: 8px; }
  .train-admin-card { padding: 16px; }

  /* Кестелер өз ішінде көлденең айналады, бет ені бұзылмайды */
  .admin-data-table,
  .table-responsive {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-data-table th, .admin-data-table td { padding: 10px 12px; font-size: 0.84rem; }
  /* 1fr бағаны ішіндегі кең кесте бет енін шығарып жібермеуі үшін */
  .reports-split-grid { grid-template-columns: minmax(0, 1fr); }
  .report-box, .admin-table-section, .orders-filter-card { min-width: 0; max-width: 100%; }

  /* ---------- Аспаз панелі ---------- */
  .kitchen-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .kitchen-main-title { font-size: 1.2rem; line-height: 1.25; }
  .kitchen-header-right { flex-wrap: wrap; gap: 8px; }
  .btn-audio-toggle, .btn-stock-toggle { min-height: 40px; }
  .kitchen-kanban-wrapper {
    padding: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .kanban-board-grid {
    grid-template-columns: repeat(6, 86vw);
    gap: 12px;
    min-height: calc(100vh - 170px);
  }
  .kanban-col { scroll-snap-align: center; }

  /* ---------- Жолсерік (доставка) ---------- */
  .staff-header { padding: 10px 0; }
  .staff-header .header-inner { height: auto; flex-wrap: wrap; gap: 8px; }
  .staff-title-box h1 { font-size: 1.1rem; }
  .staff-main-container { padding: 16px 0 40px; }
  .staff-tabs-row {
    flex-wrap: nowrap;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .staff-tabs-row::-webkit-scrollbar { display: none; }
  .staff-tab-btn { flex: 0 0 auto; white-space: nowrap; padding: 10px 14px; min-height: 44px; }
}

@media (max-width: 359px) {
  .form-row-grid { grid-template-columns: 1fr; }
  .admin-kpi-grid { grid-template-columns: 1fr; }
  .kitchen-kanban-wrapper { padding: 8px; }
}

/* Планшет: аспаз панелі 2-3 бағанды көрсетеді */
@media (min-width: 769px) and (max-width: 1100px) {
  .kanban-board-grid { grid-template-columns: repeat(6, 300px); }
  .admin-nav { flex-wrap: wrap; gap: 10px 16px; }
  .admin-header .header-inner { flex-wrap: wrap; height: auto; gap: 10px; }
}

@media (max-width: 768px) {
  .lb-floating-cart {
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    max-width: calc(100% - 28px);
    min-height: 48px;
  }
  #lbToast { bottom: calc(84px + env(safe-area-inset-bottom)) !important; max-width: calc(100% - 28px); text-align: center; }
}

/* Тапсырыс күйі: тар экранда 6 қадам көлденеңінен сыймайды — тігінен көрсетеміз */
@media (max-width: 520px) {
  .timeline-stepper {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 4px;
    margin-bottom: 24px;
  }
  .step-node {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    width: auto;
  }
  .step-circle { flex-shrink: 0; }
  .step-title { font-size: 0.92rem; }
  .step-line {
    flex-grow: 0;
    width: 3px;
    height: 16px;
    margin: 2px 0 2px 13.5px;
  }
}
