/* ═══════════════════════════════════════════
   LIGHT MODE (Option B — Pacific Coast)
═══════════════════════════════════════════ */
:root {
  --bg:          #F0F4FF;
  --card:        #FFFFFF;
  --card2:       #F8FAFF;
  --text:        #0A1628;
  --text2:       #4A5568;
  --muted:       #8B9CB8;
  --border:      #E2E8F8;
  --accent:      #0066FF;
  --accent2:     #00C9A7;
  --accent-light:#EEF3FF;
  --accent2-light:#E8FFF5;
  --danger:      #FF3D8A;
  --warn:        #FF6B35;
  --shadow-sm:   0 1px 3px rgba(10,22,40,0.06);
  --shadow:      0 2px 12px rgba(10,22,40,0.08);
  --shadow-lg:   0 8px 32px rgba(10,22,40,0.12);
  --hero-bg:     linear-gradient(135deg, #0A1628 0%, #0D2B5E 60%, #0066FF 100%);
  --hero-text:   rgba(255,255,255,0.85);
  --nav-bg:      #FFFFFF;
  --nav-border:  #F0F4FF;
  --r:           20px;
  --r-sm:        14px;
}

/* ═══════════════════════════════════════════
   DARK MODE (Option A — Solar Flare)
═══════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:          #0A0A14;
  --card:        #161626;
  --card2:       #1E1E34;
  --text:        #FFFFFF;
  --text2:       rgba(255,255,255,0.65);
  --muted:       rgba(255,255,255,0.35);
  --border:      rgba(255,255,255,0.08);
  --accent:      #FF6B2B;
  --accent2:     #00FF88;
  --accent-light:rgba(255,107,43,0.15);
  --accent2-light:rgba(0,255,136,0.12);
  --danger:      #FF3D71;
  --warn:        #FFB800;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow:      0 2px 12px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.5);
  --hero-bg:     linear-gradient(135deg, #FF6B2B 0%, #FF3D71 50%, #8B2BE2 100%);
  --hero-text:   rgba(255,255,255,0.65);
  --nav-bg:      #161626;
  --nav-border:  rgba(255,255,255,0.06);
  --r:           20px;
  --r-sm:        14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
}

/* ── LAYOUT ── */
.app-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px 0;
}
.header-right { display: flex; align-items: center; gap: 8px; }

.app-logo {
  font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -1px; line-height: 1;
}
.app-logo span { color: var(--accent); }

.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px; font-weight: 700;
  cursor: pointer; flex-shrink: 0; overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.menu-btn {
  background: none; border: none; color: var(--muted);
  font-size: 20px; cursor: pointer; padding: 0; line-height: 1;
}

.top-nav {
  display: flex; justify-content: center; gap: 0;
  border-top: 1px solid var(--nav-border); padding: 0 8px;
}
.top-nav-btn {
  flex: 1; max-width: 120px;
  padding: 9px 4px; background: none; border: none;
  font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent;
  transition: all 0.2s; white-space: nowrap;
}
.top-nav-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.content { padding: 16px; }
.section { display: none; }
.section.active { display: block; }

