/* ============================================================
   HIDAMARI · web — Autrex sitesi tasarım sistemi
   陽だまり : güneşin ısıttığı yer

   Uygulamanın (src/renderer/src/assets/hidamari.css) tokenlarıyla
   birebir aynıdır; site ile uygulama tek bir dil konuşur.

   Sınıf adları eski sistemle uyumlu tutuldu (.btn-gold, .panel,
   .tile, .tbl, .badge, .inp ...) — böylece sayfalar tek tek
   elden geçirilmeden yeni dile geçer.
   ============================================================ */

/* ── 1. Tokenlar ─────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Zemin */
  --ink: #17131C;
  --ink-deep: #0E0B12;
  --ink-soft: #1B1420;

  /* Yüzeyler — sahnenin üstünde buzlu cam */
  --panel: rgba(30, 24, 35, 0.82);
  --panel-solid: #201925;
  --panel-raised: rgba(38, 30, 44, 0.88);
  --sunken: rgba(244, 235, 224, 0.045);
  --hover: rgba(244, 235, 224, 0.075);
  --active: rgba(244, 235, 224, 0.10);

  /* Kenarlar */
  --line: rgba(244, 235, 224, 0.10);
  --line-soft: rgba(244, 235, 224, 0.06);
  --line-strong: rgba(244, 235, 224, 0.18);

  /* Metin */
  --cream: #F4EBE0;
  --cream-bright: #F9F2E8;
  --muted: #B6A79F;
  --dim: #8E8079;
  --faint: #7D726C;

  /* Vurgular */
  --amber: #F0A868;
  --amber-bright: #F7C295;
  --amber-deep: #D4884A;
  --amber-ghost: rgba(240, 168, 104, 0.16);
  --amber-ghost-2: rgba(240, 168, 104, 0.26);
  --sage: #86B39A;
  --sage-bright: #A8D2B9;
  --sage-ghost: rgba(134, 179, 154, 0.16);
  --rose: #D98A8A;
  --rose-bright: #EAA5A5;
  --rose-ghost: rgba(217, 138, 138, 0.16);
  --gold: #E8C07D;
  --gold-ghost: rgba(232, 192, 125, 0.16);
  --violet: #A892C4;
  --violet-ghost: rgba(168, 146, 196, 0.16);

  /* Köşeler */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 26px;
  --r-full: 999px;

  /* Gölge */
  --sh-sm: 0 6px 18px rgba(0, 0, 0, 0.26);
  --sh: 0 18px 44px rgba(0, 0, 0, 0.34);
  --sh-lg: 0 26px 64px rgba(0, 0, 0, 0.42);
  --sh-amber: 0 16px 34px rgba(240, 168, 104, 0.22);

  /* Cam */
  --blur: blur(16px);
  --blur-2: blur(24px);

  /* Hareket */
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-1: 140ms;
  --t-2: 240ms;
  --t-3: 420ms;

  /* Tipografi — Zen Maru Gothic'te Türkçe ş/ğ/ı yok,
     Latin metni Quicksand taşır, Japon karakterler ZMG'ye düşer. */
  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Quicksand', 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Aralık */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 36px; --s-7: 56px; --s-8: 84px;

  /* ── Eski sistem eşlemeleri ──
     Sayfalarda kalan var(--gold), var(--dark-3) gibi
     başvurular kırılmasın diye HIDAMARI karşılıklarına bağlanır. */
  --dark: var(--ink-deep);
  --dark-2: var(--ink);
  --dark-3: var(--panel-solid);
  --dark-4: var(--ink-soft);
  --dark-5: var(--sunken);
  --surface: var(--panel);
  --surface-2: var(--panel-raised);
  --border: var(--line);
  --border-w: var(--line);
  --border-w2: var(--line-strong);
  --border-strong: rgba(240, 168, 104, 0.26);
  --text: var(--cream);
  --text-2: var(--muted);
  --text-3: var(--dim);
  --text-4: var(--faint);
  --gold-l: var(--amber-bright);
  --gold-d: var(--amber-deep);
  --gold-dim: var(--amber-ghost);
  --gold-ghost: var(--amber-ghost);
  --gold-line: rgba(240, 168, 104, 0.26);
  --gold-face: var(--amber);
  --gold-100: var(--amber-bright);
  --gold-200: var(--amber);
  --green: var(--sage);
  --green-dim: var(--sage-ghost);
  --red: var(--rose);
  --red-dim: var(--rose-ghost);
  --blue: var(--violet);
  --blue-dim: var(--violet-ghost);
  --amber-dim: var(--amber-ghost);
  --sh-1: var(--sh-sm);
  --sh-2: var(--sh);
  --sh-3: var(--sh-lg);
  --sh-gold: var(--sh-amber);
  --r-1: var(--r-xs);
  --r-2: var(--r-sm);
  --r-3: var(--r-md);
  --e-out: var(--ease-out);
  --t-4: var(--t-3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;   /* taşan bir öğe sayfayı yana kaydırmasın */
}

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--amber-ghost-2); color: var(--cream-bright); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink-deep); }
::-webkit-scrollbar-thumb {
  background: rgba(244, 235, 224, 0.12);
  border: 3px solid var(--ink-deep);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(244, 235, 224, 0.2); }

