/* ==========================================================================
   Harbin & Shanghai Winter Trip 2027 - Modern Alpine Travel Design System
   Bright, Airy Winter Wonderland Aesthetic + High-End Thai Typography
   Seamless Light / Dark Mode Toggle + Unified No-Tab-Hopping Experience
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Tokens (Default: Light Alpine Editorial)
   -------------------------------------------------------------------------- */
:root {
  --theme-mode: "light";
  
  /* Backgrounds */
  --bg-page: #F1F5F9;
  --bg-page-gradient: linear-gradient(180deg, #E2E8F0 0%, #F1F5F9 240px, #F8FAFC 100%);
  --bg-header: rgba(255, 255, 255, 0.94);
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-card-subtle: #F8FAFC;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  /* Borders */
  --border-subtle: #E2E8F0;
  --border-card: #E2E8F0;
  --border-hover: #CBD5E1;
  --border-focus: #0284C7;
  --border-gold: rgba(217, 119, 6, 0.25);
  
  /* Text Colors */
  --text-pure: #0F172A;
  --text-main: #1E293B;
  --text-soft: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  --text-inverse: #FFFFFF;
  
  /* Brand & Accents */
  --ice-blue: #0284C7;
  --ice-cyan: #0EA5E9;
  --ice-sky: #38BDF8;
  --ice-light: #E0F2FE;
  --ice-superlight: #F0F9FF;
  
  --gold-warm: #D97706;
  --gold-amber: #B45309;
  --gold-light: #FEF3C7;
  
  --coral-accent: #E11D48;
  --coral-light: #FFE4E6;
  
  --success-green: #059669;
  --success-light: #D1FAE5;
  
  --purple-accent: #7C3AED;
  --purple-light: #EDE9FE;
  
  --amap-blue: #0284C7;
  --google-red: #DC2626;

  /* Typography */
  --font-display: 'Bai Jamjuree', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-chinese: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  /* Dimensions & Radius */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.25);
  --shadow-amber-glow: 0 0 20px rgba(217, 119, 6, 0.25);
}

/* --------------------------------------------------------------------------
   Dark Mode Overrides [data-theme="dark"]
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --theme-mode: "dark";
  
  --bg-page: #0B132B;
  --bg-page-gradient: linear-gradient(180deg, #070D1F 0%, #0B132B 240px, #0E1738 100%);
  --bg-header: rgba(11, 19, 43, 0.94);
  --bg-card: #141E38;
  --bg-card-hover: #1A2748;
  --bg-card-subtle: #0F172E;
  --bg-glass: rgba(20, 30, 56, 0.85);
  
  --border-subtle: rgba(56, 189, 248, 0.16);
  --border-card: rgba(56, 189, 248, 0.22);
  --border-hover: rgba(56, 189, 248, 0.4);
  --border-focus: #38BDF8;
  --border-gold: rgba(251, 191, 36, 0.35);
  
  --text-pure: #FFFFFF;
  --text-main: #F1F5F9;
  --text-soft: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-inverse: #0F172A;
  
  --ice-blue: #38BDF8;
  --ice-cyan: #22D3EE;
  --ice-sky: #67E8F9;
  --ice-light: rgba(56, 189, 248, 0.15);
  --ice-superlight: rgba(56, 189, 248, 0.08);
  
  --gold-warm: #FBBF24;
  --gold-amber: #F59E0B;
  --gold-light: rgba(251, 191, 36, 0.15);
  
  --coral-accent: #FB7185;
  --coral-light: rgba(244, 63, 94, 0.18);
  
  --success-green: #34D399;
  --success-light: rgba(16, 185, 129, 0.18);
  
  --purple-accent: #C084FC;
  --purple-light: rgba(192, 132, 252, 0.18);

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   2. Global Reset & Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  background-image: var(--bg-page-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-pure);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 0.5rem;
}

a {
  color: var(--ice-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--ice-cyan);
}

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background: var(--ice-light);
  color: var(--ice-blue);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 0.88em;
  font-weight: 600;
}

button {
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  transition: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 16px 8px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 2rem;
  line-height: 1;
  display: inline-block;
  animation: floatIcon 3.5s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-pure) 0%, var(--ice-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1px;
}

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

.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: var(--shadow-xs);
}
.btn-theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-pure);
  transform: translateY(-1px);
}

.btn-action-glow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--ice-blue) 0%, var(--ice-cyan) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.btn-action-glow:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Quick Bar */
.quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  flex-wrap: wrap;
}

