/* hidden ozniteligi her zaman gizler (form/flex kurallari ezmesin) */
[hidden] { display: none !important; }

/* Carmetre — mat, çizgili, dikdörtgen tasarım sistemi.
   Yön: teknik çizim / ekspertiz föyü. Dik köşeler, gölge yok, parıltı yok;
   bölümler 1px çizgilerle ayrılır, vurgu tek bir kemik beyazı tonudur (aydınlıkta grafit).
   Etiketler ve sayılar IBM Plex Mono, gövde IBM Plex Sans. */

:root {
  /* Yüzeyler — mat grafit */
  --ink:      #17191B;
  --page:     #17191B;
  --surface:  #1E2124;
  --panel:    #1E2124;
  --panel-2:  #25292D;
  --line:     #3A3F44;
  --line-soft:#2B2F33;

  /* Vurgu — kemik beyazı (tek renk; dolgu yerine çizgi ve metinde) */
  --glow:     #EEEBE4;
  --glow-dim: #6A6C6A;

  /* Metin — kırık beyaz, sıcak gri */
  --text:     #E4E2DC;
  --muted:    #A3A39C;
  --faint:    #7A7B73;

  /* Durum — düşük doygunluk */
  --ok:       #82A38A;
  --warn:     #C48A62;
  --bad:      #C07A6E;

  /* Geometri — dik köşe */
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;

  --display: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --body:    'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --on-accent: #17191B;

  /* Çizgili doku: çubuk zeminleri ve boş alanlar için ince tarama */
  --tarama: repeating-linear-gradient(135deg, var(--line-soft) 0 1px, transparent 1px 6px);

  --shadow-sm: none;
  --shadow-md: none;
}

/* ---------- Aydınlık tema — mat kâğıt ---------- */
:root[data-theme="light"] {
  --ink:      #EDECE7;
  --page:     #EDECE7;
  --surface:  #F6F5F1;
  --panel:    #F6F5F1;
  --panel-2:  #E5E3DC;
  --line:     #C9C6BD;
  --line-soft:#DAD7CF;

  --glow:     #2A2D30;
  --glow-dim: #A3A19A;

  --text:     #1D2022;
  --muted:    #55585A;
  --faint:    #84867E;

  --ok:       #4D7A59;
  --warn:     #8E5631;
  --bad:      #994A3F;

  --on-accent: #F6F5F1;
}

* { box-sizing: border-box; }
input[type="checkbox"], input[type="radio"], progress { accent-color: var(--glow); }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.005em;
}

/* Küçük büyük harfli etiketler teknik föy gibi tek aralıklı yazılır */
.eyebrow, .section-title, .score-label, .lbl, .footer-logo, .no, .report-card h4, .az-bolum h4,
.cmp-row .lbl, .summary .pill .t { font-family: var(--mono); font-weight: 500; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- Kap ---------- */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px 48px; }
.wrap.narrow { max-width: 720px; }

/* ---------- Üst bar ---------- */
.topbar {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar-in {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: nowrap;
}
.wordmark {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display);
  font-size: 21px; font-weight: 700;
  letter-spacing: .02em; text-decoration: none; line-height: 1;
  white-space: nowrap; flex-shrink: 0;
}
.wordmark-icon { width: 22px; height: 22px; color: var(--glow); flex-shrink: 0; }
.wordmark-text { color: var(--muted); }
.wordmark-text span { color: var(--glow); }

/* Üst sıra: hesap/genel sayfalar. Dar ekranda taşmasın diye yatay kayar. */
.acct-nav {
  display: flex; align-items: center; gap: 4px;
  min-width: 0; overflow-x: auto; justify-content: flex-end;
  scrollbar-width: none;
}
.acct-nav::-webkit-scrollbar { display: none; }
.acct-btn {
  padding: 6px 11px; border-radius: 0; text-decoration: none;
  font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color .15s, background .15s;
}
.acct-btn:hover { color: var(--text); background: var(--panel); }
.acct-btn.on { color: var(--glow); }
.linklike {
  background: none; border: none; color: var(--glow); font-size: 13.5px;
  cursor: pointer; padding: 6px 8px; font-family: inherit; text-decoration: none;
}
.linklike:hover { text-decoration: underline; }

/* Alt sıra: araç modülleri (tek satır yatay) */
.tool-nav { border-top: 1px solid var(--line-soft); }
.tool-nav-in {
  max-width: 1160px; margin: 0 auto; padding: 6px 24px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.tool-nav-in::-webkit-scrollbar { display: none; }
.tool-btn {
  padding: 8px 14px; border-radius: 0; text-decoration: none;
  font-size: 14px; font-weight: 500; color: var(--muted);
  border: 1px solid transparent; white-space: nowrap;
  transition: color .15s, background .15s, border-color .15s;
}
.tool-btn:hover { color: var(--text); background: var(--panel); }
.tool-btn.on { color: var(--glow); border-color: var(--line); background: var(--panel); }

/* ---------- Sayfa başlığı ---------- */
.page-head { padding: 26px 0 18px; }
.page-head h1 { margin: 0; font-size: 27px; font-weight: 700; line-height: 1.15; }
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px;
  color: var(--glow); font-weight: 700; margin-bottom: 4px;
}