/* ── CARDS ── */
.card {
  background: var(--card); border-radius: var(--r);
  box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden;
}
.card-pad { padding: 16px; }
.card-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.section-title { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.section-link { font-size: 12px; font-weight: 600; color: var(--accent); background: none; border: none; font-family: inherit; cursor: pointer; padding: 0; }

/* ── HERO ── */
.budget-hero {
  border-radius: var(--r); padding: 24px; margin-bottom: 12px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0A1628 0%, #0D2B5E 60%, #0066FF 100%);
}
[data-theme="dark"] .budget-hero {
  background: linear-gradient(135deg, #FF6B2B 0%, #FF3D71 50%, #8B2BE2 100%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-content { position: relative; }
.hero-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.9); margin-bottom: 4px;
}
.hero-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px; color: white; line-height: 1; letter-spacing: 1px;
}
.hero-amount-prefix { font-size: 28px; vertical-align: top; margin-top: 10px; display: inline-block; }
.hero-sub { font-size: 13px; color: rgba(255,255,255,0.9); margin-top: 4px; font-weight: 500; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,201,167,0.2); border: 1px solid rgba(0,201,167,0.35);
  border-radius: 99px; padding: 4px 10px; font-size: 11px;
  color: #00C9A7; font-weight: 600; margin-top: 10px;
}
[data-theme="dark"] .hero-pill {
  background: rgba(0,255,136,0.15); border-color: rgba(0,255,136,0.3); color: #00FF88;
}
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin-top: 16px;
}
.hero-stat {
  background: rgba(255,255,255,0.08); border-radius: 12px; padding: 10px 12px;
}
.hero-stat-val {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  color: white; line-height: 1;
}
.hero-stat-lbl { font-size: 10px; color: var(--hero-text); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── BUDGET BAR ── */
.progress-wrap { margin: 14px 0 6px; }
.progress-track { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; transition: width 0.6s cubic-bezier(.4,0,.2,1); }
.progress-fill.ok { background: var(--accent2); }
.progress-fill.warn { background: var(--warn); }
.progress-fill.danger { background: var(--danger); }
.progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 5px; }

/* ── CATEGORY GRID ── */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-card {
  background: var(--card); border-radius: var(--r-sm);
  padding: 14px; box-shadow: var(--shadow-sm);
}
.cat-icon-wrap {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 10px;
}
.cat-name { font-size: 12px; font-weight: 600; color: var(--muted); }
.cat-amount { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; margin-top: 2px; }
.cat-bar { height: 4px; background: var(--border); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.cat-bar-fill { height: 100%; border-radius: 99px; }

/* ── FILTER BAR ── */
.filter-bar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0; padding: 6px 14px; border-radius: 99px;
  border: 1.5px solid var(--border); background: var(--card);
  font-size: 11px; font-weight: 600; cursor: pointer; color: var(--text);
  white-space: nowrap; font-family: inherit; transition: all 0.15s;
}
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: white; }

/* ── EXPENSE LIST ── */
.exp-group-hdr {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); padding: 10px 0 6px;
  display: flex; justify-content: space-between;
}
.exp-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.exp-item:last-child { border-bottom: none; }
.exp-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.exp-info { flex: 1; min-width: 0; }
.exp-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.exp-amounts { text-align: right; flex-shrink: 0; }
.exp-home { font-size: 13px; font-weight: 700; }
.exp-local { font-size: 11px; color: var(--muted); }
.exp-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 20px; padding: 2px 4px; line-height: 1; }

/* ── RATE BAR ── */
.rate-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent-light); border-radius: 12px;
  padding: 8px 12px; margin-bottom: 12px; font-size: 12px;
}
.rate-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.rate-text { flex: 1; color: var(--accent); font-weight: 600; }
.rate-refresh { background: none; border: none; font-size: 15px; cursor: pointer; color: var(--accent); }

