﻿/* APlusZ bundle.css */

/* ==================== tokens.css ==================== */
/* ============================================================
   APlusZ � Design Tokens (Step 4)
   File: frontend/assets/tokens.css
   Save: D:\Destop\AplusZ\frontend\assets\tokens.css
   ============================================================ */

/* ---------- ROOT (shared across all themes) ---------- */
:root {
  /* Typography */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale (mobile-first) */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-hero: 3rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* Radius (M3 Expressive � varied corners) */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Motion (M3 spring + iOS ease) */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-ios: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;

  /* Glass (Liquid Glass effect) */
  --glass-blur: 20px;
  --glass-saturate: 180%;

  /* Z-index */
  --z-base: 1;
  --z-overlay: 10;
  --z-modal: 100;
  --z-toast: 1000;
}

/* ============================================================
   ?? THEME 1 � DARK GLASS (iOS Liquid Glass style, default)
   ============================================================ */
:root,
[data-theme="dark-glass"] {
  --bg: #0f172a;
  --bg-elevated: rgba(30, 41, 59, 0.7);
  --bg-glass: rgba(15, 23, 42, 0.6);
  --surface: #1e293b;
  --border: #334155;

  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent: #facc15;
  --accent-hover: #fde047;
  --link: #60a5fa;
  --success: #4ade80;
  --warning: #fb923c;
  --danger: #f87171;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
  --glow: 0 0 24px rgba(250, 204, 21, 0.15);

  color-scheme: dark;
}

/* ============================================================
   ?? THEME 2 � LIGHT EXPRESSIVE (Android M3 Expressive style)
   ============================================================ */
[data-theme="light-expressive"] {
  --bg: #fafafa;
  --bg-elevated: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(250, 250, 250, 0.7);
  --surface: #ffffff;
  --border: #e5e7eb;

  --text: #1a1a1a;
  --text-muted: #4b5563;
  --text-dim: #9ca3af;

  --accent: #0066cc;
  --accent-hover: #0052a3;
  --link: #2563eb;
  --success: #16a34a;
  --warning: #ea580c;
  --danger: #dc2626;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --glow: 0 0 24px rgba(0, 102, 204, 0.15);

  color-scheme: light;
}

/* ============================================================
   ?? THEME 3 � SEPIA READER (eBook warm, daytime)
   ============================================================ */
[data-theme="sepia-reader"] {
  --bg: #f4ecd8;
  --bg-elevated: rgba(248, 241, 220, 0.9);
  --bg-glass: rgba(244, 236, 216, 0.75);
  --surface: #fbf5e3;
  --border: #d6c9a8;

  --text: #3a2f1f;
  --text-muted: #6b5840;
  --text-dim: #8a7a5e;

  --accent: #8b6f47;
  --accent-hover: #6f5837;
  --link: #5a7a8c;
  --success: #5c7a3f;
  --warning: #b8702a;
  --danger: #a83232;

  --shadow-sm: 0 1px 2px rgba(90, 70, 40, 0.08);
  --shadow-md: 0 4px 12px rgba(90, 70, 40, 0.12);
  --shadow-lg: 0 12px 32px rgba(90, 70, 40, 0.18);
  --glow: 0 0 24px rgba(139, 111, 71, 0.2);

  color-scheme: light;
}

/* ============================================================
   ?? THEME 4 � SEPIA NIGHT (warm dark, night reading)
   ============================================================ */
[data-theme="sepia-night"] {
  --bg: #1f1a14;
  --bg-elevated: rgba(40, 33, 25, 0.8);
  --bg-glass: rgba(31, 26, 20, 0.7);
  --surface: #2a231a;
  --border: #44382a;

  --text: #e8dcc4;
  --text-muted: #b8a888;
  --text-dim: #8a7a5e;

  --accent: #d4a574;
  --accent-hover: #e6b88a;
  --link: #a8c4d4;
  --success: #94b573;
  --warning: #e89a5c;
  --danger: #d97070;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.6);
  --glow: 0 0 24px rgba(212, 165, 116, 0.2);

  color-scheme: dark;
}

/* ============================================================
   AUTO-DETECT (OS preference, before JS loads)
   ============================================================ */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #fafafa;
    --bg-elevated: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(250, 250, 250, 0.7);
    --surface: #ffffff;
    --border: #e5e7eb;
    --text: #1a1a1a;
    --text-muted: #4b5563;
    --text-dim: #9ca3af;
    --accent: #0066cc;
    --accent-hover: #0052a3;
    --link: #2563eb;
    --success: #16a34a;
    --warning: #ea580c;
    --danger: #dc2626;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --glow: 0 0 24px rgba(0, 102, 204, 0.15);
    color-scheme: light;
  }
}

/* ============================================================
   ACCESSIBILITY (reduced motion)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}

/* ==================== app.css ==================== */
/* ============================================================
   APlusZ � App Styles (mobile + desktop responsive)
   File: frontend/assets/app.css
   Save: D:\Destop\AplusZ\frontend\assets\app.css
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: var(--sp-2); text-decoration: none; color: inherit; cursor: pointer; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-weight: 800; font-size: 0.8rem; letter-spacing: -0.02em;
}
.brand-name { font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.01em; }
.topnav { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

/* Topbar must never let its two halves collide. The brand (left) may
   shrink/ellipsize; the nav (right) keeps its size. Guarantees spacing
   between the badge and the icons at EVERY width, not just =360px. */