/* ── 3. Gece penceresi sahnesi ───────────────────────────────
   Sayfanın arkasında sabit durur. Tamamen vektör: dışarıdan
   görsel indirilmez. includes/scene.php basar. */
.hd-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hd-scene svg { width: 100%; height: 100%; }

/* Sayfa gövdesi sahnenin üstünde durur */
.hd-above { position: relative; z-index: 1; }

@keyframes hd-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hd-rain  { to { transform: translateY(170px); } }
@keyframes hd-twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
@keyframes hd-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hd-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.85; } }

.hd-moon { animation: hd-drift 16s ease-in-out infinite; }
.hd-star { animation: hd-twinkle 4s ease-in-out infinite; }
.hd-drop { animation: hd-rain 1.6s linear infinite; }

/* ── 4. Yerleşim ─────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap-sm { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 32px; }
.section { padding: var(--s-8) 0; }
.section-tight { padding: var(--s-7) 0; }
@media (max-width: 720px) {
  .wrap, .wrap-sm { padding: 0 20px; }
  .section { padding: 56px 0; }
}

/* ── 5. Tipografi ────────────────────────────────────────── */
.t-display {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  color: var(--cream-bright);
}
.t-display em, .t-1 em, .t-2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
}
.t-1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--cream-bright);
}
.t-2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--cream-bright);
}
.t-3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  color: var(--cream-bright);
}
.lead {
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--muted);
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--f-mono); }
.link { color: var(--amber-bright); transition: color var(--t-1) var(--ease); }
.link:hover { color: var(--amber); }
.gold-text { color: var(--amber); }

/* Bölüm başlığı */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--s-3);
}
.sec-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--amber);
  opacity: 0.7;
}
.sec-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--cream-bright);
}
.sec-title em { font-style: italic; font-weight: 500; color: var(--amber); }

/* ── 6. Düğmeler ─────────────────────────────────────────── */
.btn, .btn-gold, .btn-outline, .btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--r-full);
  font-family: var(--f-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--t-2) var(--ease),
    box-shadow var(--t-2) var(--ease),
    background var(--t-2) var(--ease),
    border-color var(--t-2) var(--ease);
}
.btn-gold {
  background: linear-gradient(135deg, var(--amber-bright), var(--amber-deep));
  color: #2A1B10;
  box-shadow: var(--sh-amber);
  border: 0;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(240, 168, 104, 0.3); }
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  background: var(--panel);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line-strong);
  color: var(--cream);
}
.btn-outline:hover { background: var(--hover); transform: translateY(-2px); border-color: var(--amber); }

.btn-quiet {
  background: var(--sunken);
  border: 1px solid var(--line-soft);
  color: var(--muted);
}
.btn-quiet:hover { background: var(--hover); color: var(--cream); }

.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 32px; font-size: 16px; }