/* ── COUNTRY CARDS ── */
.country-card { background: var(--card); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); }
.country-hdr {
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; user-select: none;
  transition: opacity 0.15s;
}
.country-hdr:active { opacity: 0.85; }
.country-flag { font-size: 28px; flex-shrink: 0; width: 40px; text-align: center; }
.country-hdr-info { flex: 1; min-width: 0; overflow: hidden; }
.country-name { font-size: 20px; font-weight: 800; color: white; letter-spacing: -0.5px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-meta { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 3px; }
.country-chev-wrap {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,0.15); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: all 0.2s;
}
.country-chev-wrap.open { background: rgba(255,255,255,0.3); }
.country-chev { font-size: 16px; color: white; transition: transform 0.2s; display: inline-block; }
.country-chev.open { transform: rotate(90deg); }
.country-body { }
.country-section { padding: 12px 20px; border-top: 1px solid var(--border); }
.cs-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.cs-arrival-row { display: flex; align-items: flex-start; gap: 10px; }
.cs-arr-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ── STOP CARDS ── */
.stop-card { background: var(--card2); border-radius: var(--r-sm); overflow: hidden; margin-bottom: 8px; border: 1px solid var(--border); }
.sc-header {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  cursor: pointer; user-select: none;
  transition: opacity 0.15s;
  background: linear-gradient(135deg, #0066FF, #00C9A7);
}
[data-theme="dark"] .sc-header {
  background: linear-gradient(135deg, #FF6B2B, #FF3D71);
}
.sc-header:active { opacity: 0.85; }
.sc-city { font-size: 16px; font-weight: 800; color: white; line-height: 1.1; }
.sc-nights { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.sc-chev-wrap {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(255,255,255,0.15); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: all 0.2s;
}
.sc-chev-wrap.open { background: rgba(255,255,255,0.3); }
.sc-chev { font-size: 14px; color: white; transition: transform 0.2s; display: inline-block; }
.sc-chev.open { transform: rotate(90deg); }
.sc-section { padding: 10px 14px; border-top: 1px solid var(--border); }
.sc-section-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.sc-tbc {
  font-size: 12px; color: var(--accent); font-weight: 600; cursor: pointer;
  padding: 8px 12px; border-radius: 10px; border: 1.5px dashed var(--border);
  text-align: center; transition: background 0.15s;
}
.sc-tbc:active { background: var(--accent-light); }
.sc-detail-row { display: flex; align-items: flex-start; gap: 10px; padding: 3px 0; }
.sc-det-icon { font-size: 16px; width: 24px; text-align: center; flex-shrink: 0; margin-top: 1px; }

/* ── HOTEL CARDS ── */
.hotel-card { border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.hotel-card-hdr { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; background: var(--card); user-select: none; }
.hotel-card-name { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hotel-card-meta { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.hotel-card-chev { font-size: 13px; color: var(--muted); flex-shrink: 0; transition: transform 0.2s; }
.hotel-card-chev.open { transform: rotate(90deg); }
.hotel-card-body { display: none; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--card); }
.hotel-card-body.open { display: block; }
.hotel-detail-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 3px 0; }
.hotel-detail-label { color: var(--muted); }
.hotel-actions { display: flex; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.hotel-action-btn { background: none; border: none; font-family: inherit; font-size: 12px; cursor: pointer; padding: 0; font-weight: 600; }

/* ── TASK CARDS ── */
.task-card {
  background: var(--card); border-radius: var(--r-sm);
  padding: 12px 14px; margin-bottom: 8px;
  box-shadow: var(--shadow-sm); border-left: 3px solid var(--border);
}
.task-card.task-done { opacity: 0.4; }
.task-card-top { display: flex; align-items: flex-start; gap: 10px; }
.task-chk {
  width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 7px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--card); cursor: pointer; margin-top: 1px; transition: all 0.15s;
}
.task-card.task-done .task-chk { background: var(--accent2); border-color: var(--accent2); }
.task-card-text { font-size: 13px; font-weight: 600; line-height: 1.4; flex: 1; }
.task-card.task-done .task-card-text { text-decoration: line-through; color: var(--muted); }
.task-card-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.task-card-notes { font-size: 11px; color: var(--muted); margin-top: 3px; font-style: italic; }
.task-priority-badge { font-size: 14px; flex-shrink: 0; }
.task-card-actions { display: flex; gap: 16px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.task-action-btn { background: none; border: none; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }

/* ── FORMS ── */
input, select, textarea {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px;
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text); width: 100%; outline: none;
  transition: border-color 0.15s; -webkit-appearance: none;
  font-weight: 500;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.field-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── BUTTONS ── */
.btn {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 700;
  padding: 13px 16px; border: none; border-radius: 12px; cursor: pointer;
  width: 100%; transition: transform 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); opacity: 0.85; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #0052CC); color: white; }
[data-theme="dark"] .btn-primary { background: linear-gradient(135deg, #FF6B2B, #FF3D71); }
.btn-ghost { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-link { background: none; border: none; font-family: inherit; font-size: 12px; color: var(--accent); font-weight: 700; cursor: pointer; padding: 0; }

/* ── OVERLAY / SHEETS ── */
.overlay { display: none; position: fixed; inset: 0; background: rgba(10,22,40,0.5); z-index: 200; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); }
.overlay.open { display: flex; }
.sheet { background: var(--card); border-radius: 24px 24px 0 0; padding: 24px 20px max(36px, env(safe-area-inset-bottom)); width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; }
.sheet-title { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; margin-bottom: 18px; }
.sheet-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }

/* ── COUNTRY AUTOCOMPLETE ── */
.country-wrap { position: relative; }
.suggestions { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 300; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); display: none; max-height: 200px; overflow-y: auto; border: 1px solid var(--border); }
.suggestions.open { display: block; }
.sug-item { padding: 12px 16px; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.sug-item:last-child { border-bottom: none; }
.sug-item:active { background: var(--accent-light); }
.sug-cur { font-size: 11px; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.cur-auto { display: none; align-items: center; gap: 8px; background: var(--accent-light); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--accent); font-weight: 600; }
.cur-auto.show { display: flex; }
.conv-preview { background: var(--accent-light); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--accent); font-weight: 600; text-align: center; display: none; }
.conv-preview.show { display: block; }

/* ── CAT DRILL ── */
.cat-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-top-btn { padding: 14px 10px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg); font-family: inherit; font-size: 13px; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); transition: all 0.15s; }
.cat-top-btn .ce { font-size: 24px; }
.cat-top-btn .cl { font-size: 11px; font-weight: 700; }
.cat-top-btn.sel { border-color: transparent; background: linear-gradient(135deg, #0A1628 0%, #0D2B5E 60%, #0066FF 100%); color: white; }
[data-theme="dark"] .cat-top-btn.sel { background: linear-gradient(135deg, #FF6B2B 0%, #FF3D71 50%, #8B2BE2 100%); }
.subcat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.subcat-btn { padding: 12px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg); font-family: inherit; font-size: 12px; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; transition: all 0.15s; }
.subcat-btn.sel { border-color: transparent; background: linear-gradient(135deg, #0066FF, #00C9A7); color: white; font-weight: 700; }
[data-theme="dark"] .subcat-btn.sel { background: linear-gradient(135deg, #FF6B2B, #FF3D71); }
.cat-back-btn { display: none; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); font-weight: 700; cursor: pointer; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; background: none; border-top: none; border-left: none; border-right: none; font-family: inherit; width: 100%; }
.cat-back-btn.show { display: flex; }
.sel-cat-pill { display: none; align-items: center; gap: 8px; background: var(--accent-light); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--accent); font-weight: 700; cursor: pointer; }
.sel-cat-pill.show { display: flex; }

/* ── CHARTS ── */
.chart-tab { padding: 6px 12px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg); font-family: inherit; font-size: 11px; font-weight: 700; color: var(--text); cursor: pointer; transition: all 0.15s; }
.chart-tab.active { background: var(--accent); border-color: var(--accent); color: white; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; min-width: 0; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-label { flex: 1; color: var(--text); font-weight: 500; }
.legend-val { font-weight: 700; color: var(--text); }
.legend-pct { font-size: 11px; color: var(--muted); min-width: 32px; text-align: right; }

/* ── SIDE MENU ── */
.side-menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 20px; background: none; border: none; font-family: inherit; font-size: 13px; color: var(--text); cursor: pointer; text-align: left; border-bottom: 1px solid var(--border); font-weight: 500; }
.side-menu-item:active { background: var(--bg); }
.smi-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.smi-chev { margin-left: auto; color: var(--muted); font-size: 16px; }

/* ── TOGGLE SWITCH ── */
.toggle-wrap { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid var(--border); background: var(--card); }
.toggle-label { font-size: 13px; font-weight: 600; color: var(--text); }
.toggle-switch { position: relative; width: 46px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 99px; cursor: pointer; transition: 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── PROFILE PHOTO UPLOAD ── */
.profile-photo-wrap { position: relative; width: 72px; height: 72px; margin: 0 auto 12px; }
.profile-photo { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 28px; font-weight: 800; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-edit { position: absolute; bottom: 0; right: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }

/* ── AUTH ── */
#authScreen { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 999; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.auth-box { background: var(--card); border-radius: 24px; padding: 32px 24px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); }
.auth-logo { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; margin-bottom: 4px; text-align: center; }
.auth-logo span { color: var(--accent); }
.auth-tagline { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 24px; }
.auth-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.auth-msg { font-size: 12px; margin-bottom: 10px; display: none; text-align: center; font-weight: 600; }
.auth-switch { font-size: 12px; color: var(--muted); justify-content: center; gap: 4px; margin-top: 16px; font-weight: 500; }
.auth-switch button { background: none; border: none; font-family: inherit; font-size: 12px; color: var(--accent); cursor: pointer; font-weight: 700; padding: 0; }

/* ── TRIAL BANNER ── */
#trialBanner { display: none; position: sticky; top: 0; left: 0; right: 0; z-index: 300; background: var(--warn); color: white; padding: 8px 16px; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }

/* ── BOOKING BANNER ── */
#bookingBanner { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 300; background: var(--card); border-top: 1.5px solid var(--border); padding: 14px 16px; flex-direction: row; align-items: center; gap: 12px; box-shadow: 0 -4px 20px rgba(10,22,40,0.12); }

/* ── UPGRADE SHEET ── */
.upgrade-feature-grid { background: var(--bg); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }

/* ── HERO GRADIENT — hardcoded, not CSS variable (mobile Safari fix) ── */
.hero-gradient {
  background: linear-gradient(135deg, #0A1628 0%, #0D2B5E 60%, #0066FF 100%);
}
[data-theme="dark"] .hero-gradient {
  background: linear-gradient(135deg, #FF6B2B 0%, #FF3D71 50%, #8B2BE2 100%);
}
.country-hdr-gradient {
  background: linear-gradient(135deg, #0066FF, #00C9A7);
}
[data-theme="dark"] .country-hdr-gradient {
  background: linear-gradient(135deg, #FF6B2B, #FF3D71);
}
.user-avatar-gradient {
  background: linear-gradient(135deg, #0A1628 0%, #0066FF 100%);
}
[data-theme="dark"] .user-avatar-gradient {
  background: linear-gradient(135deg, #FF6B2B, #FF3D71);
}

/* ── ADMIN TABS ── */
.admin-tab { padding:6px 12px;border-radius:99px;border:1.5px solid var(--border);background:var(--bg);font-family:inherit;font-size:11px;font-weight:700;color:var(--text);cursor:pointer;white-space:nowrap;transition:all 0.15s; }
.admin-tab.active { background:var(--accent);border-color:var(--accent);color:white; }

/* ── MISC ── */
.empty { text-align: center; padding: 24px 0; font-size: 13px; color: var(--muted); font-weight: 500; }
.blk-pill { font-size: 10px; padding: 3px 8px; border-radius: 99px; background: var(--card); border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.blk-pill.hi { background: var(--accent-light); color: var(--accent); border-color: transparent; }
.add-stop-btn { width: 100%; padding: 10px; border-radius: 12px; border: 1.5px dashed var(--border); background: transparent; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; margin-top: 8px; }
.user-bar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--accent-light); border-radius: 12px; margin-bottom: 10px; font-size: 12px; }
.user-bar-name { flex: 1; color: var(--accent); font-weight: 700; }
.stop-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.stop-row:last-child { border-bottom: none; }
#drillLockHint { display: none; background: var(--accent-light); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; flex-direction: row; align-items: center; gap: 10px; }