/* ==========================================================================
   HESA WADAI — BANJAR LESTARI DESIGN SYSTEM
   Take-Away Makanan Ringan Khas Banjar · Kalimantan Selatan
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Playfair+Display:ital,wght@0,500..900;1,500..900&family=Plus+Jakarta+Sans:ital,wght@0,400..800;1,400..800&display=swap');

/* --- CSS VARIABLES & TOKENS --- */
:root {
  --bg-cream: #FAF5EF;
  --bg-card: #FFFFFF;
  --bg-subtle: #F5EFE6;
  --wood-dark: #3D2B1F;
  --wood-medium: #6B4423;
  --wood-light: #9C6B45;
  --terracotta: #C4703B;
  --terracotta-hover: #A85928;
  --terracotta-light: #FBF0E8;
  --saffron: #E8A838;
  --saffron-hover: #D49324;
  --saffron-light: #FEF7E8;
  --leaf-green: #4A7C59;
  --leaf-green-hover: #386044;
  --leaf-green-light: #EBF4EE;
  --blue-accent: #3B729F;
  --blue-light: #EAF2F8;
  --danger: #C0392B;
  --danger-light: #FCEAE8;
  --mist-gray: #E8E0D8;
  --mist-gray-light: #F7F3EE;
  --text-muted: #846D5B;
  --shadow: rgba(61, 43, 31, 0.08);
  --shadow-sm: 0 2px 8px var(--shadow);
  --shadow-md: 0 4px 16px var(--shadow);
  --shadow-elevated: 0 10px 32px rgba(61, 43, 31, 0.12);
  --shadow-hover: 0 14px 36px rgba(61, 43, 31, 0.14);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-accent: 'DM Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --sidebar-w: 260px;
  --sidebar-w-collapsed: 76px;
  --topbar-h: 70px;
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-cream);
  color: var(--wood-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active {
  transform: scale(0.98);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--wood-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  color: var(--wood-medium);
}

.text-terracotta { color: var(--terracotta); }
.text-saffron { color: var(--saffron); }
.text-leaf { color: var(--leaf-green); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* --- COMMON BUTTONS & BADGES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.925rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--terracotta);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(196, 112, 59, 0.25);
}

.btn-primary:hover {
  background-color: var(--terracotta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(196, 112, 59, 0.35);
}

.btn-secondary {
  background-color: var(--saffron-light);
  color: var(--wood-dark);
  border: 1px solid var(--saffron);
}

.btn-secondary:hover {
  background-color: var(--saffron);
  color: #FFFFFF;
}

.btn-outline {
  background-color: transparent;
  color: var(--wood-dark);
  border: 1.5px solid var(--mist-gray);
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--wood-medium);
}

.btn-ghost:hover {
  background-color: var(--mist-gray-light);
  color: var(--wood-dark);
}

.btn-leaf {
  background-color: var(--leaf-green);
  color: #FFFFFF;
}

.btn-leaf:hover {
  background-color: var(--leaf-green-hover);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.825rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-terracotta { background: var(--terracotta-light); color: var(--terracotta); }
.badge-saffron { background: var(--saffron-light); color: var(--saffron-hover); }
.badge-leaf { background: var(--leaf-green-light); color: var(--leaf-green); }
.badge-blue { background: var(--blue-light); color: var(--blue-accent); }
.badge-gray { background: var(--mist-gray); color: var(--wood-medium); }
.badge-danger { background: var(--danger-light); color: var(--danger); }

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

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wood-dark);
}

.input-control {
  width: 100%;
  padding: 10px 14px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--mist-gray);
  border-radius: var(--radius-sm);
  color: var(--wood-dark);
  font-size: 0.925rem;
  transition: all 0.2s ease;
}

.input-control:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 112, 59, 0.15);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group .input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-group .input-control.has-icon {
  padding-left: 40px;
}

.input-group .input-toggle {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

/* ==========================================================================
   PUBLIC PROMOTIONAL SHOWCASE ("BANJAR LESTARI")
   ========================================================================== */
.promo-body {
  background-color: var(--bg-cream);
  background-image: url('../assets/banjar-pattern.svg');
  background-attachment: fixed;
}

/* Promo Navigation */
.promo-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 245, 239, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist-gray);
  padding: 12px 24px;
}

.promo-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promo-logo {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--terracotta);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.promo-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.promo-logo-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--wood-dark);
}

.promo-logo-text span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.08em;
  display: block;
}

.promo-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.promo-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wood-dark);
  transition: color 0.2s ease;
  position: relative;
}

.promo-links a:hover,
.promo-links a.active {
  color: var(--terracotta);
}

.promo-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hero Section */
.promo-hero {
  max-width: 1240px;
  margin: 24px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta-light);
  border: 1px solid rgba(196, 112, 59, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.85rem;
  width: fit-content;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--wood-dark);
}

.hero-title span {
  color: var(--terracotta);
  font-style: italic;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--wood-medium);
  line-height: 1.6;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mist-gray);
}

