/*
 * Yakıtım — tasarım sistemi (bölüm 9).
 * Görsel kimlik akaryakıt pompası ekranından gelir: pompa gövdesi rengi, yeşilimsi LCD kutular, TR plaka rozeti.
 * Site (tanıtım, hesaplama, hesap sayfaları) geniş ekranda çok sütunlu bir web sitesidir; panel masaüstünde
 * pano (dashboard), telefonda tek sütun düzenidir.
 */

/* ---------- Token'lar (bölüm 9) ---------- */
:root {
  color-scheme: light;
  --paper: #EEF0EA;
  --surface: #F8F9F5;
  --ink: #15262A;
  --muted: #5B6B6D;
  --line: #D2D8CF;
  --petrol: #1F5A55;
  --on-petrol: #FFFFFF;
  --housing: #1F5A55;
  --housing-label: #CFE3DE;
  --lcd: #C3CEB0;
  --lcd-ink: #1C2A19;
  --lcd-ghost: rgba(28, 42, 25, 0.07);
  --amber: #A8691A;
  --amber-bg: #F4E7CF;
  --danger: #A23B2A;
  --plate-strip: #1B4DB1;
  --focus: #1B4DB1;

  /* Paletten türetilenler: bölüm zemini, yarı saydam başlık, gölgeler */
  --tint: #E1EAE5;
  --header-bg: rgba(238, 240, 234, 0.86);
  --shadow-sm: 0 1px 2px rgba(21, 38, 42, 0.06);
  --shadow-md: 0 1px 2px rgba(21, 38, 42, 0.05), 0 10px 28px rgba(21, 38, 42, 0.08);
  --shadow-lg: 0 2px 6px rgba(21, 38, 42, 0.06), 0 28px 64px rgba(21, 38, 42, 0.16);

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  /* Köşe yarıçapları hiyerarşisi: pompa paneli 16, düğmeler 10–12, girdiler 8, LCD 6 */
  --r-pump: 16px;
  --r-card: 16px;
  --r-btn: 12px;
  --r-input: 8px;
  --r-lcd: 6px;

  --container: 1160px;
  --gutter: 16px;
  --header-h: 68px;
  --bar-h: 80px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111A1C;
    --surface: #182325;
    --ink: #E3EAE6;
    --muted: #93A3A3;
    --line: #29373A;
    --petrol: #6FB7AC;
    --on-petrol: #0E1B1C;
    --housing: #16403C;
    --housing-label: #A9CBC4;
    --lcd: #16221A;
    --lcd-ink: #AEE391;
    --lcd-ghost: rgba(174, 227, 145, 0.06);
    --amber: #E2A650;
    --amber-bg: #2A2416;
    --danger: #E27C68;
    --focus: #8FB8FF;
    --tint: #15272A;
    --header-bg: rgba(17, 26, 28, 0.86);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 28px 64px rgba(0, 0, 0, 0.45);
  }
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3 { font-family: var(--font-num); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: 0.003em; }
h1 { font-size: clamp(2rem, 1.6rem + 1.3vw, 2.6rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 12px; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.danger-text { color: var(--danger); }
.up { color: var(--danger); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--r-input); }
.skip-link:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(780px + 2 * var(--gutter)); }
@media (max-width: 899px) { .hide-mobile { display: none !important; } }
@media (min-width: 900px) { .hide-desktop { display: none !important; } }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  font: 700 26px/1 var(--font-num); color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--housing); color: var(--housing-label);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo--light { color: #FFFFFF; }
.logo--light .logo-mark { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }

/* ---------- Başlık çubuğu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.site-nav, .app-nav { display: flex; gap: 2px; margin-left: 28px; }
.site-nav a, .app-nav a {
  padding: 10px 14px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center;
  color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none;
}
.site-nav a:hover, .app-nav a:hover { color: var(--ink); background: var(--tint); }
.site-nav a[aria-current="page"], .app-nav a[aria-current="page"] { color: var(--ink); background: var(--tint); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Açılır menüler (details): hesap, araç seçici, telefonda site menüsü */
.dropdown { position: relative; }
.dropdown > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 44px; justify-content: center; padding: 0 4px; border-radius: 10px;
}
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary:hover, .dropdown[open] > summary { background: var(--tint); }
.dropdown > summary svg { width: 22px; height: 22px; }
.dropdown .chev svg { width: 18px; height: 18px; color: var(--muted); }
.dropdown-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  min-width: 260px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.dropdown-panel a, .dropdown-panel .menu-item {
  display: flex; width: 100%; align-items: center; gap: 10px;
  padding: 10px 12px; min-height: 44px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font: 500 15px var(--font-body);
  background: none; border: 0; cursor: pointer; text-align: left;
}
.dropdown-panel a:hover, .dropdown-panel .menu-item:hover, .dropdown-panel a[aria-current="true"] { background: var(--paper); }
.dropdown-panel a svg, .dropdown-panel .menu-item svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.dropdown-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.dropdown-panel form { margin: 0; }
.dropdown-label { padding: 8px 12px 4px; margin: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel { position: fixed; left: 8px; right: 8px; top: calc(var(--header-h) + 4px); min-width: 0; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--petrol); color: var(--on-petrol);
  display: grid; place-items: center; font: 700 17px/1 var(--font-num);
}

