/* ============================================================
   biletalarmı v4 — Design Token System + Component Styles
   ============================================================ */

/* ── Display serif (Hero H1 — "uçak bileti sitesi" şıklığı) ── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

/* ── Geist Sans Variable ─────────────────────────────────── */
@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/GeistVF.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  /* Renkler */
  --bg: #0c0a09;
  --surface: #1c1917;
  --surface-2: #292524;
  --border: #44403c;
  --accent: #eab308;
  --accent-2: #22c55e;
  --accent-3: #ec4899;
  --text: #fafaf9;
  --muted: #a8a29e;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Shadow */
  --shadow-glow: 0 0 48px color-mix(in srgb, var(--accent) 18%, transparent);

  /* Easing */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);

  /* Spacing (8px grid) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

input,
textarea {
  font-family: inherit;
}

/* ── Layout Utilities ────────────────────────────────────── */
.container {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

/* ── Glass ───────────────────────────────────────────────── */
.glass {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Button ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  padding: 0 28px;
  transition: all 220ms var(--ease-spring);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ── Input ───────────────────────────────────────────────── */
.input {
  height: 56px;
  font-size: 18px;
  padding: 0 18px;
  width: 100%;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 220ms var(--ease-spring);
  outline: none;
}

.input::placeholder {
  color: var(--muted);
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 200ms ease;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  padding-top: 80px;
  display: flex;
  align-items: flex-start;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, #1c1917 0%, #0c0a09 60%);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  mix-blend-mode: normal;
  transition: opacity 800ms ease;
}

[data-theme="dark"] .hero-image {
  opacity: 0.25;
}

/* Tren silüeti */
.hero-train {
  position: absolute;
  bottom: 40px;
  height: 36px;
  width: auto;
  animation: train-pass 14s linear infinite;
  opacity: 0.5;
}

@keyframes train-pass {
  0% { transform: translateX(-200px); }
  100% { transform: translateX(calc(100vw + 200px)); }
}

/* Hız çizgileri */
.hero-speedlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-speedlines::before,
.hero-speedlines::after {
  content: '';
  position: absolute;
  left: -100%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.15), transparent);
  animation: speedline 15s linear infinite;
}

.hero-speedlines::before {
  top: 45%;
  animation-delay: -5s;
}

.hero-speedlines::after {
  top: 55%;
  animation-delay: -10s;
}

@keyframes speedline {
  0% { transform: translateX(0); }
  100% { transform: translateX(200%); }
}

.hero-content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.hero-h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-h1 .amber {
  color: var(--accent);
}

.hero-sub {
  font-size: 20px;
  color: var(--muted);
  margin-top: 16px;
  margin-bottom: 48px;
}

/* ── Form Card ───────────────────────────────────────────── */
.form-card {
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 20px;
  position: relative;
  text-align: left;
}

.form-row {
  margin-bottom: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label,
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Stepper ─────────────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  height: 56px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.stepper-btn {
  width: 56px;
  height: 56px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease;
  flex-shrink: 0;
}

.stepper-btn:hover {
  background: var(--surface);
}

.stepper-btn:active {
  transform: scale(0.95);
}

.stepper-value {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  font-feature-settings: 'tnum';
}

/* ── Pills ───────────────────────────────────────────────── */
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  height: 48px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 220ms var(--ease-spring);
  user-select: none;
  font-size: 15px;
  font-weight: 500;
}

.pill input {
  display: none;
}

.pill:has(input:checked) {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}

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