.brand { min-width: 0; flex-shrink: 1; overflow: hidden; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.icon-btn {
  width: 36px; height: 36px;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1;
  color: var(--text-muted);
  background: none;
  transition: color var(--dur-base) var(--ease-spring), transform var(--dur-base) var(--ease-spring);
}
.icon-btn:hover { background: none; color: var(--text); transform: scale(1.08); }

/* Tier badge = icon + name PAIR. Fully self-contained so it never
   inherits .icon-btn's 24px font (huge text) or hover circle. */
.tier-badge {
  width: auto !important;
  height: auto;
  min-width: 0;
  gap: 5px;
  padding: 0 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
}
.tier-badge:hover { transform: none !important; background: none !important; color: var(--text); }
.tier-badge .tb-ic { font-size: 1rem !important; line-height: 1; }
.tier-badge .tb-nm { font-size: var(--fs-xs) !important; line-height: 1; letter-spacing: -0.01em; }

/* ---------- HERO (mobile default) ---------- */
.hero {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-3) var(--sp-8);
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 320px;
  background: radial-gradient(ellipse at center, var(--accent) 0%, transparent 60%);
  opacity: 0.12;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}
.hero-title {
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: var(--sp-3);
}
.hero-title .accent {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--text-muted);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-8);
}

/* ---------- SEARCH CARD (mobile stacked) ---------- */
.search-card {
  position: relative;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  box-shadow: var(--shadow-lg), var(--glow);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  text-align: left;
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  transition: border-color var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) var(--ease-spring);
}
.field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}
.field label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}
.field input {
  background: transparent;
  border: none; outline: none;
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 500;
  padding: 0; width: 100%;
}
.field input::placeholder { color: var(--text-dim); }

.swap-btn {
  /* Mobile: sits in normal flow ON the seam between the two stacked
     fields (negative margins tuck it into the gaps so it floats over
     the divider, horizontally centered � never covers field text). */
  position: static;
  align-self: center;
  margin: calc(-1 * var(--sp-2) - 4px) 0;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--bg);
  font-size: 1.2rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-spring);
  z-index: 2;
}
.swap-btn:hover { transform: rotate(180deg); }

.primary-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--bg);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) var(--ease-spring);
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.primary-btn:active { transform: translateY(0); }

/* ---------- RESULT ---------- */
.result {
  margin-top: var(--sp-6);
  text-align: left;
  animation: fadeUp var(--dur-slow) var(--ease-spring);
}
.result.hidden { display: none; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- TRUST ---------- */
.trust {
  margin-top: var(--sp-8);
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

/* ---------- FOOTER ---------- */
/* MOBILE: explicit 2 rows.
   Row 1 = "How it works" (centered, full width).
   Row 2 = Legal + � (centered, side by side). */
.footer {
  text-align: center;
  padding: clamp(var(--sp-6), 6vw, var(--sp-12)) var(--sp-3) 80px;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-1) var(--sp-3);
}
/* the injected separators add nothing in the 2-row layout */
.footer .footer-sep { display: none; }

/* "How it works" ? own full-width top row */
.footer .hiw-link {
  order: -1;
  flex: 0 0 100%;
  width: 100%;
  text-align: center;
  margin-bottom: var(--sp-2);
}
/* Legal + � ? share the bottom row, centered */
.footer > a[href*="legal"],
.footer > span { order: 0; }

/* ============================================================
   TABLET (=720px)
   ============================================================ */
@media (min-width: 720px) {
  .topbar { padding: var(--sp-4) var(--sp-8); }

  /* Desktop footer: one clean centered row */
  .footer { flex-wrap: nowrap; gap: var(--sp-4); }
  .footer .hiw-link {
    order: 0;
    flex: 0 0 auto;
    width: auto;
    margin-bottom: 0;
  }

  .hero {
    max-width: 1100px;
    padding: var(--sp-16) var(--sp-6) var(--sp-12);
  }
  .hero-title {
    font-size: clamp(4rem, 8vw, 6rem);
    letter-spacing: -0.05em;
  }
  .hero-sub {
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-12);
  }
  .hero-glow {
    height: 500px;
    opacity: 0.18;
  }

  /* Horizontal pill search bar */
  .search-card {
    flex-direction: row;
    align-items: stretch;
    gap: var(--sp-2);
    padding: var(--sp-3);
    border-radius: var(--r-pill);
    max-width: 880px;
    margin: 0 auto;
  }
  .search-card .field {
    flex: 1;
    border-radius: var(--r-pill);
    padding: var(--sp-3) var(--sp-6);
  }
  .swap-btn {
    position: static;
    transform: rotate(90deg);
    align-self: center;
    flex-shrink: 0;
    margin: 0;
  }
  .swap-btn:hover { transform: rotate(270deg); }
  .primary-btn {
    border-radius: var(--r-pill);
    padding: 0 var(--sp-8);
    white-space: nowrap;
    flex-shrink: 0;
    font-size: var(--fs-lg);
  }

  .result {
    margin-top: var(--sp-8);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .trust {
    gap: var(--sp-8);
    font-size: var(--fs-base);
    margin-top: var(--sp-12);
  }
}

/* ============================================================
   DESKTOP (=1100px)
   ============================================================ */
@media (min-width: 1100px) {
  .hero {
    max-width: 1280px;
    padding: 6rem var(--sp-12) var(--sp-16);
  }
  .hero-title {
    font-size: 7rem;
    line-height: 1;
  }
  .hero-sub {
    font-size: 1.6rem;
    margin-bottom: var(--sp-16);
  }
  .search-card { max-width: 960px; }
  .result { max-width: 800px; }
}

/* ============================================================
   ULTRA-WIDE (=1600px)
   ============================================================ */
@media (min-width: 1600px) {
  .hero { max-width: 1440px; }
  .hero-title { font-size: 8rem; }
}

/* ============================================================
   TRUST HERO LINE � the precious "Free forever" promise
   ============================================================ */
.trust-hero {
  display: inline-block;
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-base);
}
.trust-hero strong {
  color: var(--text);
  font-weight: 700;
}

@media (min-width: 720px) {
  .trust-hero { font-size: var(--fs-lg); }
}

/* ============================================================
   BRAND NAME � A + plus + Z (theme-aware 2-color spelling)
   "A" and "Z" share the accent tone
   "plus" sits in muted tone � quieter middle
   ============================================================ */
