/* ============================================================
   LuxGo — Design System v4.0 "Frontier"
   Signature turquoise x warm coral x ink navy x warm paper.
   Distinct, editorial, "grand public" — not a generic SaaS blue theme.
   Every selector name below is preserved from v3.0 so every PHP
   template keeps working with zero markup changes. Only the visual
   language changed: palette, shadows, typography pairing, and a
   handful of enhanced components (hero, trip-card, search-box, nav).
   New in v4: full dark mode via [data-theme="dark"], theme toggle,
   wizard/step polish, filter bar/chips for search.
   ============================================================ */

:root {
  /* Light theme (default) — warm paper, not cold blue-gray */
  --bg: #FFFFFF;
  --bg2: #FFFFFF;
  --bg3: #F5F6F8;
  --surface: #FFFFFF;
  --surface2: #F3F4F6;
  --surface3: #E9EBEF;
  --border: rgba(16,21,31,0.08);
  --border2: rgba(16,21,31,0.14);
  --border3: rgba(16,21,31,0.24);
  --text: #10151F;
  --text2: #4E5661;
  --text3: #8A8578;

  --accent: #E31C25;      /* GO — vivid red */
  --accent2: #FF4B4F;     /* lighter red, hovers */
  --accent3: #FDE8E9;     /* pale red tint */
  --teal: #14213D;        /* lux — deep blue */
  --coral: #1E3A8A;       /* warm secondary accent */
  --coral2: #2C4CA6;
  --coral-light: #E6ECFA;
  --green: #16A34A;
  --amber: #D97706;
  --red: #DC2626;
  --blue: #2563EB;
  --pink: #DB2777;
  --gold: #CA8A04;

  --glow: rgba(227,28,37,0.26);
  --glow-teal: rgba(20,33,61,0.18);
  --glow-coral: rgba(30,58,138,0.22);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --nav-h: 66px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  --shadow-sm: 0 1px 3px rgba(16,21,31,0.07), 0 1px 2px rgba(16,21,31,0.05);
  --shadow: 0 8px 24px rgba(16,21,31,0.09);
  --shadow-lg: 0 24px 56px rgba(16,21,31,0.14);
  --shadow-accent: 0 10px 28px rgba(227,28,37,0.28);
}