/* ---------- Arama ---------- */
.search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 0; padding: 2px 6px 2px 18px;
  box-shadow: none;
  transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--glow); }
.search-box input {
  flex: 1; background: transparent; border: none; color: var(--text);
  font-size: 15px; font-family: inherit; outline: none; padding: 12px 0;
}
.search-box input::placeholder { color: var(--faint); }

/* ---------- Model ızgarası ---------- */

.model-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 18px; }

.model-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 0; padding: 16px 18px;
  box-shadow: none;
  transition: border-color .15s, background .15s;
}
.model-card:hover { border-color: var(--glow-dim); background: var(--panel-2); }
.model-card:active { }
.model-card:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }

.tag-5, .tag-4 { color: var(--ok); }
.tag-3 { color: var(--warn); }
.tag-2, .tag-1 { color: var(--faint); }

/* İmza öğesi: km şeridi. Tüm kartlar aynı ölçeği paylaşır, böylece
   "bu modelin arabaları genç, şununkiler yorulmuş" bakışta anlaşılır. */

/* Renk noktaları: "En çok: Beyaz" yazmak yerine gerçek renkler */

.empty-note { background: var(--tarama); border: 1px solid var(--line); border-radius: 0; padding: 34px 20px; text-align: center; color: var(--muted); }

/* Liste ızgarası: seri/model sayfalarında satırları iki sütuna yayar */
.list-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.list-grid .car-card { margin-bottom: 0; }

/* Bölüm ızgarası: araç sayfasındaki kartları geniş ekranda yan yana koyar */
.section-grid { display: grid; gap: 0 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

/* ---------- Kartlar / bölümler ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 16px; margin-bottom: 14px; box-shadow: none; }
.panel-card { background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 22px; margin-bottom: 14px; box-shadow: none; }
.section-title {
  font-family: var(--mono);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; margin: 26px 0 10px;
}

/* Liste satırı (seri / model sayfaları) */
.car-card {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--panel); padding: 16px 18px; border-radius: 0;
  margin-bottom: 10px; border: 1px solid var(--line); box-shadow: none;
  text-decoration: none; color: var(--text);
  transition: border-color .12s, background .12s;
}
.car-card:hover { border-color: var(--glow-dim); background: var(--panel-2); }
.car-card .meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.car-card .verdict { font-size: 12px; margin-top: 6px; font-weight: 600; }
.car-card .car-score { font-size: 22px; font-weight: 700; padding-left: 12px; font-variant-numeric: tabular-nums; }

.s-ok { color: var(--ok); }
.s-warn { color: var(--warn); }
.s-bad { color: var(--bad); }

/* Detay hero */
.hero { text-align: center; }
/* Arac sayfasindaki hero bir .panel-card'tir; asagidaki ana sayfa .hero kurali
   (max-width:680px) buraya sizmasin diye tam genislige sabitlenir. */
.panel-card.hero { max-width: none; width: auto; }
.hero .score-big { font-size: 52px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.hero .score-label { color: var(--faint); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.hero .car-name { font-family: var(--display); font-size: 24px; font-weight: 700; margin-top: 14px; }
.hero .car-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 0; font-size: 12px; font-weight: 700; margin-top: 12px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 0; background: currentColor; }
.chip.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.chip.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.chip.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }

