/* ==========================================================================
   Plaza las Palmeras - Modern Minimalist Dark Mode Design System
   ========================================================================== */

:root {
  --bg-primary: #070b12;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #182234;
  --bg-surface-glass: rgba(15, 23, 42, 0.78);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);

  /* Brand Accents */
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-whatsapp: #25d366;
  --accent-danger: #ef4444;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout & Elevations */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 20px var(--accent-emerald-glow);

  --header-height: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(90px + var(--safe-bottom));
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ==========================================================================
   Header & Brand Navigation
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  transition: all 0.25s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  min-width: 0;
}

.brand-logo-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.brand-section:hover .brand-logo-img {
  transform: scale(1.08);
}

.brand-info {
  min-width: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Discreet Sync Status Badge */
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  user-select: none;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  position: relative;
}

.sync-badge.syncing .sync-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulseSync 1s infinite alternate;
}

.sync-badge.error .sync-dot {
  background: var(--accent-danger);
  box-shadow: 0 0 8px var(--accent-danger);
}

@keyframes pulseSync {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 1; }
}

.header-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.05rem;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.header-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Hero & Announcement Bar
   ========================================================================== */

.hero-banner {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 16px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '🌴';
  position: absolute;
  right: 12px;
  bottom: -10px;
  font-size: 5rem;
  opacity: 0.08;
  pointer-events: none;
}

.hero-text h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.hero-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.hero-badge {
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-emerald-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Search & Category Navigation
   ========================================================================== */

.sticky-controls {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
}

.controls-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Search Bar */
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.05rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 11px 40px 11px 42px;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--accent-emerald);
  background: rgba(24, 34, 52, 0.95);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  display: none;
}

.search-clear-btn.visible {
  display: block;
}

/* Horizontal Category Tabs */
.categories-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.categories-slider::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-tab:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-emerald-glow);
}

.category-tab .count-badge {
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
}

/* ==========================================================================
   Main Content & Dish Cards Grid
   ========================================================================== */

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  width: 100%;
}

.section-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Grid Layout */
.dishes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .dishes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

/* Dish Card */
.dish-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  cursor: pointer;
}

.dish-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

/* Image Container */
.dish-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #09111c;
  overflow: hidden;
}

.dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

/* Badges on Image */
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-featured {
  background: rgba(245, 158, 11, 0.88);
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.badge-custom {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
}

.badge-soldout {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-weight: 800;
}

/* Card Body */
.dish-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.dish-main-info {
  margin-bottom: 12px;
}

.dish-category-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-emerald);
  margin-bottom: 4px;
}

.dish-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.dish-description {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer (Price & Action) */
.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.dish-price-wrap {
  display: flex;
  flex-direction: column;
}

.price-currency {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dish-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  letter-spacing: -0.02em;
}

/* Quick Add Button / Stepper */
.dish-actions {
  display: flex;
  align-items: center;
}

.btn-add-quick {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--accent-emerald-light);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-quick:hover {
  background: var(--accent-emerald);
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
}

.card-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  padding: 3px 6px;
  border-radius: var(--radius-full);
}

.stepper-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.stepper-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.stepper-qty {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
  min-width: 20px;
  text-align: center;
}

/* Unavailable / Agotado Card State */
.dish-card.unavailable {
  opacity: 0.55;
  filter: grayscale(0.65);
}

.dish-card.unavailable .btn-add-quick {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: transparent;
}

.dish-card.unavailable .btn-add-quick:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: none;
}

/* ==========================================================================
   Floating Cart Bar
   ========================================================================== */

.floating-cart-bar {
  position: fixed;
  bottom: calc(16px + var(--safe-bottom));
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cart-bar.active {
  transform: translateY(0);
  pointer-events: auto;
}

.cart-bar-pill {
  width: 100%;
  max-width: 580px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-emerald-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-bar-pill:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7), 0 0 35px var(--accent-emerald-glow);
}

.cart-bar-pill:active {
  transform: scale(0.98);
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-badge-count {
  background: #fff;
  color: #065f46;
  font-weight: 800;
  font-size: 0.85rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cart-bar-text {
  display: flex;
  flex-direction: column;
}

.cart-bar-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cart-bar-subtitle {
  font-size: 0.74rem;
  opacity: 0.9;
}

.cart-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-bar-total {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cart-bar-arrow {
  font-size: 1.1rem;
}

/* ==========================================================================
   Modals & Drawers (HTML5 Dialog & Custom Backdrops)
   ========================================================================== */

.modal-dialog {
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
  max-width: 580px;
  margin: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  outline: none;
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Cart Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface-elevated);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.cart-item-info {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price-each {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

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

.cart-item-subtotal {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  min-width: 60px;
  text-align: right;
}

/* Service Type Switcher */
.service-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-surface-elevated);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.service-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.service-tab.active {
  background: var(--accent-emerald);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-emerald-glow);
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 60px;
}

/* WhatsApp Order Button */
.btn-whatsapp-order {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
  width: 100%;
}

.btn-whatsapp-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-order:active {
  transform: scale(0.98);
}

/* Order Totals Box */
.totals-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.breakdown-row.total-row {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 4px;
}

.breakdown-row.total-row span:last-child {
  color: var(--accent-gold-light);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state-icon {
  font-size: 3rem;
  opacity: 0.6;
}

/* ==========================================================================
   Admin / Brand Settings Panel Styles
   ========================================================================== */

.admin-sheet {
  max-width: 650px;
}

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

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

.btn-test-conn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-test-conn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-emerald);
}

.conn-feedback {
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: none;
}

.conn-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald-light);
}

.conn-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--accent-danger);
  color: #fca5a5;
}

.info-box-template {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed var(--border-highlight);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.info-box-template code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-gold-light);
  font-family: monospace;
}

/* ==========================================================================
   Dish Detail Modal (Zoom / Ingredients)
   ========================================================================== */

.dish-detail-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #09111c;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 999;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .app-header {
    padding: 8px 12px;
  }
  .brand-name {
    font-size: 1rem;
  }
  .sync-badge span.sync-text {
    display: none;
  }
  .sync-badge {
    padding: 6px;
  }
}