/* ── Form extras ─────────────────────────────────────────── */
.form-error {
  color: #f87171;
  font-size: 14px;
  padding: 12px 16px;
  background: color-mix(in srgb, #f87171 10%, transparent);
  border: 1px solid color-mix(in srgb, #f87171 30%, transparent);
  border-radius: var(--radius-md);
  margin-top: 8px;
}

.form-error[hidden] {
  display: none;
}

.btn-submit {
  width: 100%;
  height: 64px;
  margin-top: 24px;
  font-size: 18px;
  position: relative;
}

.form-disclaimer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* ── Spinner ─────────────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner.hidden {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Smart suggest ───────────────────────────────────────── */
.smart-suggest {
  background: color-mix(in srgb, var(--accent-2) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.smart-suggest.hidden {
  display: none;
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 48px;
  font-size: 18px;
}

/* ── Steps ───────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  padding: 32px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.step-num {
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Tools Grid ──────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.tool-card {
  padding: 24px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: all 220ms var(--ease-spring);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.tool-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: color 160ms ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '⌄';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 240ms var(--ease-spring);
  font-size: 20px;
  color: var(--muted);
}

.faq[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq p {
  padding: 0 24px 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer nav {
  display: flex;
  gap: 24px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer a:hover {
  color: var(--text);
}

/* ── Responsive: Tablet / Mobile ─────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 200;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 24px;
  }

  /* Hero */
  .hero-content {
    padding-top: 64px;
  }

  .hero-sub {
    font-size: 17px;
  }

  /* Form */
  .form-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .steps {
    grid-template-columns: 1fr;
  }

  /* Tools */
  .tools-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Reduce Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-train,
  .hero-speedlines,
  .hero-speedlines::before,
  .hero-speedlines::after,
  .spinner,
  .faq summary::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   JUMBO Station Picker (Nereden / Nereye — devasa)
   ============================================================ */

.field-jumbo {
  margin-bottom: var(--s4);
  position: relative;
}

.label-jumbo {
  display: block;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--muted);
  margin-bottom: var(--s2);
  transition: color 220ms var(--ease-spring);
}

.field-jumbo:focus-within .label-jumbo,
.field-jumbo.has-value .label-jumbo {
  color: var(--accent);
}

.combobox {
  position: relative;
}

.input-jumbo {
  width: 100%;
  height: clamp(64px, 9vw, 88px);
  padding: 0 var(--s4);
  font-family: inherit;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 220ms var(--ease-spring);
  outline: none;
}

.input-jumbo::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.input-jumbo:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.input-jumbo:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent);
  background: var(--surface);
}

.field-jumbo.has-value .input-jumbo {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
}

/* Swap button arası yöne ⇅ */
.swap-btn {
  display: block;
  width: 56px;
  height: 56px;
  margin: calc(var(--s3) * -1) auto var(--s3);
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 220ms var(--ease-spring);
}
.swap-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(180deg);
}

/* ── Combobox dropdown — canlı sonuçlar ──────────────────── */
.combo-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: var(--s1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  /* Açılış animasyonu */
  transform-origin: top center;
  animation: combo-pop 220ms var(--ease-spring);
}
.combo-list.hidden { display: none; }

@keyframes combo-pop {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.combo-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 120ms ease;
  user-select: none;
}
.combo-item:hover,
.combo-item[aria-selected="true"] {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.combo-item-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
}

.combo-item-name { flex: 1; }
.combo-item-name mark {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.combo-item-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.combo-empty {
  padding: 20px 18px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.combo-section-label {
  padding: 10px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Solari flip placeholder span */
.combo-flip {
  position: absolute;
  pointer-events: none;
  display: none;
}

@media (max-width: 640px) {
  .label-jumbo { font-size: clamp(2rem, 11vw, 3rem); }
  .input-jumbo { font-size: 1.25rem; height: 64px; padding: 0 20px; }
  .swap-btn { width: 48px; height: 48px; font-size: 20px; }
}

/* ============================================================
   OVERRIDE — Hero H1 serif + Jumbo labels DAHA BÜYÜK + STACK
   ============================================================ */

/* H1 display serif */
.hero-h1 {
  font-family: 'Instrument Serif', Geist, serif !important;
  font-weight: 400 !important;
  font-size: clamp(3rem, 8vw, 6.25rem) !important;
  letter-spacing: -0.02em !important;
  line-height: 0.95 !important;
}
.hero-h1 .amber {
  font-style: italic;
  font-weight: 400;
}

/* Form içindeki tüm field'lar STACK — yan yana yok */
.form-card .form-row-2 { display: block !important; }
.form-card .form-row-2 .field { margin-bottom: var(--s4); }

/* Jumbo label — MUCH bigger, dominant */
.label-jumbo {
  font-family: 'Instrument Serif', Geist, serif !important;
  font-size: clamp(3rem, 9vw, 5.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  line-height: 1 !important;
  margin-bottom: var(--s2) !important;
  color: var(--text);
  opacity: 0.92;
}
.field-jumbo:focus-within .label-jumbo {
  color: var(--accent);
  opacity: 1;
}

/* Daha büyük input padding */
.input-jumbo {
  height: clamp(72px, 10vw, 96px) !important;
  font-size: clamp(1.4rem, 3vw, 1.9rem) !important;
}

@media (max-width: 640px) {
  .label-jumbo { font-size: clamp(2.5rem, 14vw, 4rem) !important; }
  .input-jumbo { font-size: 1.3rem !important; height: 68px !important; }
}

/* Form-card daha geniş — labels sığsın */
.hero-content { max-width: 1040px !important; }
.form-card    { max-width: 1040px !important; padding: var(--s5) var(--s4) !important; }

/* Hero altında "TCDD tren bileti alarmı" alt yazıyı sub'tan üst yazıya çevir */
.hero-h1 + .hero-sub { font-size: 22px; opacity: 0.85; }

/* ── Tepe boşluğu azalt + label metni küçült (input aynen kalır) ── */
.hero { padding-top: 24px !important; }
.hero-content { padding-top: 48px !important; padding-bottom: 56px !important; }

/* Label sadece metin küçültme */
.label-jumbo {
  font-size: clamp(1.4rem, 3.2vw, 2.25rem) !important;
  margin-bottom: 12px !important;
}

@media (max-width: 640px) {
  .hero-content { padding-top: 24px !important; }
  .label-jumbo { font-size: clamp(1.2rem, 6vw, 1.75rem) !important; }
}

/* ============================================================
   THEME: Light (default) + Dark (opt-in via [data-theme="dark"])
   ============================================================ */

/* Light tokens — varsayılan */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --border: #e7e5e4;
  --text: #1c1917;
  --muted: #78716c;
  --accent: #d97706;       /* daha derin amber, beyazda iyi kontrast */
  --accent-2: #16a34a;
  --accent-3: #db2777;
  --shadow-glow: 0 12px 48px color-mix(in srgb, var(--accent) 22%, transparent);
}

html[data-theme="dark"] {
  --bg: #0c0a09;
  --surface: #1c1917;
  --surface-2: #292524;
  --border: #44403c;
  --text: #fafaf9;
  --muted: #a8a29e;
  --accent: #eab308;
  --accent-2: #22c55e;
  --accent-3: #ec4899;
  --shadow-glow: 0 0 48px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Smooth theme transition */
html, body, .nav, .hero-gradient, .form-card, .glass, .input-jumbo,
.combo-list, .step, .tool-card, .faq, .swap-btn, .footer {
  transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease;
}

/* Light tema: hero gradient + glass elementleri yumuşat */
:root .hero-gradient {
  background: radial-gradient(circle at 20% 0%, #fef3c7 0%, #fafaf9 60%);
}
html[data-theme="dark"] .hero-gradient {
  background: radial-gradient(circle at 20% 0%, #1c1917 0%, #0c0a09 60%);
}

:root .glass {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
html[data-theme="dark"] .glass {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}

/* Tren silüeti light tema renk */
:root .hero-train rect, :root .hero-train circle { fill: #d6d3d1; stroke: #a8a29e; }

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  margin-right: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: all 220ms var(--ease-spring);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(20deg);
}
.theme-toggle-icon { display: none; }
:root .theme-toggle-icon[data-theme-icon="dark"] { display: inline; }
html[data-theme="dark"] .theme-toggle-icon[data-theme-icon="light"] { display: inline; }

/* ============================================================
   Date Picker — shadcn/Cal.com tarzı, vanilla
   ============================================================ */

.label-jumbo-sm { font-size: clamp(1rem, 2.4vw, 1.4rem) !important; }

.date-field { position: relative; }

.datepicker-trigger {
  width: 100%;
  height: clamp(72px, 10vw, 96px);
  padding: 0 24px;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-family: inherit;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 220ms var(--ease-spring);
  font-feature-settings: 'tnum';
}
.datepicker-trigger:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.datepicker-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent);
}
.date-field.has-value .datepicker-trigger {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
}
.date-field.has-value .datepicker-display { color: var(--text); }
.datepicker-display:not(.has-value) { color: var(--muted); }
.date-field:not(.has-value) .datepicker-display { color: var(--muted); font-weight: 500; }
.datepicker-icon { color: var(--muted); font-size: 1.1rem; transition: transform 220ms var(--ease-spring); }
.datepicker-trigger[aria-expanded="true"] .datepicker-icon { transform: rotate(180deg); }

/* Popup */
.datepicker-popup {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 60;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  animation: combo-pop 220ms var(--ease-spring);
  max-width: 480px;
}
.datepicker-popup.hidden { display: none; }

/* Chips */
.datepicker-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.chip {
  padding: 8px 14px;
  height: 36px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: all 180ms var(--ease-spring);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
}
.chip.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Header */
.datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.datepicker-month {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
}
.datepicker-nav {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  transition: all 180ms ease;
}
.datepicker-nav:hover { background: var(--surface-2); color: var(--text); }

/* Weekdays */
.datepicker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}
.datepicker-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 6px 0;
}

/* Grid */
.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.datepicker-day {
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-feature-settings: 'tnum';
  transition: all 140ms ease;
  border: 2px solid transparent;
}
.datepicker-day:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.datepicker-day.today {
  border-color: var(--accent);
  font-weight: 700;
}
.datepicker-day.selected {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  transform: scale(1.06);
}
.datepicker-day.outside { color: var(--muted); opacity: 0.35; pointer-events: none; }
.datepicker-day.disabled { color: var(--muted); opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.datepicker-day.weekend { color: var(--accent-3); }
.datepicker-day.weekend.selected { color: var(--bg); }

/* Ay geçişi anim */
.datepicker-grid.slide-left { animation: slide-l 220ms var(--ease-spring); }
.datepicker-grid.slide-right { animation: slide-r 220ms var(--ease-spring); }
@keyframes slide-l { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slide-r { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 640px) {
  .datepicker-popup { padding: 14px; }
  .datepicker-day { font-size: 14px; }
}

/* ============================================================
   Passenger row + ayrı koltuk uyarısı + Email domain chips
   ============================================================ */

.passenger-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}
.passenger-row .stepper {
  flex: 0 0 auto;
  min-width: 200px;
  height: clamp(72px, 10vw, 96px);
}

.passenger-extra {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  cursor: pointer;
  transition: all 220ms var(--ease-spring);
  min-height: clamp(72px, 10vw, 96px);
  user-select: none;
}
.passenger-extra:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-2));
}
.passenger-extra input { display: none; }
.passenger-extra::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  transition: all 180ms var(--ease-spring);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.passenger-extra:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
}
.passenger-extra:has(input:checked)::before {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}
.pe-content { display: flex; flex-direction: column; gap: 2px; }
.pe-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.pe-sub { font-size: 13px; color: var(--muted); line-height: 1.3; }

/* Email domain chips */
.email-domains {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.email-chip {
  padding: 8px 14px;
  height: 36px;
  font-size: 14px;
  font-weight: 600;
  font-feature-settings: 'tnum';
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: all 180ms var(--ease-spring);
}
.email-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  transform: translateY(-1px);
}
.email-chip:active { transform: translateY(0); }
.email-chip.used { opacity: 0.5; pointer-events: none; }

@media (max-width: 640px) {
  .passenger-row { flex-direction: column; }
  .passenger-row .stepper, .passenger-extra { width: 100%; }
  .email-chip { font-size: 13px; padding: 6px 12px; height: 32px; }
}

/* ============================================================
   DatePicker içinde Yolcu bölümü
   ============================================================ */

.datepicker-trigger {
  gap: 12px;
}
.datepicker-pass-summary {
  margin-left: auto;
  margin-right: 12px;
  font-size: 0.85em;
  font-weight: 500;
  color: var(--muted);
  font-feature-settings: 'tnum';
  white-space: nowrap;
}
.date-field.has-value .datepicker-pass-summary {
  color: var(--text);
}

.dp-passenger-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.dp-pass-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dp-pass-text { display: flex; flex-direction: column; gap: 2px; }
.dp-pass-title { font-size: 15px; font-weight: 600; color: var(--text); }
.dp-pass-sub { font-size: 13px; color: var(--muted); }

.stepper-mini {
  height: 44px;
  width: 144px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stepper-mini .stepper-btn {
  width: 44px;
  height: 44px;
  font-size: 20px;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 160ms ease;
}
.stepper-mini .stepper-btn:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.stepper-mini .stepper-value {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  font-feature-settings: 'tnum';
}

.passenger-extra-mini {
  padding: 12px 14px;
  min-height: auto;
  font-size: 14px;
}
.passenger-extra-mini .pe-title { font-size: 14px; }
.passenger-extra-mini .pe-sub { font-size: 12px; }

/* Ayrı koltuk uyarı kutusu — kompakt versiyon (sadece 2+ yolcuda) */
.passenger-extra-mini {
  margin-top: 4px;
  padding: 8px 12px;
  min-height: auto;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  border-radius: 999px;
}
.passenger-extra-mini::before {
  width: 16px; height: 16px;
}
.passenger-extra-mini:has(input:checked)::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}
.pe-mini-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}
.passenger-extra-mini.hidden { display: none !important; }

