/* ============================================================
   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&family=Caveat:wght@400..700&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: min(1800px, 95vw);
  padding: 0 24px;
  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 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-brand .brand-bilet {
  font-family: 'Geist', -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.nav-brand .brand-alarmi {
  font-family: 'Caveat', 'Bradley Hand', cursive;
  font-weight: 700;
  font-size: 1.55em;
  color: var(--accent, #c2410c);
  margin-left: 4px;
  margin-top: -0.08em;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--accent, #c2410c) 0%, var(--accent-2, #b91c1c) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: brand-write 2.5s cubic-bezier(.7,0,.3,1) .3s 1 backwards;
}
@keyframes brand-write {
  0%   { clip-path: inset(0 100% 0 0); transform: translateY(2px) rotate(-2deg); }
  60%  { clip-path: inset(0 0 0 0);    transform: translateY(0) rotate(-1.5deg); }
  100% { clip-path: inset(0 0 0 0);    transform: translateY(0) rotate(-1.2deg); }
}
.nav-brand:hover .brand-alarmi { animation: brand-write 2.2s cubic-bezier(.7,0,.3,1) 1; }

/* ── Animated train SVG ── */
.brand-train {
  width: 30px;
  height: 22px;
  color: var(--text);
  flex-shrink: 0;
}
.brand-train-body { animation: train-bob 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
.brand-train-wheel {
  transform-origin: center;
  transform-box: fill-box;
  animation: wheel-spin 0.9s linear infinite;
}
.brand-train-smoke circle { animation: smoke-rise 2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes train-bob   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-1px)} }
@keyframes wheel-spin  { to { transform: rotate(360deg); } }
@keyframes smoke-rise  { 0%{transform:translate(0,0) scale(1); opacity:.6} 100%{transform:translate(2px,-6px) scale(1.6); opacity:0} }

/* ── Theme toggle morph (sun ↔ moon) ── */
.theme-icon-svg { width: 20px; height: 20px; transition: transform .5s cubic-bezier(.5,1.5,.5,1); }
.theme-toggle:hover .theme-icon-svg { transform: rotate(15deg) scale(1.08); }
.theme-icon-sun  { transition: r .4s, opacity .4s; }
.theme-icon-rays { transition: opacity .4s, stroke-dashoffset .4s; }
.theme-icon-moon { opacity: 0; transform: scale(.6); transform-origin: center; transform-box: fill-box; transition: opacity .45s, transform .55s cubic-bezier(.5,1.5,.5,1); }
[data-theme="dark"] .theme-icon-sun  { r: 0; opacity: 0; }
[data-theme="dark"] .theme-icon-rays { opacity: 0; }
[data-theme="dark"] .theme-icon-moon { opacity: 1; transform: scale(1); }

/* ── Swap arrows rotate ── */
.swap-icon { width: 18px; height: 18px; transition: transform .5s cubic-bezier(.5,1.7,.5,1); }
.swap-btn:hover .swap-icon { transform: rotate(180deg); }
.swap-btn:active .swap-icon { transform: rotate(360deg); }

@media (prefers-reduced-motion: reduce) {
  .brand-alarmi, .brand-train-body, .brand-train-wheel, .brand-train-smoke circle { animation: none; }
}

.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 calc(var(--s3) * -1);
  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-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.combo-item-name { font-size: 16px; font-weight: 600; }
.combo-item-name mark {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}
.combo-item-city {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.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: 8px 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);
}

/* ── Animated channel icons (Lucide paths) ─────────────────
   Tek paket simetri: 32px container, 22px SVG, stroke-2 sabit
   Animasyon hover/checked'de tetiklenir, sade ve mikro
   ──────────────────────────────────────────────────────── */