/* ── DARK THEME ─────────────────────────────────────────── */
[data-theme="dark"] {
  --bg: #0A0F13;
  --bg2: #0F1620;
  --bg3: #131C24;
  --surface: #121A22;
  --surface2: #18222B;
  --surface3: #202B35;
  --border: rgba(255,255,255,0.09);
  --border2: rgba(255,255,255,0.15);
  --border3: rgba(255,255,255,0.24);
  --text: #F2F5F6;
  --text2: #ABB6BF;
  --text3: #71808B;

  --accent: #FF4D4F;
  --accent2: #FF7A7C;
  --accent3: #3A1416;
  --teal: #3A5AA8;
  --coral: #4A6FC0;       /* lux secondary blue, dark mode */
  --coral2: #7B99D6;
  --coral-light: #16203D;
  --green: #34D268;
  --amber: #F0A93E;
  --red: #FF6B6B;
  --blue: #5B9CFF;
  --pink: #F472B6;
  --gold: #E4B84A;

  --glow: rgba(255,77,79,0.32);
  --glow-teal: rgba(58,90,168,0.28);
  --glow-coral: rgba(74,111,192,0.28);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 56px rgba(0,0,0,0.55);
  --shadow-accent: 0 10px 28px rgba(255,77,79,0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
body { min-height: 100vh; overflow-x: hidden; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, var(--glow) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 92% 90%, var(--glow-coral) 0%, transparent 62%);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.15; color: var(--text); font-family: var(--font-display); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.75rem); letter-spacing: -1px; font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); letter-spacing: -0.5px; }
h3 { font-size: 1.25rem; font-family: var(--font); font-weight: 700; }
h4, h5 { font-family: var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
small { font-size: 0.75rem; color: var(--text3); }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrap { padding-top: var(--nav-h); min-height: 100vh; position: relative; z-index: 1; }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg2) 86%, transparent);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--coral));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px var(--glow);
}
.nav-logo-icon svg { width: 20px; height: 20px; fill: white; }
.nav-logo-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text); }
.nav-logo-name span { color: var(--accent); }
.nav-links { display: flex; gap: 2px; }
.nav-link {
  padding: 7px 14px; border-radius: 10px; font-size: 0.87rem; font-weight: 500;
  color: var(--text2); text-decoration: none; transition: all var(--transition);
}
.nav-link:hover { background: var(--surface2); color: var(--text); }
.nav-link.active { background: var(--accent3); color: var(--accent); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-notif { position: relative; width: 36px; height: 36px; border-radius: 10px; background: transparent; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text2); transition: all var(--transition); }
.nav-notif:hover { background: var(--surface2); }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: var(--coral); border-radius: 50%; border: 2px solid var(--bg2); }
.nav-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--teal)); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: white; cursor: pointer; border: 2px solid var(--accent3); }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 10px; background: transparent;
  border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2); transition: all var(--transition);
}
.theme-toggle:hover { background: var(--surface2); color: var(--text); }
.theme-toggle svg { width: 17px; height: 17px; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--radius); font-family: var(--font);
  font-size: 0.87rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); text-decoration: none; white-space: nowrap; border: none;
}
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  color: white; box-shadow: 0 4px 16px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--glow); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); }
.btn-secondary:hover { background: var(--surface3); color: var(--text); border-color: var(--border3); }
.btn-ghost { background: transparent; border: 1px solid var(--border2); color: var(--text2); }
.btn-ghost:hover { background: var(--surface2); color: var(--text); }
.btn-danger { background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.25); color: var(--red); }
.btn-danger:hover { background: rgba(220,38,38,0.18); }
.btn-teal { background: linear-gradient(135deg, var(--teal), var(--accent)); color: white; box-shadow: 0 4px 16px var(--glow-teal); }
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--glow-teal); }
.btn-coral { background: linear-gradient(135deg, var(--coral), var(--coral2)); color: white; box-shadow: 0 4px 16px var(--glow-coral); }
.btn-coral:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--glow-coral); filter: brightness(1.04); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }
.btn-icon-only { width: 40px; height: 40px; padding: 0; border-radius: 11px; }

/* ── FORMS ──────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; background: var(--surface2);
  border: 1px solid var(--border2); border-radius: var(--radius); color: var(--text);
  font-family: var(--font); font-size: 0.9rem; outline: none;
  transition: all var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent3);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text3); }
.form-input.has-icon { padding-left: 42px; }
.form-icon-wrap { position: relative; }
.form-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text3); width: 16px; height: 16px; pointer-events: none; }
.form-select option { background: var(--surface); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 5px; }
.form-help { font-size: 0.78rem; color: var(--text3); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.5rem;
  transition: all var(--transition); position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--accent3); box-shadow: var(--shadow); }
.card-sm { padding: 1rem; border-radius: var(--radius-lg); }
.card-glass {
  background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(20px);
  border: 1px solid var(--border2); border-radius: var(--radius-xl);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); cursor: pointer; }

/* ── BADGES ─────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.badge-accent { background: var(--accent3); color: var(--accent); border: 1px solid rgba(14,168,147,0.28); }
.badge-coral { background: var(--coral-light); color: var(--coral); border: 1px solid rgba(255,107,74,0.3); }
.badge-green { background: rgba(22,163,74,0.1); color: var(--green); border: 1px solid rgba(22,163,74,0.25); }
.badge-amber { background: rgba(217,119,6,0.1); color: var(--amber); border: 1px solid rgba(217,119,6,0.25); }
.badge-red { background: rgba(220,38,38,0.1); color: var(--red); border: 1px solid rgba(220,38,38,0.25); }
.badge-neutral { background: var(--surface2); color: var(--text2); border: 1px solid var(--border2); }

/* ── AVATAR ─────────────────────────────────────────────── */
.avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; overflow: hidden; flex-shrink: 0; background: var(--surface3); }
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-md { width: 44px; height: 44px; font-size: 0.9rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 1.6rem; }
.avatar-accent { background: linear-gradient(135deg, var(--accent), var(--teal)); color: white; }

/* ── STARS ──────────────────────────────────────────────── */
.stars { display: flex; gap: 2px; }
.star { font-size: 0.85rem; }
.star-on { color: var(--amber); }
.star-off { color: var(--surface3); }
.rating-val { font-size: 0.82rem; font-weight: 700; color: var(--amber); }
.rating-count { font-size: 0.75rem; color: var(--text3); }