button:disabled, .btn-gold:disabled, .btn-outline:disabled, .btn-quiet:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* ── 7. Yüzeyler ─────────────────────────────────────────── */
.card, .panel {
  background: var(--panel);
  -webkit-backdrop-filter: var(--blur-2);
  backdrop-filter: var(--blur-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
}
.card { padding: var(--s-5); }
.card-hover { transition: transform var(--t-3) var(--ease), border-color var(--t-3) var(--ease); }
.card-hover:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card-feat {
  background:
    linear-gradient(165deg, var(--amber-ghost), rgba(240, 168, 104, 0.02) 55%),
    var(--panel);
  border-color: rgba(240, 168, 104, 0.26);
}
.card-corner { position: relative; }

.panel-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line-soft);
}
.panel-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: var(--cream-bright);
}
.panel-body { padding: var(--s-5); }

.tile {
  padding: 20px 22px 18px;
  border-radius: var(--r-lg);
  background: var(--panel);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  transition: transform var(--t-2) var(--ease), border-color var(--t-2) var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.tile-v {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--cream-bright);
}
.tile-l {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--faint);
}
.stat { text-align: left; }
.stat-v {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.8px;
  color: var(--cream-bright);
}
.stat-l {
  font-size: 11.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── 8. Rozetler ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 11px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.badge-gold, .badge-info { background: var(--amber-ghost); color: var(--amber-bright); }
.badge-green, .badge-ok  { background: var(--sage-ghost);  color: var(--sage-bright); }
.badge-red,   .badge-err { background: var(--rose-ghost);  color: var(--rose-bright); }
.badge-warn              { background: var(--gold-ghost);  color: var(--gold); }
.badge-quiet             { background: var(--sunken);      color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--panel);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  box-shadow: var(--sh-sm);
}
.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-ghost);
  animation: hd-glow 2.6s ease-in-out infinite;
}

/* ── 9. Form ─────────────────────────────────────────────── */
.lbl {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--muted);
}
.inp, .sel, .txta {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border-radius: var(--r-md);
  background: var(--sunken);
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 14.5px;
  transition: border-color var(--t-2) var(--ease), background var(--t-2) var(--ease);
}
.txta { height: auto; min-height: 120px; padding: 13px 15px; line-height: 1.7; resize: vertical; }
.inp:hover, .sel:hover, .txta:hover { background: var(--hover); }
.inp:focus, .sel:focus, .txta:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--hover);
  box-shadow: 0 0 0 3px var(--amber-ghost);
}
.inp::placeholder, .txta::placeholder { color: var(--faint); }
.inp:disabled, .sel:disabled, .txta:disabled { opacity: 0.45; cursor: not-allowed; }
.sel option { background: var(--panel-solid); color: var(--cream); }

.form-group { margin-bottom: var(--s-4); }
.form-group:last-child { margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: var(--s-5);
}
.field-hint { margin-top: 7px; font-size: 12px; color: var(--faint); line-height: 1.55; }
@media (max-width: 680px) { .form-row { grid-template-columns: 1fr; } }

/* ── 10. Bildirim ────────────────────────────────────────── */
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  border-radius: var(--r-md);
  font-size: 14px;
  margin-bottom: var(--s-4);
  border: 1px solid transparent;
}
.flash-ok  { background: var(--sage-ghost); border-color: rgba(134, 179, 154, 0.24); color: var(--sage-bright); }
.flash-err { background: var(--rose-ghost); border-color: rgba(217, 138, 138, 0.24); color: var(--rose-bright); }

