/* PaxBus+ brand layer: keeps the content engine intact while defining the passenger-facing shell. */
:root {
  --bg: #f4f9fd;
  --bg-2: #e6f4ff;
  --surface: #ffffff;
  --surface-2: #f7fbff;
  --surface-3: #dceeff;
  --line: rgba(11, 42, 107, .12);
  --line-2: rgba(11, 42, 107, .24);
  --ink: #1e293b;
  --ink-2: #64748b;
  --ink-3: #94a3b8;
  --accent: #0d6efd;
  --accent-2: #00c2ff;
  --accent-ink: #ffffff;
  --green: #0f9f72;
  --cyan: #00c2ff;
  --red: #dc3545;
  --violet: #0b2a6b;
  --accent-grad: linear-gradient(110deg, #0d6efd, #00c2ff);
  --shadow-sm: 0 2px 10px rgba(11, 42, 107, .08);
  --shadow-md: 0 14px 34px rgba(11, 42, 107, .13);
  --shadow-lg: 0 24px 60px rgba(11, 42, 107, .18);
  --glow-acc: 0 8px 22px rgba(13, 110, 253, .22);
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --font-display: 'Plus Jakarta Sans', 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

:root[data-theme="light"] { --bg: #f4f9fd; --bg-2: #e6f4ff; --surface: #fff; --surface-2: #f7fbff; --surface-3: #dceeff; --ink: #1e293b; --ink-2: #64748b; --accent: #0d6efd; --accent-2: #00c2ff; --accent-ink: #fff; }

body { background: var(--bg); }
.tech-frame { background: var(--bg); }
.tech-frame::before { background: radial-gradient(900px 500px at 18% -12%, rgba(0,194,255,.13), transparent 62%), radial-gradient(700px 420px at 96% 0%, rgba(13,110,253,.08), transparent 62%); }

.tech-top-bar { height: clamp(56px, 3.4rem + 0.7vw, 68px); padding-inline: max(clamp(14px, 3vw, 24px), env(safe-area-inset-left)) max(clamp(14px, 3vw, 24px), env(safe-area-inset-right)); background: rgba(255,255,255,.9); border-bottom-color: var(--line); }
.tech-window-controls { display: none; }
.tech-brand { gap: 9px; }
.tech-brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-grad); box-shadow: var(--glow-acc); }
.tech-brand-mark svg circle { fill: transparent !important; }
.tech-brand-mark svg path { fill: #fff; }
.tech-brand-name { color: var(--violet); font-size: 18px; font-weight: 800; }
.tech-brand-name em { color: var(--accent); }
.tech-brand-sep { color: var(--line-2); }
.tech-brand-tag { color: var(--ink-2); letter-spacing: .08em; }
.tech-sys { color: var(--ink-2); }
.header-btn { background: var(--surface-2); color: var(--violet); border-color: var(--line); }
.header-btn:hover { background: var(--bg-2); border-color: var(--accent); }
.header-actions #account-button { background: var(--violet); color: #fff; border-radius: var(--r-sm); }
.header-actions #account-button:hover { background: var(--accent); color: #fff; }

.app-header { padding: 10px max(24px, env(safe-area-inset-left)); background: var(--surface); border-bottom-color: var(--line); }
.side-links { max-width: var(--max-w); margin: 0 auto; gap: 6px; }
.side-link { background: transparent; border-color: transparent; color: var(--ink-2); border-radius: var(--r-sm); }
.side-link:hover { background: var(--bg-2); color: var(--violet); }
.side-link.active { background: var(--violet); border-color: var(--violet); box-shadow: none; color: #fff; }

.app-main { max-width: 1280px; padding-top: 28px; }
.welcome-banner { padding: clamp(28px, 5vw, 58px); border-radius: var(--r-lg); background: linear-gradient(120deg, #0b2a6b 0%, #0d6efd 72%, #00c2ff 100%); border: 0; box-shadow: var(--shadow-md); }
.welcome-copy h1, .welcome-copy > p:not(.hero-note), .welcome-copy .hero-note { color: #fff; }
.welcome-copy h1 em { color: #bdefff; background: none; -webkit-text-fill-color: initial; }
.hero-ticket { color: #bdefff; }
.hero-ticket i { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.hero-primary { background: #fff; color: var(--violet); box-shadow: none; border-radius: var(--r-sm); }
.hero-primary:hover { background: #e6f4ff; box-shadow: none; }
.hero-secondary { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.42); color: #fff; border-radius: var(--r-sm); }
.hero-secondary:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }
.stat { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); border-radius: var(--r-sm); }
.stat b, .stat span { color: #fff; }
.departure-art { min-height: 230px; border-radius: var(--r-lg); background: linear-gradient(145deg, #e6f4ff, #fff); border-color: rgba(255,255,255,.4); }
.departure-art::after { content: "PAXBUS+"; position: absolute; right: -10px; top: 22px; color: rgba(13,110,253,.12); font-size: clamp(3rem, 9vw, 6rem); font-weight: 800; letter-spacing: -.08em; transform: rotate(-8deg); }
.departure-art .eyebrow { color: var(--accent); }
.departure-art strong { color: var(--violet); position: relative; z-index: 1; }
.departure-art small { color: var(--ink-2); position: relative; z-index: 1; }

.home-discovery, .featured-card, .library-tools, .service-section { border-radius: var(--r-lg); border-color: var(--line); box-shadow: var(--shadow-sm); }
.home-discovery { background: var(--surface); }
.discovery-heading h2, .section-title { color: var(--violet); }
.mood-bar button { border-radius: var(--r-sm); }
.mood-bar button:hover { background: var(--bg-2); border-color: var(--accent); color: var(--violet); }
.experience-card { border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.experience-card:hover { box-shadow: var(--shadow-md); }
.exp-play { background: linear-gradient(135deg, #0b2a6b, #0d6efd); }
.exp-watch { background: linear-gradient(135deg, #087ea4, #00c2ff); }
.exp-listen { background: linear-gradient(135deg, #146c52, #0f9f72); }
.exp-read { background: linear-gradient(135deg, #39465e, #64748b); }

.bottom-nav { background: rgba(255,255,255,.96); border-top-color: var(--line); }
.bnav-btn { color: var(--ink-3); }
.bnav-btn.active { color: var(--accent); }

@media (max-width: 599px) {
  .tech-top-bar { height: 60px; padding-inline: 14px; }
  .tech-brand-tag, .tech-brand-sep, .tech-sys, #sound-toggle { display: none; }
  .tech-brand-name { font-size: 16px; }
  .header-actions { gap: 5px; }
  .header-actions #account-button { padding-inline: 11px; }
  .app-header { padding: 8px 12px; }
  .side-links { margin-inline: 0; }
  .app-main { padding-top: 16px; }
  .welcome-banner { padding: 25px 20px; }
  .welcome-copy h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-actions > * { flex: 1 1 100%; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-width: 0; align-items: flex-start; }
  .stat b { font-size: 15px; }
  .departure-art { min-height: 170px; }
}

@media (min-width: 1100px) {
  .tech-frame {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  }
  .tech-top-bar { grid-column: 1 / -1; grid-row: 1; width: auto; }
  .tech-frame .app {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-width: 0;
  }
  .app-header { grid-column: 1; grid-row: 1; width: auto; height: auto; min-width: 0; }
  .app-main { grid-column: 2; grid-row: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .departure-art::after { transform: none; }
}