/* Anahtar-değer */
.kv { display: flex; justify-content: space-between; padding: 11px 0; gap: 16px; }
.kv + .kv { border-top: 1px solid var(--line-soft); }
.kv .k { color: var(--muted); font-size: 13.5px; }
.kv .v { font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* ---------- Formlar ---------- */
textarea, input.field {
  width: 100%; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 0; padding: 13px 15px;
  margin-bottom: 12px; font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .15s;
}
textarea { min-height: 96px; resize: vertical; }
textarea:focus, input.field:focus { border-color: var(--glow); }
textarea::placeholder, input.field::placeholder { color: var(--faint); }

.btn {
  display: inline-block; box-sizing: border-box; text-align: center; text-decoration: none;
  width: 100%; padding: 14px; border: none; border-radius: 0;
  font-weight: 700; font-size: 15px; cursor: pointer; margin-bottom: 8px;
  font-family: inherit; transition: filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { }
.btn:disabled { opacity: .5; cursor: default; }
.btn-main { background: var(--glow); color: var(--on-accent); }
.btn { letter-spacing: .02em; }
.btn-nav { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }

.btn-back {
  display: inline-block; padding: 9px 16px; font-size: 13px; border-radius: 0;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600;
}
.btn-back:hover { border-color: var(--glow-dim); color: var(--text); }

.toolbar { margin: 4px 0 18px; }
.row-split { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.two-col .btn { text-align: center; text-decoration: none; margin-bottom: 0; }

.cmp-select {
  width: 100%; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 0; padding: 12px 13px;
  font-size: 13.5px; font-weight: 500; font-family: inherit; outline: none;
}
.cmp-select:focus { border-color: var(--glow); }

/* ---------- Sonuç / markdown ---------- */
.result { line-height: 1.6; }
.result :first-child { margin-top: 0; }
.result h1, .result h2, .result h3 { font-size: 16px; color: var(--glow); margin: 16px 0 6px; }
.result ul { padding-left: 18px; }
.result code { background: var(--panel-2); padding: 1px 5px; border-radius: 0; }
.divider { border: 0; border-top: 1px solid var(--line-soft); margin: 26px 0; }

/* ---------- Karşılaştırma ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.cmp-heads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; text-align: center; }
.cmp-head .car-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.cmp-row { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; padding: 12px 0; }
.cmp-row + .cmp-row { border-top: 1px solid var(--line-soft); }
.cmp-row .val { text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.cmp-row .lbl { text-align: center; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.cmp-row .better { color: var(--glow); font-weight: 700; }

/* ---------- Bakım ---------- */
.km-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.km-box .cmp-select { flex: 1 1 110px; width: auto; min-width: 90px; margin-bottom: 0; }
.km-box input.field { flex: 1 1 130px; min-width: 120px; margin-bottom: 0; }
.km-box .btn { flex: 0 0 auto; width: auto; margin-bottom: 0; padding: 12px 18px; }

.summary { display: flex; gap: 10px; margin-bottom: 16px; }
.summary .pill { flex: 1; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 14px 8px; box-shadow: none; }
.summary .pill .n { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary .pill .t { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }

.status-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.status-row + .status-row { border-top: 1px solid var(--line-soft); }
.status-row .st-dot { width: 10px; height: 10px; border-radius: 0; flex-shrink: 0; }
.st-ok { background: var(--ok); }
.st-warn { background: var(--warn); }
.st-bad { background: var(--bad); }
.st-none { background: var(--faint); }
.status-row .st-name { font-size: 14px; font-weight: 600; }
.status-row .st-meta { font-size: 11.5px; color: var(--faint); margin-top: 2px; font-weight: 400; }
.status-row .st-val { font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.log-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; }
.log-row + .log-row { border-top: 1px solid var(--line-soft); }
.log-row .log-km { font-weight: 700; font-size: 13px; width: 76px; font-variant-numeric: tabular-nums; }
.log-row .log-main { flex: 1; }
.log-row .log-item { font-size: 13.5px; font-weight: 600; }
.log-row .log-sub { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.log-row .log-del { background: none; border: none; color: var(--faint); font-size: 17px; cursor: pointer; padding: 4px; }
.log-row .log-del:hover { color: var(--bad); }

/* ---------- Renk dağılımı (araç sayfası) ---------- */
.color-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.color-row .swatch { width: 16px; height: 16px; border-radius: 0; border: 1px solid var(--line); flex-shrink: 0; }
.color-row .color-name { width: 130px; font-size: 13px; }
.color-row .bar { flex: 1; height: 8px; background: var(--tarama); border: 1px solid var(--line-soft); border-radius: 0; overflow: hidden; }
.color-row .bar-fill { display: block; height: 100%; background: var(--glow); }
.color-row .color-pct { width: 74px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Üyelik ---------- */
.auth-card { max-width: 400px; margin: 8px auto 0; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.auth-alt a { color: var(--glow); text-decoration: none; }
.auth-info { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.auth-info strong { color: var(--text); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.code-input { text-align: center; font-size: 28px; letter-spacing: 12px; font-weight: 700; padding: 14px 12px; }

.flash { border-radius: 0; padding: 12px 16px; margin-bottom: 14px; font-size: 13.5px; }
.flash-error { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--bad); }
.flash-info, .flash-message { background: color-mix(in srgb, var(--glow) 12%, transparent); color: var(--glow); }

/* Bal küpü: görünmez, sadece botlar doldurur */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Co-Pilot ---------- */
.fab {
  position: fixed; bottom: 24px; right: 24px; background: var(--glow); color: var(--on-accent);
  width: 56px; height: 56px; border-radius: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  cursor: pointer; box-shadow: none; border: none; z-index: 30;
}
.chat-modal {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--panel); height: 82vh; border-top-left-radius: 0;
  border-top-right-radius: 0; padding: 20px; flex-direction: column;
  border-top: 1px solid var(--line); max-width: 720px; margin: 0 auto; z-index: 31;
  box-shadow: none;
}
.chat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.chat-head h3 { margin: 0; font-size: 19px; }
.chat-head .x { background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.chat-messages { flex: 1; overflow-y: auto; margin-bottom: 15px; display: flex; flex-direction: column; }
/* Mesajlar balon degil: tam genislikte, ustte etiket, solda konusana gore cizgi */
.bubble {
  align-self: stretch; max-width: none; margin: 0; padding: 12px 0 12px 14px;
  border-left: 2px solid var(--line); border-bottom: 1px solid var(--line-soft);
  line-height: 1.55; font-size: 14.5px; background: none; color: var(--text);
}
.bubble::before {
  display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.bubble.bot::before { content: 'Carmetre'; }
.bubble.user::before { content: 'Siz'; color: var(--glow); }
/* Sunucu yanitlari satir/madde yapisini korur (yerel cevaplar ve AI paragraflari) */
.thread .bubble.bot { white-space: pre-line; word-wrap: break-word; }
.report-card p { white-space: pre-line; }
.bubble.user { border-left-color: var(--glow); color: var(--text); }
.chat-input { display: flex; gap: 10px; }
.chat-input input {
  flex: 1; padding: 12px 15px; border-radius: 0; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); outline: none; font-family: inherit; font-size: 15px;
}
.chat-input input:focus { border-color: var(--glow); }
.chat-input button {
  background: var(--glow); color: var(--on-accent); border: none; padding: 0 20px;
  border-radius: 0; font-weight: 700; cursor: pointer; font-family: inherit;
}

/* ---------- Erişilebilirlik / duyarlılık ---------- */
:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px 40px; }
  .topbar-in { padding: 12px 16px; gap: 10px; }
  .page-head { padding: 16px 0 12px; }
  .page-head h1 { font-size: 21px; }
  .model-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .model-card:hover { transform: none; }
}

/* ---------- Filtre çubuğu ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.filters select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 0; padding: 7px 12px; font-family: inherit; font-size: 13px;
  outline: none; cursor: pointer;
}
.filters select:focus { border-color: var(--glow); }
.filters select.on { border-color: var(--glow); color: var(--glow); }
.filters .clear {
  background: none; border: none; color: var(--faint); font-size: 13px;
  cursor: pointer; font-family: inherit; text-decoration: underline;
}
.filters .clear:hover { color: var(--text); }

/* ---------- Marka rozeti ---------- */
.brand-badge {
  width: 34px; height: 34px; border-radius: 0; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: .03em; color: var(--on-accent);
}

/* Kart üst satırı: rozet + isim */
.mc-head { display: flex; gap: 11px; align-items: center; }
.mc-name { font-size: 16px; font-weight: 700; line-height: 1.2; }
.mc-sub { font-size: 12.5px; color: var(--faint); margin-top: 2px; font-variant-numeric: tabular-nums; }

.mc-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 11px;
}
.mc-meta { font-size: 12.5px; color: var(--faint); }
.mc-meta b { font-weight: 700; }

/* Karşılaştırma seçimi */
.cmp-pick {
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted);
  border-radius: 0; padding: 5px 12px; font-size: 12px; font-family: inherit;
  cursor: pointer; white-space: nowrap;
}
.cmp-pick:hover { border-color: var(--glow-dim); color: var(--text); }
.cmp-pick.picked { background: var(--glow); border-color: var(--glow); color: var(--on-accent); font-weight: 700; }

.cmp-tray {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 22px; z-index: 40; display: none;
  align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 0; padding: 10px 12px 10px 20px;
  box-shadow: none;
}
.cmp-tray.on { display: flex; }
.cmp-tray .names { font-size: 13.5px; }
.cmp-tray .names span { color: var(--muted); }
.cmp-tray .go {
  background: var(--glow); color: var(--on-accent); border: none; border-radius: 0;
  padding: 9px 18px; font-weight: 700; font-family: inherit; cursor: pointer; font-size: 13.5px;
}
.cmp-tray .go:disabled { opacity: .45; cursor: default; }
.cmp-tray .x { background: none; border: none; color: var(--faint); font-size: 18px; cursor: pointer; }

@media (max-width: 640px) {
  .cmp-tray { left: 12px; right: 12px; transform: none; border-radius: 0; }
}

/* ---------- Bakım: yaşıtlarıyla km karşılaştırması ---------- */
.peer-box { padding: 18px; }
.peer-head { display: flex; align-items: center; gap: 9px; font-size: 14.5px; margin-bottom: 14px; }
.peer-bar {
  position: relative; height: 10px; border-radius: 0;
  background: var(--panel-2); border: 1px solid var(--line-soft); margin-bottom: 12px;
}
.peer-band { position: absolute; top: 0; bottom: 0; border-radius: 0; background: color-mix(in srgb, var(--glow) 18%, transparent); }
.peer-tick { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 0; }
.peer-med { background: var(--muted); }
.peer-me  { background: var(--glow); box-shadow: none; }
.peer-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.peer-legend b { color: var(--text); font-variant-numeric: tabular-nums; }
.peer-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 0; margin-right: 5px; }
.peer-legend .dot-me { background: var(--glow); }
.peer-legend .dot-med { background: var(--muted); }
.peer-note { margin-top: 10px; font-size: 12px; color: var(--faint); }

/* ---------- Sayfalar arası geçiş düğmesi ---------- */
.tool-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-go {
  display: inline-block; padding: 9px 16px; font-size: 13px; border-radius: 0;
  background: var(--panel-2); color: var(--glow); border: 1px solid var(--glow-dim);
  text-decoration: none; font-weight: 700; white-space: nowrap;
}
.btn-go:hover { background: var(--glow); color: var(--on-accent); border-color: var(--glow); }

/* ---------- Arıza sayfasında seçili araç ---------- */
.arac-chip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--glow);
  border-radius: 0; padding: 12px 16px; margin-bottom: 12px;
  box-shadow: none;
}
.arac-chip .etiket {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.arac-chip .ad { font-weight: 700; font-size: 14.5px; }
.arac-chip .kaldir {
  margin-left: auto; background: none; border: none; color: var(--faint);
  font-size: 13px; cursor: pointer; font-family: inherit; text-decoration: underline;
}
.arac-chip .kaldir:hover { color: var(--bad); }

/* ---------- Arıza: kontrol listesi ---------- */
.kontrol-satir { padding: 11px 0; }
.kontrol-satir + .kontrol-satir { border-top: 1px solid var(--line-soft); }
.kontrol-parca { font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.kontrol-adimlar { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.kaynak-not { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--faint); line-height: 1.5; }

/* ---------- Fotoğrafla bul ---------- */
.search-box { position: relative; }
.foto-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 0;
  width: 38px; height: 38px; font-size: 17px; cursor: pointer; line-height: 1;
}
.foto-btn:hover { border-color: var(--glow-dim); }

.foto-sonuc {
  position: relative; margin-top: 12px; padding: 16px;
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--glow); border-radius: 0;
  box-shadow: none;
}
.foto-kapat {
  position: absolute; right: 10px; top: 8px; background: none; border: none;
  color: var(--faint); font-size: 19px; cursor: pointer; line-height: 1;
}
.foto-kapat:hover { color: var(--text); }
.foto-durum { color: var(--muted); font-size: 13.5px; padding: 4px 0; }

.foto-baslik { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-right: 22px; }
.foto-tani { font-size: 17px; font-weight: 700; }
.foto-detay { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.foto-guvence {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 0;
  white-space: nowrap; border: 1px solid currentColor;
}
.foto-guvence.g-yuksek { color: var(--ok); }
.foto-guvence.g-orta   { color: var(--warn); }
.foto-guvence.g-dusuk  { color: var(--faint); }

.foto-adaylar { margin-top: 14px; }
.foto-adaylar-baslik { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.foto-aday {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 15px; margin-top: 7px; border-radius: 0;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 14px;
}
.foto-aday:hover { border-color: var(--glow-dim); }
.foto-aday.birincil { background: var(--glow); color: var(--on-accent); border-color: var(--glow); font-weight: 700; }
.foto-aday .ok { font-size: 16px; }

/* ---------- Foto seç/çek menüsü ---------- */
.foto-menu {
  position: absolute; right: 6px; top: calc(100% + 6px); z-index: 30;
  display: none; flex-direction: column; min-width: 168px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 0; padding: 5px; box-shadow: none;
}
.foto-menu.acik { display: flex; }
.foto-menu button {
  background: none; border: none; color: var(--text); font-family: inherit;
  font-size: 13.5px; text-align: left; padding: 9px 11px; border-radius: 0;
  cursor: pointer;
}
.foto-menu button:hover { background: var(--panel-2); }

/* ================= Google benzeri ana sayfa ================= */
body.home { display: flex; flex-direction: column; min-height: 100vh; }
.home-wrap { flex: 1; display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) {   /* dar ekranda soru kutusu ustte, SSS altta (yan yana sikismaz) */
  .home-wrap { flex-direction: column; align-items: stretch; }
  .home-wrap .sss { margin-top: 32px; }
}
.hero { width: 100%; max-width: 680px; text-align: center; padding: 20px 0 60px; }
.hero-baslik {
  font-family: var(--display);
  font-size: 32px; font-weight: 700; line-height: 1.25; margin: 0 0 26px;
  letter-spacing: -.01em;
}

.hero-giris {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 0; padding: 14px 18px 10px; text-align: left;
  box-shadow: none;
  transition: border-color .15s;
}
.hero-giris:focus-within { border-color: var(--glow-dim); }
.hero-giris textarea {
  width: 100%; border: none; background: none; color: var(--text);
  font-family: inherit; font-size: 16px; resize: none; outline: none;
  line-height: 1.5; min-height: 24px; max-height: 180px;
}
.hero-giris-alt { display: flex; align-items: center; gap: 10px; margin-top: 6px; position: relative; }
.hero-ipucu { font-size: 12.5px; color: var(--faint); flex: 1; }

.hero-foto {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 0;
  width: 36px; height: 36px; font-size: 16px; cursor: pointer; flex-shrink: 0;
}
.hero-foto:hover { border-color: var(--glow-dim); }
.hero-gonder {
  background: var(--glow); color: var(--on-accent); border: none; border-radius: 0;
  width: 36px; height: 36px; font-size: 18px; cursor: pointer; flex-shrink: 0; font-weight: 700;
}
.hero-gonder:hover { filter: brightness(1.05); }

.hero-kisayol { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.hero-kisayol a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 0;
  background: var(--panel); transition: color .15s, border-color .15s;
}
.hero-kisayol a:hover { color: var(--text); border-color: var(--glow-dim); }

/* Ana sayfada foto menü/sonuç hero'ya göre konumlanır */
.hero .foto-menu { left: 0; right: auto; top: calc(100% + 6px); }
.hero .foto-sonuc { margin-top: 14px; text-align: left; }

/* ================= AI Sohbet sayfası ================= */
.sohbet { display: flex; flex-direction: column; height: calc(100vh - 190px); min-height: 380px; }
.sohbet-mesajlar {
  flex: 1; overflow-y: auto; padding: 8px 2px 16px;
  display: flex; flex-direction: column; gap: 0;
}
.sohbet .bubble { white-space: pre-wrap; word-wrap: break-word; }
.sohbet .bubble.s-bad { color: var(--bad); }

.sohbet-giris {
  display: flex; gap: 10px; align-items: flex-end;
  border-top: 1px solid var(--line-soft); padding-top: 12px;
}
.sohbet-giris textarea {
  flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 0;
  color: var(--text); font-family: inherit; font-size: 15px; padding: 12px 15px;
  resize: none; outline: none; line-height: 1.5; max-height: 160px;
}
.sohbet-giris textarea:focus { border-color: var(--glow-dim); }
.sohbet-giris button {
  background: var(--glow); color: var(--on-accent); border: none; border-radius: 0;
  width: 42px; height: 42px; font-size: 19px; font-weight: 700; cursor: pointer; flex-shrink: 0;
}

/* ================= Araçlarım / Profil ================= */
.arac-kart-ad { font-size: 18px; font-weight: 700; }
.arac-kart-alt { font-size: 13px; color: var(--faint); margin-top: 3px; }
.arac-kart-islem { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.profil-satir { display: flex; gap: 12px; align-items: baseline; }
.profil-etiket { font-size: 12.5px; color: var(--faint); min-width: 70px; }
.profil-deger { font-size: 14.5px; }
.profil-islem { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

@media (max-width: 640px) {
  .topbar-in { padding: 12px 16px; gap: 10px; }
  .acct-nav { justify-content: flex-start; }
  .acct-btn { padding: 5px 8px; font-size: 12.5px; }
  .tool-nav-in { padding: 5px 16px; }
  .hero-baslik { font-size: 24px; }
  .hero { padding: 10px 0 40px; }
}

/* Sohbette "sonraki adım" düğmesi (niyet yönlendirmesi) */
.sohbet-cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  margin-top: -2px; padding: 9px 16px; border-radius: 0;
  background: var(--panel-2); border: 1px solid var(--glow-dim); color: var(--glow);
  text-decoration: none; font-size: 13.5px; font-weight: 700;
}
.sohbet-cta:hover { background: var(--glow); color: var(--on-accent); border-color: var(--glow); }
.sohbet-cta span { font-size: 15px; }

/* ---- Site footer / bottom bar ---- */
main { flex: 1 0 auto; }          /* icerik kisa olsa da footer'i asagi iter (.home-wrap kendi flex:1'ini korur) */
.site-footer {
    flex-shrink: 0;
    margin-top: 40px;
    border-top: 1px solid var(--line-soft);
    background: var(--panel);
}
/* Üst sıra: logo solda, sosyal linkler sağda — aynı hizada */
.footer-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding-top: 20px; padding-bottom: 16px;
}
.footer-logo {
    font-family: var(--display);
    font-weight: 800;
    text-transform: uppercase;   /* site adi parametrik; <html lang="tr"> ile i -> İ dogru */
    letter-spacing: .04em;
    font-size: 18px;
    color: var(--muted);
    margin: 0;
}
.footer-logo span { color: var(--glow); }
.footer-links {
    display: flex; flex-direction: row; align-items: center; gap: 18px;
}
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13.5px;
    transition: color .15s;
}
.footer-links a:hover { color: var(--glow); }
/* Alt: yasal linkler + uyarı, en altta copyright */
.footer-bottom {
    display: flex; flex-direction: column; gap: 8px;
    padding-top: 14px; padding-bottom: 18px;
    border-top: 1px solid var(--line-soft);
    color: var(--faint); font-size: 12px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--glow); }
.footer-disclaimer { max-width: 70ch; line-height: 1.5; }
.footer-copy { color: var(--faint); }
.footer-kaynak { color: var(--faint); max-width: 70ch; line-height: 1.5; }
.footer-kaynak a { color: inherit; }
@media (max-width: 640px) {
    .footer-top { padding-top: 16px; padding-bottom: 12px; }
    .footer-logo { font-size: 16px; }
    .footer-links a { font-size: 13px; }
    .footer-bottom { font-size: 11px; padding-bottom: 16px; }
}

/* ---- Bakim sayfasi duzeni ---- */
.bakim-hero {
    display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.bakim-hero-km { text-align: center; min-width: 150px; }
.bakim-hero-km .km-big {
    font-size: 46px; font-weight: 700; color: var(--glow); line-height: 1;
    font-variant-numeric: tabular-nums;
}
.bakim-hero-km .km-label {
    color: var(--faint); font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; margin-top: 6px;
}
.bakim-hero-right { flex: 1; min-width: 280px; }
.bakim-hero-name { font-weight: 700; font-size: 17px; margin-bottom: 10px; }

.bakim-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }

.status-row2 { padding: 13px 0; }
.status-row2:first-child { padding-top: 4px; }
.status-row2 + .status-row2 { border-top: 1px solid var(--line-soft); }
.status-row2 .sr-top { display: flex; align-items: center; gap: 10px; }
.status-row2 .sr-name { flex: 1; font-size: 14px; font-weight: 600; }
.status-row2 .sr-val { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.status-row2 .sr-meta { font-size: 11.5px; color: var(--faint); margin: 4px 0 8px 18px; }
.status-row2 .sr-bar { height: 6px; border-radius: 0; background: var(--tarama); border: 1px solid var(--line-soft); overflow: hidden; margin-left: 18px; }
.status-row2 .sr-fill { height: 100%; border-radius: 0; transition: width .3s; }
.status-row2 .sr-fill.bad  { background: var(--bad); }
.status-row2 .sr-fill.warn { background: var(--warn); }
.status-row2 .sr-fill.ok   { background: var(--ok); }
.status-row2 .sr-fill.none { background: var(--line); width: 0; }

.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid2 .field { margin-bottom: 0; }
.form-grid2 .full { grid-column: 1 / -1; }

.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty-state .empty-title { font-weight: 700; color: var(--text); font-size: 17px; margin-bottom: 6px; }
.empty-state p { margin: 0; }

@media (max-width: 860px) {
    .bakim-grid { grid-template-columns: 1fr; }
}

/* ---- Karsilastirma: ferah orta genislik ---- */
main.cmp-page { max-width: 960px; }

/* ---- Sohbet: ortalanmis dar kolon ---- */
.sohbet { max-width: 780px; margin: 0 auto; width: 100%; }

/* ---- Belirti / oneri cipleri (ariza + sohbet) ---- */
.mini-label {
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--faint); margin: 22px 0 10px;
}
.belirti-chips, .oneri-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.oneri-chips { margin-top: 12px; }
.belirti-chip {
    background: var(--panel); border: 1px solid var(--line); color: var(--muted);
    border-radius: 0; padding: 8px 15px; font-size: 13px; font-family: inherit;
    cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.belirti-chip:hover { border-color: var(--glow); color: var(--text); background: color-mix(in srgb, var(--glow) 8%, transparent); }

/* ---- Arac secim ipucu ---- */
.arac-ipucu {
    margin-top: 16px; background: color-mix(in srgb, var(--glow) 8%, transparent); border: 1px solid var(--line);
    border-radius: 0; padding: 13px 16px; font-size: 13px; color: var(--muted);
}
.arac-ipucu a { color: var(--glow); font-weight: 700; white-space: nowrap; }

/* ---- "Nasil calisir" adim kartlari ---- */
.nasil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nasil-kart {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 0; padding: 18px;
    box-shadow: none;
}
.nasil-kart .no { color: var(--glow); font-weight: 800; font-size: 13px; letter-spacing: .05em; }
.nasil-kart .baslik { font-weight: 700; font-size: 14.5px; margin: 6px 0 4px; }
.nasil-kart p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 720px) { .nasil-grid { grid-template-columns: 1fr; } }
/* ---- Hukuki metin sayfalari ---- */
.legal { max-width: 760px; }
.legal .updated { color: var(--faint); font-size: 12px; margin-bottom: 18px; }
.legal .uyari {
    background: color-mix(in srgb, var(--warn) 8%, transparent); border: 1px solid var(--line);
    border-radius: 0; padding: 13px 16px; font-size: 13px;
    color: var(--muted); margin-bottom: 22px;
}
.legal h2 { font-size: 16px; color: var(--glow); margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text); font-size: 14px; line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 6px 0; }
.legal .muted { color: var(--muted); }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.footer-legal a { color: var(--faint); font-size: 12px; text-decoration: none; }
.footer-legal a:hover { color: var(--glow); }