.pill-icon-anim {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}
.pill-icon-anim svg {
  width: 22px;
  height: 22px;
  overflow: visible;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.pill-large:hover .pill-icon-anim svg,
.pill-large:has(input:checked) .pill-icon-anim svg { transform: scale(1.08); }

/* Mail — kapak açılma jesti (env-flap path V şekli, üstten çekilir) */
.pill-icon-mail .env-flap {
  transform-origin: 12px 7px;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.pill-large:hover .pill-icon-mail .env-flap,
.pill-large:has(input:checked) .pill-icon-mail .env-flap {
  transform: translateY(-1px) scaleY(.6);
}

/* Send (paper plane) — ileri-yukarı uçuş */
.pill-icon-plane svg {
  transition: transform .4s cubic-bezier(.34,1.56,.64,1) !important;
}
.pill-large:hover .pill-icon-plane svg,
.pill-large:has(input:checked) .pill-icon-plane svg {
  transform: translate(2px, -2px) rotate(-6deg) scale(1.05) !important;
}

/* Bell — dome swing (clapper küçük çan altında, tek transform-origin) */
.pill-icon-bell .bell-dome { transform-origin: 12px 4px; }
.pill-large:hover .pill-icon-bell .bell-dome,
.pill-large:has(input:checked) .pill-icon-bell .bell-dome {
  animation: bell-swing-v2 .9s cubic-bezier(.36,.07,.19,.97) infinite;
}
@keyframes bell-swing-v2 {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
  80% { transform: rotate(-6deg); }
}
@keyframes bell-wave-pulse {
  0%,100% { opacity: 0; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .pill-icon-anim svg,
  .pill-icon-anim svg * { animation: none !important; transition: none !important; }
}

.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 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 12px;
  margin-bottom: 24px;
  background: color-mix(in srgb, var(--accent-2) 7%, transparent);
  border-radius: 14px;
  animation: ss-slide 360ms var(--ease-spring);
  /* Marching ants — solid border layered + animated dashed overlay */
  border: 1px solid transparent;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent-2) 7%, transparent), color-mix(in srgb, var(--accent-2) 7%, transparent)),
    repeating-linear-gradient(0deg,   var(--accent-2) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(90deg,  var(--accent-2) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(180deg, var(--accent-2) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(270deg, var(--accent-2) 0 6px, transparent 6px 12px);
  background-size: 100% 100%, 1.5px 100%, 100% 1.5px, 1.5px 100%, 100% 1.5px;
  background-position: 0 0, 0 0, 0 0, 100% 0, 0 100%;
  background-repeat: no-repeat;
  animation: ss-slide 360ms var(--ease-spring), ss-march 18s linear infinite;
}
@keyframes ss-march {
  to {
    background-position: 0 0, 0 -120px, 120px 0, 100% 120px, -120px 100%;
  }
}
@media (prefers-reduced-motion: reduce){
  .smart-suggest { 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: 32px; height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-2) 22%, transparent);
  color: var(--accent-2);
  font-size: 16px;
  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: 10.5px;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ss-route {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  flex-wrap: wrap;
}
.ss-route strong { font-weight: 700; }
.ss-arrow { color: var(--muted); font-size: 1em; }
.ss-meta { color: var(--muted); font-size: 11.5px; margin-left: 4px; font-feature-settings: 'tnum'; }

.ss-fill {
  flex-shrink: 0;
  padding: 7px 14px;
  background: var(--accent-2);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  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; }
}

/* ──────────────────────────────────────────────────────
   Site Footer (revamp) — settings-driven
   ────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 80px;
  padding: 56px 0 28px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.sf-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 820px) { .sf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .sf-grid { grid-template-columns: 1fr; gap: 28px; } }

.sf-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.sf-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sf-col a { color: var(--text); text-decoration: none; transition: color .2s; }
.sf-col a:hover { color: var(--accent); }

.sf-col-brand .sf-brand { font-family: 'Instrument Serif', serif; font-size: 28px; font-weight: 400; color: var(--text); text-decoration: none; }
.sf-tagline { color: var(--muted); margin: 8px 0 12px; }
.sf-disclaimer { font-size: 12px; color: var(--muted); line-height: 1.5; }

.sf-social { display: flex; gap: 8px; margin-top: 16px; }
.sf-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 16px;
  transition: all .2s;
}
.sf-social a:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: translateY(-2px); }

.sf-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
.sf-mini { display: flex; gap: 16px; }
.sf-mini a { color: var(--muted); text-decoration: none; }
.sf-mini a:hover { color: var(--accent); }

/* ──────────────────────────────────────────────────────
   Cookie Consent Banner
   ────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  padding: 18px 22px;
  max-width: 920px;
  margin: 0 auto;
  animation: cb-slide-up .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes cb-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cb-inner { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.cb-text { flex: 1 1 320px; }
.cb-text strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.cb-text p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.cb-text a { color: var(--accent); text-decoration: underline; }
.cb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cb-btn { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.cb-btn:hover { transform: translateY(-1px); }
.cb-btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.cb-btn-secondary { background: var(--surface); }
.cb-btn-ghost { background: transparent; }

.cb-customize { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.cb-customize h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.cb-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cb-row:last-of-type { border-bottom: 0; }
.cb-row strong { display: block; font-size: 14px; font-weight: 600; }
.cb-row span { font-size: 12px; color: var(--muted); }
.cb-customize-actions { padding-top: 12px; display: flex; justify-content: flex-end; }

@media (max-width: 540px) {
  .cookie-banner { padding: 14px 16px; }
  .cb-actions { width: 100%; }
  .cb-actions .cb-btn { flex: 1 1 auto; }
}

/* ──────────────────────────────────────────────────────
   Buy Me a Coffee Floating Button
   ────────────────────────────────────────────────────── */
.bmac-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #FFDD00 0%, #FFB800 100%);
  color: #000 !important;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(255,184,0,.35);
  transition: transform .2s, box-shadow .2s;
}
.bmac-floating:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,184,0,.5); }
.bmac-icon { font-size: 18px; }
@media (max-width: 540px) {
  .bmac-floating { padding: 10px 14px; font-size: 13px; right: 12px; bottom: 12px; }
  .bmac-text { display: none; }
}