/* ---------- TR plaka rozeti (koyu temada da beyaz kalır) ---------- */
.plate {
  display: inline-flex; align-items: stretch; flex: none;
  background: #FFFFFF; color: #111111;
  border: 2px solid #111111; border-radius: 6px; overflow: hidden; line-height: 1;
  font-family: var(--font-num); font-weight: 700; font-size: 20px; text-decoration: none; white-space: nowrap;
}
.plate-tr {
  background: var(--plate-strip); color: #FFFFFF;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  display: flex; align-items: flex-end; justify-content: center; padding: 0 4px 4px; min-width: 18px;
}
.plate-text { padding: 7px 10px 6px; letter-spacing: 0.04em; }
.plate--sm { font-size: 15px; border-width: 1.5px; }
.plate--sm .plate-text { padding: 5px 7px 4px; }
.plate--sm .plate-tr { font-size: 8px; padding-bottom: 3px; min-width: 14px; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-btn); border: 1.5px solid transparent;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--ink);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--petrol); color: var(--on-petrol); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline, .btn-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover, .btn-secondary:hover { border-color: var(--muted); }
.btn-ghost:hover { background: var(--tint); }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-link { min-height: 44px; padding: 0 8px; color: var(--petrol); border-radius: 10px; }
.btn-link:hover { background: var(--tint); }
.btn-link.danger-text { color: var(--danger); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; border-radius: 12px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.inline-form { display: inline; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
@media (min-width: 768px) { .card { padding: 24px; } }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { font-size: 1.4rem; }
.card-head a { font-weight: 600; font-size: 15px; text-decoration: none; }
.card--danger { border-top: 4px solid var(--danger); }
.card--table { padding: 0; overflow: hidden; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--petrol); }

/* ---------- Pompa ekranı paneli ---------- */
.pump {
  background: var(--housing); border-radius: var(--r-pump); padding: 18px 18px 14px; color: var(--housing-label);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.12);
}
.pump-row { display: grid; grid-template-columns: 1fr 104px; align-items: center; gap: 14px; }
.pump-row + .pump-row { margin-top: 10px; }
.pump-row[hidden] { display: none; }
.lcd {
  display: grid; justify-items: end; align-items: center;
  background: var(--lcd); color: var(--lcd-ink); border-radius: var(--r-lcd);
  padding: 4px 12px 2px; font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums;
  line-height: 1.1; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.22); overflow: hidden;
  font-size: 34px; min-height: 46px;
}
.lcd--main { font-size: 54px; min-height: 70px; }
/* Sönük LCD segmentleri: değerin arkasında aynı hücrede "8,88" hayaleti */
.lcd::before { content: attr(data-ghost); grid-area: 1 / 1; color: var(--lcd-ghost); pointer-events: none; }
.lcd-value { grid-area: 1 / 1; }
.lcd--empty .lcd-value { opacity: 0.55; }
.pump-label { display: flex; flex-direction: column; line-height: 1.15; }
.pump-unit { font-family: var(--font-num); font-weight: 700; font-size: 17px; color: #FFFFFF; }
.pump-name { font-size: 14px; }
.pump-tag { font-size: 12px; font-weight: 600; color: #FFFFFF; opacity: 0.85; }
.pump-basis { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; }
.pump-row.is-computed .lcd { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(255, 255, 255, 0.55); }
@media (prefers-color-scheme: dark) {
  .pump-unit, .pump-tag { color: var(--housing-label); }
}
@media (max-width: 380px) {
  .lcd--main { font-size: 46px; min-height: 62px; }
  .lcd { font-size: 30px; }
  .pump-row { grid-template-columns: 1fr 88px; gap: 10px; }
}

/* ---------- Uyarı kutuları ---------- */
.notices { display: grid; gap: 10px; }
.notice {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  background: var(--amber-bg); color: var(--ink); border-left: 4px solid var(--amber);
  border-radius: 10px; padding: 12px 14px; font-size: 15px;
}
.notice svg { width: 22px; height: 22px; color: var(--amber); margin-top: 1px; }
.notice p { margin: 0; }
.notice--info { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--petrol); }
.notice--info svg { color: var(--petrol); }
.notice--danger { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--danger); }
.notice--danger svg { color: var(--danger); }
.notice--success { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--petrol); }
.notice--success svg { color: var(--petrol); }
.flash-wrap { padding-top: 20px; }