.bn-az {
  color: var(--accent);
  font-weight: 700;
}
.bn-plus {
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero sub variant � slightly bolder so brand still reads */
.hero-sub .bn-az,
.hero-sub .bn-plus {
  font-weight: 600;
}

/* Footer mark � subtle */
.footer-mark {
  color: var(--text-dim);
  font-size: 0.85em;
  margin-left: 4px;
}

/* Keep footer on one line on very narrow phones */
@media (max-width: 480px) {
  /* Topnav holds 4 items (badge + 3 icons). Tighten + guarantee spacing so
     they never overflow or overlap on phones (most are 390�430px wide). */
  .topnav { gap: var(--sp-2); }
  .tier-badge { padding: 3px 8px; gap: 4px; }
  .tier-badge .tb-ic { font-size: 0.85rem; }
  .tier-badge .tb-nm { font-size: var(--fs-xs); }
  .icon-btn { width: 30px; font-size: 22px; flex-shrink: 0; }
  .brand-mark { flex-shrink: 0; }
}

@media (max-width: 360px) {
  .footer { font-size: var(--fs-xs); gap: var(--sp-2); }
  /* Narrowest phones: show the A+Z tile + ".app" only (hide the "AplusZ"
     letters) so the nav always has room � reads "A+Z.app". */
  .brand-name .bn-az, .brand-name .bn-plus { display: none; }
  .brand { gap: 2px; }
}

/* ============================================================
   LIMIT BANNER � persistent "upgrade for more reminders"
   Replaces the old auto-dismiss toast. Stays until tapped/closed.
   ============================================================ */
.azb-limit {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: var(--sp-3);
  max-width: 92vw;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg, 14px);
  background: var(--surface, #1b1b1f);
  color: var(--text, #fff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-spring),
              transform var(--dur-base) var(--ease-spring);
  z-index: var(--z-overlay, 9999);
}
.azb-limit.show { opacity: 1; transform: translate(-50%, 0); }
.azb-limit-msg { flex: 1; line-height: 1.3; }
.azb-limit-up {
  flex: none;
  font-weight: 700;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--bg);
  transition: transform var(--dur-base) var(--ease-spring);
}
.azb-limit-up:hover { transform: translateY(-1px); }
.azb-limit-x {
  flex: none;
  color: var(--text-dim);
  font-size: 20px; line-height: 1;
  padding: 0 2px;
}
.azb-limit-x:hover { color: var(--text); }

/* ============================================================
   PRO+ CROWN GLOW � slow golden breathe on the ?? icon only.
   Wrap any ?? in <span class="az-crown">??</span>; only the crown
   glows, never surrounding text. Honors reduced-motion.
   ============================================================ */
.az-crown {
  display: inline-block;
  line-height: 1;
  animation: az-crown-glow 3s ease-in-out infinite;
  will-change: filter;
}
@keyframes az-crown-glow {
  0%, 100% { filter: drop-shadow(0 0 1px rgba(250, 204, 21, 0.45)); }
  50%      { filter: drop-shadow(0 0 7px rgba(250, 204, 21, 0.95)); }
}
@media (prefers-reduced-motion: reduce) {
  .az-crown { animation: none; filter: drop-shadow(0 0 3px rgba(250, 204, 21, 0.6)); }
}

/* ==================== result.css ==================== */
/* ============================================================
   APlusZ � Result Card Styles (Step 9 + desktop adapt)
   File: frontend/assets/result.css
   Save: D:\Destop\AplusZ\frontend\assets\result.css
   ============================================================ */

.result-card {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg), var(--glow);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.route-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.route-line .city { color: var(--text); }
.route-line .arrow { color: var(--accent); font-weight: 400; }

.dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.date-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.date-departure {
  border-color: var(--success);
  box-shadow: 0 0 0 1px var(--success), 0 0 24px rgba(74, 222, 128, 0.12);
}
.date-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}
.date-departure .date-label { color: var(--success); }
.date-value {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
}
.date-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.price-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}
.price-value {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.conf {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  border: 1px solid var(--border);
}
.conf-dots { letter-spacing: -1px; font-size: 0.65rem; }
.conf-high { color: var(--success); border-color: var(--success); background: rgba(74, 222, 128, 0.08); }
.conf-medium { color: var(--warning); border-color: var(--warning); background: rgba(251, 146, 60, 0.08); }
.conf-low { color: var(--danger); border-color: var(--danger); background: rgba(248, 113, 113, 0.08); }

.cta-book {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--bg);
  text-align: center;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring);
}
.cta-book:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--bg);
}

.cal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
.cal-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-spring),
              border-color var(--dur-base) var(--ease-spring);
}
.cal-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  text-decoration: none;
  color: var(--text);
}

.result-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ---------- MOBILE (=420px) ---------- */
@media (max-width: 420px) {
  .dates { grid-template-columns: 1fr; }
  .cal-row { grid-template-columns: 1fr; }
  .price-value { font-size: var(--fs-2xl); }
}

/* ---------- DESKTOP (=720px) ---------- */
@media (min-width: 720px) {
  .result-card {
    padding: var(--sp-8);
    gap: var(--sp-6);
  }
  .route-line { font-size: var(--fs-2xl); }
  .price-value { font-size: var(--fs-hero); }
  .dates { gap: var(--sp-4); }
  .cal-row { gap: var(--sp-3); }
}

/* All-time-low banner (Step 19B) � shows only on a fresh record */
.alltime-low {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: var(--sp-2) 0 var(--sp-1);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(34, 197, 94, .14);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, .35);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* ==================== affiliates.css ==================== */
/* ============================================================
   APlusZ � Affiliate Fan-out Styles (append to result.css)
   File: frontend/assets/affiliates.css
   Save: D:\Destop\AplusZ\frontend\assets\affiliates.css
   ============================================================ */

