/* ============================================================
   CaterCraft - Complete Stylesheet
   Design: Royal Blue — Professional, Modern, Premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Mukta:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ── Design Tokens — Royal Blue Professional Theme ── */
:root {
  --c-primary: #1A3C8F;
  --c-primary-dark: #0F2560;
  --c-primary-light: #4A6FC4;
  --c-secondary: #2979FF;
  --c-secondary-light: #82B1FF;
  --c-gold: #F5A623;
  --c-bg: #F4F7FF;
  --c-surface: #FFFFFF;
  --c-surface2: #EEF2FF;
  --c-border: #C9D6F0;
  --c-text: #0D1B3E;
  --c-text2: #4A5B8C;
  --c-text3: #8A9BC4;
  --c-success: #1B7A4A;
  --c-error: #C62828;
  --c-info: #0277BD;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(26,60,143,0.10);
  --shadow-md: 0 6px 24px rgba(26,60,143,0.14);
  --shadow-lg: 0 16px 48px rgba(26,60,143,0.18);
  --ff-display: 'Playfair Display', serif;
  --ff-body: 'Poppins', 'Mukta', sans-serif;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }
a { text-decoration: none; color: inherit; }

/* ── Screen Management ── */
.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; }

/* ── Splash Screen ── */
#screen-splash {
  background: linear-gradient(145deg, #1A3C8F 0%, #0F2560 50%, #060F28 100%);
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.splash-ornament {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
}
.splash-ornament:nth-child(1) { top: -80px; left: -80px; }
.splash-ornament:nth-child(2) { bottom: -60px; right: -60px; width: 280px; height: 280px; border-color: rgba(41,121,255,0.15); }
.splash-ornament:nth-child(3) { top: 30%; left: -120px; width: 240px; height: 240px; border-color: rgba(255,255,255,0.05); }
.splash-content { position: relative; z-index: 2; padding: 40px 24px; }
.splash-icon {
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.15);
  border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.splash-logo { font-family: var(--ff-display); font-size: 42px; color: #fff; line-height: 1.1; }
.splash-logo span { color: var(--c-secondary-light); }
.splash-tagline { font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 8px; letter-spacing: 0.04em; }
.splash-divider { width: 60px; height: 2px; background: var(--c-secondary); margin: 20px auto; border-radius: 2px; }
.splash-loader { margin-top: 48px; }
.loader-bar {
  width: 180px; height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-secondary), #fff);
  border-radius: 10px;
  animation: load 2s ease-in-out forwards;
  width: 0%;
}
@keyframes load { to { width: 100%; } }
.loader-text { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 12px; }

/* ── Language Selection ── */
#screen-language {
  background: var(--c-bg);
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.lang-header { text-align: center; margin-bottom: 36px; }
.lang-header h1 { font-family: var(--ff-display); font-size: 28px; color: var(--c-primary); }
.lang-header p { color: var(--c-text2); font-size: 14px; margin-top: 8px; }
.lang-cards { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 340px; }
.lang-card {
  padding: 20px 24px;
  border: 2px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.lang-card:hover, .lang-card.selected {
  border-color: var(--c-primary);
  background: var(--c-surface2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.lang-flag { font-size: 32px; }
.lang-info .lang-name { font-size: 18px; font-weight: 600; color: var(--c-text); }
.lang-info .lang-native { font-size: 13px; color: var(--c-text2); }
.btn-continue {
  margin-top: 32px;
  padding: 16px 48px;
  background: var(--c-primary);
  color: white;
  border-radius: var(--r-lg);
  font-size: 16px; font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.btn-continue:hover { background: var(--c-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ── App Shell (Header + Nav) ── */
#app-shell { display: none; flex-direction: column; min-height: 100vh; }
#app-shell.active { display: flex; }
.app-header {
  background: linear-gradient(135deg, #1A3C8F 0%, #0F2560 100%);
  color: white;
  padding: 0 16px;
  display: flex; align-items: center;
  height: 60px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-back { font-size: 22px; padding: 8px; margin-right: 4px; background: none; color: white; display: none; }
.header-logo { font-family: var(--ff-display); font-size: 22px; color: white; flex: 1; }
.header-logo span { color: var(--c-secondary-light); }
.header-actions { display: flex; gap: 4px; }
.header-btn { background: rgba(255,255,255,0.15); color: white; border-radius: var(--r-sm); padding: 7px 10px; font-size: 18px; transition: var(--transition); }
.header-btn:hover { background: rgba(255,255,255,0.25); }

.app-content { flex: 1; overflow-y: auto; padding-bottom: 80px; }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  display: flex;
  height: 64px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(200,82,42,0.08);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; background: none; color: var(--c-text3); font-size: 10px; font-weight: 500;
  transition: var(--transition); padding: 6px 4px;
}
.nav-item .nav-icon { font-size: 22px; }
.nav-item.active { color: var(--c-primary); }
.nav-item.active .nav-icon { transform: scale(1.1); }

/* ── Dashboard ── */
.page { padding: 16px; }
.page-title { font-family: var(--ff-display); font-size: 24px; color: var(--c-text); margin-bottom: 4px; }
.page-sub { font-size: 13px; color: var(--c-text2); margin-bottom: 20px; }

.dashboard-hero {
  background: linear-gradient(135deg, #1A3C8F 0%, #0F2560 100%);
  border-radius: var(--r-xl);
  padding: 24px 20px;
  color: white;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.dashboard-hero::after {
  content: '🍽';
  position: absolute;
  font-size: 80px;
  right: -10px; bottom: -10px;
  opacity: 0.12;
}
.dashboard-hero h2 { font-family: var(--ff-display); font-size: 22px; }
.dashboard-hero p { font-size: 13px; opacity: 0.85; margin: 6px 0 20px; }
.btn-new-quote {
  background: white;
  color: var(--c-primary);
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: var(--transition);
}
.btn-new-quote:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-number { font-size: 28px; font-weight: 700; color: var(--c-primary); }
.stat-label { font-size: 11px; color: var(--c-text2); margin-top: 2px; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 16px; font-weight: 600; color: var(--c-text); }
.btn-see-all { font-size: 13px; color: var(--c-primary); font-weight: 500; background: none; padding: 0; }

.search-bar {
  display: flex; align-items: center;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  gap: 10px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.search-bar input { flex: 1; background: none; border: none; font-size: 14px; color: var(--c-text); }
.search-bar input::placeholder { color: var(--c-text3); }

.quote-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.quote-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.quote-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.quote-customer { font-size: 15px; font-weight: 600; color: var(--c-text); }
.quote-amount { font-size: 16px; font-weight: 700; color: var(--c-primary); }
.quote-meta { font-size: 12px; color: var(--c-text2); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.quote-badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600; margin-top: 6px;
}
.badge-draft { background: #FFF3E0; color: #E65100; }
.badge-sent { background: #E8F5E9; color: #2E7D52; }
.badge-confirmed { background: #E3F2FD; color: #1565C0; }
.quote-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btn-sm {
  padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
  transition: var(--transition);
}
.btn-sm-primary { background: var(--c-primary); color: white; }
.btn-sm-outline { border: 1.5px solid var(--c-border); color: var(--c-text2); background: none; }
.btn-sm-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ── Quick Actions Grid ── */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.quick-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.quick-card:hover { border-color: var(--c-primary); background: var(--c-surface2); transform: translateY(-2px); }
.quick-icon { font-size: 28px; }
.quick-label { font-size: 12px; color: var(--c-text2); margin-top: 6px; font-weight: 500; }

/* ── Wizard ── */
.wizard-steps {
  display: flex; align-items: center;
  padding: 16px;
  overflow-x: auto;
  gap: 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  scrollbar-width: none;
}
.wizard-steps::-webkit-scrollbar { display: none; }
.step-item {
  display: flex; align-items: center; gap: 0;
  flex-shrink: 0;
}
.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--c-text3);
  background: var(--c-surface);
  transition: var(--transition);
}
.step-item.done .step-circle { background: var(--c-primary); border-color: var(--c-primary); color: white; }
.step-item.active .step-circle { border-color: var(--c-primary); color: var(--c-primary); box-shadow: 0 0 0 3px rgba(200,82,42,0.15); }
.step-label { font-size: 10px; color: var(--c-text3); margin-top: 2px; display: none; }
.step-connector { width: 24px; height: 2px; background: var(--c-border); }
.step-connector.done { background: var(--c-primary); }

/* ── Form Styles ── */
.form-section { padding: 20px 16px; }
.form-group { margin-bottom: 18px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--c-text2); margin-bottom: 6px; display: block; }
.form-label .required { color: var(--c-error); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 15px; font-family: inherit;
  background: var(--c-surface);
  color: var(--c-text);
  transition: var(--transition);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(200,82,42,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Selection Cards (Event Type, Theme, Bundle) ── */
.selection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.selection-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.sel-card {
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  background: var(--c-surface);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.sel-card:hover { border-color: var(--c-primary-light); background: var(--c-surface2); }
.sel-card.selected {
  border-color: var(--c-primary);
  background: linear-gradient(135deg, #FFF0E8 0%, #FEF3E8 100%);
  box-shadow: var(--shadow-md);
}
.sel-card .sel-icon { font-size: 28px; }
.sel-card .sel-name { font-size: 12px; font-weight: 600; color: var(--c-text); margin-top: 6px; }
.sel-card .sel-desc { font-size: 11px; color: var(--c-text3); margin-top: 2px; }

/* Theme Cards */
.theme-card {
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.theme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.theme-card.selected { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(200,82,42,0.2), var(--shadow-md); }
.theme-preview {
  height: 70px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; position: relative; overflow: hidden;
}
.theme-info { padding: 8px 10px; background: var(--c-surface); }
.theme-name { font-size: 11px; font-weight: 600; color: var(--c-text); }
.theme-mood { font-size: 10px; color: var(--c-text3); }

/* Bundle Cards */
.bundle-card {
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px 12px;
  cursor: pointer;
  background: var(--c-surface);
  transition: var(--transition);
}
.bundle-card.selected { border-color: var(--c-primary); background: var(--c-surface2); }
.bundle-icon { font-size: 30px; }
.bundle-name { font-size: 13px; font-weight: 600; color: var(--c-text); margin-top: 6px; }
.bundle-items { font-size: 11px; color: var(--c-text3); margin-top: 4px; }

/* ── Menu Builder ── */
.menu-builder { padding: 16px; }
.category-section { margin-bottom: 20px; }
.category-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.category-header.open { border-color: var(--c-primary); background: var(--c-surface2); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.category-icon { font-size: 20px; }
.category-name { font-size: 14px; font-weight: 600; flex: 1; }
.category-count { font-size: 12px; color: var(--c-primary); font-weight: 600; }
.category-chevron { font-size: 14px; color: var(--c-text3); transition: var(--transition); }
.category-header.open .category-chevron { transform: rotate(180deg); }

.category-items {
  display: none;
  border: 1.5px solid var(--c-primary);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--c-surface);
  padding: 10px;
}
.category-items.open { display: block; }
.menu-item-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px;
  border-radius: var(--r-sm);
  transition: var(--transition);
  cursor: pointer;
}
.menu-item-row:hover { background: var(--c-surface2); }
.menu-checkbox {
  width: 20px; height: 20px;
  border: 2px solid var(--c-border);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.menu-checkbox.checked { background: var(--c-primary); border-color: var(--c-primary); }
.menu-checkbox.checked::after { content: '✓'; color: white; font-size: 12px; font-weight: 700; }
.menu-item-name { font-size: 14px; flex: 1; }
.custom-item-input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px dashed var(--c-border);
  border-radius: var(--r-sm);
  font-size: 13px;
  background: none;
  margin-top: 6px;
}

/* ── Pricing ── */
.pricing-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.pricing-card h3 { font-size: 14px; font-weight: 600; color: var(--c-text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.price-summary {
  background: linear-gradient(135deg, #FFF8F0 0%, #FEF3E8 100%);
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 14px;
}
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; }
.price-row-label { font-size: 13px; color: var(--c-text2); }
.price-row-value { font-size: 14px; font-weight: 500; color: var(--c-text); }
.price-divider { border: none; border-top: 1px solid var(--c-border); margin: 8px 0; }
.price-total-row { padding: 10px 0 0; }
.price-total-label { font-size: 16px; font-weight: 700; color: var(--c-text); }
.price-total-value { font-size: 22px; font-weight: 800; color: var(--c-primary); }

/* ── Quotation Preview ── */
.preview-wrapper { padding: 16px; }
.quotation-doc {
  background: white;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
}

/* Theme: Wedding Royal */
.theme-wedding .q-header { background: linear-gradient(135deg, #722F37, #4A1520); }
.theme-wedding .q-accent { color: #D4AF37; }
.theme-wedding .q-section-title { border-left: 4px solid #D4AF37; color: #722F37; }
.theme-wedding .q-total-bg { background: linear-gradient(135deg, #722F37, #4A1520); }

/* Theme: Gujarati Traditional */
.theme-gujarati .q-header { background: linear-gradient(135deg, #C8522A, #8B2500); }
.theme-gujarati .q-accent { color: #E8A140; }
.theme-gujarati .q-section-title { border-left: 4px solid #E8A140; color: #C8522A; }
.theme-gujarati .q-total-bg { background: linear-gradient(135deg, #C8522A, #8B2500); }

/* Theme: Corporate */
.theme-corporate .q-header { background: linear-gradient(135deg, #1A237E, #0D47A1); }
.theme-corporate .q-accent { color: #42A5F5; }
.theme-corporate .q-section-title { border-left: 4px solid #42A5F5; color: #1A237E; }
.theme-corporate .q-total-bg { background: linear-gradient(135deg, #1A237E, #0D47A1); }

/* Theme: Festival */
.theme-festival .q-header { background: linear-gradient(135deg, #FF6F00, #E65100); }
.theme-festival .q-accent { color: #FFF176; }
.theme-festival .q-section-title { border-left: 4px solid #FFC107; color: #E65100; }
.theme-festival .q-total-bg { background: linear-gradient(135deg, #FF6F00, #E65100); }

/* Theme: Minimal */
.theme-minimal .q-header { background: linear-gradient(135deg, #37474F, #263238); }
.theme-minimal .q-accent { color: #80CBC4; }
.theme-minimal .q-section-title { border-left: 4px solid #80CBC4; color: #37474F; }
.theme-minimal .q-total-bg { background: linear-gradient(135deg, #37474F, #263238); }

/* Theme: Birthday */
.theme-birthday .q-header { background: linear-gradient(135deg, #AD1457, #880E4F); }
.theme-birthday .q-accent { color: #F48FB1; }
.theme-birthday .q-section-title { border-left: 4px solid #F48FB1; color: #AD1457; }
.theme-birthday .q-total-bg { background: linear-gradient(135deg, #AD1457, #880E4F); }

/* Theme: Luxury Gold */
.theme-gold .q-header { background: linear-gradient(135deg, #4A3000, #7A5000); }
.theme-gold .q-accent { color: #FFD700; }
.theme-gold .q-section-title { border-left: 4px solid #FFD700; color: #7A5000; }
.theme-gold .q-total-bg { background: linear-gradient(135deg, #4A3000, #7A5000); }

/* Theme: Budget */
.theme-budget .q-header { background: linear-gradient(135deg, #2E7D32, #1B5E20); }
.theme-budget .q-accent { color: #A5D6A7; }
.theme-budget .q-section-title { border-left: 4px solid #A5D6A7; color: #2E7D32; }
.theme-budget .q-total-bg { background: linear-gradient(135deg, #2E7D32, #1B5E20); }

/* Common Quotation Styles */
.q-header {
  padding: 24px 20px;
  color: white;
  text-align: center;
  position: relative;
}
.q-header-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.q-caterer-name { font-family: var(--ff-display); font-size: 22px; font-weight: 700; }
.q-caterer-sub { font-size: 11px; opacity: 0.8; }
.q-quote-no { font-size: 11px; opacity: 0.8; text-align: right; }
.q-event-title { font-family: var(--ff-display); font-size: 18px; margin-top: 8px; }
.q-ornament { font-size: 24px; margin: 8px 0; }

.q-body { padding: 16px; }
.q-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.q-info-box {
  background: #F8F8F8;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  border-left: 3px solid transparent;
}
.q-info-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.q-info-value { font-size: 13px; font-weight: 600; color: #222; margin-top: 2px; }

.q-section { margin-bottom: 16px; }
.q-section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 6px 10px; background: #F5F5F5; border-radius: var(--r-sm);
  margin-bottom: 8px;
}
.q-menu-category { margin-bottom: 10px; }
.q-cat-name { font-size: 12px; font-weight: 600; color: #555; margin-bottom: 4px; }
.q-items-list { display: flex; flex-wrap: wrap; gap: 4px; }
.q-item-chip {
  background: #F0F0F0;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  color: #333;
}

.q-price-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.q-price-table tr td { padding: 6px 8px; }
.q-price-table tr:nth-child(even) td { background: #F8F8F8; }
.q-price-table td:last-child { text-align: right; font-weight: 500; }

.q-total-bg { padding: 16px; border-radius: var(--r-md); color: white; text-align: center; }
.q-total-label { font-size: 12px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.05em; }
.q-total-amount { font-family: var(--ff-display); font-size: 32px; font-weight: 700; }
.q-total-sub { font-size: 11px; opacity: 0.75; margin-top: 4px; }

.q-terms { font-size: 11px; color: #666; line-height: 1.6; padding: 12px; background: #F8F8F8; border-radius: var(--r-sm); }
.q-signature { display: flex; justify-content: space-between; align-items: flex-end; padding: 20px 0 8px; }
.q-sig-line { width: 120px; border-top: 1px solid #999; padding-top: 6px; font-size: 11px; color: #777; text-align: center; }

.q-footer { text-align: center; padding: 12px; background: #F8F8F8; font-size: 11px; color: #888; }
.q-thank-you { font-family: var(--ff-display); font-size: 15px; color: var(--c-primary); margin-bottom: 4px; }

/* ── Action Buttons ── */
.action-bar {
  position: sticky; bottom: 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 12px 16px;
  display: flex; gap: 10px;
  z-index: 50;
}
.btn-primary {
  flex: 1; padding: 14px;
  background: var(--c-primary);
  color: white;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-primary-dark); box-shadow: var(--shadow-md); }
.btn-secondary {
  flex: 1; padding: 14px;
  background: var(--c-surface);
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.btn-secondary:hover { background: var(--c-surface2); }
.btn-whatsapp {
  background: #25D366; color: white;
  padding: 14px 20px;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-whatsapp:hover { background: #128C7E; }
.btn-full {
  width: 100%; padding: 14px;
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
}

/* ── Settings Page ── */
.settings-section {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.settings-section-header {
  padding: 12px 16px;
  background: var(--c-surface2);
  border-bottom: 1px solid var(--c-border);
  font-size: 13px; font-weight: 700; color: var(--c-primary);
  text-transform: uppercase; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
  transition: var(--transition);
}
.settings-row:last-child { border-bottom: none; }
.settings-row:hover { background: var(--c-surface2); }
.settings-row-left { display: flex; align-items: center; gap: 12px; }
.settings-icon { font-size: 20px; width: 36px; height: 36px; background: var(--c-surface2); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; }
.settings-label { font-size: 14px; font-weight: 500; }
.settings-desc { font-size: 12px; color: var(--c-text3); }
.settings-arrow { color: var(--c-text3); font-size: 16px; }

/* ── Toast Notification ── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #222; color: white;
  padding: 10px 20px; border-radius: 24px;
  font-size: 13px; font-weight: 500;
  z-index: 9999;
  opacity: 0; transition: all 0.3s ease;
  pointer-events: none; white-space: nowrap;
  max-width: calc(100vw - 48px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--c-success); }
.toast.error { background: var(--c-error); }

/* ── Modal ── */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  align-items: flex-end; justify-content: center;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--c-surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%; max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0 0 32px;
  animation: slideUp 0.3s ease;
}
.modal-center { border-radius: var(--r-xl); margin: auto; max-width: 360px; padding: 24px; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle { width: 40px; height: 4px; background: var(--c-border); border-radius: 2px; margin: 12px auto; }
.modal-title { font-size: 18px; font-weight: 700; text-align: center; padding: 0 20px 16px; color: var(--c-text); }
.modal-body { padding: 0 20px; }

/* ── Logo Upload ── */
.logo-upload-area {
  border: 2px dashed var(--c-border);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.logo-upload-area:hover { border-color: var(--c-primary); background: var(--c-surface2); }
.logo-preview { max-width: 120px; max-height: 80px; object-fit: contain; }

/* ── Import/Export ── */
.io-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.io-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.io-card p { font-size: 12px; color: var(--c-text2); margin-bottom: 12px; }
.btn-export { background: var(--c-primary); color: white; padding: 10px 16px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; margin-right: 8px; }
.btn-import { border: 1.5px solid var(--c-primary); color: var(--c-primary); padding: 10px 16px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; background: none; }

/* ── Utility ── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.color-primary { color: var(--c-primary); }
.divider { border: none; border-top: 1px solid var(--c-border); margin: 16px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--c-surface2); color: var(--c-text2);
  border: 1px solid var(--c-border);
  border-radius: 20px; padding: 4px 12px; font-size: 12px;
}
.chip.active { background: var(--c-primary); color: white; border-color: var(--c-primary); }
.empty-state { text-align: center; padding: 40px 20px; }
.empty-icon { font-size: 48px; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--c-text); margin-top: 12px; }
.empty-desc { font-size: 13px; color: var(--c-text2); margin-top: 6px; }

/* ── Item Price Input in Menu Builder ── */
.item-price-input:focus { border-color: var(--c-primary) !important; outline: none; box-shadow: 0 0 0 2px rgba(200,82,42,0.12); }
.menu-item-row:has(.menu-checkbox.checked) { background: rgba(200,82,42,0.04); border-radius: var(--r-sm); }

/* ── Pricing Mode Cards ── */
label:has(input[name="pricing-mode"]:checked) {
  border-color: var(--c-primary) !important;
  background: linear-gradient(135deg, #FFF8F0, #FEF3E8);
}

/* ── Catalogue Management ── */
.cat-tabs {
  display: flex; gap: 0;
  background: var(--c-surface2);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 16px;
  border: 1.5px solid var(--c-border);
}
.cat-tab {
  flex: 1; padding: 10px 8px;
  border-radius: calc(var(--r-md) - 2px);
  font-size: 14px; font-weight: 600;
  background: none; color: var(--c-text2);
  transition: var(--transition);
  border: none;
}
.cat-tab.active {
  background: var(--c-primary); color: white;
  box-shadow: var(--shadow-sm);
}
.cat-category-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  font-size: 12px; font-weight: 600; color: var(--c-text2);
  white-space: nowrap; cursor: pointer; transition: var(--transition);
  flex-shrink: 0;
}
.cat-category-pill.active {
  background: var(--c-primary); color: white; border-color: var(--c-primary);
}
.cat-item-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  transition: var(--transition);
}
.cat-item-row:hover { border-color: var(--c-primary); }
.cat-item-info { flex: 1; }
.cat-item-name { font-size: 14px; font-weight: 600; color: var(--c-text); }
.cat-item-meta { font-size: 12px; color: var(--c-text3); margin-top: 2px; }
.cat-item-price { font-size: 14px; font-weight: 700; color: var(--c-primary); min-width: 50px; text-align: right; }
.cat-action-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; border: none; cursor: pointer; transition: var(--transition);
}
.cat-edit-btn { background: #E3F2FD; color: #1565C0; }
.cat-edit-btn:hover { background: #1565C0; color: white; }
.cat-del-btn { background: #FFEBEE; color: #C62828; }
.cat-del-btn:hover { background: #C62828; color: white; }

.bundle-mgmt-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 10px;
  transition: var(--transition);
}
.bundle-mgmt-card:hover { border-color: var(--c-primary); }
.bundle-mgmt-header { display: flex; align-items: center; gap: 10px; }
.bundle-mgmt-icon { font-size: 28px; }
.bundle-mgmt-info { flex: 1; }
.bundle-mgmt-name { font-size: 15px; font-weight: 700; color: var(--c-text); }
.bundle-mgmt-price { font-size: 13px; color: var(--c-primary); font-weight: 600; }
.bundle-mgmt-items { font-size: 12px; color: var(--c-text3); margin-top: 6px; line-height: 1.5; }
.bundle-mgmt-actions { display: flex; gap: 8px; margin-top: 10px; }

/* Bundle item picker in modal */
.mb-item-check {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 6px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: var(--transition);
}
.mb-item-check:hover { background: var(--c-surface2); }
.mb-cat-label {
  font-size: 11px; font-weight: 700; color: var(--c-text3);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 6px 4px;
}

/* ── App Footer Branding ── */
.app-footer-brand {
  text-align: center;
  padding: 20px 16px 8px;
  font-size: 12px;
  color: var(--c-text3);
  border-top: 1px solid var(--c-border);
  margin-top: 24px;
}
.app-footer-brand a { color: var(--c-primary); text-decoration: none; }
.app-footer-brand a:hover { text-decoration: underline; }

/* ── Global footer shown on dashboard ── */
.dashboard-footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--c-text3);
  border-top: 1px solid var(--c-border);
  margin-top: 16px;
}
.dashboard-footer a { color: var(--c-primary); font-weight: 600; text-decoration: none; }

/* ── About Page ── */
.about-hero {
  background: linear-gradient(145deg, #1A3C8F 0%, #0F2560 60%, #060F28 100%);
  border-radius: var(--r-xl);
  padding: 32px 20px 24px;
  text-align: center;
  color: white;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '🍽';
  position: absolute;
  font-size: 120px;
  right: -20px; top: -10px;
  opacity: 0.07;
}
.about-logo-ring {
  width: 88px; height: 88px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.about-app-name { font-family: var(--ff-display); font-size: 32px; font-weight: 700; }
.about-app-tag { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.about-version { font-size: 11px; opacity: 0.55; margin-top: 6px; }

.about-company-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.about-dd-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.about-dd-logo {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #1A3C8F, #0F2560);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: white;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.about-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-contact-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: var(--transition);
}
.about-contact-call { background: #E8F5E9; color: #2E7D32; border: 1.5px solid #A5D6A7; }
.about-contact-call:hover { background: #2E7D32; color: white; }
.about-contact-wa { background: #E8F5E9; color: #128C7E; border: 1.5px solid #A5D6A7; }
.about-contact-wa:hover { background: #25D366; color: white; }
.about-contact-web { background: #E3F2FD; color: #1565C0; border: 1.5px solid #90CAF9; justify-content: center; }
.about-contact-web:hover { background: #1565C0; color: white; }

.about-section-card {
  display: flex; gap: 14px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.about-section-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.about-section-title { font-size: 15px; font-weight: 700; color: var(--c-text); margin-bottom: 6px; }
.about-section-text { font-size: 13px; color: var(--c-text2); line-height: 1.65; }

.about-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.about-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--c-text2);
  padding: 8px 10px;
  background: var(--c-surface2);
  border-radius: var(--r-sm);
}
.about-feature span { font-size: 18px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 10px; }

/* ── Responsive ── */
@media (max-width: 360px) {
  .selection-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (min-width: 540px) {
  .app-content { max-width: 540px; margin: 0 auto; }
  .bottom-nav { max-width: 540px; left: 50%; transform: translateX(-50%); }
}