.countdown-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ice-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: 0.82rem;
  color: var(--ice-blue);
  font-weight: 600;
}

.countdown-values {
  font-family: var(--font-heading);
  color: var(--text-pure);
  font-weight: 700;
}

.quick-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-soft);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}
.pill:hover {
  border-color: var(--border-hover);
  color: var(--text-pure);
}

.pill.copy-btn {
  cursor: pointer;
}
.pill.copy-btn:hover {
  background: var(--ice-light);
  border-color: var(--ice-blue);
  color: var(--ice-blue);
}

.pill.budget-pill {
  background: var(--success-light);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--success-green);
  font-weight: 600;
  cursor: pointer;
}
.pill.budget-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.pill.quick-drawer-pill {
  background: var(--gold-light);
  border-color: rgba(217, 119, 6, 0.3);
  color: var(--gold-warm);
  font-weight: 600;
  cursor: pointer;
}
.pill.quick-drawer-pill:hover {
  transform: translateY(-1px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success-green);
  box-shadow: 0 0 8px var(--success-green);
}

/* Guide Banner */
.guide-banner {
  margin-top: 8px;
  padding: 8px 14px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-badge {
  background: var(--gold-light);
  color: var(--gold-warm);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.badge-inline {
  background: var(--ice-light);
  color: var(--ice-blue);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

/* Desktop Tabs */
.desktop-tabs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  overflow-x: auto;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.tab-btn:hover {
  color: var(--text-pure);
  background: var(--bg-card-subtle);
}
.tab-btn.active {
  color: var(--ice-blue);
  background: var(--ice-light);
  box-shadow: var(--shadow-xs);
}

/* --------------------------------------------------------------------------
   4. Main Content Container
   -------------------------------------------------------------------------- */
.main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 16px 100px;
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-heading {
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}
.section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Live Activity Tracker Bar (Feature 4)
   -------------------------------------------------------------------------- */
.live-now-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .live-now-bar {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.live-now-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  background: #10B981;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.live-now-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

[data-theme="dark"] .live-now-badge {
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.4);
}

.live-now-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-next-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 6px;
  border-left: 1px solid var(--border-subtle);
}

.live-now-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-live-Jump {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #0284C7 0%, #0D9488 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-live-Jump:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
}

.btn-live-step {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 9px;
  background: var(--bg-card-subtle);
  color: var(--text-soft);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-live-step:hover {
  background: var(--ice-light);
  color: var(--ice-blue);
  border-color: rgba(2, 132, 199, 0.3);
}

.btn-live-sync {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 9px;
  background: var(--bg-card-subtle);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-live-sync:hover {
  color: var(--text-pure);
  border-color: var(--text-muted);
}

/* Slot Card Current & Next Highlights */
.slot-card.is-current-slot {
  border: 2px solid #0284C7 !important;
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.04) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), var(--shadow-md) !important;
}

[data-theme="dark"] .slot-card.is-current-slot {
  border: 2px solid #38BDF8 !important;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), var(--shadow-md) !important;
}

.slot-card.is-next-slot {
  border: 2px dashed #D97706 !important;
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.03) 0%, var(--bg-card) 100%);
}

[data-theme="dark"] .slot-card.is-next-slot {
  border: 2px dashed #F59E0B !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, var(--bg-card) 100%);
}