/* ============================================================
   Sep-Toggle — zarif, küçük, farklı renkte (magenta accent-3)
   ============================================================ */

.sep-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  margin-top: 12px;
  background: color-mix(in srgb, var(--accent-3) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-3) 22%, transparent);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  font-size: 12.5px;
  font-weight: 500;
  color: color-mix(in srgb, var(--accent-3) 90%, var(--text));
  transition: all 220ms var(--ease-spring);
  position: relative;
  width: fit-content;
  /* Açılınca dikkat çek */
  animation: sep-pulse 1.6s ease-out 1;
}
.sep-toggle.hidden { display: none !important; }
.sep-toggle input { display: none; }

.sep-toggle:hover {
  background: color-mix(in srgb, var(--accent-3) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent-3) 50%, transparent);
}

.sep-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent-3) 50%, transparent);
  background: transparent;
  flex-shrink: 0;
  position: relative;
  transition: all 180ms var(--ease-spring);
}
.sep-toggle:has(input:checked) {
  background: var(--accent-3);
  border-color: var(--accent-3);
  color: #fff;
}
.sep-toggle:has(input:checked) .sep-dot {
  background: #fff;
  border-color: #fff;
}
.sep-toggle:has(input:checked) .sep-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--accent-3);
  border-radius: 50%;
}