/* ---------- Satır listeleri ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.row { padding: 14px 0; border-top: 1px solid var(--line); }
.rows > .row:first-child { border-top: 0; padding-top: 4px; }
.row-main { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.row-title { font-weight: 600; }
.row-sub { font-size: 14px; color: var(--muted); }
.row-value { font-family: var(--font-num); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.row-flex { display: flex; gap: 12px; align-items: center; }
.row-flex > .grow { flex: 1; min-width: 0; }
.row-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); flex: none; display: block; }
.interval-metrics { display: flex; gap: 18px; margin-top: 6px; flex-wrap: wrap; }
.interval-metrics .num { font-size: 22px; font-weight: 600; }
.interval-metrics .unit { font-size: 14px; color: var(--muted); margin-left: 3px; }
.residual { margin: 6px 0 0; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 999px;
  background: var(--amber-bg); color: var(--amber); vertical-align: 2px; margin-left: 6px;
}
.tag--muted { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }

/* ---------- Grafikler ---------- */
.chart { margin: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--petrol); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--petrol); opacity: 0.08; }
.chart-dot { fill: var(--surface); stroke: var(--petrol); stroke-width: 2; }
.chart-dot--last { fill: var(--petrol); }
.chart-label { fill: var(--muted); font: 500 12px var(--font-body); }

/* ---------- Formlar ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--muted); }
.field .error { font-size: 14px; color: var(--danger); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px;
  font: 400 17px/1.3 var(--font-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-input);
}
.card .input, .tool .input, .auth-card .input { background: var(--paper); }
textarea.input { min-height: 96px; resize: vertical; }
.input:hover { border-color: var(--muted); }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); border-radius: var(--r-input); }
.input.num { font-family: var(--font-num); font-size: 21px; font-weight: 600; text-align: right; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input.computed::placeholder { color: var(--petrol); opacity: 0.9; }
.input-affix { position: relative; }
.input-affix .input { padding-right: 56px; }
.input-affix .affix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.grid-2, .grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.fieldset legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form-live { font-size: 14px; min-height: 20px; margin: 0; }
.form-live.warn { color: var(--amber); font-weight: 600; }
.form-section { display: grid; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.form-section:first-of-type { padding-top: 0; border-top: 0; }
.form-section > h2 { font-size: 1.25rem; }
.form-section > h2 .muted { font-family: var(--font-body); font-size: 14px; font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; transition: background 0.15s; }
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.15s;
}
.switch input:checked + .track { background: var(--petrol); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--petrol); }

/* ---------- Segment sekmeleri ---------- */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-btn); }
.seg button, .seg a {
  flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font: 600 15px var(--font-body); cursor: pointer; padding: 6px 10px; text-align: center; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.seg button:hover, .seg a:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg a[aria-current="page"] { background: var(--petrol); color: var(--on-petrol); }

/* =====================================================================
   SİTE (üyeliksiz sayfalar)
   ===================================================================== */

.hero {
  position: relative; overflow: hidden;
  padding: 40px 0 64px;
  background: radial-gradient(1100px 560px at 88% -12%, var(--tint), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 84px 0 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; }
}
.display {
  font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.01em; margin: 20px 0 18px;
}
.display em { font-style: normal; color: var(--petrol); }
.lead { font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 48ch; margin: 0; }
.hero .cta-row { margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--petrol); }