/* ── TRIP CARD ──────────────────────────────────────────── */
.trip-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.4rem;
  cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden;
  text-decoration: none; display: block; color: inherit;
  box-shadow: var(--shadow-sm);
}
.trip-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent3), transparent 55%);
  opacity: 0; transition: opacity var(--transition);
}
.trip-card:hover { border-color: rgba(14,168,147,0.35); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trip-card:hover::before { opacity: 1; }
.trip-route { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.route-timeline { display: flex; flex-direction: column; align-items: center; padding: 4px 0; gap: 4px; }
.route-dot-start { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.route-dot-end { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 8px var(--glow-coral); }
.route-line { width: 2px; flex: 1; background: repeating-linear-gradient(to bottom, var(--border3) 0 4px, transparent 4px 8px); min-height: 20px; }
.route-city-from { font-size: 1rem; font-weight: 700; color: var(--text); }
.route-city-to { font-size: 1rem; font-weight: 700; color: var(--text2); margin-top: 6px; }
.trip-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.meta-pill { display: flex; align-items: center; gap: 5px; font-size: 0.77rem; color: var(--text2); background: var(--surface2); padding: 4px 10px; border-radius: 20px; }
.meta-pill svg { width: 12px; height: 12px; flex-shrink: 0; }
.trip-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.trip-price-main { font-size: 1.5rem; font-weight: 700; color: var(--text); font-family: var(--font-display); }
.trip-price-sub { font-size: 0.72rem; color: var(--text3); }

/* ── HERO ───────────────────────────────────────────────── */
.hero { padding: 6rem 0 3rem; text-align: center; position: relative; }
.hero-map-bg { position: absolute; z-index: -1; top: -20px; left: 50%; transform: translateX(-50%); width: min(1500px, 180vw); max-width: none; height: 620px; object-fit: cover; object-position: center 30%; opacity: .85; -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 90%); mask-image: linear-gradient(to bottom, black 40%, transparent 90%); pointer-events: none; }
[data-theme="dark"] .hero-map-bg { opacity: .4; filter: saturate(.75) brightness(.75); }
@media (max-width: 480px) { .hero-map-bg { height: 420px; } }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; background: var(--accent3); border: 1px solid rgba(14,168,147,0.25); border-radius: 20px; font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: 1.5rem; }
.pulse-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulseAnim 2s infinite; }
@keyframes pulseAnim { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.8)} }
.hero-title { color: var(--text); margin-bottom: 1.25rem; }
.hero-title .highlight { background: linear-gradient(135deg, var(--accent), var(--coral)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; color: var(--text2); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.hero-stat-val { font-size: 1.7rem; font-weight: 700; color: var(--text); font-family: var(--font-display); }
.hero-stat-lbl { font-size: 0.75rem; color: var(--text3); }

/* ── SEARCH BOX ─────────────────────────────────────────── */
.search-box {
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(24px);
  border: 1px solid var(--border2); border-radius: var(--radius-xl);
  padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.search-tabs { display: flex; gap: 4px; background: var(--surface2); padding: 4px; border-radius: 12px; width: fit-content; margin-bottom: 1.25rem; }
.search-tab { padding: 8px 18px; border-radius: 9px; cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--text3); transition: all var(--transition); }
.search-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.search-row { display: grid; grid-template-columns: 1fr 1fr 180px 160px auto; gap: 10px; align-items: end; }

/* ── FILTER BAR (search / trajets results) ─────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 1.5rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border-radius: 20px; border: 1px solid var(--border2); background: var(--surface);
  color: var(--text2); font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}
.filter-chip:hover { border-color: var(--border3); color: var(--text); }
.filter-chip.active { background: var(--accent3); border-color: rgba(14,168,147,0.35); color: var(--accent); }
.filter-chip svg { width: 14px; height: 14px; }
.filter-sort { margin-left: auto; }

/* ── SECTION ────────────────────────────────────────────── */
.section { padding: 3rem 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title { font-size: 1.15rem; font-weight: 700; font-family: var(--font-display); }
.section-sub { font-size: 0.8rem; color: var(--text3); margin-top: 2px; }

/* ── GRID ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.trips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px,1fr)); gap: 16px; }

/* ── STAT CARD ──────────────────────────────────────────── */
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); }
.stat-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text3); margin-bottom: 6px; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1; font-family: var(--font-display); }
.stat-change { font-size: 0.75rem; margin-top: 5px; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ── PROGRESS ───────────────────────────────────────────── */
.progress-bar { height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--coral)); transition: width 0.5s ease; }