/* ── 11. Tablo ───────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl thead th {
  padding: 12px var(--s-5);
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.tbl tbody td {
  padding: 15px var(--s-5);
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background var(--t-1) var(--ease); }
.tbl tbody tr:hover { background: var(--sunken); }
.tbl tbody tr.row-off { display: none; }
.tbl-wrap { overflow-x: auto; }
.tbl-empty { padding: 56px var(--s-5); text-align: center; color: var(--dim); font-size: 14.5px; }

.key-cell {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.2px;
  color: var(--amber-bright);
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--r-xs);
  background: var(--amber-ghost);
  transition: background var(--t-1) var(--ease);
  display: inline-block;
}
.key-cell:hover { background: var(--amber-ghost-2); }

/* ── 12. Giriş sayfaları ─────────────────────────────────── */
.auth-shell {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  min-height: calc(100vh - 78px);
  align-items: center;
  gap: var(--s-7);
}
.auth-brand { padding: var(--s-7) 0; }
.auth-brand-mark {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.5px;
  color: var(--cream-bright);
  margin-bottom: var(--s-5);
}
.auth-brand-mark em { font-style: normal; color: var(--amber); }
.auth-brand-h {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: var(--cream-bright);
}
.auth-brand-h em { font-style: italic; font-weight: 500; color: var(--amber); display: block; }
.auth-brand-p {
  max-width: 40ch;
  margin-top: var(--s-4);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}
.auth-points { display: flex; flex-direction: column; gap: 12px; margin-top: var(--s-6); }
.auth-point { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.auth-point::before {
  content: '';
  width: 7px; height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-ghost);
}
.auth-panel { display: flex; justify-content: center; padding: var(--s-6) 0; }
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--panel);
  -webkit-backdrop-filter: var(--blur-2);
  backdrop-filter: var(--blur-2);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
}
.auth-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.6px;
  color: var(--cream-bright);
}
.auth-sub { margin: 7px 0 var(--s-5); font-size: 14px; color: var(--muted); }
.auth-sub a { color: var(--amber-bright); }
.auth-foot {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--dim);
}
.auth-foot a { color: var(--amber-bright); }
.auth-langs { display: flex; gap: 6px; }
@media (max-width: 940px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .auth-brand { display: none; }
  .auth-panel { padding: var(--s-7) 0; }
}

/* ── 13. Giriş animasyonu ────────────────────────────────── */
.rev, .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-3) var(--ease-out), transform var(--t-3) var(--ease-out);
}
.rev.in, .reveal.in { opacity: 1; transform: none; }
.rev2 { transition-delay: 80ms; }
.rev3 { transition-delay: 160ms; }
.rev4 { transition-delay: 240ms; }
.rev5 { transition-delay: 320ms; }
.rev6 { transition-delay: 400ms; }

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-3) var(--ease-out), transform var(--t-3) var(--ease-out);
}
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: 70ms; }
.stagger.in > *:nth-child(3) { transition-delay: 140ms; }
.stagger.in > *:nth-child(4) { transition-delay: 210ms; }
.stagger.in > *:nth-child(5) { transition-delay: 280ms; }
.stagger.in > *:nth-child(6) { transition-delay: 350ms; }

/* JS gizlemeyi kurmadıysa içerik görünür kalır */
html:not(.reveal-on) .rev,
html:not(.reveal-on) .reveal,
html:not(.reveal-on) .stagger > * { opacity: 1; transform: none; }

/* ── 14. Erişilebilirlik ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rev, .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .hd-scene { display: none; }
}

@media print {
  .hd-scene, .nav, #nav, .sidebar, .app-topbar, .footer, .cookie-bar { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   SİTE KABUĞU — üst menü, dil seçici, mobil menü, altbilgi
   ============================================================ */

/* ── Üst menü ────────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 78px;
  transition: background var(--t-2) var(--ease), border-color var(--t-2) var(--ease);
  border-bottom: 1px solid transparent;
}
/* Menü, sayfa içeriğiyle aynı kolona hizalanır — geniş ekranda
   logo sol kenarda yalnız kalmasın diye. */
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
#nav.stuck {
  background: rgba(23, 19, 28, 0.72);
  -webkit-backdrop-filter: var(--blur-2);
  backdrop-filter: var(--blur-2);
  border-bottom-color: var(--line);
}
.nav-logo {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.4px;
  color: var(--cream-bright);
  text-transform: lowercase;
}
.nav-logo em { font-style: normal; color: var(--amber); }