.sep-text { white-space: nowrap; line-height: 1; }

.sep-info {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0;
  font-size: 12px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  opacity: 0.6;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 160ms ease;
}
.sep-info:hover, .sep-info:focus {
  opacity: 1;
  outline: none;
}

/* Tooltip */
.sep-info::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 240px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: normal;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 70;
}
.sep-info:hover::after, .sep-info:focus::after {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse on appear — accent-3 dikkat çek */
@keyframes sep-pulse {
  0% { transform: scale(0.92); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent-3) 18%, transparent); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .sep-toggle { animation: none; }
}

/* Sep-toggle — kutucuk YOK, chip kendisi toggle. Text-transform yok. */
.sep-toggle .sep-text {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500;
}
.sep-toggle { padding: 7px 14px 7px 14px !important; }
.sep-dot { display: none !important; }
.sep-info { cursor: help; }

/* iOS-tarzı toggle switch — net "açık/kapalı" göstergesi */
.sep-toggle {
  /* Defaultta outlined görünüm — "kapalı" */
  background: transparent !important;
  border: 1.5px solid color-mix(in srgb, var(--accent-3) 35%, var(--border)) !important;
  color: var(--text) !important;
}
.sep-toggle:hover {
  background: color-mix(in srgb, var(--accent-3) 6%, transparent) !important;
  border-color: color-mix(in srgb, var(--accent-3) 60%, transparent) !important;
}