.hero-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--saffron-light);
  color: var(--saffron-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-text h4 {
  font-size: 0.95rem;
  font-family: var(--font-ui);
  font-weight: 700;
}

.hero-badge-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.hero-card-featured {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--mist-gray);
  position: relative;
  overflow: hidden;
}

.hero-img-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 340px;
  background: linear-gradient(135deg, #6B4423, #3D2B1F);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,43,31,0.85) 0%, rgba(61,43,31,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #FFFFFF;
}

.hero-floating-pill {
  position: absolute;
  top: 20px;
  right: -10px;
  background: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--saffron);
  animation: floatSlow 4s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Promo Banner Highlight */
.promo-strip {
  background: linear-gradient(90deg, var(--wood-dark) 0%, #4E3321 100%);
  color: #FFFFFF;
  padding: 24px 0;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.promo-strip-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.promo-strip-left h3 {
  color: var(--saffron);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.promo-strip-left p {
  color: #FAF5EF;
  font-size: 0.95rem;
}

/* Sections */
.promo-section {
  max-width: 1240px;
  margin: 0 auto 70px;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.section-header .section-tag {
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1rem;
  color: var(--wood-medium);
}

/* Category Filter Chips */
.category-filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.chip-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--mist-gray);
  color: var(--wood-dark);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.chip-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.chip-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(196, 112, 59, 0.3);
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.menu-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--mist-gray);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(196, 112, 59, 0.3);
}

.menu-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--mist-gray-light);
}

.menu-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.menu-card:hover .menu-card-img {
  transform: scale(1.05);
}

.menu-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

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

.menu-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.menu-card-desc {
  font-family: var(--font-accent);
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--mist-gray-light);
}

.menu-card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--terracotta);
}

/* Packages / Promos Grid */
.promo-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.promo-pack-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--mist-gray);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.promo-pack-card.highlight {
  border-color: var(--saffron);
  background: linear-gradient(180deg, #FFFDF8 0%, #FFFFFF 100%);
  box-shadow: var(--shadow-elevated);
}

.promo-pack-ribbon {
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--saffron);
  color: var(--wood-dark);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 36px;
  transform: rotate(45deg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.promo-pack-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.promo-pack-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.promo-pack-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.promo-pack-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--wood-dark);
}

.promo-pack-features li svg {
  color: var(--leaf-green);
  flex-shrink: 0;
}

/* Banjar Heritage Story */
.story-box {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--mist-gray);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.story-box-text h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.story-box-text p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.story-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.story-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wood-dark);
}

.story-feat-item span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--leaf-green-light);
  color: var(--leaf-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Testimonial & Location Grid */
.info-double-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--mist-gray);
  box-shadow: var(--shadow-sm);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.info-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--terracotta-light);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mist-gray-light);
}

.store-detail-row:last-child {
  border-bottom: none;
}

.store-detail-row svg {
  color: var(--wood-medium);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Floating Cart Button (Customer Take-Away) */
.floating-cart-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 95;
  background: var(--terracotta);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-elevated);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: 2px solid #FAF5EF;
}

.floating-cart-btn:hover {
  background: var(--terracotta-hover);
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.cart-count-pill {
  background: var(--saffron);
  color: var(--wood-dark);
  font-size: 0.75rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.promo-footer {
  background: var(--wood-dark);
  color: #FAF5EF;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.promo-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--saffron);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-col p {
  color: #D4C5B9;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #D4C5B9;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--saffron);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 0;
  border-top: 1px solid rgba(232, 224, 216, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: #A38F7F;
}

/* ==========================================================================
   APP SHELL / INTERNAL MANAGEMENT (DASHBOARD, MENU, PESANAN, LAPORAN, SETTINGS)
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-cream);
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-w);
  background-color: #FFFFFF;
  border-right: 1px solid var(--mist-gray);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: width 0.25s ease;
}

.sidebar-header {
  height: var(--topbar-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mist-gray-light);
}

.sidebar-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.sidebar-logo-img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--terracotta);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
}

.sidebar-logo-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--wood-dark);
}

.sidebar-logo-text span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.06em;
}

.sidebar-nav {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--wood-medium);
  font-size: 0.925rem;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item:hover {
  background-color: var(--mist-gray-light);
  color: var(--wood-dark);
}

.nav-item.active {
  background-color: var(--terracotta-light);
  color: var(--terracotta);
  font-weight: 700;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background-color: var(--terracotta);
  border-radius: 0 4px 4px 0;
}

.sidebar-footer {
  padding: 16px 14px;
  border-top: 1px solid var(--mist-gray-light);
}

/* Main Content Area */
.app-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Bar */
.app-topbar {
  height: var(--topbar-h);
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--mist-gray);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 80;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-search {
  position: relative;
  width: 260px;
}

.topbar-search input {
  padding-left: 36px;
}

.topbar-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.topbar-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wood-medium);
  position: relative;
}

.topbar-btn-icon:hover {
  background: var(--mist-gray-light);
  color: var(--wood-dark);
}

.topbar-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--mist-gray);
  background: #FFFFFF;
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wood-dark);
  color: var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wood-dark);
  line-height: 1.1;
}