/* ---- Toast bildirimleri ---- */
.toast-yigin {
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
    display: flex; flex-direction: column; gap: 10px; z-index: 9999; align-items: center;
    pointer-events: none; width: max-content; max-width: 92vw;
}
.toast {
    background: var(--panel); color: var(--text); border: 1px solid var(--line);
    border-left: 3px solid var(--muted); border-radius: 0; padding: 12px 18px;
    font-size: 14px; box-shadow: none;
    opacity: 0; transform: translateY(10px); transition: opacity .2s;
}
.toast.gir { opacity: 1; transform: translateY(0); }
.toast-ok   { border-left-color: var(--ok); }
.toast-hata { border-left-color: var(--bad); }
.toast-bilgi{ border-left-color: var(--glow); }

/* ---- Erisilebilirlik ---- */
.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 10000;
    background: var(--glow); color: var(--on-accent); padding: 9px 16px; border-radius: 0;
    font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }

/* ---- Mobil rotuslar ---- */
@media (max-width: 640px) {
    /* Ariza sayfasi: "nasil calisir" bloğu mobilde gizli — sayfa sadelessin */
    .nasil-bolum { display: none; }
    /* Ana sayfa hero: uzun placeholder/metin kirpilmasin, kutu daha yuksek bassin */
    .hero-giris textarea { min-height: 64px; }
    /* Belirti cipleri biraz daha derli toplu */
    .belirti-chip { padding: 7px 13px; font-size: 12.5px; }
}