/* ──────────────────────────────────────────────────────
   Legal Pages (KVKK / Privacy / Terms / Cookie)
   ────────────────────────────────────────────────────── */
.legal-main { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-main h1 { font-family: 'Instrument Serif', serif; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 400; line-height: 1.1; margin-bottom: 12px; }
.legal-meta { color: var(--muted); font-size: 14px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.legal-main h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; letter-spacing: -.01em; }
.legal-main h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.legal-main p { line-height: 1.75; margin-bottom: 14px; color: var(--text); }
.legal-main ul, .legal-main ol { margin: 0 0 16px 24px; line-height: 1.75; }
.legal-main li { margin-bottom: 6px; }
.legal-main strong { font-weight: 700; }
.legal-main a { color: var(--accent); }

/* ──────────────────────────────────────────────────────
   Affiliate CTA (alternatif ulaşım)
   ────────────────────────────────────────────────────── */
.aff-cta {
  margin: 28px auto;
  max-width: 720px;
  padding: 20px 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.aff-cta-text { flex: 1 1 240px; }
.aff-cta-text strong { display: block; font-size: 15px; margin-bottom: 4px; }
.aff-cta-text span { font-size: 13px; color: var(--muted); }
.aff-cta-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.aff-btn { padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 13px; transition: transform .2s; }
.aff-btn:hover { transform: translateY(-1px); }
.aff-btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

/* ──────────────────────────────────────────────────────
   Blog Post — SEO/GEO uyumlu içerik tasarımı
   ────────────────────────────────────────────────────── */
.blog-post { max-width: 760px; margin: 0 auto; }
.bp-header { margin-bottom: 32px; }
.bp-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.bp-cat { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); font-weight: 700; }
.blog-post h1 { font-family: 'Instrument Serif', serif; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 400; line-height: 1.1; margin-bottom: 16px; letter-spacing: -.02em; }
.bp-lead { font-size: 19px; line-height: 1.65; color: var(--text); margin-bottom: 24px; }
.bp-lead strong { font-weight: 600; }

.blog-post figure { margin: 32px 0; }
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface-2)), var(--surface-2));
  border: 2px dashed var(--border);
  border-radius: 16px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}