.also-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
}
.also-check .also-label {
  color: var(--text-dim);
  font-weight: 600;
  margin-right: var(--sp-1);
}
.also-check a {
  color: var(--link);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-spring);
}
.also-check a:hover {
  background: var(--bg-elevated);
  text-decoration: none;
}
.also-check a:not(:last-child)::after {
  content: " �";
  color: var(--text-dim);
  margin-left: var(--sp-2);
}

/* ==================== install.css ==================== */
/* ============================================================
   APlusZ � Install Banner Styles
   File: frontend/assets/install.css
   Save: D:\Destop\AplusZ\frontend\assets\install.css
   ============================================================ */

#install-banner {
  position: fixed;
  left: 50%;
  bottom: var(--sp-4);
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - var(--sp-8));
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), var(--glow);
  z-index: var(--z-toast);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-spring),
              opacity var(--dur-base) var(--ease-ios);
}

#install-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.ib-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

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

.ib-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.ib-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

.ib-sub strong {
  color: var(--accent);
  font-weight: 600;
}

.ib-install {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--bg);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-spring);
}
.ib-install:hover {
  transform: scale(1.05);
}

.ib-close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: background var(--dur-base) var(--ease-spring),
              color var(--dur-base) var(--ease-spring);
}
.ib-close:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

@media (max-width: 420px) {
  #install-banner {
    bottom: var(--sp-2);
    width: calc(100% - var(--sp-4));
    padding: var(--sp-3);
  }
  .ib-title { font-size: var(--fs-sm); }
  .ib-sub { font-size: var(--fs-xs); }
}

/* ==================== referral.css ==================== */
/* ============================================================
   APlusZ � Referral / Share Styles
   File: frontend/assets/referral.css
   Save: D:\Destop\AplusZ\frontend\assets\referral.css
   ============================================================ */

/* ---------- Share button (added to result card) ---------- */
.share-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
}
.share-row .share-info {
  flex: 1;
  min-width: 0;
}
.share-row .share-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
.share-row .share-sub {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-top: 2px;
}
.share-btn {
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--dur-base) var(--ease-spring),
              color var(--dur-base) var(--ease-spring);
}
.share-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Toast (used by referral.js) ---------- */
.aplusz-toast {
  position: fixed;
  left: 50%;
  bottom: var(--sp-8);
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  color: var(--text);
  border: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  z-index: var(--z-toast);
  transition: opacity var(--dur-base) var(--ease-ios),
              transform var(--dur-slow) var(--ease-spring);
  pointer-events: none;
  max-width: calc(100% - var(--sp-8));
  text-align: center;
}
.aplusz-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Karma popup (when user earns karma) ---------- */
.karma-popup {
  position: fixed;
  top: 64px;
  right: var(--sp-4);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--bg);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-12px);
  z-index: var(--z-toast);
  transition: opacity var(--dur-base) var(--ease-ios),
              transform var(--dur-slow) var(--ease-spring);
  pointer-events: none;
}
.karma-popup.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== profile.css ==================== */
/* ============================================================
   APlusZ � Profile Drawer (centered "B" layout, compact)
   File: frontend/assets/profile.css
   Save: D:\Destop\AplusZ\frontend\assets\profile.css
   ============================================================ */

.profile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; z-index: var(--z-modal);
  transition: opacity var(--dur-base) var(--ease-ios);
}
.profile-overlay.show { opacity: 1; }

.profile-drawer {
  position: fixed; top: 0; right: 0;
  height: 100dvh; width: 100%; max-width: 440px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: calc(var(--z-modal) + 1);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-spring);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.profile-drawer.show { transform: translateX(0); }

/* ---- header: title centered; X centered in the right-side gap ---- */
.pd-header {
  position: relative; display: flex; align-items: center;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 2;
}
.pd-header::before { content: ""; flex: 1; }      /* left half (empty) */
.pd-title {
  position: absolute; left: 0; right: 0;
  text-align: center;
  font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.02em;
  pointer-events: none;
}
.pd-close-wrap { flex: 1; display: flex; justify-content: flex-end; padding-right: var(--sp-4);}  /* right half, X centered */
.pd-close {
  position: relative; z-index: 1;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-size: 1.8rem; line-height: 1;
  color: var(--text-muted);
  transition: background var(--dur-base) var(--ease-spring), color var(--dur-base);
}
.pd-close:hover { background: var(--bg-elevated); color: var(--text); }

/* ---- plan cards (centered, minimal margin) ---- */
.pd-plans {
  display: flex; flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-6) var(--sp-2);
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  opacity: 0.6;
  text-align: center;
  transition: opacity var(--dur-base), border-color var(--dur-base);
}
.plan-card.active {
  opacity: 1;
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, rgba(250,204,21,0.06), transparent);
}
.plan-card-top { margin-bottom: 2px; }
.plan-card-name { font-size: var(--fs-base); font-weight: 800; letter-spacing: -0.01em; }
.plan-card-tag {
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.plan-card-badge {
  font-size: var(--fs-xs); font-weight: 700; color: var(--bg);
  background: var(--accent); padding: 2px 9px; border-radius: var(--r-pill);
  margin-left: var(--sp-2);
}
.plan-card-feats { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.4; }

/* ---- sections (centered) ---- */
.pd-section { padding: var(--sp-2) var(--sp-6) var(--sp-3); text-align: center; }
.pd-label {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-weight: 700; margin-bottom: var(--sp-2);
}
.pd-alerts-intro { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.45; }

/* ---- karma block (bar ? reward ? share ? karma) ---- */
.pd-karma { padding: 0 var(--sp-6) var(--sp-4); text-align: center; }

.adopt-bar {
  position: relative;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
  margin-bottom: var(--sp-3);
}
.adopt-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  transition: width 1.5s var(--ease-spring);
  animation: adopt-gradient 4s linear infinite;
}
@keyframes adopt-gradient { 0%{background-position:0% 0%} 100%{background-position:200% 0%} }
.adopt-shimmer {
  position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  animation: adopt-shimmer 2.4s ease-in-out infinite;
}
@keyframes adopt-shimmer { 0%{left:-40%} 100%{left:110%} }
.adopt-bar-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-3);
  font-size: var(--fs-sm); font-weight: 700;
  color: var(--text);
  mix-blend-mode: difference;
  pointer-events: none;
}