/* Ribbons */
.slot-live-ribbon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.slot-live-ribbon.current-ribbon {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  color: #0284C7;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

[data-theme="dark"] .slot-live-ribbon.current-ribbon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.4);
}

.slot-live-ribbon.next-ribbon {
  background: rgba(217, 119, 6, 0.12);
  color: #B45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

[data-theme="dark"] .slot-live-ribbon.next-ribbon {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.35);
}

/* Button to set current slot manually */
.btn-set-current-slot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--bg-card-subtle);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-set-current-slot:hover {
  background: var(--ice-light);
  color: var(--ice-blue);
  border-color: rgba(2, 132, 199, 0.3);
}

.btn-set-current-slot.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.3);
}

/* Jump Flash Keyframe */
.slot-jump-flash {
  animation: slotJumpFlash 1.8s ease-out;
}

@keyframes slotJumpFlash {
  0% {
    background-color: rgba(2, 132, 199, 0.35);
    box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.3);
    transform: scale(1.015);
  }
  50% {
    background-color: rgba(2, 132, 199, 0.18);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
    transform: scale(1);
  }
}

.day-switcher-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  margin: -16px -16px 16px;
  padding: 10px 16px;
  box-shadow: var(--shadow-xs);
}

.day-switcher-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.day-switcher {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.day-switcher::-webkit-scrollbar {
  display: none;
}

.day-pill {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}
.day-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-pure);
  border-color: var(--border-hover);
}
.day-pill.active {
  background: var(--ice-blue);
  color: #FFFFFF;
  border-color: var(--ice-blue);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.btn-view-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.btn-view-mode:hover {
  background: var(--ice-light);
  color: var(--ice-blue);
  border-color: var(--ice-blue);
}

.itinerary-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.search-box input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
  outline: none;
  transition: all 0.2s ease;
}
.search-box input:focus {
  border-color: var(--ice-blue);
  box-shadow: 0 0 0 3px var(--ice-light);
}

.category-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}
.filter-chip:hover {
  color: var(--text-pure);
}
.filter-chip.active {
  background: var(--ice-light);
  color: var(--ice-blue);
  border-color: var(--ice-blue);
}

/* --------------------------------------------------------------------------
   6. Day Card: Master Unified Layout (No Tab Hopping!)
   -------------------------------------------------------------------------- */
.itinerary-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.day-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Day Banner */
.day-banner-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.day-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.day-card:hover .day-banner-img {
  transform: scale(1.02);
}
.day-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.78) 100%);
}
.day-banner-meta {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.day-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.day-num-badge {
  background: var(--ice-blue);
  color: #FFFFFF;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.day-city-badge {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}
.day-weather-badge {
  background: rgba(14, 165, 233, 0.3);
  backdrop-filter: blur(8px);
  color: #E0F2FE;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}
.day-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.day-summary-text {
  font-size: 0.85rem;
  color: #E2E8F0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Day Inner Content */
.day-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* A. Tonight's Hotel Banner Card */
.day-hotel-card {
  background: var(--ice-superlight);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-left: 5px solid var(--ice-blue);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}
.hotel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.hotel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ice-blue);
  text-transform: uppercase;
}
.hotel-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--success-green);
  font-size: 0.95rem;
}
.hotel-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 2px;
}
.hotel-zh {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-chinese);
  margin-bottom: 6px;
}
.hotel-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin: 10px 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.hotel-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hotel-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.btn-hotel-taxi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--ice-blue);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}
.btn-hotel-taxi:hover {
  background: var(--ice-cyan);
  transform: translateY(-1px);
}

/* B. Pro Tricks Box */
.day-tricks-card {
  background: var(--gold-light);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-left: 5px solid var(--gold-warm);
  border-radius: var(--radius-md);
  padding: 16px;
}
.tricks-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.tricks-header h4 {
  font-size: 0.96rem;
  color: var(--gold-amber);
  font-weight: 700;
}
.tricks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trick-item {
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.5;
  padding-left: 4px;
}

