/* ==========================================================================
   SNOWY TAVERN — VIP TRAVEL & LOUNGE ITINERARY CONCIERGE
   Opulent Asian Royal Crimson-and-Gold Aesthetic
   Palette: #DC2626 (Crimson), #EF4444 (Bright Red), #F59E0B (24k Gold),
            #FFFFFF (Pure White), #111827 (Midnight Charcoal)
   ========================================================================== */

:root {
  --crimson: #DC2626;
  --bright-red: #EF4444;
  --gold: #F59E0B;
  --gold-light: #FBBF24;
  --gold-soft: rgba(245, 158, 11, 0.22);
  --border-gold: rgba(245, 158, 11, 0.42);
  --white: #FFFFFF;
  --text-muted: #CBD5E1;
  --text-dim: #94A3B8;
  --charcoal: #111827;
  --card-surface: rgba(20, 18, 30, 0.68);
  --card-surface-elevated: rgba(28, 22, 38, 0.74);
  --accent-primary: #DC2626;
  --accent-secondary: #F59E0B;
  --emerald-accent: #10B981;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* Theme Variations unlocked in Suite Preferences */
body[data-theme="amber"] {
  --accent-primary: #D97706;
  --bright-red: #F59E0B;
  --border-gold: rgba(251, 191, 36, 0.52);
}

body[data-theme="emerald"] {
  --accent-primary: #059669;
  --bright-red: #10B981;
  --border-gold: rgba(245, 158, 11, 0.46);
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--charcoal);
  background-image: url('bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Root Container with Direct Crisp Background (Zero heavy blackout scrims) */
.app-root {
  width: 100%;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  background-image: url('bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
}

.hidden {
  display: none !important;
}

/* Tactile Press Animation per Architecture Spec */
button,
.bento-tile,
.welcome-chip,
.streak-banner-card,
.day-pill,
.type-pill,
.filter-pill,
.wb-tab,
.nav-item {
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, background-color 0.2s ease;
}

button:active,
.bento-tile:active,
.streak-banner-card:active,
.day-pill:active,
.type-pill:active,
.filter-pill:active,
.wb-tab:active,
.nav-item:active {
  transform: scale(0.97);
}

/* ==========================================================================
   1. WELCOME SCREEN (SINGLE VIEWPORT, NO VERTICAL SCROLL)
   ========================================================================== */
.welcome-screen {
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: env(safe-area-inset-top, 12px) 14px env(safe-area-inset-bottom, 14px);
  display: flex;
  flex-direction: column;
}

.welcome-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.welcome-top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.brand-crest-mini {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gold);
  flex-shrink: 0;
  background: linear-gradient(135deg, #DC2626, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-fallback {
  font-size: 20px;
  color: var(--gold);
}

.welcome-brand-titles {
  flex: 1;
  min-width: 0;
}

.eyebrow-tag {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--gold);
  text-transform: uppercase;
}

.welcome-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-tier-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--crimson), #991B1B);
  border: 1px solid var(--gold);
  color: var(--white);
  flex-shrink: 0;
}

/* Live Mini-Preview Spotlight Canvas Card */
.welcome-canvas-card {
  flex: 1;
  min-height: 150px;
  max-height: 250px;
  position: relative;
  background: var(--card-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.welcome-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.canvas-overlay-caption {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.6;
  }
}

/* 3 Compact Feature Chips */
.welcome-features-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.welcome-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 8px 11px;
}

.chip-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.crimson-glow {
  background: linear-gradient(135deg, #DC2626, #7F1D1D);
}

.gold-glow {
  background: linear-gradient(135deg, #F59E0B, #92400E);
}

.ruby-glow {
  background: linear-gradient(135deg, #EF4444, #991B1B);
}

.chip-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chip-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-text span {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome-cta-area {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.btn-imperial-primary {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--crimson) 0%, #B91C1C 55%, #991B1B 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-arrow {
  color: var(--gold);
  font-size: 17px;
}

.welcome-subnote {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   MAIN APP SHELL & COMPACT TOP HUD (360dp SAFE)
   ========================================================================== */
.main-shell {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 72px;
}

.top-hud-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(17, 24, 39, 0.92);
  border-bottom: 1px solid var(--border-gold);
  backdrop-filter: blur(8px);
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.hud-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

.hud-logo-fallback {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--gold);
  background: var(--crimson);
  color: var(--gold);
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.hud-title-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hud-app-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-trip-subtitle {
  font-size: 10px;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.hud-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: rgba(20, 18, 30, 0.9);
  border: 1px solid var(--border-gold);
  white-space: nowrap;
}

.streak-pill .pill-icon {
  color: var(--gold);
}

.xp-pill {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.35), rgba(20, 18, 30, 0.9));
  color: var(--gold-light);
}

.hud-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: rgba(20, 18, 30, 0.9);
  color: var(--gold);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Scrollable Main View Container */
.main-scroll-container {
  flex: 1;
  width: 100%;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-view {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.app-view.active {
  display: flex;
}

/* ==========================================================================
   SCULPTED EMBLEM & CREST CARD ARCHITECTURE
   ========================================================================== */
.imperial-card {
  background: var(--card-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  position: relative;
}

.badge-emblem {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.28);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #FCA5A5;
  margin-bottom: 4px;
}

.badge-emblem.gold-emblem {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.6);
  color: var(--gold-light);
}

.gold-text {
  color: var(--gold) !important;
}

.crimson-bright-text {
  color: #F87171 !important;
}

/* ==========================================================================
   2. DASHBOARD SCREEN (ASYMMETRIC BENTO)
   ========================================================================== */
.hero-bento-card {
  background: linear-gradient(155deg, rgba(45, 16, 24, 0.78) 0%, rgba(20, 18, 30, 0.72) 100%);
  border: 1px solid rgba(245, 158, 11, 0.65);
}

.vietnam-cultural-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.38), rgba(245, 158, 11, 0.22), rgba(220, 38, 38, 0.38));
  border: 1px solid rgba(245, 158, 11, 0.5);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
}

.hero-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-trip-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
}

