:root {
  --bg: #061733; --bg2: #0c2247; --card: #11284f; --line: #223b68;
  --text: #f1f5fb; --muted: #9fb0cc; --accent: #ffb400; --accent-text: #1a1200;
  --ok: #3ddc97; --warn: #ffb400; --err: #ff6b6b; --shadow: rgba(0,0,0,.45);
}
:root[data-theme="light"] {
  --bg: #f2f5fa; --bg2: #e7ecf5; --card: #ffffff; --line: #ccd6e6;
  --text: #0b1a35; --muted: #55678a; --accent: #e5a000; --accent-text: #1a1200;
  --ok: #138a55; --warn: #a86b00; --err: #c62828; --shadow: rgba(10,30,70,.18);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; min-height: 100dvh; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; }
.boot { padding: 40vh 0 0; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.error { color: var(--err); min-height: 1.4em; margin: 8px 0; text-align: center; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: var(--bg);
  border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 18px; }
.bolt { color: var(--accent); }
.top-actions { display: flex; gap: 6px; }
.icon-btn { min-width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); font-size: 22px; }
.link-btn { background: none; border: 0; color: var(--accent); min-height: 48px; padding: 0 8px; font-weight: 600; }

/* login */
.login { padding: calc(28px + env(safe-area-inset-top)) 24px 24px; text-align: center; }
.logo { font-size: 44px; color: var(--accent); }
.login h1 { margin: 4px 0; font-size: 24px; }
.pin-dots { display: flex; justify-content: center; gap: 12px; min-height: 28px; margin: 18px 0 4px; }
.pin-dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 330px; margin: 12px auto 0; }
.keypad button { height: 72px; border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  font-size: 28px; font-weight: 600; }
.keypad button:active { background: var(--bg2); }
.keypad .go { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.keypad .sec { font-size: 22px; color: var(--muted); }

/* icerik */
.content { padding: 12px 12px 24px; }
.banner { margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; font-size: 14px;
  background: rgba(255,180,0,.14); border: 1px solid var(--warn); color: var(--text); }
.banner.err { background: rgba(255,107,107,.14); border-color: var(--err); }
.inputs { display: grid; gap: 12px; }
.field { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px 6px; }
.field span { display: block; color: var(--muted); font-size: 14px; }
.field input { width: 100%; background: transparent; border: 0; outline: 0; font-size: 40px; font-weight: 700;
  padding: 2px 0 6px; min-height: 56px; color: var(--text); }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,180,0,.25); }

.section-title { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.section-title h2 { font-size: 16px; margin: 0; letter-spacing: .02em; }
.hint { margin: 0 0 8px; font-size: 13px; color: var(--muted); }

/* gecis listesi */
.group { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.group > summary { list-style: none; display: flex; justify-content: space-between; align-items: center;
  min-height: 52px; padding: 0 14px; font-weight: 700; cursor: pointer; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary .sel { font-weight: 500; color: var(--accent); font-size: 14px; }
.group > summary::after { content: "▾"; color: var(--muted); margin-left: 8px; }
.group[open] > summary::after { content: "▴"; }
.toll { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px; border-top: 1px solid var(--line); }
.toll .chk { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 48px; background: none; border: 0; text-align: left; padding: 0; }
.box { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--muted); display: grid; place-items: center; font-weight: 800; color: transparent; }
.toll.on .box { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.toll .nm { display: block; font-size: 15px; line-height: 1.25; }
.toll .fee { font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; margin-left: 6px; border-radius: 8px;
  background: rgba(255,180,0,.16); color: var(--warn); border: 1px solid var(--warn); vertical-align: middle; }
.seg { flex: none; display: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.toll.on .seg { display: flex; }
.seg button { min-width: 48px; height: 48px; border: 0; background: var(--bg2); font-weight: 700; }
.seg button.act { background: var(--accent); color: var(--accent-text); }

/* sonuc karti */
.content { padding-bottom: 230px; }
.result { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 6;
  background: var(--bg2); border-top: 2px solid var(--accent); border-radius: 20px 20px 0 0;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px var(--shadow); }
.total-row { display: flex; align-items: baseline; justify-content: space-between; }
.total-label { color: var(--muted); font-size: 15px; }
.total { font-size: 42px; font-weight: 800; color: var(--accent); letter-spacing: -.5px; }
.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 10px; }
.mini div { background: var(--card); border-radius: 10px; padding: 4px 6px; text-align: center; }
.mini span { display: block; font-size: 11px; color: var(--muted); }
.mini b { font-size: 14px; }
.actions { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.btn { min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-weight: 700; padding: 0 14px; }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn:disabled { opacity: .45; }
.btn:active { filter: brightness(.9); }

/* detay */
.detail { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px 14px; font-size: 14px; }
.detail .r { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail .r:last-child { border-bottom: 0; }
.detail .r span:first-child { color: var(--muted); }
.detail .r.sub { padding-left: 12px; font-size: 13px; }
.detail .r b { text-align: right; }

/* ayarlar */
.settings .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 14px; }
.settings h3 { margin: 0 0 8px; font-size: 16px; }
.settings .row { display: grid; gap: 4px; margin-bottom: 10px; }
.settings label.l { font-size: 13px; color: var(--muted); }
.settings input[type=text], .settings select { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); padding: 0 12px; font-size: 17px; color: var(--text); }
.settings input:focus, .settings select:focus { outline: 2px solid var(--accent); }
.pair { display: grid; grid-template-columns: 1fr 1fr 48px; gap: 8px; margin-bottom: 8px; align-items: center; }
.pair.tollhead { grid-template-columns: 1fr 48px; }
.tollrow { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: var(--bg); display: grid; gap: 8px; }
.tollrow .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.del { height: 48px; border-radius: 12px; border: 1px solid var(--err); background: none; color: var(--err); font-size: 20px; }
.fuelnote { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.savebar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 6;
  background: var(--bg2); border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
.savebar .btn { width: 100%; }
.save-msg { margin: 0 0 6px; min-height: 1.2em; font-size: 14px; text-align: center; }
.save-msg.err { color: var(--err); } .save-msg.ok { color: var(--ok); }
#screen-settings .content { padding-bottom: 130px; }

.toast { position: fixed; left: 50%; bottom: 250px; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 12px; font-weight: 600; z-index: 20; max-width: 90%; text-align: center; }

.fuel-line{font-size:.82rem;opacity:.8;margin:2px 0 8px;font-variant-numeric:tabular-nums}