.pd-karma-reward { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.45; margin-bottom: var(--sp-4); }

.pd-karma-top {
  display: flex; align-items: baseline; justify-content: center; gap: var(--sp-2);
  margin-top: var(--sp-4); margin-bottom: var(--sp-2);
}
.pd-karma-label {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-weight: 700;
}
.pd-karma-value { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.pd-karma-msg { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.45; }

/* ---- referral (flat buttons, no blue) ---- */
.ref-link-row { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-2); width: 100%; }
.ref-link-input {
  flex: 1 1 auto; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-2);
  color: var(--text); font-family: var(--font-mono); font-size: var(--fs-xs);
  outline: none; text-align: center;
}
.ref-link-input:focus { border-color: var(--accent); }
.ref-link-copy {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); padding: 0 var(--sp-3);
  border-radius: var(--r-md); font-weight: 700; font-size: var(--fs-sm);
  flex: 0 0 auto; white-space: nowrap;
  transition: background var(--dur-base), border-color var(--dur-base);
}
.ref-link-copy:hover { background: var(--bg-elevated); border-color: var(--accent); }
.pd-share-btn {
  width: 100%; background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--sp-3); font-weight: 700; font-size: var(--fs-base);
  transition: background var(--dur-base), border-color var(--dur-base);
}
.pd-share-btn:hover { background: var(--bg-elevated); border-color: var(--accent); }

/* ---- day streak (centered, bottom) ---- */
.pd-streak {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6) var(--sp-6);
  border-top: 1px solid var(--border);
  margin-top: var(--sp-6);
  text-align: center;
}
.pd-streak-icon { font-size: 1.2rem; flex-shrink: 0; }
.pd-streak-value { font-size: var(--fs-lg); font-weight: 800; color: var(--accent); flex-shrink: 0; }
.pd-streak-label { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.35; }

/* ---------- WHOLE-CARD UPGRADE (tier-aware; only tiers above current) ----------
   .upgradable cards are clickable buttons; Free + current/lower are not. */
.plan-card.upgradable {
  cursor: pointer;
  opacity: 1;                      /* upgrade targets read fully lit, not dimmed */
}
.plan-card.upgradable:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(250,204,21,0.06), transparent);
}
.plan-card.upgradable:hover .plan-card-name { color: var(--accent); }
.plan-card.upgradable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==================== plans.css ==================== */
/* ============================================================
   AplusZ � Plans (plain text, 3 columns, no boxes) + Footer
   File: frontend/assets/plans.css
   Save: D:\Destop\AplusZ\frontend\assets\plans.css
   ============================================================ */

.plans-strip {
  position: relative;
  max-width: 820px;
  margin: var(--sp-12) auto 0;
  padding: var(--sp-12) var(--sp-6) 0;
  box-sizing: border-box;
}
/* divider line hidden per request; empty space kept via padding-top above */
.plans-strip::before { display: none; }

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

.plan-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  text-align: center;
  min-width: 0;
  box-sizing: border-box;
}

.plan-head {
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  text-align: center;
}
.plan-head-link {
  text-decoration: none;
  transition: opacity var(--dur-base);
}
.plan-head-link:hover { opacity: 0.7; text-decoration: none; }

.plan-feats {
  list-style: none;
  padding: 0 var(--sp-2);
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
}
.plan-feats span {
  /* features flow as one comma-separated paragraph under the title */
}

/* ---------- FOOTER ----------
   Layout (.footer / .footer-sep) is owned by app.css. Keep ONLY link
   colors here so plans.css never overrides app.css footer positioning. */
.footer a { color: var(--text-muted); text-decoration: none; transition: color var(--dur-base); }
.footer a:hover { color: var(--accent); }

/* ---------- DESKTOP: 3 columns side by side ---------- */
@media (min-width: 720px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
    align-items: start;
  }
}

/* ==================== howitworks.css ==================== */
/* How it works � modal (no page leave). Colors hardcoded to neutral slate
   so site --card/--accent (blue) tokens can't override them. */

.hiw-link{
  background:none;border:none;cursor:pointer;
  font:inherit;color:inherit;opacity:.85;
  text-decoration:underline;text-underline-offset:3px;padding:0;
}
.hiw-link:hover{opacity:1}

#hiw-modal{
  border:none;padding:0;background:transparent;color:#e8eef7;
  width:min(440px,calc(100vw - 32px));
  max-width:none;max-height:calc(100dvh - 40px);
  margin:auto;overflow:visible;
}
#hiw-modal::backdrop{
  background:rgba(15,23,42,.55);        /* same slate tone as page, translucent */
  backdrop-filter:blur(3px);
  opacity:0;transition:opacity .4s ease;
}
#hiw-modal[open]::backdrop{opacity:1}

.hiw-card{
  background:rgba(15,23,42,.92);         /* index page tone #0f172a + opacity */
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;padding:24px 24px 20px;
  box-shadow:0 24px 60px rgba(0,0,0,.45);
  max-height:calc(100dvh - 40px);overflow-y:auto;
  transform:translateY(14px) scale(.985);opacity:0;
  transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s ease;
}
#hiw-modal[open] .hiw-card{transform:none;opacity:1}

.hiw-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.hiw-title{font-size:1.2rem;font-weight:700}
.hiw-x{background:none;border:none;color:inherit;opacity:.55;font-size:1.45rem;line-height:1;cursor:pointer;padding:4px}
.hiw-x:hover{opacity:1}