/* ================= KİMLİK: Davametre hukuki asistan hissi ================= */
/* Bölüm başlıklarına altın tik (yapısal imza) */
.section-title::before, .mini-label::before {
    content: ''; display: inline-block; width: 3px; height: 12px;
    background: var(--glow); border-radius: 0; margin-right: 9px; vertical-align: -1px;
}
.section-title, .mini-label { color: var(--muted); }

/* Teknik veriler tabular (gösterge/spec-plaka hissi) */
.score-big, .bakim-hero-km .km-big, .hero .score-big,
.sr-val, .cmp-row .val, .peer-legend b, .status-row2 .sr-val {
    font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}

/* Ana buton — Davametre'nin altın CTA'sı, tam yuvarlak */
.btn-main:hover { filter: brightness(1.07); }

/* Odak halkası altın */
.field:focus, .cmp-select:focus, textarea:focus, input:focus { border-color: var(--glow); }

/* Kart kenarları — yumuşak gölgeli, davetkar (Davametre kart hissi) */
.card, .panel-card, .model-card, .car-card { box-shadow: none; }
.panel-card { border-color: var(--line); }

/* ---- Section-title imzası (tekrar tanım, öncekiyle aynı: konumlu tik) ---- */
.section-title { position: relative; padding-left: 13px; }
.section-title::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 13px; background: var(--glow); border-radius: 0;
}