/* C. Timeline Slots */
.day-slots-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}
.slot-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.slot-layout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.slot-thumb-wrap {
  width: 100px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
}
.slot-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.slot-card:hover .slot-thumb-img {
  transform: scale(1.05);
}

.slot-main {
  flex: 1;
  min-width: 0;
}

.slot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.slot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-id-badge {
  background: var(--ice-light);
  color: var(--ice-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.slot-id-badge:hover {
  background: var(--ice-blue);
  color: #FFFFFF;
}

.slot-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  color: #FFFFFF;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28);
}

[data-theme="dark"] .slot-time {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.slot-category-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}
.tag-flight { background: var(--purple-light); color: var(--purple-accent); }
.tag-hotel { background: var(--ice-light); color: var(--ice-blue); }
.tag-attraction { background: var(--coral-light); color: var(--coral-accent); }
.tag-food { background: var(--gold-light); color: var(--gold-warm); }
.tag-transit { background: var(--success-light); color: var(--success-green); }

.btn-slot-request {
  font-size: 0.74rem;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}
.btn-slot-request:hover {
  background: var(--ice-light);
  color: var(--ice-blue);
  border-color: var(--ice-blue);
}

.slot-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 4px;
}

.slot-zh-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.slot-zh-text {
  font-family: var(--font-chinese);
  font-size: 0.84rem;
  color: var(--text-soft);
  background: var(--bg-card-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}
.btn-slot-driver-taxi,
.btn-point-order {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--ice-light);
  color: var(--ice-blue);
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-slot-driver-taxi:hover,
.btn-point-order:hover {
  background: var(--ice-blue);
  color: #FFFFFF;
}

.slot-desc {
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 8px;
}

.slot-tips {
  background: var(--gold-light);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: 0.8rem;
  color: var(--gold-amber);
  margin-bottom: 8px;
}

.slot-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-map-amap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--amap-blue);
}
.btn-map-amap:hover {
  background: var(--ice-light);
  border-color: var(--ice-blue);
}

.btn-map-google {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--google-red);
}
.btn-map-google:hover {
  background: #FEE2E2;
  border-color: var(--google-red);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  color: var(--text-soft);
}
.link-btn:hover {
  color: var(--ice-blue);
  border-color: var(--ice-blue);
}

/* D. Daily Recommended Food Strip */
.day-food-strip {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}
.food-strip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.food-strip-header h4 {
  font-size: 0.96rem;
  color: var(--text-pure);
}
.food-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.food-mini-card {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: var(--shadow-xs);
}
.food-mini-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}
.food-mini-info {
  flex: 1;
  min-width: 0;
}
.food-mini-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 2px;
}
.food-mini-zh {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-chinese);
  margin-bottom: 4px;
}
.food-mini-dish {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.4;
  margin-bottom: 4px;
}
.food-mini-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}
.food-mini-price {
  color: var(--gold-warm);
  font-weight: 700;
}
.btn-point-order {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  background: var(--gold-light);
  color: var(--gold-warm);
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Drawers & Floating Corner Speed-Dial
   -------------------------------------------------------------------------- */
/* Floating Speed Dial */
.fab-container {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 950;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
}

.fab-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--ice-blue) 0%, var(--ice-cyan) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fab-main-btn:hover {
  transform: scale(1.05);
}
.fab-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}
.fab-container.open .fab-icon {
  transform: rotate(45deg);
}

.fab-menu-items {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 4px;
}
.fab-container.open .fab-menu-items {
  display: flex;
  animation: slideUpFade 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fab-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-pure);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.fab-item-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--ice-blue);
  color: var(--ice-blue);
  transform: translateX(-4px);
}