.user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Page Container */
.page-content {
  padding: 28px;
  flex-grow: 1;
}

/* Dashboard Metric Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--mist-gray);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.metric-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon-saffron { background: var(--saffron-light); color: var(--saffron-hover); }
.metric-icon-leaf { background: var(--leaf-green-light); color: var(--leaf-green); }
.metric-icon-terracotta { background: var(--terracotta-light); color: var(--terracotta); }
.metric-icon-wood { background: var(--mist-gray-light); color: var(--wood-medium); }

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--wood-dark);
  line-height: 1.2;
}

/* Split Grid for Dashboard (60% / 40%) */
.dashboard-split-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.panel-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--mist-gray);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.panel-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--mist-gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.panel-body {
  padding: 20px;
}

/* Quick Actions Row */
.quick-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quick-action-card {
  background: #FFFFFF;
  border: 1.5px dashed var(--mist-gray);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action-card:hover {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.custom-table th {
  background-color: var(--mist-gray-light);
  color: var(--wood-dark);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--mist-gray);
  white-space: nowrap;
}

.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mist-gray-light);
  color: var(--wood-dark);
  vertical-align: middle;
}

.custom-table tr:hover td {
  background-color: var(--mist-gray-light);
}

.custom-table tfoot td {
  font-weight: 800;
  background-color: var(--mist-gray-light);
  border-top: 2px solid var(--mist-gray);
}

/* Popular Menu Rank List */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rank-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 28px;
  text-align: center;
}

.rank-item:first-child .rank-number {
  color: var(--saffron-hover);
}

.rank-item-info {
  flex-grow: 1;
}

.rank-item-title {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.rank-progress-bg {
  height: 6px;
  background: var(--mist-gray-light);
  border-radius: 3px;
  overflow: hidden;
}

.rank-progress-bar {
  height: 100%;
  background: var(--terracotta);
  border-radius: 3px;
}

.rank-item:first-child .rank-progress-bar {
  background: var(--saffron);
}

/* ==========================================================================
   MODALS, DRAWERS & OVERLAYS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(61, 43, 31, 0.45);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

.modal-container {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  height: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

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

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#menu-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--mist-gray-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: var(--mist-gray-light);
}

/* Slide-in Order Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(61, 43, 31, 0.35);
  backdrop-filter: blur(2px);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: #FFFFFF;
  z-index: 130;
  box-shadow: -8px 0 32px rgba(61, 43, 31, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-backdrop.open ~ .drawer-panel,
.drawer-panel.open {
  transform: translateX(0);
}

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

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--mist-gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FAF5EF;
}

/* 3-Step Wizard Styles */
.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.wizard-step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.wizard-step-node.active {
  color: var(--terracotta);
}

.wizard-step-node.completed {
  color: var(--leaf-green);
}

.wizard-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mist-gray);
  color: var(--wood-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.wizard-step-node.active .wizard-step-number {
  background: var(--terracotta);
  color: #FFFFFF;
}

.wizard-step-node.completed .wizard-step-number {
  background: var(--leaf-green);
  color: #FFFFFF;
}

/* Takeaway Item Selection in Modal */
.takeaway-menu-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}

.picker-item-card {
  border: 1px solid var(--mist-gray);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
}

.stepper-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--mist-gray-light);
  color: var(--wood-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid var(--mist-gray);
}

.stepper-btn:hover {
  background: var(--terracotta);
  color: #FFFFFF;
  border-color: var(--terracotta);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 5px solid var(--leaf-green);
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

.toast-item.toast-error { border-left-color: var(--danger); }
.toast-item.toast-info { border-left-color: var(--blue-accent); }

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

/* Thermal POS Receipt Print Styles */
#receipt-print-area {
  display: none;
}

@media print {
  body * {
    visibility: hidden !important;
  }
  #receipt-print-area, #receipt-print-area * {
    visibility: visible !important;
  }
  #receipt-print-area {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    padding: 4mm;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.3;
    color: #000000;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .promo-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-badges-row {
    justify-content: center;
  }
  .story-box {
    grid-template-columns: 1fr;
  }
  .info-double-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-split-grid {
    grid-template-columns: 1fr;
  }
  .quick-actions-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-sidebar {
    width: var(--sidebar-w-collapsed);
  }
  .nav-item span,
  .sidebar-header .sidebar-logo-text,
  .user-info-text {
    display: none;
  }
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-packages-grid {
    grid-template-columns: 1fr;
  }
  .promo-links {
    display: none;
  }
  .drawer-panel {
    width: 100vw;
  }
  .takeaway-menu-picker {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .metrics-row {
    grid-template-columns: 1fr;
  }
}