.image-placeholder::before { content: '🚆 ' attr(data-alt); padding: 0 24px; text-align: center; }
.blog-post figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; font-style: italic; }

/* TOC */
.toc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 32px 0;
}
.toc h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.toc a { color: var(--text); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--accent); }

/* Headings */
.blog-post h2 { font-size: 28px; font-weight: 700; margin: 48px 0 16px; letter-spacing: -.01em; line-height: 1.2; }
.blog-post h3 { font-size: 19px; font-weight: 700; margin: 28px 0 12px; }
.blog-post p { font-size: 17px; line-height: 1.75; margin-bottom: 16px; }
.blog-post ul:not(.icon-list), .blog-post ol { font-size: 17px; line-height: 1.75; margin: 0 0 18px 24px; }
.blog-post ul li, .blog-post ol li { margin-bottom: 8px; }
.blog-post strong { font-weight: 600; }
.blog-post a { color: var(--accent); }

/* Callouts */
.callout {
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: 14px;
  border-left: 4px solid;
  font-size: 15px;
  line-height: 1.65;
}
.callout strong { font-weight: 700; }
.callout-tip { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-left-color: var(--accent); }
.callout-warning { background: color-mix(in srgb, #f59e0b 12%, var(--surface)); border-left-color: #f59e0b; }
.callout-info { background: color-mix(in srgb, #3b82f6 10%, var(--surface)); border-left-color: #3b82f6; }

/* Highlight box */
.highlight-box {
  margin: 28px 0;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  font-size: 17px;
  line-height: 1.6;
}

/* Styled table */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.styled-table th { background: var(--surface-2); color: var(--text); font-weight: 700; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.styled-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.styled-table tbody tr:nth-child(even) { background: var(--surface-2); }
.styled-table tbody tr:last-child td { border-bottom: 0; }

/* Blockquote */
.styled-quote {
  margin: 28px 0;
  padding: 20px 28px;
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 17px;
  color: var(--text);
}

/* Icon list (✓ check list) */
.icon-list { list-style: none !important; padding: 0 !important; margin: 16px 0 !important; }
.icon-list li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.icon-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* CTA box */
.cta-box {
  margin: 40px 0;
  padding: 32px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #d97706) 100%);
  color: #fff;
  text-align: center;
}
.cta-box h3 { font-family: 'Instrument Serif', serif; font-size: 28px; font-weight: 400; margin-bottom: 8px; color: #fff; }
.cta-box p { font-size: 15px; margin-bottom: 18px; opacity: .92; line-height: 1.55; color: #fff; }
.cta-box .btn { background: #fff; color: var(--accent); font-weight: 700; }

/* FAQ section */
.faq-section { margin: 48px 0; }
.faq-section h2 { margin-bottom: 16px; }
.faq-section details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.faq-section details[open] { border-color: var(--accent); }
.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--muted);
  transition: transform .2s;
}
.faq-section details[open] summary::after { content: '−'; }
.faq-section p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--text); }

/* Author card */
.author-card {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 48px 0 32px;
  padding: 20px 24px;
  background: var(--surface-2);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.author-avatar {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
}
.author-text strong { display: block; font-size: 15px; margin-bottom: 4px; }
.author-text span { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Related posts */
.related-posts { margin: 48px 0; }
.related-posts h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rp-card {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
}
.rp-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.rp-card .rp-cat { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.rp-card strong { display: block; font-size: 15px; line-height: 1.4; }

/* ──────────────────────────────────────────────────────
   Logo (tek kaynak — header/footer/splash/blog)
   ────────────────────────────────────────────────────── */
.bal-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.bal-logo .brand-train { width: 36px; height: 24px; color: var(--accent); }
.bal-logo .brand-bilet { font-family: 'Geist', sans-serif; font-weight: 800; letter-spacing: -.02em; font-size: 22px; color: var(--text); }
.bal-logo .brand-alarmi { font-family: 'Caveat', cursive; font-weight: 600; font-size: 28px; color: var(--accent); margin-left: -2px; line-height: 1; }

.bal-logo-sm .brand-train { width: 28px; height: 18px; }
.bal-logo-sm .brand-bilet { font-size: 17px; }
.bal-logo-sm .brand-alarmi { font-size: 21px; }

.bal-logo-lg .brand-train { width: 96px; height: 64px; }
.bal-logo-lg .brand-bilet { font-size: 56px; }
.bal-logo-lg .brand-alarmi { font-size: 76px; margin-left: -6px; }

.bal-logo-static .brand-train-wheel,
.bal-logo-static .brand-train-smoke circle { animation: none !important; }

/* Footer brand wrap — logo'yu sola yapıştır, padding'siz */
.sf-brand-wrap { margin-bottom: 12px; }

/* ──────────────────────────────────────────────────────
   Splash Screen (ilk yükleme)
   ────────────────────────────────────────────────────── */
.bal-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: none; /* hidden by default — JS shows it on first visit only (CLS fix) */
  align-items: center;
  justify-content: center;
  animation: bal-splash-in .25s ease-out;
}
.bal-splash.bal-splash-active {
  display: flex;
}
.bal-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.bal-splash-bar {
  width: 200px; height: 3px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bal-splash-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 999px;
  animation: bal-bar-slide 1.2s ease-in-out infinite;
}
@keyframes bal-bar-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@keyframes bal-splash-in { from { opacity: 0; } to { opacity: 1; } }
.bal-splash.bal-splash-out { animation: bal-splash-out .42s ease-in forwards; pointer-events: none; }
@keyframes bal-splash-out { to { opacity: 0; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .bal-splash, .bal-splash-bar span { animation: none !important; }
}

/* ──────────────────────────────────────────────────────
   Skip Link (a11y) + Reading progress placeholder
   ────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ──────────────────────────────────────────────────────
   Route Comparison (pSEO route page)
   ────────────────────────────────────────────────────── */
.route-page .breadcrumb a { color: var(--muted); text-decoration: none; }
.route-page .breadcrumb a:hover { color: var(--accent); }

.route-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.rc-card {
  padding: 22px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.rc-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.rc-card.rc-train { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.rc-icon { font-size: 28px; margin-bottom: 6px; }
.rc-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.rc-time { font-family: 'Instrument Serif', serif; font-size: 36px; font-weight: 400; line-height: 1; margin-bottom: 6px; color: var(--text); }
.rc-train .rc-time { color: var(--accent); }
.rc-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.rc-price { font-size: 14px; font-weight: 600; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--text); }

/* Route comparison "tahmini" rozet */
.rc-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 10px;
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ===== PAYWALL MODAL ===== */
.paywall-modal-backdrop {position:fixed;inset:0;background:rgba(0,0,0,.85);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:9999;display:flex;align-items:center;justify-content:center}
.paywall-modal {background:#171717;border:1px solid #2a2a2a;border-radius:20px;padding:32px;max-width:480px;width:calc(100% - 32px);box-shadow:0 24px 48px rgba(0,0,0,.6);position:relative;animation:paywall-slide-up .2s ease-out}
@keyframes paywall-slide-up {from{opacity:0;transform:scale(.95) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}
@media(prefers-reduced-motion:reduce){.paywall-modal{animation:none}}
.paywall-close {position:absolute;top:16px;right:16px;background:#2a2a2a;border:none;border-radius:50%;width:32px;height:32px;color:#888;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center}
.paywall-close:hover {color:#e5e5e5;background:#3a3a3a}
.paywall-badge {display:inline-flex;background:rgba(255,92,0,.15);color:#FF5C00;font-size:11px;font-weight:700;letter-spacing:.08em;padding:4px 10px;border-radius:99px;margin-bottom:16px}
.paywall-title {font-size:22px;font-weight:700;color:#e5e5e5;margin:0 0 8px;letter-spacing:-.02em}
.paywall-sub {font-size:14px;color:#888;margin:0 0 24px}
.paywall-compare {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:24px}
.paywall-plan {background:#1f1f1f;border:1px solid #2a2a2a;border-radius:12px;padding:14px 16px}
.paywall-plan.free {border-color:#ef4444;background:rgba(239,68,68,.06)}
.paywall-plan.premium {border-color:#FF5C00;background:rgba(255,92,0,.06)}
.paywall-plan-label {font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:10px}
.paywall-plan.free .paywall-plan-label {color:#ef4444}
.paywall-plan.premium .paywall-plan-label {color:#FF5C00}
.paywall-plan-feature {font-size:13px;color:#888;padding:3px 0;display:flex;gap:6px;align-items:center}
.paywall-plan.premium .paywall-plan-feature {color:#e5e5e5}
.paywall-plan.free .paywall-plan-feature::before {content:'·'}
.paywall-plan.premium .paywall-plan-feature::before {content:'✓';color:#FF5C00}
.paywall-cta-primary {display:block;width:100%;padding:14px 24px;background:#FF5C00;color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:700;cursor:pointer;letter-spacing:-.01em;margin-bottom:10px;transition:background .15s;text-decoration:none;text-align:center}
.paywall-cta-primary:hover {background:#e65200}
.paywall-cta-secondary {display:block;width:100%;padding:12px 24px;background:transparent;color:#e5e5e5;border:1px solid #2a2a2a;border-radius:12px;font-size:14px;font-weight:500;cursor:pointer;margin-bottom:16px;transition:border-color .15s;text-decoration:none;text-align:center}
.paywall-cta-secondary:hover {border-color:#555}
.paywall-dismiss {display:block;text-align:center;font-size:13px;color:#555;cursor:pointer;background:none;border:none;width:100%}
.paywall-dismiss:hover {color:#888}
@media(max-width:480px){.paywall-modal-backdrop{align-items:flex-end}.paywall-modal{border-radius:20px 20px 0 0;width:100%;max-width:100%;animation:paywall-slide-mobile .2s ease-out}@keyframes paywall-slide-mobile{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:translateY(0)}}}
/* ===== END PAYWALL MODAL ===== */

/* ===== AD SLOT CLS FIX — reserve height before ad loads ===== */
.ad-slot { display: block; width: 100%; box-sizing: border-box; }
.ad-slot-top    { min-height: 90px; }   /* banner / leaderboard */
.ad-slot-sidebar{ min-height: 250px; }  /* rectangle */
.ad-slot-blog   { min-height: 250px; }  /* in-content */
/* ===== END AD SLOT CLS FIX ===== */

/* ============================================================
   FLOATING PILL NAVBAR — YDS-Digital-inspired
   ============================================================ */

/* Wrapper: centers + floats the pill above content */
.nav-floating {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

/* Inner pill container */
.nav-floating-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1100px;
  padding: 6px 6px 6px 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 9999px;
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
}

/* Logo: left-anchored, outside center pill */
.nav-floating .bal-logo {
  flex-shrink: 0;
  padding: 2px 8px 2px 4px;
}

/* Center pill: nav links */
.nav-pill {
  display: flex;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  gap: 2px;
}
.nav-pill li { display: flex; }
.nav-pill a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.nav-pill a:hover {
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.nav-pill .nav-pill-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
}
.nav-pill .nav-pill-cta:hover {
  filter: brightness(1.08);
  background: var(--accent);
}

/* Right utility group */
.nav-utility {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================================
   Nav buton baseline — tüm nav butonları aynı yükseklik/radius/font/transition
   ui-design-critic bulgusu: 5+ farklı buton stili → tek aileye birleştirildi
   ============================================================ */
.nav-floating .nav-icon-btn,
.nav-floating .lang-switcher,
.nav-floating .nav-account-btn,
.nav-floating .nav-pill-cta {
  height: 36px;
  min-width: 36px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Circular icon buttons (theme toggle, sound toggle) */
.nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface-2, var(--surface));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  padding: 0;
  line-height: 1;
}
.nav-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.07);
}
/* WCAG 2.1 AA touch target — mobil 44x44, desktop görsellik korunur */
@media (max-width: 768px) {
  .nav-icon-btn { width: 44px; height: 44px; }
  .nav-floating .lang-switcher { min-height: 44px; padding: 0 16px; }
  .nav-account-btn { min-height: 44px; padding: 8px 16px 8px 8px; }
  .email-chip { min-height: 44px; padding: 8px 16px; }
}
/* Reuse theme-toggle icon visibility logic for .nav-icon-btn */
.nav-icon-btn .theme-icon-svg .theme-icon-sun,
.nav-icon-btn .theme-icon-svg .theme-icon-rays { display: block; }
.nav-icon-btn .theme-icon-svg .theme-icon-moon { display: none; }
html[data-theme="dark"] .nav-icon-btn .theme-icon-svg .theme-icon-sun,
html[data-theme="dark"] .nav-icon-btn .theme-icon-svg .theme-icon-rays { display: none; }
html[data-theme="dark"] .nav-icon-btn .theme-icon-svg .theme-icon-moon { display: block; }

/* Lang switcher pill — fits inside utility area */
.nav-floating .lang-switcher {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface-2, var(--surface));
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
  line-height: 1;
}
.nav-floating .lang-switcher:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Auth button — logged-in: dark pill with avatar */
.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 9999px;
  background: var(--text);
  color: var(--bg) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s ease;
  flex-shrink: 0;
}
.nav-account-btn:hover { opacity: .88; }
.nav-account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
/* Guest "Giriş" — outline pill */
.nav-account-btn--guest {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 6px 14px;
}
.nav-account-btn--guest:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  opacity: 1;
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface-2, var(--surface));
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s ease;
}

/* Mobile full-screen drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: 80px 28px 32px;
  overflow-y: auto;
}
.nav-mobile-drawer.open { display: block; }
.nav-mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-mobile-drawer a {
  display: block;
  padding: 16px 0;
  font-size: 20px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.nav-mobile-drawer a:hover { color: var(--accent); }
.nav-mobile-drawer .nav-pill-cta {
  color: var(--accent) !important;
  font-weight: 700;
}
.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2, var(--surface));
  color: var(--text);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── Sound toggle icon visibility (same pattern as theme-toggle) ── */
.nav-icon-btn.sound-toggle .theme-toggle-icon { display: none; }
:root .nav-icon-btn.sound-toggle .theme-toggle-icon[data-sound-icon="on"] { display: inline; }
.sound-active .nav-icon-btn.sound-toggle .theme-toggle-icon[data-sound-icon="on"] { display: none; }
.sound-active .nav-icon-btn.sound-toggle .theme-toggle-icon[data-sound-icon="off"] { display: inline; }

/* Smooth theme transition for new nav elements */
.nav-floating-inner,
.nav-pill a,
.nav-icon-btn,
.nav-account-btn,
.nav-floating .lang-switcher {
  transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease;
}

/* ── Mobile breakpoint ─────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-floating { top: 8px; padding: 0 12px; }
  .nav-floating-inner {
    padding: 5px 8px;
    gap: 8px;
    border-radius: 24px;
  }
  .nav-pill { display: none; }
  .nav-account-name { display: none; }
  .nav-utility .lang-switcher,
  .nav-utility .nav-account-btn--guest { display: none; }
  .nav-hamburger { display: flex; }
}

/* ===== END FLOATING PILL NAVBAR ===== */