/* ── MESSAGES ───────────────────────────────────────────── */
.msg-layout { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - var(--nav-h)); }
.conv-list { border-right: 1px solid var(--border); overflow-y: auto; background: var(--surface); }
.conv-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.conv-item:hover { background: var(--surface2); }
.conv-item.active { background: var(--accent3); }
.conv-name { font-size: 0.87rem; font-weight: 600; color: var(--text); }
.conv-preview { font-size: 0.78rem; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.conv-time { font-size: 0.7rem; color: var(--text3); }
.unread-badge { background: var(--accent); color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.chat-area { display: flex; flex-direction: column; background: var(--bg); }
.chat-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: var(--surface); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.msg-row { display: flex; gap: 8px; max-width: 70%; }
.msg-row.out { flex-direction: row-reverse; align-self: flex-end; }
.msg-bubble { padding: 10px 14px; border-radius: 16px; font-size: 0.85rem; line-height: 1.6; }
.msg-row.in .msg-bubble { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-row.out .msg-bubble { background: var(--accent); color: white; border-bottom-right-radius: 4px; }
.msg-time { font-size: 0.68rem; color: var(--text3); align-self: flex-end; }
.chat-input-row { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; background: var(--surface); }
.chat-input { flex: 1; height: 44px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 12px; padding: 0 16px; color: var(--text); font-family: var(--font); font-size: 0.87rem; outline: none; }
.chat-input:focus { border-color: var(--accent); }
.btn-send { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.btn-send:hover { background: var(--accent2); transform: scale(1.05); }
.btn-send svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 2; }

/* ── ALERTS / TOAST ─────────────────────────────────────── */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 999; padding: 14px 20px; background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-lg); font-size: 0.85rem; color: var(--text); box-shadow: var(--shadow-lg); transform: translateY(100px); opacity: 0; transition: all 0.3s; max-width: 340px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(22,163,74,0.3); }
.toast.error { border-color: rgba(220,38,38,0.3); }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.85rem; border: 1px solid; }
.alert-success { background: rgba(22,163,74,0.08); border-color: rgba(22,163,74,0.2); color: var(--green); }
.alert-error { background: rgba(220,38,38,0.08); border-color: rgba(220,38,38,0.2); color: var(--red); }
.alert-info { background: var(--accent3); border-color: rgba(14,168,147,0.25); color: var(--accent); }

/* ── LOADER ─────────────────────────────────────────────── */
.spinner { width: 20px; height: 20px; border: 2px solid var(--accent3); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TABLE ──────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 10px 14px; font-size: 0.72rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border2); }
.data-table td { padding: 13px 14px; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: var(--surface2); }