/* Slide-Over Drawers */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.slide-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 540px;
  max-width: 92vw;
  background: var(--bg-card);
  border-left: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  z-index: 1010;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.slide-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drawer-title-wrap h3 {
  font-size: 1.18rem;
  color: var(--text-pure);
}
.drawer-title-wrap p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
.btn-drawer-close {
  padding: 6px 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-soft);
}
.btn-drawer-close:hover {
  background: var(--coral-light);
  color: var(--coral-accent);
  border-color: var(--coral-accent);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* --------------------------------------------------------------------------
   8. Tab 2: Bookings & Budget Styling
   -------------------------------------------------------------------------- */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.budget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-xs);
}
.budget-card.paid { border-left: 4px solid var(--success-green); }
.budget-card.pending { border-left: 4px solid var(--gold-warm); }
.budget-card.future { border-left: 4px solid var(--purple-accent); }
.budget-card.total {
  border-left: 4px solid var(--ice-blue);
  background: var(--ice-superlight);
}

.budget-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}
.budget-card.paid .budget-tag { color: var(--success-green); }
.budget-card.pending .budget-tag { color: var(--gold-warm); }
.budget-card.future .budget-tag { color: var(--purple-accent); }
.budget-card.total .budget-tag { color: var(--ice-blue); }

.budget-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}
.budget-amount {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-pure);
}
.budget-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Deadlines Card & Table */
.deadlines-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}
.card-header h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.table-responsive {
  overflow-x: auto;
}
.deadlines-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.deadlines-table th, .deadlines-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}
.deadlines-table th {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-weight: 600;
}
.deadlines-table tr:hover td {
  background: var(--bg-card-hover);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  font-weight: 600;
}
.badge.success { background: var(--success-light); color: var(--success-green); }
.badge.warning { background: var(--gold-light); color: var(--gold-warm); }
.badge.purple { background: var(--purple-light); color: var(--purple-accent); }
.badge.info { background: var(--ice-light); color: var(--ice-blue); }

/* Booking Item Card */
.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.booking-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}
.booking-banner-wrap {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.booking-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.booking-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.booking-code-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.booking-id-tag {
  background: var(--ice-light);
  color: var(--ice-blue);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.74rem;
}
.booking-title {
  font-size: 1.05rem;
  color: var(--text-pure);
}
.booking-price {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--success-green);
}
.booking-zh {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-chinese);
  margin-bottom: 8px;
}
.booking-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 10px 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.booking-detail-row {
  background: var(--bg-card-subtle);
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}
.booking-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   9. Tab 3: Driver Cards Grid & Modal
   -------------------------------------------------------------------------- */
.driver-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.driver-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.driver-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.driver-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.driver-cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: var(--ice-light);
  color: var(--ice-blue);
}
.driver-card-title {
  font-size: 0.98rem;
  color: var(--text-pure);
  margin-bottom: 6px;
}
.driver-card-zh {
  font-size: 1.15rem;
  font-family: var(--font-chinese);
  color: var(--text-pure);
  font-weight: 700;
  background: var(--bg-card-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-card);
  margin-bottom: 8px;
}
.driver-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.btn-open-driver-modal {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--ice-blue);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
}
.btn-open-driver-modal:hover {
  background: var(--ice-cyan);
}