/* ---- Tema geçiş butonu ---- */
.tema-btn {
    background: none; border: 1px solid var(--line); color: var(--muted);
    width: 34px; height: 34px; border-radius: 0; cursor: pointer;
    font-size: 15px; line-height: 1; display: inline-flex; align-items: center;
    justify-content: center; margin-left: 6px; transition: border-color .15s, color .15s;
}
.tema-btn:hover { border-color: var(--glow); color: var(--glow); }
.tema-ay { display: none; }
.tema-gun { display: inline; }
:root[data-theme="light"] .tema-gun { display: none; }
:root[data-theme="light"] .tema-ay { display: inline; }

/* ---- Aydınlık tema: koyu-varsayılan bileşenler için düzeltmeler ---- */
:root[data-theme="light"] .mega-pop {
    border-color: var(--line);
    box-shadow: none;
}
:root[data-theme="light"] .topbar { background: var(--panel); box-shadow: none; }
:root[data-theme="light"] .mega-top:hover,
:root[data-theme="light"] .mega-top.on { background: color-mix(in srgb, var(--glow) 10%, transparent); }
:root[data-theme="light"] .card,
:root[data-theme="light"] .panel-card { box-shadow: none; }
:root[data-theme="light"] .toast { box-shadow: none; }

/* Nav + tema butonu sağ grup */
.nav-right { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
@media (max-width: 720px) { .nav-right { flex-wrap: wrap; justify-content: flex-end; } }

/* ---- Hesap ikon butonu (giriş/profil) — tema butonunun yanında ---- */
.acct-icon-btn {
    background: none; border: 1px solid var(--line); color: var(--muted);
    width: 34px; height: 34px; border-radius: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; transition: border-color .15s, color .15s;
}
.acct-icon-btn svg { width: 17px; height: 17px; }
.acct-icon-btn:hover { border-color: var(--glow); color: var(--glow); }

/* ---- Bütçemetre tarzı sabit alt sekme çubuğu ----
   Yalnızca dar ekranlarda (telefon) görünür; masaüstünde üstteki .mega
   menüsü kullanılmaya devam eder. Şekil/renk/konum: Bütçemetre alt bar
   referansına göre (koyu lacivert zemin, altın aktif sekme, ikon+etiket). */
.bottom-tabbar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--panel);
    border-top: 1px solid var(--line);
    box-shadow: none;
    padding: 9px 2px calc(9px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: flex-start;
}
.tab-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    flex: 1; min-width: 0; text-decoration: none; color: var(--muted);
    font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
    padding: 3px 2px; position: relative; text-align: center;
}
.tab-item svg { width: 21px; height: 21px; }
.tab-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-item.active { color: var(--glow); }
.tab-item.active::before {
    content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 0; background: var(--glow);
}