.hero-trip-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-icon-subtle {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}

.hero-progress-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  margin-bottom: 10px;
}

.hero-stat-col {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.stat-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-val {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-divider {
  width: 1px;
  height: 26px;
  background: rgba(245, 158, 11, 0.25);
}

.hero-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.btn-quick-chip {
  padding: 7px 4px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2x2 Bento Grid (Safe Aspect Ratio for 360dp) */
.bento-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bento-tile {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
}

.bento-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bento-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
}

.crimson-bg {
  background: linear-gradient(135deg, #DC2626, #991B1B);
}

.gold-bg {
  background: linear-gradient(135deg, #F59E0B, #B45309);
}

.emerald-bg {
  background: linear-gradient(135deg, #10B981, #047857);
}

.ruby-bg {
  background: linear-gradient(135deg, #EF4444, #7F1D1D);
}

.bento-arrow {
  font-size: 13px;
  color: var(--gold);
}

.bento-metric-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-metric-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-sub-note {
  font-size: 10px;
  color: var(--gold-light);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-progress-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 6px;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  border-radius: 999px;
}

/* Streak Banner Card */
.streak-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.25), rgba(20, 18, 30, 0.88));
}

.streak-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.streak-emblem-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #B45309);
  color: #111827;
  font-size: 19px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.streak-banner-info {
  min-width: 0;
  flex: 1;
}

.streak-banner-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.streak-banner-title-row strong {
  font-size: 13px;
  color: var(--white);
}

.streak-status-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #111827;
}

.streak-banner-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.streak-chevron {
  font-size: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Action Feed Section */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
}

.feed-filter-pills {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.filter-pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-pill.active {
  background: var(--crimson);
  border-color: var(--gold);
  color: var(--white);
}

.action-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.68);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.feed-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.feed-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.feed-item-text {
  min-width: 0;
  flex: 1;
}

.feed-item-text strong {
  display: block;
  font-size: 12.5px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-item-text span {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-item-right {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   3. WORKBENCH SCREEN (ITINERARY, PACKING, BUDGET, CITY VAULT)
   ========================================================================== */
.workbench-tabs-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.workbench-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.wb-tab {
  flex: 1;
  min-width: 82px;
  padding: 9px 8px;
  border-radius: var(--radius-md);
  background: var(--card-surface);
  border: 1px solid var(--border-gold);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.wb-tab.active {
  background: linear-gradient(135deg, var(--crimson), #991B1B);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.wb-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.wb-panel.active {
  display: flex;
}

.tool-header-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.tool-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
}

.tool-subdesc {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-gold-sm {
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), #D97706);
  color: #111827;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-outline-gold-sm {
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid var(--gold);
  background: rgba(245, 158, 11, 0.14);
  color: var(--gold-light);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.horizontal-pills-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.horizontal-pills-bar::-webkit-scrollbar {
  display: none;
}

.day-pill,
.type-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.day-pill.active,
.type-pill.active {
  background: rgba(220, 38, 38, 0.85);
  border-color: var(--gold);
  color: var(--white);
}

/* Itinerary Cards */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-card {
  background: var(--card-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-card.completed {
  opacity: 0.72;
  border-color: rgba(16, 185, 129, 0.5);
}

.timeline-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.timeline-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.t-day-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--crimson);
  color: var(--white);
}

.t-time-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
}

.t-type-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
}

.timeline-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
}

.timeline-card.completed .timeline-title {
  text-decoration: line-through;
}

.timeline-meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.timeline-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.dress-code-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
}

.card-action-btns {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-card-action {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--white);
}

.btn-card-action.danger {
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Packing List Styles */
.packing-progress-box {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-md);
  padding: 10px;
}

.packing-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.progress-bar-outer {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.quick-inline-form {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.imperial-input,
.imperial-select {
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(17, 24, 39, 0.88);
  color: var(--white);
  font-size: 12.5px;
  outline: none;
}

.imperial-input:focus,
.imperial-select:focus {
  border-color: var(--gold);
}

.quick-inline-form .imperial-input {
  flex: 1 1 140px;
  min-width: 0;
}

.quick-inline-form .imperial-select {
  flex: 0 1 115px;
}

.packing-groups-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.pack-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.pack-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--gold);
  background: rgba(17, 24, 39, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

.pack-item-row.packed .pack-checkbox {
  background: var(--gold);
}

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

.pack-item-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pack-item-row.packed .pack-item-title {
  text-decoration: line-through;
  color: var(--text-dim);
}

.pack-item-cat {
  display: block;
  font-size: 10.5px;
  color: var(--gold-light);
}

/* USD Budget Tracker Styles */
.budget-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.budget-stat-box {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 10px;
  padding: 9px 10px;
}

.b-label {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
}

.b-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.budget-stat-box strong {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--white);
}

.btn-tiny-edit {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11px;
}

.budget-cat-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.cat-bar-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cat-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.cat-bar-top strong {
  color: var(--white);
}

.imperial-select-sm {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: rgba(17, 24, 39, 0.9);
  color: var(--white);
  font-size: 11px;
}

.ledger-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.ledger-left {
  min-width: 0;
  flex: 1;
}

.ledger-left strong {
  display: block;
  font-size: 13px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-left span {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
}

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

.ledger-amount {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--gold-light);
}

/* Favorite Venues & City Guide Vault */
.venue-search-row .imperial-input {
  width: 100%;
}

.venues-grid-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.venue-card {
  background: var(--card-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.venue-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.venue-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--white);
}

.venue-stars {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
}

.btn-star-fav {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: rgba(17, 24, 39, 0.8);
  color: var(--text-dim);
  font-size: 15px;
  flex-shrink: 0;
}

.btn-star-fav.active {
  color: var(--gold);
  background: rgba(245, 158, 11, 0.2);
}

.venue-notes {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.venue-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   4. ANALYTICS & HISTORY SCREEN (HiDPI CANVASES)
   ========================================================================== */
.chart-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--white);
}

.canvas-chart-wrapper {
  width: 100%;
  height: 210px;
  position: relative;
}

.analytics-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.matrix-box {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 10px;
  padding: 10px;
}

.matrix-box span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.matrix-box strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-light);
  margin-top: 2px;
}

/* ==========================================================================
   5. 7-DAY CONSISTENCY STREAK CALENDAR
   ========================================================================== */
.streak-counter-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #B45309);
  color: #111827;
  white-space: nowrap;
}