/* Fullscreen Chinese Driver Modal */
.fullscreen-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fullscreen-modal.active {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
}
.driver-modal-content {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: #0B132B;
  color: #FFFFFF;
  border: 2px solid var(--ice-blue);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  text-align: center;
}
.driver-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.modal-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ice-sky);
  letter-spacing: 0.05em;
}
.btn-modal-close {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}
.btn-modal-close:hover {
  background: var(--coral-accent);
}
.driver-zh-giant {
  font-family: var(--font-chinese);
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  background: rgba(56, 189, 248, 0.12);
  padding: 20px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.35);
  margin-bottom: 14px;
  user-select: all;
}
.driver-pinyin-large {
  font-size: 1.15rem;
  color: var(--ice-sky);
  margin-bottom: 4px;
}
.driver-thai-large {
  font-size: 1.15rem;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 4px;
}
.driver-sub-large {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.btn-action-copy-giant {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--ice-blue);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}
.btn-action-copy-giant:hover {
  background: var(--ice-cyan);
}
.modal-hint {
  font-size: 0.78rem;
  color: #94A3B8;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   10. Change Request Builder Modal
   -------------------------------------------------------------------------- */
.change-modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.change-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.change-modal-title-wrap h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.change-modal-title-wrap p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.form-select, .form-textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.86rem;
  outline: none;
}
.form-select:focus, .form-textarea:focus {
  border-color: var(--ice-blue);
}
.slot-preview-box {
  background: var(--bg-card-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.generated-prompt-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text-soft);
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* --------------------------------------------------------------------------
   11. Restaurant & Food Cards
   -------------------------------------------------------------------------- */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.restaurant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}
.rest-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.rest-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Checklist Styling */
.checklist-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}
.checklist-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.checklist-group h4 {
  font-size: 0.95rem;
  color: var(--ice-blue);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4px;
}
.chk-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-soft);
  margin-bottom: 6px;
  cursor: pointer;
}

/* Toast */
.toast-popup,
.toast-notice {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.94);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2500;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.toast-popup.show,
.toast-notice.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   12. Mobile Bottom Navigation (< 768px)
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 6px 8px calc(6px + var(--safe-bottom));
  z-index: 900;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.bottom-nav-item .nav-icon {
  font-size: 1.15rem;
}
.bottom-nav-item.active {
  color: var(--ice-blue);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .desktop-tabs {
    display: none;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .main-container {
    padding-bottom: 120px;
  }
  .fab-container {
    bottom: 74px;
    right: 14px;
  }
  .day-switcher-sticky-wrap {
    top: 0;
    margin: -16px -16px 14px;
    border-radius: 0;
  }
  .slot-layout {
    flex-direction: column;
  }
  .slot-thumb-wrap {
    width: 100%;
    height: 120px;
  }
  .slide-drawer {
    width: 100%;
    max-width: 100vw;
  }
  .live-now-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 10px;
  }
  .live-now-info {
    flex-wrap: wrap;
    gap: 6px;
  }
  .live-next-hint {
    display: none;
  }
  .live-now-actions {
    justify-content: space-between;
    width: 100%;
  }
  .btn-live-Jump {
    flex: 1;
    justify-content: center;
  }
}

/* Additional UI & Utility Classes (Bug 6 Fixes) */
.preview-slot-badge {
  display: inline-block;
  background: var(--ice-blue);
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.preview-slot-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prompt-box {
  background: var(--bg-card-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.82rem;
  color: var(--text-soft);
  max-height: 140px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}
.change-modal-footer {
  margin-top: 16px;
}
.btn-primary-glow {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--ice-blue) 0%, var(--ice-cyan) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.btn-primary-glow:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.improvements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.improvement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}
.improvement-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.improvement-icon {
  font-size: 1.3rem;
}
.improvement-title {
  font-size: 0.98rem;
  color: var(--text-pure);
}
.improvement-points {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.improvement-points li {
  margin-bottom: 4px;
}
.btn-subtle {
  padding: 4px 10px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  color: var(--text-muted);
}
.btn-subtle:hover {
  background: var(--coral-light);
  color: var(--coral-accent);
  border-color: var(--coral-accent);
}
.driver-controls {
  margin-bottom: 16px;
}
.btn-map-apple {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-pure);
}
.btn-map-apple:hover {
  background: var(--ice-light);
  border-color: var(--ice-blue);
  color: var(--ice-blue);
}
.btn-map-baidu {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ice-blue);
}
.btn-map-baidu:hover {
  background: var(--ice-light);
  border-color: var(--ice-blue);
}