@media (max-width: 720px) {
    .topbar .mega { display: none; }
    .bottom-tabbar { display: flex; }
    body { padding-bottom: 74px; }
}

:root[data-theme="light"] .bottom-tabbar {
    background: var(--panel);
    box-shadow: none;
}

/* ============================================================
   MOBİL STANDARDİZASYON — Google/ChatGPT/Claude ölçeği
   Kompakt boşluklar, standart font, küçük footer.
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px 28px; }

  /* Başlıklar küçülür */
  h1 { font-size: 21px; }
  .page-head { margin-bottom: 14px; }
  .section-title { font-size: 12px; margin-top: 22px; }

  /* Ana sayfa hero — kompakt */
  .hero-baslik { font-size: 21px; line-height: 1.3; margin: 0 0 16px; }
  .hero { padding: 8px 0 24px; }
  .hero-giris { padding: 7px 7px 7px 14px; }
  .hero-giris textarea { font-size: 15px; min-height: 24px; }
  .hero-ipucu-alt { font-size: 11.5px; margin-top: 8px; }

  /* Kartlar — daha derli toplu */
  .card, .panel-card { padding: 14px; border-radius: 0; margin-bottom: 12px; }

  /* Butonlar — standart dokunma hedefi ama şişkin değil */
  .btn { padding: 11px; font-size: 14.5px; }
  .btn-go { font-size: 13px; padding: 8px 12px; }

  /* Form alanları */
  textarea, input.field, .cmp-select { font-size: 15px; }

  /* Garaj araç kartı — kaldır ikonu için üst-sağ boşluk */
  .arac-kart { position: relative; padding-right: 44px; }
}

/* Garaj: Kaldır artık küçük ikon (üst-sağ köşe) — tüm ekranlarda */
.arac-kart { position: relative; }
.arac-sil {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 0;
  background: none; border: 1px solid var(--line); color: var(--faint);
  cursor: pointer; font-size: 15px; line-height: 1; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s, background .15s;
}
.arac-sil:hover { border-color: var(--bad); color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.arac-kart { padding-right: 52px; }