.streak-claim-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  flex-wrap: wrap;
}

.timer-label {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
}

.btn-imperial-claim {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--crimson), #991B1B);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.btn-imperial-claim:disabled {
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

.streak-calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.streak-day-card {
  background: var(--card-surface);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-height: 96px;
}

.streak-day-card.claimed {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.22), rgba(20, 18, 30, 0.9));
}

.streak-day-card.current-ready {
  border: 1.5px solid var(--bright-red);
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.45);
}

.streak-day-card.locked {
  opacity: 0.65;
}

.streak-day-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-num-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold-light);
}

.day-state-icon {
  font-size: 13px;
}

.day-perk-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
}

.day-perk-xp {
  font-size: 10.5px;
  color: var(--text-muted);
}

.perks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.perk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.perk-row strong {
  font-size: 12.5px;
  color: var(--white);
}

.perk-row span {
  font-size: 11px;
  color: var(--gold-light);
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(17, 24, 39, 0.95);
  border-top: 1px solid var(--border-gold);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(10px);
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 10px;
}

.nav-item.active {
  color: var(--gold-light);
  background: rgba(220, 38, 38, 0.22);
}

.nav-icon {
  font-size: 16px;
}

.nav-label {
  font-size: 10.5px;
  font-weight: 700;
}

/* ==========================================================================
   MODALS, FORMS, SETTINGS & LEGAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  max-height: 88dvh;
  background: rgba(20, 18, 30, 0.96);
  border: 1px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-scrollable {
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-light);
}

.btn-close-modal {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 13px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-modal-cancel {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 700;
}

.modal-actions .btn-imperial-primary {
  flex: 2;
  padding: 11px;
  font-size: 13.5px;
}

/* Settings & Legal Styles */
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.settings-heading {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold);
}

.theme-selector-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.theme-chip {
  flex: 1;
  min-width: 95px;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(17, 24, 39, 0.8);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.theme-chip.active {
  background: var(--crimson);
  border-color: var(--gold);
  color: var(--white);
}

.about-info-box {
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.about-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.about-row strong {
  color: var(--white);
}

.settings-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-settings-row {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(17, 24, 39, 0.82);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-doc-body {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 55dvh;
  overflow-y: auto;
  padding-right: 4px;
}

.legal-doc-body h4 {
  color: var(--gold-light);
  font-size: 13px;
  margin-top: 4px;
}

/* Toast Notification */
.toast-banner {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: linear-gradient(135deg, #111827, #1E1B2E);
  border: 1px solid var(--gold);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}