.sep-switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 18px;
  flex-shrink: 0;
}
.sep-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}
.sep-slider {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--muted) 40%, transparent);
  border-radius: 999px;
  transition: background 200ms ease;
  cursor: pointer;
}
.sep-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 220ms var(--ease-spring);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.sep-switch input:checked + .sep-slider {
  background: var(--accent-3);
}
.sep-switch input:checked + .sep-slider::before {
  transform: translateX(12px);
}

/* Toggle açıkken chip'in kendisi de hafif vurgulansın */
.sep-toggle:has(input:checked) {
  background: color-mix(in srgb, var(--accent-3) 10%, transparent) !important;
  border-color: var(--accent-3) !important;
  color: var(--accent-3) !important;
}

/* ============================================================
   Bildirim kanalı — büyük pillar + koşullu blok
   ============================================================ */

.pills-large {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pill-large {
  flex: 1 1 160px;
  min-height: 64px;
  padding: 14px 22px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 220ms var(--ease-spring);
  user-select: none;
}
.pill-large input { display: none; }
.pill-large .pill-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
  transition: all 220ms var(--ease-spring);
}
.pill-large:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  transform: translateY(-2px);
}
.pill-large:has(input:checked) {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-2));
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 18%, transparent);
}
.pill-large:has(input:checked) .pill-icon {
  background: var(--accent);
  color: var(--bg);
}

