/* ================================================================
   FEWA LUNCH — Design System
   Pixel-perfect match to FEWA Customer App (Flutter)
   ================================================================ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --green-dark:    #2B5740;
  --green-primary: #3D7A59;
  --green-medium:  #3D7A59;
  --green-light:   #E8F5EE;
  --orange:        #F57C00;
  --orange-light:  #FFF3E0;

  --bg:            #E8F0E8;
  --card:          rgba(255,255,255,0.72);
  --card-solid:    #FFFFFF;

  --gray-50:  #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #ADB5BD;
  --gray-500: #868E96;
  --gray-600: #495057;
  --gray-700: #343A40;
  --gray-800: #212529;

  --red:      #DC3545;
  --green-ok: #28A745;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --nav-shadow: 0 2px 12px rgba(0,0,0,0.07);

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

  --nav-h: 72px;
}

[data-theme="dark"], body.dark {
  --bg:         #1A1A1A;
  --card:       #2A2A2A;
  --card-solid: #333333;
  --gray-50:  #1E1E1E;
  --gray-100: #2A2A2A;
  --gray-200: #3A3A3A;
  --gray-300: #4A4A4A;
  --gray-400: #666666;
  --gray-500: #AAAAAA;
  --gray-600: #B0B0B0;
  --gray-700: #E0E0E0;
  --gray-800: #E8E8E8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --nav-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body.dark { color: #E8E8E8; }

#app {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; border: none; }
img { max-width: 100%; display: block; }

/* ── Utility ───────────────────────────────────────────────────── */
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
  display: block; width: 100%;
  padding: 15px 24px;
  background: var(--green-dark); color: #fff;
  font-size: 14px; font-weight: 600;
  border-radius: var(--r-full); text-align: center;
  min-height: 48px; transition: opacity 0.15s;
  letter-spacing: 0.2px;
}
.btn-primary:active { opacity: 0.82; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-secondary {
  display: block; width: 100%;
  padding: 14px 24px;
  background: var(--card-solid); color: var(--gray-700);
  font-size: 14px; font-weight: 600;
  border-radius: var(--r-full); text-align: center;
  border: 1.5px solid var(--gray-200);
  min-height: 48px; transition: opacity 0.15s;
}
.btn-secondary:active { opacity: 0.8; }
body.dark .btn-secondary { background: var(--gray-200); color: #E8E8E8; border-color: var(--gray-300); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 20px;
  border: 1.5px solid var(--green-dark); color: var(--green-dark);
  font-size: 13px; font-weight: 600;
  border-radius: var(--r-full); transition: all 0.15s;
}
.btn-outline:active { background: var(--green-light); }

.link-btn {
  color: var(--green-dark); font-size: 13px; font-weight: 600;
  background: none; border: none; padding: 0; display: inline;
}
body.dark .link-btn { color: #7EC899; }

/* ── Form Elements ─────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--gray-600); margin-bottom: 6px; letter-spacing: 0.3px;
}
body.dark .form-label { color: var(--gray-500); }

.form-input {
  width: 100%; padding: 14px 16px;
  background: var(--card); border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; color: var(--gray-800);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.15s;
  -webkit-appearance: none;
}
.form-input:focus { box-shadow: 0 0 0 2px var(--green-dark), var(--shadow-sm); }
.form-input::placeholder { color: var(--gray-400); }
body.dark .form-input { background: var(--gray-200); color: #E8E8E8; }

.form-select {
  width: 100%; padding: 14px 40px 14px 16px;
  background: var(--card); border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; color: var(--gray-800);
  box-shadow: var(--shadow-sm); -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23868E96' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
body.dark .form-select { background-color: var(--gray-200); color: #E8E8E8; }
.form-select:focus { box-shadow: 0 0 0 2px var(--green-dark); }

.phone-row {
  display: flex; align-items: center;
  background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden;
}
.phone-prefix {
  padding: 14px 10px 14px 16px;
  font-size: 14px; font-weight: 600; color: var(--gray-600);
  flex-shrink: 0; border-right: 1.5px solid var(--gray-200);
}
body.dark .phone-prefix { color: var(--gray-500); border-color: var(--gray-300); }
.phone-row .form-input { background: transparent; box-shadow: none; border-radius: 0; flex: 1; }
.phone-row .form-input:focus { box-shadow: none; }

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

/* Type toggle */
.type-toggle {
  display: flex; background: rgba(255,255,255,0.5); border-radius: var(--r-full);
  padding: 3px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
body.dark .type-toggle { background: rgba(58,58,58,0.8); }
.type-toggle-btn {
  flex: 1; padding: 10px; font-size: 13px; font-weight: 600;
  border-radius: var(--r-full); color: var(--gray-500); transition: all 0.2s; text-align: center;
}
.type-toggle-btn.active { background: var(--green-dark); color: #fff; box-shadow: var(--shadow-sm); }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--r-lg);
  padding: 16px; box-shadow: var(--shadow-sm);
}
body.dark .card { background: var(--gray-100); }

/* ── Section header ────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.section-title {
  font-size: 18px; font-weight: 700; color: var(--gray-800); letter-spacing: -0.3px;
}
body.dark .section-title { color: #E8E8E8; }

/* ── Bottom Navigation ─────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 12px; left: 16px; right: 16px;
  height: var(--nav-h); background: var(--card-solid);
  border-radius: 30px; border: 1px solid var(--gray-200);
  box-shadow: var(--nav-shadow);
  display: flex; align-items: center; padding: 0 8px; z-index: 100;
}
body.dark .bottom-nav { background: var(--gray-100); border-color: var(--gray-200); }

.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; padding: 8px 4px;
  color: rgba(61,122,89,0.65); border-radius: 22px; transition: color 0.2s;
}
.nav-item svg { width: 22px; height: 22px; stroke-width: 2; }
.nav-item span { font-size: 11px; font-weight: 500; }
.nav-item.active { color: var(--orange); }
.nav-item.active span { font-weight: 600; }

/* ── Loader ────────────────────────────────────────────────────── */
.loader-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 24px; gap: 16px;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--gray-200); border-top-color: var(--green-dark);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.spinner-white { border-color: rgba(255,255,255,0.3); border-top-color: #fff; }
.loader-text { font-size: 13px; color: var(--gray-500); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ─────────────────────────────────────────────────────── */
#toast-container {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  min-width: 280px; max-width: calc(100vw - 32px); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(-8px);
  transition: all 0.25s ease; pointer-events: all;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--green-dark); color: #fff; }
.toast-error   { background: var(--red); color: #fff; }
.toast-info    { background: var(--gray-700); color: #fff; }
.toast-icon    { font-size: 15px; flex-shrink: 0; }

/* ── Modal (Bottom Sheet) ──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 500; display: flex; align-items: flex-end;
}
.modal-overlay.hidden { display: none; }
.modal-sheet {
  background: var(--card-solid); border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 8px 24px 48px; width: 100%; max-height: 90vh; overflow-y: auto;
}
body.dark .modal-sheet { background: #252525; }
.modal-handle {
  width: 36px; height: 4px; background: var(--gray-300);
  border-radius: 2px; margin: 8px auto 20px;
}

/* ── Empty State ───────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px; color: var(--gray-500);
}
.empty-icon  { font-size: 52px; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 700; color: var(--gray-600); margin-bottom: 8px; }
body.dark .empty-title { color: var(--gray-400); }

/* ══════════════════════════════════════════════════════════════════
   SPLASH
   ════════════════════════════════════════════════════════════════ */
.splash-screen {
  position: fixed; inset: 0; background: var(--green-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999;
}
.splash-logo-circle {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.splash-brand { font-size: 32px; font-weight: 700; color: #fff; letter-spacing: 4px; }
.splash-tagline { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 6px; }
.splash-spinner-wrap { margin-top: 48px; }

/* ══════════════════════════════════════════════════════════════════
   AUTH (LOGIN)
   ════════════════════════════════════════════════════════════════ */
.auth-screen { min-height: 100vh; display: flex; flex-direction: column; }
.auth-top {
  background: var(--green-primary);
  padding: 56px 32px 52px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.auth-logo-circle {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.auth-brand { font-size: 32px; font-weight: 700; color: #fff; letter-spacing: 4px; }
.auth-tagline { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 6px; }
.auth-bottom {
  flex: 1; background: var(--card-solid);
  border-radius: 32px 32px 0 0; padding: 40px 24px 48px; margin-top: -24px;
}
body.dark .auth-bottom { background: #1C1C1C; }
.auth-heading { font-size: 26px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; letter-spacing: -0.5px; }
body.dark .auth-heading { color: #F0F0F0; }
.auth-sub { font-size: 14px; color: var(--gray-500); margin-bottom: 28px; }
.welcome-name { font-size: 14px; font-weight: 600; color: var(--green-dark); margin-bottom: 4px; }

/* ══════════════════════════════════════════════════════════════════
   REGISTER
   ════════════════════════════════════════════════════════════════ */
.register-screen { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.register-header {
  background: var(--green-primary); padding: 48px 24px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center; position: relative;
}
.register-back {
  position: absolute; top: 20px; left: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.register-logo {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 12px;
}
.register-header-title { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.register-header-sub { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.register-body {
  flex: 1; background: var(--bg); padding: 20px 20px 40px;
  border-radius: 24px 24px 0 0; margin-top: -16px;
}

/* ══════════════════════════════════════════════════════════════════
   OTP
   ════════════════════════════════════════════════════════════════ */
.otp-screen { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.otp-header {
  background: var(--green-primary); padding: 48px 24px 36px;
  display: flex; flex-direction: column; align-items: center; text-align: center; position: relative;
}
.otp-header-back {
  position: absolute; top: 20px; left: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.otp-logo {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 12px;
}
.otp-header-title { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.otp-header-sub { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.otp-body {
  flex: 1; background: var(--bg); padding: 28px 24px 32px;
  border-radius: 24px 24px 0 0; margin-top: -16px;
  display: flex; flex-direction: column; align-items: center;
}
.dev-otp-banner {
  width: 100%; background: #fff3cd; border: 1.5px solid #ffc107;
  border-radius: var(--r-md); padding: 12px 16px; text-align: center; margin-bottom: 20px;
}
.dev-otp-label { font-size: 10px; font-weight: 700; color: #856404; letter-spacing: 1.5px; margin-bottom: 4px; }
.dev-otp-code  { font-size: 30px; font-weight: 900; letter-spacing: 10px; color: var(--gray-800); }
.dev-otp-fill  {
  margin-top: 8px; padding: 5px 18px; background: #ffc107;
  border-radius: var(--r-full); font-size: 12px; font-weight: 700; color: #333; cursor: pointer;
}
.otp-boxes { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.otp-box {
  width: 44px; height: 50px; border-radius: var(--r-md);
  border: 2px solid var(--gray-200); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--gray-800); transition: border-color 0.15s;
}
.otp-box.filled { border-color: var(--green-dark); color: var(--green-dark); }
body.dark .otp-box { background: var(--gray-200); border-color: var(--gray-300); color: #E8E8E8; }
body.dark .otp-box.filled { border-color: var(--green-medium); }
.otp-timer-row { font-size: 13px; color: var(--gray-500); margin-bottom: 24px; text-align: center; }
.otp-timer-row span { font-weight: 700; color: var(--orange); }

/* ══════════════════════════════════════════════════════════════════
   PIN
   ════════════════════════════════════════════════════════════════ */
.pin-screen { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.pin-header {
  background: var(--green-primary); padding: 56px 24px 48px;
  display: flex; flex-direction: column; align-items: center; text-align: center; position: relative;
}
.pin-header-back {
  position: absolute; top: 20px; left: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.pin-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 12px;
}
.pin-logo {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; color: #fff; margin-bottom: 14px;
}
.pin-header-title { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.pin-header-sub   { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 6px; }
.pin-welcome { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 2px; }
.pin-name    { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.pin-phone   { font-size: 12px; color: rgba(255,255,255,0.6); }
.pin-body {
  flex: 1; background: var(--bg); padding: 28px 24px 32px;
  border-radius: 24px 24px 0 0; margin-top: -16px;
  display: flex; flex-direction: column; align-items: center;
}
.pin-boxes { display: flex; gap: 10px; justify-content: center; margin-bottom: 6px; }
.pin-box {
  width: 42px; height: 48px; border-radius: var(--r-sm);
  border: 1.5px solid var(--gray-200); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--green-dark); transition: border-color 0.15s; box-shadow: var(--shadow-sm);
}
.pin-box.filled { border-color: var(--green-dark); }
body.dark .pin-box { background: var(--gray-200); border-color: var(--gray-300); }
body.dark .pin-box.filled { border-color: var(--green-medium); }
.pin-error {
  color: var(--red); font-size: 12px; text-align: center;
  margin: 6px 0; min-height: 18px; display: none;
}
.numpad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  width: 100%; max-width: 300px; margin: 16px auto 0;
}
.numpad-btn {
  height: 58px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.82);
  font-size: 24px; font-weight: 500; color: var(--gray-800);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s; box-shadow: var(--shadow-sm);
}
.numpad-btn:active { background: var(--gray-200); }
.numpad-btn.empty  { background: transparent; box-shadow: none; }
body.dark .numpad-btn { background: rgba(58,58,58,0.8); color: #E8E8E8; }
body.dark .numpad-btn:active { background: var(--gray-300); }

/* ══════════════════════════════════════════════════════════════════
   HOME
   ════════════════════════════════════════════════════════════════ */
.home-screen {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 24px);
  background: linear-gradient(160deg, #E8F0E8 0%, #F5EDE4 40%, #EFF5EE 70%, #F0EDE8 100%);
}
body.dark .home-screen {
  background: linear-gradient(160deg, #1A1A1A 0%, #1E1E1E 50%, #1A1A1A 100%);
}
.home-top { padding: 16px 16px 0; }

.home-header-card {
  background: var(--green-dark); border-radius: var(--r-lg); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-md);
}
.home-header-left { display: flex; align-items: center; gap: 12px; }
.home-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.home-greeting { font-size: 15px; font-weight: 700; color: #fff; }
.home-company  { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 1px; }
.home-header-right { display: flex; align-items: center; gap: 6px; }
.home-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4CAF50; }
.notif-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.notif-btn svg { color: #fff; width: 18px; height: 18px; }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); border: 1.5px solid var(--green-dark);
}
.home-tagline {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--gray-500); text-align: center; margin: 14px 0 0;
}
body.dark .home-tagline { color: var(--gray-400); }

/* Plan card */
.plan-card {
  background: var(--card); border-radius: var(--r-lg); padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm); gap: 12px; margin: 12px 16px 0;
}
body.dark .plan-card { background: var(--gray-100); }
.plan-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.plan-icon {
  width: 50px; height: 50px; border-radius: var(--r-md);
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
body.dark .plan-icon { background: rgba(43,87,64,0.2); }
.plan-label { font-size: 11px; font-weight: 600; color: var(--gray-500); margin-bottom: 2px; }
body.dark .plan-label { color: var(--gray-400); }
.plan-name  { font-size: 15px; font-weight: 700; color: var(--gray-800); }
body.dark .plan-name { color: #E8E8E8; }
.plan-badge {
  display: inline-block; padding: 2px 9px;
  background: var(--green-light); color: var(--green-dark);
  border-radius: var(--r-full); font-size: 11px; font-weight: 700; margin-top: 4px;
}
body.dark .plan-badge { background: rgba(43,87,64,0.3); color: #7EC899; }
.plan-exp { font-size: 11px; color: var(--gray-500); display: block; margin-top: 2px; }
.plan-manage-btn {
  padding: 9px 14px; background: var(--green-dark); color: #fff;
  border-radius: var(--r-full); font-size: 12px; font-weight: 600; flex-shrink: 0;
  white-space: nowrap;
}
.plan-progress-bar { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; margin-top: 8px; }
body.dark .plan-progress-bar { background: var(--gray-300); }
.plan-progress-fill { height: 100%; background: var(--green-dark); border-radius: 3px; transition: width 0.5s ease; }

/* Closing banner */
.closing-banner {
  background: var(--green-dark); border-radius: var(--r-lg); padding: 14px 18px;
  margin: 12px 16px 0; display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-md);
}
.closing-banner-locked { background: var(--gray-500); }
.inactive-banner {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--orange-light); color: #8a4b00;
  border: 1px solid var(--orange); border-radius: var(--r-lg);
  padding: 12px 14px; margin: 0 16px 12px;
}
body.dark .inactive-banner,
[data-theme="dark"] .inactive-banner { background: rgba(245,124,0,0.15); color: #FFB74D; }
.closing-left { display: flex; align-items: center; gap: 14px; }
.closing-clock {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.closing-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: 0.5px; margin-bottom: 2px; }
.closing-time  { font-size: 16px; font-weight: 700; color: #fff; }
.countdown-pill {
  background: var(--orange); color: #fff; padding: 6px 14px;
  border-radius: var(--r-full); font-size: 13px; font-weight: 700;
  min-width: 72px; text-align: center;
}

/* Meal type toggle */
.meal-toggle-wrap {
  display: flex; background: rgba(255,255,255,0.5); border-radius: var(--r-full);
  padding: 3px; margin: 12px 16px 0;
}
body.dark .meal-toggle-wrap { background: rgba(58,58,58,0.8); }
.meal-toggle-btn {
  flex: 1; padding: 9px 12px; font-size: 12px; font-weight: 600;
  border-radius: var(--r-full); color: var(--gray-500); transition: all 0.2s; text-align: center;
}
.meal-toggle-btn.active { background: var(--green-dark); color: #fff; }

/* Food grid */
.food-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 16px 0; }
.food-card {
  background: var(--card); border-radius: var(--r-lg); padding: 12px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center;
}
body.dark .food-card { background: var(--gray-100); }
.food-img-wrap {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-md);
  background: var(--gray-100); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; position: relative;
}
body.dark .food-img-wrap { background: var(--gray-200); }
.food-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.food-emoji   { font-size: 48px; line-height: 1; }
.food-name {
  font-size: 13px; font-weight: 700; color: var(--gray-800);
  text-align: center; margin-bottom: 4px; width: 100%;
}
body.dark .food-name { color: #E8E8E8; }
.food-type-tag {
  display: inline-block; padding: 3px 10px;
  background: var(--green-dark); color: #fff;
  border-radius: var(--r-full); font-size: 10px; font-weight: 700;
  letter-spacing: 0.3px; margin-bottom: 8px;
}
.food-type-tag.fasting { background: var(--orange); }
.order-btn {
  width: 100%; padding: 7px; background: var(--green-dark); color: #fff;
  border-radius: var(--r-full); font-size: 12px; font-weight: 600;
  text-align: center; margin-top: auto; transition: opacity 0.15s;
}
.order-btn:active { opacity: 0.8; }
.order-btn.disabled { background: var(--gray-300); color: var(--gray-500); cursor: default; }
body.dark .order-btn.disabled { background: var(--gray-300); color: var(--gray-400); }

/* ══════════════════════════════════════════════════════════════════
   ORDERS
   ════════════════════════════════════════════════════════════════ */
.week-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; margin-bottom: 12px;
}
.week-nav-btn {
  padding: 8px 16px; background: var(--card);
  border-radius: var(--r-full); font-size: 12px; font-weight: 600;
  color: var(--gray-600); box-shadow: var(--shadow-sm);
}
body.dark .week-nav-btn { background: var(--gray-100); color: var(--gray-500); }
.week-nav-btn.active { background: var(--green-dark); color: #fff; }
.week-label { font-size: 13px; font-weight: 600; color: var(--gray-600); }
body.dark .week-label { color: var(--gray-500); }

.day-pills { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 4px; scrollbar-width: none; }
.day-pills::-webkit-scrollbar { display: none; }
.day-pill {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  padding: 10px 12px; border-radius: var(--r-lg); background: var(--card);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: all 0.15s;
  min-width: 52px; border: 1.5px solid transparent;
}
body.dark .day-pill { background: var(--gray-100); }
.day-pill.active { background: var(--green-dark); border-color: var(--green-dark); }
.day-pill.locked { opacity: 0.45; cursor: default; }
.day-pill-name { font-size: 11px; font-weight: 600; color: var(--gray-500); }
.day-pill-num  { font-size: 17px; font-weight: 700; color: var(--gray-800); }
.day-pill.active .day-pill-name, .day-pill.active .day-pill-num { color: #fff; }
body.dark .day-pill-num { color: #E8E8E8; }

.order-card {
  background: var(--card); border-radius: var(--r-lg); padding: 14px;
  box-shadow: var(--shadow-sm); display: flex; gap: 12px; align-items: center;
}
body.dark .order-card { background: var(--gray-100); }
.order-img {
  width: 64px; height: 64px; border-radius: var(--r-md);
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0; overflow: hidden;
}
body.dark .order-img { background: var(--gray-200); }
.order-info { flex: 1; min-width: 0; }
.order-name { font-size: 15px; font-weight: 700; color: var(--gray-800); margin-bottom: 3px; }
body.dark .order-name { color: #E8E8E8; }
.order-date { font-size: 12px; color: var(--gray-500); }
.order-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* Status badges */
.status-badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.s-draft,.s-pending  { background: var(--orange-light); color: var(--orange); }
.s-accepted          { background: #E3F2FD; color: #1565C0; }
.s-ready             { background: #F3E5F5; color: #7B1FA2; }
.s-ondelivery        { background: var(--orange-light); color: var(--orange); }
.s-delivered         { background: var(--green-light); color: var(--green-dark); }
.s-cancelled         { background: #FFEBEE; color: var(--red); }
body.dark .s-draft,.body.dark .s-pending { background: rgba(245,124,0,0.2); }
body.dark .s-delivered { background: rgba(43,87,64,0.3); color: #7EC899; }
body.dark .s-accepted  { background: rgba(21,101,192,0.2); }
body.dark .s-cancelled { background: rgba(220,53,69,0.2); }

.cancel-order-btn {
  padding: 6px 14px; border: 1.5px solid var(--red); color: var(--red);
  border-radius: var(--r-full); font-size: 11px; font-weight: 600;
}
.active-order-banner {
  background: var(--green-dark); border-radius: var(--r-lg); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md); margin: 0 20px;
}
.active-order-icon { font-size: 28px; flex-shrink: 0; }
.active-order-label { font-size: 11px; color: rgba(255,255,255,0.7); }
.active-order-name  { font-size: 15px; font-weight: 700; color: #fff; }

/* ══════════════════════════════════════════════════════════════════
   HISTORY
   ════════════════════════════════════════════════════════════════ */
.history-card {
  background: var(--card); border-radius: var(--r-lg); padding: 14px;
  box-shadow: var(--shadow-sm); display: flex; gap: 12px; align-items: center;
  cursor: pointer; transition: opacity 0.15s;
}
body.dark .history-card { background: var(--gray-100); }
.history-card:active { opacity: 0.82; }
.history-img {
  width: 64px; height: 64px; border-radius: var(--r-md);
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  font-size: 30px; flex-shrink: 0; overflow: hidden;
}
body.dark .history-img { background: var(--gray-200); }
.history-info { flex: 1; min-width: 0; }
.history-name {
  font-size: 15px; font-weight: 700; color: var(--gray-800);
  margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.dark .history-name { color: #E8E8E8; }
.history-date { font-size: 12px; color: var(--gray-500); margin-bottom: 6px; }
.history-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════
   MEAL PLAN
   ════════════════════════════════════════════════════════════════ */
.meal-plan-card {
  background: var(--card); border-radius: var(--r-lg); padding: 18px 16px;
  box-shadow: var(--shadow-sm); display: flex; align-items: flex-start; gap: 14px;
}
body.dark .meal-plan-card { background: var(--gray-100); }
.meal-plan-img {
  width: 54px; height: 54px; border-radius: var(--r-md);
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
body.dark .meal-plan-img { background: rgba(43,87,64,0.2); }
.meal-plan-info { flex: 1; }
.meal-plan-name { font-size: 15px; font-weight: 700; color: var(--gray-800); margin-bottom: 2px; }
body.dark .meal-plan-name { color: #E8E8E8; }
.meal-plan-desc { font-size: 12px; color: var(--gray-500); margin-bottom: 10px; }
.period-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.period-chip {
  padding: 5px 12px; background: var(--green-light); color: var(--green-dark);
  border-radius: var(--r-full); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; border: 1.5px solid transparent;
}
.period-chip.selected { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
body.dark .period-chip { background: rgba(43,87,64,0.2); color: #7EC899; }
body.dark .period-chip.selected { background: var(--green-dark); color: #fff; }

/* Current active plan card */
.active-plan-card {
  background: var(--green-dark); border-radius: var(--r-lg); padding: 18px 16px;
  box-shadow: var(--shadow-md);
}
.active-plan-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.active-plan-name  { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.active-plan-bar { height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.active-plan-fill { height: 100%; background: #fff; border-radius: 4px; }
.active-plan-meta { display: flex; justify-content: space-between; }
.active-plan-meta span { font-size: 12px; color: rgba(255,255,255,0.8); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════
   PAYMENT
   ════════════════════════════════════════════════════════════════ */
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payment-card {
  background: var(--card); border-radius: var(--r-lg); padding: 18px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; transition: all 0.15s;
  border: 2px solid transparent; box-shadow: var(--shadow-sm);
}
body.dark .payment-card { background: var(--gray-100); }
.payment-card.selected { border-color: var(--green-dark); background: var(--green-light); }
body.dark .payment-card.selected { background: rgba(43,87,64,0.15); }
.payment-card:active { opacity: 0.8; }
.payment-card-logo { font-size: 38px; }
.payment-card-name { font-size: 12px; font-weight: 700; color: var(--gray-700); text-align: center; }
body.dark .payment-card-name { color: var(--gray-500); }

/* Payment upload box */
.upload-box {
  border: 2px dashed var(--gray-300); border-radius: var(--r-lg);
  padding: 24px; text-align: center; cursor: pointer; transition: all 0.15s;
}
.upload-box:active, .upload-box.has-file { border-color: var(--green-dark); background: var(--green-light); }
body.dark .upload-box { border-color: var(--gray-400); }
body.dark .upload-box.has-file { background: rgba(43,87,64,0.15); border-color: var(--green-dark); }
.upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-label { font-size: 13px; font-weight: 600; color: var(--gray-600); }
body.dark .upload-label { color: var(--gray-500); }
.upload-sub   { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* ── Success screen ─ */
.success-screen {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 32px 24px; background: var(--bg);
}
.success-icon {
  width: 80px; height: 80px; border-radius: 50%; background: var(--green-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(43,87,64,0.3);
}
.success-title {
  font-size: 24px; font-weight: 800; color: var(--gray-800);
  text-align: center; margin-bottom: 12px; letter-spacing: -0.5px;
}
body.dark .success-title { color: #E8E8E8; }
.success-msg {
  font-size: 14px; color: var(--gray-500); text-align: center;
  line-height: 1.6; max-width: 280px; margin-bottom: 32px;
}

/* ══════════════════════════════════════════════════════════════════
   PROFILE
   ════════════════════════════════════════════════════════════════ */
.profile-bg {
  background: var(--green-dark); padding: 48px 24px 80px; text-align: center;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 3px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; color: #fff; margin: 0 auto 12px; overflow: hidden;
}
.profile-name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.profile-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.profile-tag {
  padding: 4px 12px; background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9); border-radius: var(--r-full); font-size: 11px; font-weight: 600;
}
.profile-tag-status.is-active   { background: rgba(255,255,255,0.92); color: #2B5740; }
.profile-tag-status.is-inactive { background: var(--orange); color: #fff; }
.profile-raised {
  background: var(--card-solid); border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: -40px; padding: 24px 20px 40px; min-height: 60vh;
}
body.dark .profile-raised { background: #1C1C1C; }

/* Plan info in profile */
.profile-plan-row {
  background: var(--card); border-radius: var(--r-lg); padding: 14px 16px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
body.dark .profile-plan-row { background: var(--gray-100); }
.profile-plan-label { font-size: 11px; font-weight: 600; color: var(--gray-500); margin-bottom: 4px; }
body.dark .profile-plan-label { color: var(--gray-400); }
.profile-plan-name  { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
body.dark .profile-plan-name { color: #E8E8E8; }

.menu-list { display: flex; flex-direction: column; }
.menu-item {
  display: flex; align-items: center; gap: 14px; padding: 15px 4px;
  border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: opacity 0.15s;
}
body.dark .menu-item { border-color: var(--gray-200); }
.menu-item:last-child { border-bottom: none; }
.menu-item:active { opacity: 0.7; }
.menu-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.ico-green  { background: var(--green-light); }
.ico-orange { background: var(--orange-light); }
.ico-gray   { background: var(--gray-100); }
.ico-red    { background: #FFEBEE; }
body.dark .ico-green  { background: rgba(43,87,64,0.2); }
body.dark .ico-orange { background: rgba(245,124,0,0.15); }
body.dark .ico-gray   { background: var(--gray-200); }
body.dark .ico-red    { background: rgba(220,53,69,0.15); }
.menu-text { flex: 1; font-size: 14px; font-weight: 600; color: var(--gray-800); }
body.dark .menu-text { color: #E8E8E8; }
.menu-danger { color: var(--red); }
.menu-chevron { color: var(--gray-400); }

/* Theme toggle switch */
.theme-switch {
  width: 46px; height: 28px; border-radius: 14px; flex-shrink: 0;
  background: var(--gray-300); position: relative;
  transition: background .2s ease;
}
.theme-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s ease;
}
.theme-switch.on { background: var(--green-primary); }
.theme-switch.on::after { transform: translateX(18px); }

/* ══════════════════════════════════════════════════════════════════
   FAQ / ACCORDION
   ════════════════════════════════════════════════════════════════ */
.faq-item {
  background: var(--card); border-radius: var(--r-lg); margin-bottom: 10px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
body.dark .faq-item { background: var(--gray-100); }
.faq-question {
  padding: 16px; font-size: 14px; font-weight: 600; color: var(--gray-800);
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 12px;
}
body.dark .faq-question { color: #E8E8E8; }
.faq-chevron { color: var(--gray-400); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 16px 16px; font-size: 13px; color: var(--gray-600); line-height: 1.65; }
body.dark .faq-answer { color: var(--gray-500); }
.faq-item.open .faq-answer { display: block; }

/* ══════════════════════════════════════════════════════════════════
   NOTIFICATIONS
   ════════════════════════════════════════════════════════════════ */
.notif-item {
  background: var(--card); border-radius: var(--r-lg); padding: 14px 16px;
  box-shadow: var(--shadow-sm); display: flex; gap: 12px; align-items: flex-start;
}
body.dark .notif-item { background: var(--gray-100); }
.notif-item.unread { border-left: 3px solid var(--green-dark); }
.notif-icon-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
body.dark .notif-icon-wrap { background: rgba(43,87,64,0.2); }
.notif-title { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 3px; }
body.dark .notif-title { color: #E8E8E8; }
.notif-body  { font-size: 12px; color: var(--gray-500); margin-bottom: 4px; }
.notif-time  { font-size: 11px; color: var(--gray-400); }

/* ══════════════════════════════════════════════════════════════════
   LANGUAGE
   ════════════════════════════════════════════════════════════════ */
.lang-item {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--card); border-radius: var(--r-lg); margin-bottom: 10px;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: all 0.15s; border: 2px solid transparent;
}
body.dark .lang-item { background: var(--gray-100); }
.lang-item.selected { border-color: var(--green-dark); background: var(--green-light); }
body.dark .lang-item.selected { background: rgba(43,87,64,0.15); border-color: var(--green-medium); }
.lang-flag { font-size: 28px; flex-shrink: 0; }
.lang-name { font-size: 15px; font-weight: 700; color: var(--gray-800); flex: 1; }
body.dark .lang-name { color: #E8E8E8; }
.lang-check { color: var(--green-dark); }

/* ══════════════════════════════════════════════════════════════════
   CONTACT / SUPPORT
   ════════════════════════════════════════════════════════════════ */
.contact-card {
  background: var(--card); border-radius: var(--r-lg); padding: 16px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm);
}
body.dark .contact-card { background: var(--gray-100); }
.contact-icon { width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.contact-label { font-size: 11px; font-weight: 600; color: var(--gray-500); }
.contact-value { font-size: 14px; font-weight: 700; color: var(--gray-800); }
body.dark .contact-value { color: #E8E8E8; }

/* ══════════════════════════════════════════════════════════════════
   ORDER DETAIL
   ════════════════════════════════════════════════════════════════ */
.order-detail-img {
  width: 100%; height: 200px; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; font-size: 80px;
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px;
}
body.dark .order-detail-img { background: var(--gray-200); }
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--gray-100);
}
body.dark .detail-row { border-color: var(--gray-200); }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.detail-value { font-size: 13px; font-weight: 700; color: var(--gray-800); }
body.dark .detail-value { color: #E8E8E8; }

/* ══════════════════════════════════════════════════════════════════
   PERSONAL INFO / READONLY
   ════════════════════════════════════════════════════════════════ */
.info-readonly {
  padding: 14px 16px; background: var(--gray-100); border-radius: var(--r-md);
  font-size: 14px; color: var(--gray-500);
}
body.dark .info-readonly { background: var(--gray-200); }

/* ══════════════════════════════════════════════════════════════════
   PLAN DETAIL (included meals)
   ════════════════════════════════════════════════════════════════ */
.meal-type-row {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); margin-bottom: 10px;
}
body.dark .meal-type-row { background: var(--gray-100); }
.meal-type-icon-wrap {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
body.dark .meal-type-icon-wrap { background: rgba(43,87,64,0.2); }
.meal-type-row-name  { font-size: 15px; font-weight: 700; color: var(--gray-800); }
body.dark .meal-type-row-name { color: #E8E8E8; }
.meal-type-row-count { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════════
   TERMS / PRIVACY
   ════════════════════════════════════════════════════════════════ */
.terms-content { font-size: 13px; color: var(--gray-600); line-height: 1.75; }
body.dark .terms-content { color: var(--gray-500); }
.terms-content h3 { font-size: 15px; font-weight: 700; color: var(--gray-800); margin: 20px 0 8px; }
body.dark .terms-content h3 { color: #E8E8E8; }
.terms-content p { margin-bottom: 12px; }