/* Ürün görseli: tarayıcı penceresi içinde örnek özet */
.hero-visual { position: relative; }
.window { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window-url { margin-left: 10px; padding: 4px 14px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 12.5px; }
.window-body { padding: 18px; }
@media (min-width: 768px) { .window-body { padding: 22px; } }
.window-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.window-head b { font: 700 22px/1 var(--font-num); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.mini-stat { background: var(--paper); border-radius: 12px; padding: 10px 12px; margin: 0; min-width: 0; }
.mini-stat dt { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-stat dd { margin: 2px 0 0; font: 600 21px/1.1 var(--font-num); font-variant-numeric: tabular-nums; }
.mini-stat dd small { font-size: 13px; color: var(--muted); margin-left: 2px; }
.float-chip {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
  padding: 12px 14px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--amber); box-shadow: var(--shadow-md);
  font-size: 14px; line-height: 1.4;
}
.float-chip svg { width: 20px; height: 20px; flex: none; color: var(--amber); margin-top: 1px; }
.float-chip b { display: block; }
@media (min-width: 960px) {
  /* Pencerenin alt kenarına yarı binen balon; alttaki istatistiklerin üstüne gelmez. */
  .float-chip { position: absolute; left: -32px; bottom: -58px; max-width: 330px; margin: 0; box-shadow: var(--shadow-lg); }
}

/* Bölümler */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section--tight { padding-top: 0; }
.section-head { max-width: 660px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2rem, 1.5rem + 1.7vw, 2.9rem); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.feature-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; transition: transform 0.2s, box-shadow 0.2s; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--petrol); display: grid; place-items: center; margin-bottom: 16px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.35rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Pompa gövdesi renginde bant: nasıl çalışır */
.band { background: var(--housing); color: var(--housing-label); border-radius: 24px; padding: 36px 22px; position: relative; overflow: hidden; }
@media (min-width: 768px) { .band { padding: 56px; } }
.band h2 { color: #FFFFFF; font-size: clamp(2rem, 1.5rem + 1.7vw, 2.8rem); }
.band-lead { margin: 12px 0 36px; max-width: 56ch; font-size: 17.5px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step-num {
  width: 72px; height: 54px; border-radius: var(--r-lcd); margin-bottom: 16px;
  background: var(--lcd); color: var(--lcd-ink);
  display: grid; justify-items: end; align-items: center; padding: 0 12px;
  font: 600 38px/1 var(--font-num); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}
.step-num::before { content: "8"; grid-area: 1 / 1; color: var(--lcd-ghost); }
.step-num span { grid-area: 1 / 1; }
.step h3 { color: #FFFFFF; font-size: 1.4rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15.5px; }
@media (prefers-color-scheme: dark) { .band h2, .step h3 { color: var(--ink); } }

.duo { display: grid; gap: 20px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo .card { padding: 28px; display: flex; flex-direction: column; }
@media (min-width: 768px) { .duo .card { padding: 36px; } }
.duo .card h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); margin: 16px 0 10px; }
.duo .card p { color: var(--muted); font-size: 16.5px; }
.duo .card .push { margin-top: auto; padding-top: 12px; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--petrol); display: grid; place-items: center; }
.card-icon svg { width: 24px; height: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
}
.chip svg { width: 18px; height: 18px; color: var(--petrol); }
.chip:hover { border-color: var(--petrol); }

.store-links { display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 6px 18px 6px 14px;
  background: var(--ink); color: var(--paper); border-radius: var(--r-btn); text-decoration: none;
}
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; opacity: 0.8; }
.store b { font-size: 18px; font-family: var(--font-num); font-weight: 600; }
.store[aria-disabled="true"] { opacity: 0.6; }

/* İç sayfa başlığı */
.page-hero { padding: 40px 0 8px; background: radial-gradient(900px 380px at 90% -30%, var(--tint), transparent 70%); }
@media (min-width: 960px) { .page-hero { padding: 64px 0 12px; } }
.page-hero h1 { font-size: clamp(2.3rem, 1.6rem + 2.2vw, 3.4rem); margin: 14px 0 12px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 62ch; margin: 0; }

/* Hızlı hesapla aracı */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); padding: 16px; margin-top: 28px; }
@media (min-width: 768px) { .tool { padding: 28px; } }
.tool .seg { max-width: 560px; }
.tool-grid { display: grid; gap: 24px; margin-top: 24px; }
.tool-grid[hidden] { display: none; }
@media (min-width: 900px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: start; }
  .tool-result { position: sticky; top: calc(var(--header-h) + 24px); }
}
.tool-intro { color: var(--muted); margin: 0 0 18px; }
.tool-result .notices { margin-top: 12px; }
.explain { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 900px) { .explain { grid-template-columns: repeat(3, 1fr); } }
.explain h3 { font-size: 1.2rem; margin-bottom: 6px; }
.explain p { color: var(--muted); font-size: 15px; margin: 0; }
.promo { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .promo { grid-template-columns: 1fr auto; } }
.promo p { margin: 0; font-size: 18px; font-weight: 600; }