.pills-hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  text-align: left;
}

/* Koşullu blok (email/telegram/push) — kapalı durumda gizle, açılırken slide */
.channel-block {
  overflow: hidden;
  max-height: 600px;
  opacity: 1;
  margin-top: 24px;
  transition: max-height 360ms var(--ease-spring), opacity 240ms ease, margin 240ms ease;
}
.channel-block.hidden {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none;
  display: block !important; /* override base .hidden */
}

/* Channel CTA buton (Telegram'a git, Push izin) */
.channel-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: all 220ms var(--ease-spring);
  text-align: left;
  font-family: inherit;
}
.channel-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.channel-cta-telegram:hover { border-color: #0088cc; box-shadow: 0 12px 32px rgba(0,136,204,0.18); }
.channel-cta-push:hover { border-color: var(--accent); }

.cc-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.channel-cta-telegram .cc-icon {
  background: rgba(0,136,204,0.12);
  color: #0088cc;
}
.cc-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cc-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.cc-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
.cc-arrow {
  font-size: 22px;
  color: var(--muted);
  transition: transform 220ms var(--ease-spring), color 220ms;
}
.channel-cta:hover .cc-arrow { transform: translateX(4px); color: var(--accent); }
.channel-cta-telegram:hover .cc-arrow { color: #0088cc; }

.channel-status {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
}
.channel-status.success { background: color-mix(in srgb, var(--accent-2) 12%, transparent); color: var(--accent-2); }
.channel-status.error { background: color-mix(in srgb, var(--accent-3) 12%, transparent); color: var(--accent-3); }
.channel-status.info { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

@media (max-width: 640px) {
  .pill-large { flex: 1 1 100%; }
}

/* ============================================================
   Submit button morph + Heart particles + Form error
   ============================================================ */

.btn-submit {
  position: relative;
  height: 64px;
  margin-top: 28px;
  font-size: 18px;
  letter-spacing: -0.01em;
  transition: all 360ms var(--ease-spring);
  overflow: hidden;
}

.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-submit:active { transform: translateY(0); }

.btn-submit.btn-loading {
  pointer-events: none;
  background: color-mix(in srgb, var(--accent) 70%, var(--surface)) !important;
}
.btn-submit.btn-loading #btn-text { opacity: 0.6; }
.btn-submit.btn-loading #btn-spinner.hidden { display: none; }
.btn-submit.btn-loading #btn-spinner {
  display: inline-flex !important;
  width: 22px; height: 22px;
  margin-left: 12px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-submit.btn-loading #btn-text::after { content: ' …'; }

@keyframes spin { to { transform: rotate(360deg); } }

.btn-submit.btn-success {
  width: 80px !important;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  background: var(--accent-2) !important; /* sinyal yeşili */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.btn-submit.btn-success #btn-text,
.btn-submit.btn-success #btn-spinner { display: none !important; }
.btn-submit .btn-check {
  width: 28px;
  height: 28px;
  color: #fff;
}

/* Heart particles */
.heart-particle {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  color: var(--accent-3);
  filter: drop-shadow(0 4px 8px rgba(236, 72, 153, 0.4));
  transform: translate(-50%, -50%) scale(0.4);
}

/* Form error */
.form-error {
  margin-top: 20px;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--accent-3) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-3) 40%, transparent);
  border-radius: 12px;
  color: var(--accent-3);
  font-size: 15px;
  font-weight: 500;
  animation: shake 0.4s var(--ease-spring);
}
.form-error[hidden] { display: none; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ============================================================
   Smart Suggest — "Yine bu rotaya mı?"
   ============================================================ */

.smart-suggest {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  margin-bottom: 28px;
  background: color-mix(in srgb, var(--accent-2) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  border-radius: 14px;
  animation: ss-slide 360ms var(--ease-spring);
}
.smart-suggest.hidden { display: none !important; }

@keyframes ss-slide {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ss-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-2) 22%, transparent);
  color: var(--accent-2);
  font-size: 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ss-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: left;
}
.ss-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ss-route {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text);
  flex-wrap: wrap;
}
.ss-route strong { font-weight: 700; }
.ss-arrow { color: var(--muted); font-size: 1.1em; }
.ss-meta { color: var(--muted); font-size: 13px; margin-left: 6px; font-feature-settings: 'tnum'; }