/* ── PROFILE PAGE ───────────────────────────────────────── */
.profile-header { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.profile-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.profile-verifs { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── STEPS / WIZARD ─────────────────────────────────────── */
.steps { display: flex; gap: 8px; margin-bottom: 2rem; align-items: center; }
.step { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-num { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: var(--text3); flex-shrink: 0; transition: all var(--transition); }
.step.active .step-num { background: var(--accent); border-color: var(--accent); color: white; box-shadow: 0 0 0 4px var(--accent3); }
.step.done .step-num { background: var(--green); border-color: var(--green); color: white; }
.step-label { font-size: 0.8rem; color: var(--text3); }
.step.active .step-label { color: var(--text); font-weight: 600; }
.step-sep { flex: 1; height: 1px; background: var(--border2); }
.wizard-panel { display: none; animation: fadeSlide .35s var(--transition); }
.wizard-panel.active { display: block; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.wizard-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; }
.wizard-choice {
  border: 1.5px solid var(--border2); border-radius: var(--radius-lg); padding: 1.1rem;
  cursor: pointer; text-align: center; transition: all var(--transition); background: var(--surface);
}
.wizard-choice:hover { border-color: var(--accent); transform: translateY(-2px); }
.wizard-choice.selected { border-color: var(--accent); background: var(--accent3); box-shadow: 0 0 0 3px var(--accent3); }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 2rem; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 4rem; background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { font-size: 0.82rem; color: var(--text3); margin-top: 10px; max-width: 280px; }
.footer-col h5 { font-size: 0.78rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 0.82rem; color: var(--text3); margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text3); }

/* ── AUTH PAGES ─────────────────────────────────────────── */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-xl); padding: 2.25rem; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-title { font-size: 1.45rem; font-weight: 700; margin-bottom: 4px; font-family: var(--font-display); }
.auth-sub { font-size: 0.85rem; color: var(--text3); }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text3); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 1.5rem 0; color: var(--text3); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .5px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.telegram-login-wrap { display: flex; justify-content: center; margin: 1.25rem 0; min-height: 40px; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .search-row { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .msg-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .filter-sort { margin-left: 0; }
}
@media (max-width: 480px) {
  .hero { padding: 3.5rem 0 2rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border3); border-radius: 2px; }

/* ── NATIVE FORM CONTROLS (checkboxes/radios follow theme) ─ */
input[type="checkbox"], input[type="radio"] {
  accent-color: var(--accent);
  width: 16px; height: 16px;
  cursor: pointer;
}


/* THEME RELAUNCH Navy Gold */
.nav { background: #0F2340; backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-link { color: rgba(255,255,255,0.75); }
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-link.active { background: rgba(255,255,255,0.12); color: var(--accent2); }
.nav-logo-name { color: #fff; }
.nav-logo-name span { color: var(--accent2); }
.nav .theme-toggle { border-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.8); }
.nav .theme-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-actions .btn-ghost { border-color: rgba(255,255,255,0.28); color: rgba(255,255,255,0.9); }
.nav-actions .btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-notif { border-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.8); }
.nav-notif:hover { background: rgba(255,255,255,0.1); }
.btn-primary { background: var(--accent); color: #14213D; box-shadow: 0 4px 16px var(--glow); }
.btn-primary:hover { background: var(--accent2); filter: none; color: #14213D; }
[data-theme="dark"] .nav { background: #0A1626; }


/* luxGO BRAND RELAUNCH replaces navy gold theme */
.nav { background: rgba(255,255,255,0.92); backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--border); }
.nav-link { color: var(--text2); }
.nav-link:hover { background: var(--surface2); color: var(--text); }
.nav-link.active { background: var(--accent3); color: var(--accent); }
.nav-logo-name { color: var(--teal) !important; font-weight: 500; letter-spacing: -0.3px; text-transform: lowercase; }
.nav-logo-name span { color: var(--accent) !important; font-weight: 800; font-size: 1.4em; text-transform: uppercase; letter-spacing: -1px; margin-left: 2px; }
.nav .theme-toggle { border-color: var(--border2); color: var(--text2); }
.nav .theme-toggle:hover { background: var(--surface2); color: var(--text); }
.nav-actions .btn-ghost { border-color: var(--border2); color: var(--text2); }
.nav-actions .btn-ghost:hover { background: var(--surface2); color: var(--text); }
.nav-notif { border-color: var(--border2); color: var(--text2); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--glow); }
.btn-primary:hover { background: var(--accent2); filter: none; transform: translateY(-2px); box-shadow: 0 8px 22px var(--glow); color: #fff; }
[data-theme="dark"] .nav { background: rgba(15,20,28,0.92); }
.footer-brand .nav-logo-name, footer .nav-logo-name { color: var(--teal) !important; }

/* ===== luxGO — micro-interactions & motion design (restrained) ===== */
.route-dot-end{position:relative}
.route-dot-end::after{content:'';position:absolute;inset:-4px;border-radius:50%;border:1.5px solid var(--coral);opacity:0;animation:lxRoutePulse 2.4s ease-out infinite}
@keyframes lxRoutePulse{0%{opacity:.55;transform:scale(.6)}70%{opacity:0;transform:scale(1.6)}100%{opacity:0;transform:scale(1.6)}}
.btn{will-change:transform}
.btn:active{transform:scale(.97)}
.card,.trip-card,.mini-trip,.dash-action,.filter-chip{will-change:transform}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}