.hiw-concept{font-size:1rem;line-height:1.55;opacity:.9;margin:0 0 18px}
.hiw-concept em{font-style:italic}
.hiw-concept .hiw-less{color:#f5b942;font-weight:800;letter-spacing:.5px}  /* gold pop */

.hiw-stage{display:grid}
.hiw-slide{grid-area:1/1;opacity:0;transform:translateX(22px);transition:opacity .55s ease,transform .55s cubic-bezier(.22,1,.36,1);pointer-events:none}
.hiw-slide.is-active{opacity:1;transform:none;pointer-events:auto}
.hiw-slide.is-prev{transform:translateX(-22px)}

.hiw-step{font-size:.78rem;letter-spacing:1.5px;text-transform:uppercase;opacity:.5;margin-bottom:10px}
.hiw-head{font-size:1.4rem;font-weight:700;margin-bottom:10px}
.hiw-body{font-size:1rem;line-height:1.55;opacity:.85;margin:0}
.hiw-route{display:flex;align-items:center;gap:14px;font-size:1.55rem;font-weight:700}
.hiw-route .arr{color:#f5b942}

/* card 3 demo */
.hiw-demo{margin-top:14px;border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:13px 15px;background:rgba(255,255,255,.04)}
.hiw-demo-route{display:flex;align-items:center;gap:10px;font-size:1.05rem;font-weight:700;margin-bottom:8px;transition:opacity .8s ease}
.hiw-demo-route .arr{color:#f5b942}
.hiw-price{font-size:1.7rem;font-weight:800;color:#f5b942;line-height:1.1;transition:opacity .8s ease}
.hiw-date{font-size:.9rem;opacity:.8;margin-top:2px;transition:opacity .8s ease}
.hiw-timer{font-size:.8rem;opacity:.55;margin-top:6px}
.hiw-demo.fading .hiw-price,.hiw-demo.fading .hiw-demo-route,.hiw-demo.fading .hiw-date{opacity:0}  /* Telegram-delete fade */
.hiw-book{margin-top:11px;width:100%;border:none;border-radius:10px;background:#2563eb;color:#fff;font:inherit;font-size:1rem;font-weight:700;padding:12px;cursor:pointer;transition:filter .2s ease}
.hiw-book:hover{filter:brightness(1.08)}

.hiw-nav{display:flex;align-items:center;justify-content:space-between;margin-top:20px;gap:10px}
.hiw-dots{display:flex;gap:7px;flex:1;justify-content:center}
.hiw-dot{width:7px;height:7px;border-radius:50%;background:#33415c;transition:background .4s ease,width .4s ease}
.hiw-dot.on{background:#f5b942;width:18px;border-radius:4px}
.hiw-back,.hiw-next{background:none;border:1px solid #1f2c41;color:inherit;border-radius:9px;padding:8px 18px;font:inherit;font-size:.95rem;font-weight:600;cursor:pointer;transition:background .2s ease;min-width:78px}
.hiw-back:hover,.hiw-next:hover{background:rgba(255,255,255,.05)}
.hiw-back[hidden]{visibility:hidden}

.hiw-foot{margin-top:18px;padding-top:14px;border-top:1px solid #1f2c41;font-size:.85rem;opacity:.6;line-height:1.45}

/* RTL (Arabic, Persian): mirror text, but keep A?B route order intact */
#hiw-modal[dir=rtl]{text-align:right}
#hiw-modal[dir=rtl] .hiw-route,
#hiw-modal[dir=rtl] .hiw-demo-route{direction:ltr;justify-content:flex-end}

@media (max-width:520px){
  #hiw-modal{width:100%;margin:0;position:fixed;left:0;right:0;bottom:0;top:auto;max-height:92dvh}
  .hiw-card{border-radius:20px 20px 0 0;padding:22px 18px calc(20px + env(safe-area-inset-bottom));max-height:92dvh;transform:translateY(100%)}
  #hiw-modal[open] .hiw-card{transform:none}
}

/* ==================== langpicker.css ==================== */
/* ============================================================
   APlusZ � Language Picker
   File: frontend/assets/langpicker.css
   Save: D:\Destop\AplusZ\frontend\assets\langpicker.css
   ============================================================ */

.lang-menu {
  position: fixed;
  z-index: 9999;
  min-width: 190px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 6px;
  background: var(--bg-elevated, #11192a);
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: var(--r-md, 14px);
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(0,0,0,.5));
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.lang-menu.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.lang-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: .95rem;
  color: var(--text, #e8eef7);
  transition: background .15s ease;
}
.lang-opt:hover { background: var(--bg-elevated, rgba(255,255,255,.06)); }
.lang-opt.is-active {
  background: var(--accent, #f5b942);
  color: var(--bg, #0f172a);
  font-weight: 700;
}
html[dir="rtl"] .lang-opt { text-align: right; }

/* ==================== autocomplete.css ==================== */
/* ============================================================
   APlusZ � Autocomplete styles
   File: frontend/assets/autocomplete.css
   Save: D:\Destop\AplusZ\frontend\assets\autocomplete.css
   ============================================================ */

.ac-menu {
  position: fixed;
  z-index: 9998;
  max-height: 320px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--r-md, 14px);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.ac-menu.open { opacity: 1; transform: none; pointer-events: auto; }

.ac-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.ac-opt:hover, .ac-opt.on { background: #f1f5f9; }
.ac-name { color: #000000; font-size: .95rem; font-weight: 500; }
.ac-code {
  color: #000000;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* invalid-input hint on the search button area */
.search-hint {
  margin-top: 8px;
  font-size: .85rem;
  color: #fca5a5;
  text-align: center;
}
html[dir="rtl"] .ac-opt { flex-direction: row-reverse; }

/* no-live-check (still bookable) card */
.result-nolive { text-align: center; }
.result-nolive .nolive-msg {
  margin: 14px 0 18px;
  color: var(--text-muted, #9fb0c7);
  font-size: .95rem;
  line-height: 1.5;
}

/* live-monitored rows: no background � color signals only */
.ac-opt .ac-name { color: #000000; }            /* city name always black */
.ac-opt.live .ac-code { color: #2563eb; }       /* live: clear dark blue code */
.ac-opt:not(.live) .ac-code { color: #000000; } /* non-live: black code */
.ac-opt .ac-live {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #22c55e;                                /* green "Live Price", no background */
  vertical-align: middle;
}

/* ---- input fields: white, black text, no themed box background ---- */
.search-card .field { background: #ffffff !important; }
.search-card .field input { background: #ffffff !important; color: #000000 !important; }
.search-card .field label { color: #475569 !important; }
.search-card .field input::placeholder { color: #94a3b8 !important; }

/* row zones: name (left) � Live Price (dead center) � code (right) */
.ac-mid { flex: 1; text-align: center; }
.ac-name { flex-shrink: 0; }

/* ==================== alerts.css ==================== */
/* ============================================================
   APlusZ � Alerts UI (Step 19)
   File: frontend/assets/alerts.css
   Save: D:\Destop\AplusZ\frontend\assets\alerts.css
   ============================================================ */

/* Remind button on the result card */
.remind-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 185, 66, .12);
  color: #f5b942;
  border: 1px solid rgba(245, 185, 66, .4);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s ease;
}
.remind-btn:hover { background: rgba(245, 185, 66, .2); }

/* My alerts list (inside profile drawer) */
.al-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.al-empty {
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: 1.5;
  padding: var(--sp-3) 0;
}
.al-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
}
.al-route { font-size: var(--fs-sm); color: var(--text); }
.al-price {
  margin-left: var(--sp-2);
  color: var(--accent);
  font-weight: 700;
}
.al-actions { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }
.al-resend {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
}
.al-resend:hover { border-color: var(--accent); color: var(--accent); }
.al-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.al-remove:hover { color: var(--text); }

.al-cap { margin-top: var(--sp-3); }
.al-cap-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-dim);
  margin-bottom: 6px;
}
.al-cap-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text);
  font-size: var(--fs-sm);
  outline: none;
}
.al-cap-input:focus { border-color: var(--accent); }

/* ===== Save / Remind split bar (replaces single .remind-btn) ===== */
.sr-bar {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.sr-half {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sr-save { border-color: rgba(34,197,94,.4); color: #22c55e; background: rgba(34,197,94,.10); }
.sr-save:hover { background: rgba(34,197,94,.18); }
.sr-save.is-saved { background: rgba(34,197,94,.22); border-color: rgba(34,197,94,.6); cursor: default; }
.sr-remind { border-color: rgba(245,185,66,.4); color: #f5b942; background: rgba(245,185,66,.10); }
.sr-remind:hover { background: rgba(245,185,66,.18); }

/* tappable "Saved to your Profile" toast */
.azb-toast.azb-tap { cursor: pointer; text-decoration: none; }
.azb-toast.azb-tap:hover { filter: brightness(1.08); }


/* ==================== azb-modal (limit + saved dialogs) ==================== */
.azb-modal{position:fixed;inset:0;z-index:10002;display:flex;align-items:center;justify-content:center;padding:16px;opacity:0;pointer-events:none;transition:opacity .25s ease}
.azb-modal.show{opacity:1;pointer-events:auto}
.azb-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(4px)}
.azb-modal-card{position:relative;width:100%;max-width:360px;background:rgba(15,23,42,.96);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:28px 22px 22px;box-shadow:0 30px 80px rgba(0,0,0,.55);color:#e8eef7;text-align:center;transform:translateY(12px);transition:transform .25s ease}
.azb-modal.show .azb-modal-card{transform:translateY(0)}
.azb-modal-x{position:absolute;top:8px;right:12px;background:none;border:none;color:#94a3b8;font-size:26px;line-height:1;cursor:pointer}
.azb-modal-x:hover{color:#fff}
.azb-modal-title{font-size:1.2rem;font-weight:800;margin:2px 0 6px}
.azb-modal-msg{font-size:.95rem;color:#cbd5e1;line-height:1.5;margin:0 0 16px}
.azb-modal-up{width:100%;padding:13px;border:none;border-radius:12px;background:#f5b942;color:#0f172a;font-weight:700;font-size:1rem;cursor:pointer}
.azb-modal-up:hover{background:#e8a832}
.azb-modal-ok{width:100%;margin-top:10px;padding:11px;border:none;border-radius:12px;background:rgba(255,255,255,.06);color:#cbd5e1;font-weight:600;font-size:.92rem;cursor:pointer}
.azb-modal-ok:hover{background:rgba(255,255,255,.12)}
.azb-saved-check{width:52px;height:52px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:rgba(245,185,66,.15);color:#f5b942;font-size:28px;font-weight:800}

/* ==================== billboard (front-index gap) ==================== */
.billboard{max-width:720px;margin:var(--sp-8) auto 0;padding:0 var(--sp-3);text-align:center;min-height:2.6em;display:flex;align-items:center;justify-content:center}
.bb-slide{display:inline-block;color:var(--text-muted);font-size:var(--fs-sm);line-height:1.5;max-width:60ch;animation:bbfade .5s ease}
a.bb-link{color:var(--accent);text-decoration:none;font-weight:600;cursor:pointer;transition:opacity var(--dur-base)}
a.bb-link:hover{opacity:.75;text-decoration:underline}
@keyframes bbfade{from{opacity:0}to{opacity:1}}
@media (min-width:720px){.billboard{margin-top:var(--sp-12)}.bb-slide{font-size:var(--fs-base)}}

/* ---------- vertical rhythm tightened around billboard + plans ---------- */
.hero{padding-bottom:var(--sp-4)}                   /* less air below trust, above billboard */
.billboard{margin-top:var(--sp-4);margin-bottom:0}  /* snug above billboard */
.plans-strip{margin-top:0;padding-top:var(--sp-4)}  /* snug below billboard, above Free */
.plans-grid{gap:var(--sp-4)}                         /* tighter between Free/Pro/Pro+ */
@media (min-width:720px){.hero{padding-bottom:var(--sp-8)}.billboard{margin-top:var(--sp-6)}.plans-strip{padding-top:var(--sp-6)}.plans-grid{gap:var(--sp-6)}}

/* upgrade plans moved to bottom of profile; hide when none */
.pd-plans-others:empty{display:none}
.pd-plans-others{margin-top:0;padding-top:var(--sp-1)}

/* .app suffix on the upper logo (matches footer mark) */
.bn-app{color:var(--text-dim);font-size:0.72em;font-weight:600;letter-spacing:0;}

/* -- Below-footer Scroll-Reveal Card -- */
.reveal-wrap {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
.reveal-wrap.show {
  transform: translateY(0);
  pointer-events: auto;
}
.reveal-card {
  max-width: 680px; margin: 0 auto;
  background: rgba(15,23,42,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 32px;
  color: #e8eef7;
  max-height: 85vh; overflow-y: auto;
}
.reveal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: #64748b;
  font-size: 24px; cursor: pointer; line-height: 1;
}
.reveal-close:hover { color: #fff; }
.reveal-mission {
  text-align: center; margin-bottom: 20px;
}
.reveal-motto {
  font-size: 1.05rem; font-weight: 700; color: #f5b942;
  margin-bottom: 8px; line-height: 1.4;
}
.reveal-statement {
  font-size: 0.88rem; color: #94a3b8; line-height: 1.6;
}
.reveal-stats {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin: 16px 0;
}
.reveal-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 8px 14px;
  font-size: 0.82rem; color: #cbd5e1; text-align: center;
}
.reveal-stat strong { display: block; font-size: 1rem; color: #f5b942; }
.reveal-free {
  text-align: center; font-size: 0.85rem; color: #94a3b8;
  margin: 12px 0; padding: 12px;
  border: 1px solid rgba(245,185,66,0.2);
  border-radius: 12px; background: rgba(245,185,66,0.05);
}
.reveal-founder {
  font-size: 0.85rem; color: #64748b; text-align: center;
  font-style: italic; margin: 12px 0;
}
.reveal-share {
  text-align: center; margin: 14px 0;
}
.reveal-share-btn {
  background: var(--accent); color: #0f172a;
  border: none; border-radius: 12px;
  padding: 10px 22px; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: background 0.2s;
}
.reveal-share-btn:hover { background: #e8a832; }
.reveal-divider {
  border: none; border-top: 1px solid rgba(255,255,255,0.07);
  margin: 18px 0;
}
.reveal-section-title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #475569; margin-bottom: 12px;
}
.reveal-press {
  background: rgba(255,255,255,0.03); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px;
}
.reveal-press p { font-size: 0.87rem; color: #94a3b8; margin: 0 0 10px; }
.reveal-press-link {
  display: inline-block; color: #f5b942; font-weight: 600;
  font-size: 0.87rem; text-decoration: none;
}
.reveal-press-link:hover { text-decoration: underline; }
.reveal-press-gift {
  font-size: 0.78rem; color: #475569; margin-top: 6px;
}
.reveal-comments { margin-top: 4px; }
.reveal-comment-form { margin-bottom: 16px; }
.reveal-comment-form input,
.reveal-comment-form textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px 12px;
  color: #e8eef7; font-size: 0.87rem; font-family: inherit;
  margin-bottom: 8px; resize: vertical;
}
.reveal-comment-form textarea { min-height: 72px; }
.reveal-comment-submit {
  width: 100%; padding: 10px; border: none; border-radius: 10px;
  background: rgba(255,255,255,0.08); color: #cbd5e1;
  font-weight: 600; font-size: 0.87rem; cursor: pointer;
}
.reveal-comment-submit:hover { background: rgba(255,255,255,0.14); }
.reveal-comment-gift {
  font-size: 0.78rem; color: #475569; text-align: center; margin-bottom: 12px;
}
.reveal-approved-comment {
  background: rgba(255,255,255,0.03); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px;
  border-left: 3px solid rgba(245,185,66,0.3);
}
.reveal-approved-comment .rc-name {
  font-size: 0.78rem; font-weight: 700; color: #f5b942; margin-bottom: 4px;
}
.reveal-approved-comment .rc-text {
  font-size: 0.87rem; color: #94a3b8; line-height: 1.5;
}
.reveal-msg { font-size: 0.82rem; color: #64748b; text-align: center; margin: 6px 0; }

.kiwitaxi-cta{margin:8px 0 4px;text-align:center;}.kiwi-transfer-btn{display:inline-block;font-size:.82rem;color:#f5b942;text-decoration:none;padding:7px 14px;border:1px solid rgba(245,185,66,.25);border-radius:10px;background:rgba(245,185,66,.07);}.kiwi-transfer-btn:hover{background:rgba(245,185,66,.15);}
.affil-row{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 4px;justify-content:center;}.affil-btn{display:inline-block;font-size:.82rem;color:#cbd5e1;text-decoration:none;padding:7px 13px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.05);white-space:nowrap;}.affil-btn:hover{color:#e8eef7;border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.08);}.airhelp-btn{color:#f5b942;border-color:rgba(245,185,66,.2);}
/* reveal hint tab */
.reveal-hint{position:fixed;left:0;right:0;margin:0 auto;width:max-content;max-width:90vw;transform:translateY(120%);z-index:79;background:rgba(245,185,66,.95);color:#0f172a;border:none;border-radius:14px;padding:9px 20px;bottom:10px;font-size:.82rem;font-weight:700;font-family:inherit;cursor:pointer;box-shadow:0 -4px 20px rgba(0,0,0,.3);transition:transform .35s cubic-bezier(.34,1.4,.64,1);white-space:nowrap;text-align:center;}
.reveal-hint.show{transform:translateY(0);}
.reveal-hint:hover{background:#f5b942;}
.reveal-hint-chev{display:inline-block;animation:revealBounce 1.4s ease-in-out infinite;}
@keyframes revealBounce{0%,100%{transform:translateY(0);}50%{transform:translateY(-3px);}}`nbody{padding-bottom:56px;}