.ss-fill {
  flex-shrink: 0;
  padding: 10px 16px;
  background: var(--accent-2);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 220ms var(--ease-spring);
  white-space: nowrap;
}
.ss-fill:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-2) 35%, transparent); }

.ss-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 160ms ease;
  flex-shrink: 0;
}
.ss-close:hover { background: var(--surface-2); color: var(--text); }

@media (max-width: 640px) {
  .smart-suggest { flex-wrap: wrap; }
  .ss-fill { width: 100%; }
}

/* Sound toggle ikon görünürlüğü */
.sound-toggle .theme-toggle-icon { display: none; }
:root .sound-toggle[data-sound-state="on"] [data-sound-icon="on"],
html .sound-toggle[data-sound-state="on"] [data-sound-icon="on"] { display: inline; }
:root .sound-toggle[data-sound-state="off"] [data-sound-icon="off"],
html .sound-toggle[data-sound-state="off"] [data-sound-icon="off"] { display: inline; }
.sound-toggle:not([data-sound-state]) [data-sound-icon="on"] { display: inline; }

/* ============================================================
   Sefer seçimi
   ============================================================ */

.trains-section {
  margin-top: 32px;
  overflow: hidden;
  max-height: 2400px;
  opacity: 1;
  transition: max-height 480ms var(--ease-spring), opacity 320ms ease, margin 320ms ease;
}
.trains-section.hidden {
  max-height: 0 !important;
  opacity: 0;
  margin-top: 0 !important;
  pointer-events: none;
  display: block !important;
}

.trains-all-btn {
  margin-left: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: all 180ms var(--ease-spring);
  vertical-align: middle;
}
.trains-all-btn:hover { color: var(--accent); border-color: var(--accent); }
.trains-all-btn[hidden] { display: none; }

.trains-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.trains-status {
  padding: 14px 18px;
  margin-bottom: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.trains-status.hidden { display: none; }
.trains-status.loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -2px;
}
.trains-status.error { color: var(--accent-3); border-color: color-mix(in srgb, var(--accent-3) 35%, transparent); }

.trains-list {
  display: grid;
  gap: 10px;
}

.train-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 220ms var(--ease-spring);
  user-select: none;
  position: relative;
}
.train-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  transform: translateY(-1px);
}
.train-card[aria-selected="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 16%, transparent);
}

.train-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms var(--ease-spring);
}
.train-card[aria-selected="true"] .train-check {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}

.train-times {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
  color: var(--text);
}
.train-arrow { color: var(--muted); font-size: 18px; font-weight: 400; }
.train-duration { font-size: 12px; color: var(--muted); font-weight: 500; }

.train-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.train-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.train-type-badge {
  padding: 3px 8px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.train-name {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.train-seats {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.train-seats.has { color: var(--accent-2); }
.train-seats.full { color: var(--muted); }

.train-price {
  font-size: 18px;
  font-weight: 700;
  font-feature-settings: 'tnum';
  color: var(--text);
  white-space: nowrap;
}

.train-empty {
  text-align: center;
  padding: 32px 18px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 640px) {
  .train-card {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 14px 16px;
  }
  .train-times { font-size: 18px; }
  .train-price { font-size: 16px; }
  .train-seats { display: none; }
}