/* Hesap sayfaları: solda pompa gövdesi renginde tanıtım paneli, sağda form kartı */
.auth-shell { display: grid; gap: 32px; padding-block: 32px 64px; }
@media (min-width: 960px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: center; padding-block: 64px 96px; }
}
.auth-shell--single { max-width: 560px; margin-inline: auto; }
@media (min-width: 960px) { .auth-shell--single { grid-template-columns: 1fr; } }
.auth-aside { display: none; }
@media (min-width: 960px) {
  .auth-aside {
    display: flex; flex-direction: column; gap: 22px; min-height: 520px;
    background: var(--housing); color: var(--housing-label); border-radius: 24px; padding: 44px;
  }
}
.auth-aside h2 { color: #FFFFFF; font-size: 2.6rem; line-height: 1.05; }
.auth-aside .aside-lcd { margin-top: auto; display: grid; grid-template-columns: 1fr 104px; gap: 14px; align-items: center; }
@media (prefers-color-scheme: dark) { .auth-aside h2 { color: var(--ink); } }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 17px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; color: #FFFFFF; margin-top: 1px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); padding: 24px; }
@media (min-width: 768px) { .auth-card { padding: 36px; } }
.auth-card h1 { font-size: 2.3rem; margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 20px; }
.auth-card .form { margin-top: 20px; }
.auth-links { margin-top: 20px; font-size: 15px; }
.auth-links p { margin: 0 0 6px; }

/* Yasal metin */
.prose-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin: 28px 0 72px; }
@media (min-width: 768px) { .prose-card { padding: 44px 52px; } }
.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 1.6rem; margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* Site alt bilgisi */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 15px; color: var(--muted); background: var(--surface); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { margin: 14px 0 0; max-width: 38ch; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-title { font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

/* =====================================================================
   PANEL (üyelikli)
   ===================================================================== */

.tabs-mobile { padding-top: 12px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-btn); }
.tabs a { flex: 1; text-align: center; padding: 10px 4px; min-height: 44px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.tabs a[aria-current="page"] { background: var(--petrol); color: var(--on-petrol); }

.app-main { padding-bottom: 56px; }
.has-bar .app-main { padding-bottom: calc(var(--bar-h) + 40px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .has-bar .app-main { padding-bottom: 56px; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; padding: 24px 0 20px; }
@media (min-width: 900px) { .page-head { padding: 36px 0 24px; } }
.page-head p { margin: 6px 0 0; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }

.dash { display: grid; gap: 20px; }
.dash-top { display: grid; gap: 20px; }
@media (min-width: 1000px) { .dash-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.dash-side { display: grid; gap: 16px; }
.dash-2 { display: grid; gap: 20px; }
@media (min-width: 900px) { .dash-2 { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 1000px) { .dash-2--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0; min-width: 0; }
.stat-card dt { font-size: 14px; color: var(--muted); }
.stat-card dd { margin: 4px 0 0; font: 600 28px/1.1 var(--font-num); font-variant-numeric: tabular-nums; }
.stat-card dd small { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.method-note { font-size: 14px; color: var(--muted); margin: 8px 0 0; max-width: 80ch; }

.empty-state { text-align: center; padding: 48px 24px; }
.empty-state .card-icon { margin: 0 auto 16px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 46ch; margin: 0 auto 20px; }

/* Dolum tablosu: masaüstünde tablo, telefonda satır */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-weight: 600; font-size: 13.5px; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--paper); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--paper); }
.table .r { text-align: right; }
.table .n { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 600; white-space: nowrap; }
.table .c-actions { white-space: nowrap; text-align: right; }
.table .c-actions .btn-link { min-height: 40px; }
/* Telefonda dolum tablosu satırları karta dönüşür (yalnız dolum listesi; diğer tablolar yana kayar) */
@media (max-width: 899px) {
  .table--fills thead { display: none; }
  .table--fills, .table--fills tbody { display: block; }
  .table--fills tr {
    display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line);
    grid-template-areas: "date total" "station liters" "km price" "actions actions";
  }
  .table--fills tbody tr:last-child { border-bottom: 0; }
  .table--fills td { display: block; padding: 0; border: 0; }
  .table--fills tbody tr:hover td { background: none; }
  .table--fills .c-date { grid-area: date; }
  .table--fills .c-total { grid-area: total; text-align: right; font-size: 19px; }
  .table--fills .c-station { grid-area: station; color: var(--muted); font-size: 14px; }
  .table--fills .c-liters { grid-area: liters; text-align: right; font-size: 15px; color: var(--muted); }
  .table--fills .c-km { grid-area: km; text-align: left; font-size: 15px; color: var(--muted); }
  .table--fills .c-price { grid-area: price; text-align: right; font-size: 15px; color: var(--muted); }
  .table--fills .c-receipt { display: none; }
  .table--fills .c-actions { grid-area: actions; text-align: left; margin-top: 6px; }
}
@media (max-width: 899px) {
  .card--table:has(.admin-table), .card--table:has(.prices-table) { overflow-x: auto; }
  .admin-table, .prices-table { min-width: 480px; }
  .prices-table { min-width: 0; font-size: 15px; }
  .prices-table th, .prices-table td { padding: 10px 10px; }
}

/* Araç kartları */
.vehicle-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.vehicle-card { display: flex; flex-direction: column; gap: 14px; }
.vehicle-card h2 { font-size: 1.35rem; }
.vehicle-card .meta { color: var(--muted); font-size: 15px; margin: 0; }
.vehicle-card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.add-card {
  display: grid; place-items: center; align-content: center; gap: 10px; min-height: 220px;
  border: 2px dashed var(--line); border-radius: var(--r-card); color: var(--petrol); font-weight: 600; text-decoration: none;
}
.add-card svg { width: 28px; height: 28px; }
.add-card:hover { border-color: var(--petrol); background: var(--surface); }

/* Form sayfaları */
.form-layout { display: grid; gap: 24px; padding-bottom: 8px; }
@media (min-width: 1000px) {
  .form-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 32px; align-items: start; }
  .form-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.form-aside .muted { margin: 12px 2px 0; }
.form-alert { margin-bottom: 20px; }
.form-narrow { max-width: 760px; }

.settings-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .settings-grid { grid-template-columns: 1fr 1fr; align-items: start; } .settings-grid .span-2 { grid-column: 1 / -1; } }
.settings-grid .card h2 { margin-bottom: 4px; }
.settings-grid .card > .muted { margin-bottom: 16px; }

/* Sabit "Dolum ekle" çubuğu: yalnızca telefonda */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper) 70%, rgba(0, 0, 0, 0));
}
.bottom-bar .btn { min-height: 54px; font-size: 17px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
@media (min-width: 900px) { .bottom-bar { display: none; } }

.app-footer { padding: 24px 0 32px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.app-footer .container { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.app-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.app-footer a { color: var(--muted); }
.has-bar .app-footer { padding-bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .has-bar .app-footer { padding-bottom: 32px; } }

/* =====================================================================
   EFEKTLER (panel ve ortak)
   ===================================================================== */

/* Pompa sayacı gibi dönen haneler (fx.js roll) */
.roll { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: top; }
.roll-strip { display: block; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.roll-strip > span { display: block; height: 1.1em; line-height: 1.1em; }
.roll-char { display: inline-block; height: 1.1em; line-height: 1.1em; vertical-align: top; }

/* Koyu temada LCD rakamları hafifçe parlar */
@media (prefers-color-scheme: dark) {
  .lcd { text-shadow: 0 0 10px rgba(174, 227, 145, 0.45), 0 0 22px rgba(174, 227, 145, 0.18); }
  .lcd::before { text-shadow: none; }
}

/* Ana düğmede geçen ışık */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 66%);
  transform: translateX(-130%); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover::after { transform: translateX(130%); }

.stat-card, .card, .vehicle-card { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.35s; }
.stat-card:hover, .vehicle-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(111, 183, 172, 0.5); }
.add-card { transition: border-color 0.3s, background 0.3s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.add-card:hover { transform: translateY(-3px); }
.add-card svg { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.add-card:hover svg { transform: rotate(90deg) scale(1.15); }
.table tbody tr { transition: background 0.2s; }
.dropdown-panel { transform-origin: top right; }
.dropdown[open] > .dropdown-panel { animation: pop 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }

@media (prefers-reduced-motion: no-preference) {
  .app-main > * { animation: enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .app-main > :nth-child(2) { animation-delay: 0.06s; }
  .app-main > :nth-child(3) { animation-delay: 0.12s; }
  .app-main > :nth-child(4) { animation-delay: 0.18s; }
  .dash > * { animation: enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .dash > :nth-child(2) { animation-delay: 0.12s; }
  .dash > :nth-child(3) { animation-delay: 0.22s; }
  .dash > :nth-child(4) { animation-delay: 0.3s; }
  .stat-grid > * { animation: enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .stat-grid > :nth-child(2) { animation-delay: 0.05s; } .stat-grid > :nth-child(3) { animation-delay: 0.1s; }
  .stat-grid > :nth-child(4) { animation-delay: 0.15s; } .stat-grid > :nth-child(5) { animation-delay: 0.2s; }
  .stat-grid > :nth-child(6) { animation-delay: 0.25s; }
  .flash-wrap .notice { animation: enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .js .chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards; }
  .js .chart-dot { opacity: 0; animation: fade-in 0.4s ease 1.3s forwards; }
  .js .chart-area { opacity: 0; animation: area-in 0.9s ease 1s forwards; }
}
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes area-in { to { opacity: 0.08; } }

/* Panel karşılaması */
.greet { margin: 0 0 4px; color: var(--petrol); font-weight: 600; font-size: 15px; }

/* Tablo altı açıklama (ör. fiş farkı) */
.table-note { margin: 10px 4px 0; }

/* Güncel pompa fiyatları (Opet) */
.price-card h2 { font-size: 1.1rem; margin-bottom: 2px; }
.price-list { margin: 8px 0 0; display: grid; gap: 6px; }
.price-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row dt { color: var(--muted); }
.price-row dd { margin: 0; font-family: var(--font-num); font-weight: 600; }
.price-row.is-mine dt, .price-row.is-mine dd { color: var(--ink); font-weight: 700; }
.price-hint .btn-link { padding: 0 4px; min-height: 0; }

/* ---------- Yönetim paneli ---------- */
.admin-kpis { margin-bottom: 20px; }
@media (min-width: 900px) { .admin-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.admin-kpis .stat-card p { margin: 6px 0 0; }
.admin-charts, .admin-lists, .admin-mail { margin-bottom: 20px; }
@media (min-width: 900px) { .admin-charts, .admin-mail { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-lists h2, .admin-mail h2 { font-size: 1.2rem; margin-bottom: 12px; }
.card.chart { margin-bottom: 20px; }
.bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bar-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-n { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--petrol); }
.bar i.w0 { width: 0%; }
.bar i.w5 { width: 5%; }
.bar i.w10 { width: 10%; }
.bar i.w15 { width: 15%; }
.bar i.w20 { width: 20%; }
.bar i.w25 { width: 25%; }
.bar i.w30 { width: 30%; }
.bar i.w35 { width: 35%; }
.bar i.w40 { width: 40%; }
.bar i.w45 { width: 45%; }
.bar i.w50 { width: 50%; }
.bar i.w55 { width: 55%; }
.bar i.w60 { width: 60%; }
.bar i.w65 { width: 65%; }
.bar i.w70 { width: 70%; }
.bar i.w75 { width: 75%; }
.bar i.w80 { width: 80%; }
.bar i.w85 { width: 85%; }
.bar i.w90 { width: 90%; }
.bar i.w95 { width: 95%; }
.bar i.w100 { width: 100%; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--tint); color: var(--petrol); }
.badge--ok { background: var(--tint); color: var(--petrol); }
.badge--bad { background: rgba(196, 50, 50, 0.12); color: var(--danger); }
.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 10px 16px; margin: 0 0 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.log-tail { margin: 0; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 12.5px; line-height: 1.5;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.admin-search { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.admin-search .input { flex: 1; min-width: 0; }
.admin-table td { vertical-align: top; }
.admin-table .badge { margin-left: 4px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 16px 0; }
.seg { display: flex; gap: 8px; }
.seg .chip.is-active { border-color: var(--petrol); background: var(--tint); }
.card-pad { padding: 16px 20px 0; }
.card--table .card-pad + .table, .card--table h2.card-pad { margin-bottom: 8px; }
/* Sekmeler sığmazsa (yönetim panelinde 6 sekme) yana kayar, yazı bölünmez */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; padding-left: 10px; padding-right: 10px; }

/* Akaryakıt fiyatları sayfası */
.prices-page { display: grid; gap: 20px; padding-bottom: 48px; }
.price-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.price-form label { font-weight: 600; }
.price-form .input { flex: 1; min-width: 180px; max-width: 320px; }
.price-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.price-big div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.price-big dt { color: var(--muted); font-size: 14px; }
.price-big dd { margin: 4px 0 0; font: 700 30px/1.1 var(--font-num); font-variant-numeric: tabular-nums; }
.price-big small { font-size: 14px; color: var(--muted); font-weight: 600; }
.prices-table th a { text-decoration: none; color: inherit; }
.prices-table tr.is-selected { background: var(--tint); }
.price-card .price-change { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.price-card .price-change select { flex: 1; min-width: 0; }
.relay-h { font-size: 1.05rem; margin: 20px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.relay-form { display: grid; gap: 12px; }
.relay-form .btn { justify-self: start; }

/* Fiyat tablosu: okunur il sütunu, yapışkan başlık, en ucuz / en pahalı işareti */
.prices-wrap { overflow: visible; }
.prices-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.prices-tools .input { max-width: 280px; flex: 1; min-width: 160px; }
.legend { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 8px; vertical-align: -1px; }
.legend--low { background: var(--petrol); }
.legend--high { background: var(--amber, #b26a00); }
.prices-table { table-layout: fixed; }
.prices-table thead th { position: sticky; top: var(--header-h, 64px); z-index: 1; font-size: 13px; }
.prices-table thead th small { font-weight: 500; }
.prices-table thead th:first-child { width: 34%; }
.prices-table tbody th { background: none; color: var(--ink); font-size: 15.5px; font-weight: 600; padding: 12px 20px; white-space: normal; border-bottom: 1px solid var(--line); }
.prices-table tbody th a { color: inherit; text-decoration: none; }
.prices-table tbody th a:hover { color: var(--petrol); text-decoration: underline; }
.prices-table td { padding: 12px 20px; }
.prices-table tbody tr:hover th, .prices-table tbody tr:hover td { background: var(--paper); }
.prices-table tr.is-selected th, .prices-table tr.is-selected td { background: var(--tint); }
.prices-table td.is-low { color: var(--petrol); }
.prices-table td.is-high { color: var(--amber, #b26a00); }
.price-tag { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 999px; font: 600 11.5px/1.6 var(--font-body); vertical-align: 2px; background: currentColor; }
.prices-table td.is-low .price-tag { color: #fff; background: var(--petrol); }
.prices-table td.is-high .price-tag { color: #fff; background: var(--amber, #b26a00); }
.prices-empty { padding: 16px 20px; margin: 0; }
@media (max-width: 640px) {
  .prices-table thead th:first-child { width: 30%; }
  .prices-table tbody th, .prices-table td { padding: 10px 8px; font-size: 14px; }
  .prices-table .n { font-size: 15px; }
  .prices-table thead th { padding: 10px 8px; white-space: normal; }
  .price-tag { display: none; }
}

/* Giderler ve paylaşım */
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
@media (min-width: 900px) { .stat-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.expense-stats { margin-bottom: 20px; }
.notice + .expense-stats, .notice + .notice { margin-top: 10px; }
.page-head + .notice { margin-bottom: 0; }
.notice a { font-weight: 600; margin-left: 4px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.bar-label { font-weight: 600; }
.bar-value { font-size: 14px; text-align: right; white-space: nowrap; }
.bar-track { grid-column: 1 / -1; display: block; width: 100%; height: 8px; border-radius: 4px; background: var(--paper); }
.bar-fill { fill: var(--petrol); }
.invite-code { font-size: 2.2rem; font-weight: 700; letter-spacing: 0.12em; margin: 4px 0 12px; padding: 14px; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--r-card); user-select: all; }
.plain-list { padding-left: 18px; margin: 0 0 16px; }
.join-card { margin-top: 20px; }
.join-card form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.join-card .input { max-width: 200px; text-transform: uppercase; letter-spacing: 0.08em; }
.tag--share { background: var(--paper); color: var(--petrol); border: 1px solid var(--line); }
.cost-strip { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 10px 0 20px; text-decoration: none; color: inherit; }
.cost-strip > span { display: grid; gap: 2px; }
.cost-strip b { font-size: 1.25rem; }
.cost-strip:hover { border-color: var(--petrol); }

/* Google / Apple ile giriş */
.social-login { display: grid; gap: 10px; margin: 6px 0 4px; }
.social-google { min-height: 44px; display: flex; justify-content: center; }
.btn-apple { background: #000; color: #fff; border-color: #000; gap: 8px; }
.btn-apple:hover { background: #222; }
.social-or { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.social-or::before, .social-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