.nav-links { display: flex; align-items: center; gap: 3px; margin-left: var(--s-5); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-full);
  background: var(--sunken);
  border: 1px solid var(--line-soft);
}
.nav-link {
  padding: 9px 15px;
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: background var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.nav-link:hover { background: var(--hover); color: var(--cream); }
.nav-link.active { background: var(--amber-ghost); color: var(--amber-bright); }

.nav-sep { width: 1px; height: 20px; margin: 0 9px; background: var(--line); }

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 9px;
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--faint);
  border: 1px solid transparent;
  transition: all var(--t-1) var(--ease);
}
.lang-btn:hover { color: var(--cream); background: var(--hover); }
.lang-btn.active {
  color: var(--amber-bright);
  background: var(--amber-ghost);
  border-color: rgba(240, 168, 104, 0.26);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  margin-left: 6px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--amber-bright), var(--amber-deep));
  color: #2A1B10;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--sh-amber);
  transition: transform var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(240, 168, 104, 0.3); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0 10px;
  border-radius: var(--r-sm);
  background: var(--sunken);
  border: 1px solid var(--line);
}
.nav-hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform var(--t-2) var(--ease), opacity var(--t-1) var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobil menü */
#mobile-nav {
  position: fixed;
  inset: 78px 0 auto 0;
  z-index: 55;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-4) 20px var(--s-5);
  background: rgba(23, 19, 28, 0.96);
  -webkit-backdrop-filter: var(--blur-2);
  backdrop-filter: var(--blur-2);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-lg);
}
#mobile-nav.open { display: flex; animation: hd-rise var(--t-2) var(--ease-out); }
.mob-link {
  padding: 13px 16px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}
.mob-link:hover, .mob-link.active { background: var(--amber-ghost); color: var(--amber-bright); }
.mob-cta {
  margin-top: 8px;
  padding: 14px;
  border-radius: var(--r-full);
  text-align: center;
  background: linear-gradient(135deg, var(--amber-bright), var(--amber-deep));
  color: #2A1B10;
  font-weight: 700;
}
.mob-langs { display: flex; gap: 8px; justify-content: center; margin-top: var(--s-4); }

@media (max-width: 1180px) {
  .nav-inner { padding: 0 20px; }
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }
}

/* ── Duyuru şeridi ───────────────────────────────────────── */
#autrex-announcement {
  position: relative;
  z-index: 61;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
}

/* ── Altbilgi ────────────────────────────────────────────── */
.site-footer {
  margin-top: var(--s-8);
  padding: var(--s-7) 0 var(--s-5);
  border-top: 1px solid var(--line);
  background: rgba(14, 11, 18, 0.55);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.footer-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-6);
}
.footer-brand {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--cream-bright);
  text-transform: lowercase;
}
.footer-brand em { font-style: normal; color: var(--amber); }
.footer-about {
  margin-top: var(--s-3);
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--s-3);
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 14px; color: var(--muted); transition: color var(--t-1) var(--ease); }
.footer-link:hover { color: var(--amber-bright); }
.footer-social { display: flex; gap: 9px; margin-top: var(--s-4); }
.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--sunken);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all var(--t-2) var(--ease);
}
.soc:hover { background: var(--amber-ghost); color: var(--amber-bright); border-color: rgba(240, 168, 104, 0.26); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--faint);
}
.footer-legal { display: flex; gap: var(--s-4); flex-wrap: wrap; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .footer-wrap { padding: 0 20px; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Çerez şeridi ────────────────────────────────────────── */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(12px);
  z-index: 1000;
  width: min(760px, calc(100% - 32px));
  opacity: 0;
  background: rgba(23, 19, 28, 0.94);
  -webkit-backdrop-filter: var(--blur-2);
  backdrop-filter: var(--blur-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  transition: opacity var(--t-3) var(--ease-out), transform var(--t-3) var(--ease-out);
}
.cookie-bar.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: var(--s-4); padding: 15px 19px; }
.cookie-ico { flex-shrink: 0; color: var(--amber); }
.cookie-text { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.cookie-text a { color: var(--amber-bright); }
.cookie-actions { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }
@media (max-width: 640px) {
  .cookie-bar { bottom: 12px; }
  .cookie-inner { flex-wrap: wrap; padding: 15px; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}
