/* ServisNet — arayüz stilleri
   Düzen: yapışkan lacivert üst çubuk + kart tabanlı içerik; panellerde sol menü (mobilde çekmece). */
:root {
  --navy-950: #071426;
  --navy-900: #0B1F3A;
  --navy-800: #12305A;
  --navy-600: #24508F;
  --navy-100: #DCE6F4;
  --navy-50: #EEF3FA;
  --orange: #F26B1D;
  --orange-strong: #D2560D;
  --orange-soft: #FFF0E6;
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --line: #DCE3EE;
  --line-strong: #C3CEDF;
  --fg: #0E1B2E;
  --muted: #56667F;
  --on-navy: #FFFFFF;
  --on-navy-muted: #B9C7DD;
  --g: #18864B; --g-soft: #E3F5EA;
  --y: #A86F00; --y-soft: #FFF4D6; --y-dot: #E0A100;
  --r: #C42F2F; --r-soft: #FDE7E7;
  --gr: #6B778A; --gr-soft: #ECEFF3;
  --b: #2560C7; --b-soft: #E3EDFD;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 6px 18px rgba(11, 31, 58, .06);
  --shadow-lg: 0 18px 48px rgba(7, 20, 38, .22);
  --map-land: #EAF0F7; --map-road: #FFFFFF; --map-road2: #D3DDEA; --map-water: #CFE1F3; --map-park: #DCEFD9;
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px; --radius-sm: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy-950: #040B16; --navy-900: #0A1A31; --navy-800: #12305A; --navy-600: #6C9BE0; --navy-100: #1D3558; --navy-50: #12233B;
    --orange: #FF8640; --orange-strong: #FF9E5E; --orange-soft: #3A2414;
    --bg: #07111F; --surface: #0E1C30; --surface-2: #11233A; --line: #1F3553; --line-strong: #2B4669;
    --fg: #E7EEF8; --muted: #9AABC4; --on-navy: #FFFFFF; --on-navy-muted: #A9BAD3;
    --g: #4CC985; --g-soft: #12301F; --y: #F2C14E; --y-soft: #33290F; --y-dot: #F2C14E; --r: #FF7A7A; --r-soft: #3A1717; --gr: #9AA6B8; --gr-soft: #1C2A3D; --b: #7FB0FF; --b-soft: #142A4D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    --map-land: #10223A; --map-road: #1D3656; --map-road2: #172C47; --map-water: #0D2A47; --map-park: #13301F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy-950: #040B16; --navy-900: #0A1A31; --navy-800: #12305A; --navy-600: #6C9BE0; --navy-100: #1D3558; --navy-50: #12233B;
  --orange: #FF8640; --orange-strong: #FF9E5E; --orange-soft: #3A2414;
  --bg: #07111F; --surface: #0E1C30; --surface-2: #11233A; --line: #1F3553; --line-strong: #2B4669;
  --fg: #E7EEF8; --muted: #9AABC4; --on-navy: #FFFFFF; --on-navy-muted: #A9BAD3;
  --g: #4CC985; --g-soft: #12301F; --y: #F2C14E; --y-soft: #33290F; --y-dot: #F2C14E; --r: #FF7A7A; --r-soft: #3A1717; --gr: #9AA6B8; --gr-soft: #1C2A3D; --b: #7FB0FF; --b-soft: #142A4D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  --map-land: #10223A; --map-road: #1D3656; --map-road2: #172C47; --map-water: #0D2A47; --map-park: #13301F;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy-900); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
h4 { font-size: .98rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--navy-600); }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .09em; font-size: .74rem; font-weight: 700; color: var(--orange-strong); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Üst çubuk ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy-900); color: var(--on-navy); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; background: none; border: 0; cursor: pointer; padding: 0; }
.brand .logo { width: 36px; height: 36px; flex: none; }
.brand b { color: var(--orange); font-weight: 800; }
.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav button { background: none; border: 0; color: var(--on-navy-muted); font: 600 .93rem var(--font-body); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.topnav button:hover, .topnav button.on { color: var(--on-navy); background: rgba(255, 255, 255, .08); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--on-navy); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn .dot { position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--orange); color: #fff; font: 700 .7rem/18px var(--font-body); padding: 0 4px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: var(--on-navy); cursor: pointer; font: 600 .88rem var(--font-body); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font: 800 .85rem var(--font-display); flex: none; }
.user-chip .role { color: var(--on-navy-muted); font-weight: 500; font-size: .76rem; display: block; line-height: 1.1; }
.hide-sm { }
@media (max-width: 900px) { .topnav { display: none; } .hide-sm { display: none !important; } }
.only-sm { display: none !important; }
@media (max-width: 900px) { .only-sm { display: inline-grid !important; } }

/* Demo şeridi */
.demo-strip { background: var(--orange-soft); color: var(--fg); border-bottom: 1px solid var(--line); }
.demo-strip .in { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); font-size: .86rem; }
.demo-strip select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); max-width: 100%; }
.demo-strip button { font: 600 .82rem var(--font-body); border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); border-radius: 8px; padding: 6px 10px; cursor: pointer; }

/* ---------- Genel yerleşim ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page { padding-block: 28px 64px; display: grid; gap: 24px; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gauto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .g4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.min0 { min-width: 0; }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card-h { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-h h3 { display: flex; align-items: center; gap: 8px; }
.sec-title { display: grid; gap: 6px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 11px; border: 1px solid transparent; font: 650 .95rem var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-strong); }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .avatar { color: #1b0d03; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .avatar { color: #1b0d03; } }
.btn-navy { background: var(--navy-900); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-800); }
.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy-600); }
.btn-light { background: rgba(255, 255, 255, .1); color: var(--on-navy); border-color: rgba(255, 255, 255, .28); }
.btn-light:hover { background: rgba(255, 255, 255, .18); }
.btn-danger { background: var(--r-soft); color: var(--r); border-color: transparent; }
.btn-danger:hover { border-color: var(--r); }
.btn-ok { background: var(--g-soft); color: var(--g); }
.btn-ok:hover { border-color: var(--g); }
.btn-lg { min-height: 54px; font-size: 1.02rem; padding: 12px 22px; }
.btn-sm { min-height: 38px; padding: 6px 12px; font-size: .86rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--navy-600); font: 600 inherit var(--font-body); font-size: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 650 .78rem var(--font-body); white-space: nowrap; background: var(--gr-soft); color: var(--gr); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge.nodot::before { display: none; }
.b-green { background: var(--g-soft); color: var(--g); }
.b-yellow { background: var(--y-soft); color: var(--y); }
.b-yellow::before { background: var(--y-dot); }
.b-red { background: var(--r-soft); color: var(--r); }
.b-grey { background: var(--gr-soft); color: var(--gr); }
.b-blue { background: var(--b-soft); color: var(--b); }
.b-orange { background: var(--orange-soft); color: var(--orange-strong); }
.b-navy { background: var(--navy-50); color: var(--navy-600); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.tag svg { width: 14px; height: 14px; }

/* Türk plakası */
.plate { display: inline-flex; align-items: stretch; border: 2px solid #111; border-radius: 6px; overflow: hidden; background: #fff; color: #111; font: 700 .95rem/1 var(--font-mono); letter-spacing: .04em; height: 30px; white-space: nowrap; }
.plate .tr { background: #1F4FBF; color: #fff; font: 700 .58rem/1 var(--font-body); display: grid; place-items: end center; padding: 0 4px 4px; width: 20px; }
.plate .no { padding: 0 9px; display: grid; place-items: center; }
.plate.lg { height: 42px; font-size: 1.35rem; }
.plate.lg .tr { width: 26px; font-size: .7rem; }

/* ---------- Formlar ---------- */
.form { display: grid; gap: 16px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .lbl { font-weight: 650; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
.req::after { content: " *"; color: var(--orange-strong); }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 13px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--fg); font: 500 .97rem var(--font-body);
}
textarea { min-height: 104px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--navy-100); }
.field.has-err input, .field.has-err select, .field.has-err textarea, .field.has-err .filebox { border-color: var(--r); }
.err { color: var(--r); font-size: .83rem; font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.err::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--r); color: var(--surface); font: 800 .7rem/16px var(--font-body); text-align: center; margin-top: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: .88rem; }
.chip input:checked + span { background: var(--navy-900); color: var(--on-navy); border-color: var(--navy-900); }
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 9px 14px; border-radius: 9px; font: 650 .9rem var(--font-body); color: var(--muted); cursor: pointer; min-height: 40px; }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.role-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .role-pick { grid-template-columns: minmax(0, 1fr); } }
.role-opt { position: relative; }
.role-opt input { position: absolute; opacity: 0; }
.role-opt label { display: grid; gap: 4px; padding: 16px; border: 2px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: var(--surface); }
.role-opt input:checked + label { border-color: var(--orange); background: var(--orange-soft); }
.role-opt input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.role-opt b { font-family: var(--font-display); font-size: 1.05rem; }
.filebox { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); flex-wrap: wrap; }
.filebox input[type=file] { font: inherit; font-size: .88rem; max-width: 100%; color: var(--muted); }
.fsection { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fsection > header { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fsection > header .n { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-900); color: var(--on-navy); display: grid; place-items: center; font: 800 .95rem var(--font-display); flex: none; }
.fsection > .body { padding: 20px; display: grid; gap: 14px; }

/* ---------- Bildirim kutuları ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: .92rem; align-items: flex-start; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice.info { background: var(--b-soft); border-color: transparent; color: var(--fg); }
.notice.info svg { color: var(--b); }
.notice.warn { background: var(--y-soft); border-color: transparent; }
.notice.warn svg { color: var(--y); }
.notice.danger { background: var(--r-soft); border-color: transparent; }
.notice.danger svg { color: var(--r); }
.notice.ok { background: var(--g-soft); border-color: transparent; }
.notice.ok svg { color: var(--g); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.api-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1.5px dashed var(--orange); background: var(--orange-soft); font-size: .84rem; color: var(--fg); }
.api-note b { color: var(--orange-strong); }
.api-note code { font-family: var(--font-mono); font-size: .8rem; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font: 700 .76rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.actions { white-space: nowrap; }

/* ---------- Ana sayfa ---------- */
.hero { background: var(--navy-900); color: var(--on-navy); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 10%, rgba(242, 107, 29, .22), transparent 70%); pointer-events: none; }
.hero .in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; padding-block: 44px 40px; align-items: center; }
@media (max-width: 900px) { .hero .in { grid-template-columns: minmax(0, 1fr); padding-block: 28px; } }
.hero h1 { color: var(--on-navy); max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { color: var(--on-navy-muted); font-size: 1.07rem; max-width: 52ch; margin-top: 14px; }
.hero .cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; max-width: 520px; }
@media (max-width: 420px) { .hero .cta { grid-template-columns: minmax(0, 1fr); } }
.hero-panel { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 16px; display: grid; gap: 12px; }
.hero-panel .mini { background: var(--surface); color: var(--fg); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.searchbar { margin-top: -26px; position: relative; z-index: 2; }
.searchbar form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 860px) { .searchbar form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .searchbar form .btn { grid-column: 1 / -1; } }
@media (max-width: 460px) { .searchbar form { grid-template-columns: minmax(0, 1fr); } }
.feature { display: grid; gap: 10px; }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-strong); }
.feature .ic svg { width: 24px; height: 24px; }
.stat { display: grid; gap: 2px; padding: 18px 20px; }
.stat .v { font: 800 2rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: .88rem; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { position: relative; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.step .k { font: 800 .8rem var(--font-display); color: var(--orange-strong); letter-spacing: .06em; }
.secure { background: var(--navy-900); color: var(--on-navy); border-radius: 20px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; }
@media (max-width: 860px) { .secure { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.secure p { color: var(--on-navy-muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.footer { background: var(--navy-950); color: var(--on-navy-muted); margin-top: 24px; }
.footer .in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 36px; }
@media (max-width: 800px) { .footer .in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.footer h4 { color: var(--on-navy); margin-bottom: 10px; }
.footer button { background: none; border: 0; color: var(--on-navy-muted); font: inherit; padding: 4px 0; cursor: pointer; text-align: left; display: block; }
.footer button:hover { color: var(--on-navy); }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 14px; font-size: .82rem; }

/* ---------- İlan kartı ---------- */
.lcard { display: grid; gap: 12px; padding: 18px; }
.lcard .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lcard h3 { font-size: 1.06rem; }
.lcard .route { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.lcard .route .ln { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px); min-width: 16px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-size: .88rem; }
.kv div { display: grid; gap: 1px; min-width: 0; }
.kv span { color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kv b { font-weight: 650; overflow-wrap: anywhere; }
.deadline { font-variant-numeric: tabular-nums; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.timeline div { padding: 10px 12px; display: grid; gap: 2px; border-right: 1px solid var(--line); }
.timeline div:last-child { border-right: 0; }
.timeline span { font-size: .74rem; color: var(--muted); font-weight: 600; }
.timeline b { font: 800 1.2rem var(--font-display); font-variant-numeric: tabular-nums; }
.filters { display: grid; gap: 12px; }
.listing-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .listing-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Harita ---------- */
.map { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--map-land); }
.map svg { display: block; width: 100%; height: auto; }
.map .map-badge { position: absolute; left: 10px; top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: .76rem; font-weight: 700; color: var(--muted); }
.map .map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px; font-size: .8rem; background: var(--surface); border-top: 1px solid var(--line); }
.map .map-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* ---------- Panel ---------- */
.panel { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - 64px); max-width: 1440px; margin: 0 auto; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; display: grid; align-content: start; gap: 4px; position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); height: calc(100vh - 64px - env(safe-area-inset-top, 0px)); overflow-y: auto; }
.side .who { padding: 8px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; display: grid; gap: 8px; }
.side button.nav { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; color: var(--fg); font: 600 .93rem var(--font-body); padding: 11px 12px; border-radius: 10px; cursor: pointer; text-align: left; min-height: 44px; }
.side button.nav svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.side button.nav:hover { background: var(--surface-2); }
.side button.nav.on { background: var(--navy-900); color: var(--on-navy); }
.side button.nav.on svg { color: var(--orange); }
.side button.nav .cnt { margin-left: auto; background: var(--orange); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; font-weight: 700; }
.side button.nav.locked { color: var(--muted); }
.side button.nav.locked::after { content: "🔒"; margin-left: auto; font-size: .75rem; filter: grayscale(1); opacity: .7; }
.main { padding: 26px; display: grid; gap: 20px; align-content: start; min-width: 0; padding-left: max(26px, env(safe-area-inset-left, 0px)); }
.page-h { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; }
.page-h .t { display: grid; gap: 4px; }
@media (max-width: 900px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; width: min(86vw, 300px); height: auto; transform: translateX(-102%); transition: transform .2s; box-shadow: var(--shadow-lg); padding-top: calc(18px + env(safe-area-inset-top, 0px)); padding-left: max(12px, env(safe-area-inset-left, 0px)); }
  .side.open { transform: none; }
  .main { padding: 18px 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
.scrim { position: fixed; inset: 0; background: rgba(4, 11, 22, .5); z-index: 65; }
.kpi { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; cursor: pointer; font: inherit; color: inherit; position: relative; }
.kpi .v { font: 800 1.9rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi .k { color: var(--muted); font-weight: 600; font-size: .86rem; }
.kpi.alert { border-color: var(--orange); }
.kpi.alert::after { content: ""; position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.kpi:hover { border-color: var(--navy-600); }
.status-banner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.progress { display: flex; gap: 6px; flex-wrap: wrap; }
.progress .p { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.progress .p.done { color: var(--g); background: var(--g-soft); border-color: transparent; }
.progress .p.cur { color: var(--orange-strong); background: var(--orange-soft); border-color: transparent; }

/* Belge ızgarası */
.docgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.doc { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; background: var(--surface); position: relative; overflow: hidden; }
.doc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gr); }
.doc.green::before { background: var(--g); } .doc.yellow::before { background: var(--y-dot); } .doc.red::before { background: var(--r); } .doc.blue::before { background: var(--b); } .doc.grey::before { background: var(--line-strong); }
.doc .meta { font-size: .8rem; color: var(--muted); display: grid; gap: 2px; }
.doc .reason { font-size: .82rem; background: var(--r-soft); color: var(--r); border-radius: 8px; padding: 6px 8px; }

/* Teklif ve kuyruk öğeleri */
.item { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.item .head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.price { font: 800 1.35rem var(--font-display); font-variant-numeric: tabular-nums; }
.price small { font: 600 .78rem var(--font-body); color: var(--muted); }
.lock { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); }
.lock svg { width: 14px; height: 14px; }
.flow { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .78rem; }
.flow span { padding: 4px 9px; border-radius: 7px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.flow span.on { background: var(--navy-900); color: var(--on-navy); border-color: var(--navy-900); }
.flow span.bad { background: var(--r-soft); color: var(--r); border-color: transparent; }
.flow i { color: var(--line-strong); font-style: normal; }

/* QR */
.qr-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 560px) { .qr-card { grid-template-columns: minmax(0, 1fr); } }
.qr-box { width: 180px; height: 180px; background: #fff; border-radius: 12px; padding: 10px; border: 1px solid var(--line); display: grid; place-items: center; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; }
.qr-box.off { position: relative; }
.qr-box.off::after { content: "PASİF"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .82); color: #C42F2F; font: 800 1.2rem var(--font-display); letter-spacing: .1em; border-radius: 12px; }
.sticker { width: min(100%, 340px); margin: 0 auto; border: 2px solid var(--navy-900); border-radius: 16px; overflow: hidden; background: #fff; color: #0B1F3A; text-align: center; }
.sticker .h { background: #0B1F3A; color: #fff; padding: 10px; font: 800 1rem var(--font-display); }
.sticker .h b { color: #F26B1D; }
.sticker .b { padding: 14px; display: grid; gap: 8px; justify-items: center; }

/* Bildirimler */
.notif { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; cursor: pointer; background: var(--surface); border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font: inherit; color: inherit; }
.notif.unread { background: var(--navy-50); }
.notif .d { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); margin-top: 7px; flex: none; }
.notif.read .d { background: transparent; border: 1.5px solid var(--line-strong); }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(4, 11, 22, .55); z-index: 90; display: grid; place-items: center; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.modal { background: var(--surface); color: var(--fg); border-radius: 18px; width: min(100%, 620px); max-height: 100%; overflow: auto; box-shadow: var(--shadow-lg); }
.modal.wide { width: min(100%, 860px); }
.modal header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal .mb { padding: 20px; display: grid; gap: 14px; }
.modal footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.close-x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; font-size: 1.2rem; }
.toasts { position: fixed; z-index: 100; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; width: min(400px, calc(100vw - 32px)); }
.toast { background: var(--navy-900); color: var(--on-navy); padding: 13px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; border-left: 5px solid var(--g); animation: tin .2s ease-out; }
.toast.err { border-left-color: #FF6B6B; }
.toast.warn { border-left-color: #F2C14E; }
@keyframes tin { from { transform: translateY(8px); opacity: .4; } to { transform: none; opacity: 1; } }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); display: grid; gap: 10px; justify-items: center; border: 1.5px dashed var(--line-strong); border-radius: 14px; }
.empty svg { width: 40px; height: 40px; color: var(--line-strong); }
.prose { max-width: 72ch; display: grid; gap: 14px; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); align-items: center; }
.crumbs button { background: none; border: 0; color: var(--navy-600); font: inherit; padding: 0; cursor: pointer; }
.auth { max-width: 560px; margin: 0 auto; width: 100%; }
.demo-accounts { display: grid; gap: 8px; }
.demo-accounts button { display: flex; justify-content: space-between; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: inherit; cursor: pointer; min-height: 48px; }
.demo-accounts button:hover { border-color: var(--navy-600); }
.captcha { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.captcha .q { font: 800 1.2rem var(--font-mono); letter-spacing: .1em; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 4px, var(--navy-50) 4px, var(--navy-50) 8px); padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); user-select: none; }
.captcha input { width: 110px; }
.hist { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.hist div { position: relative; padding: 0 0 14px 18px; font-size: .88rem; }
.hist div::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--navy-600); }
.hist div:last-child::before { background: var(--orange); border-color: var(--orange); }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos .ph { width: 72px; height: 54px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: .7rem; overflow: hidden; }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-ph { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; background: linear-gradient(135deg, var(--navy-50), var(--surface-2)); display: grid; place-items: center; border: 1px solid var(--line); color: var(--navy-600); overflow: hidden; }
.vehicle-ph svg { width: 60%; height: auto; }

@media (max-width: 900px) { .demo-strip .in { padding-block: 6px; gap: 6px 10px; } .demo-strip label { margin-left: 0 !important; flex: 1; min-width: 0; } .demo-strip select { width: 100%; } }

/* Yükleniyor durumları */
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--orange); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-ghost.is-loading::after, .btn-ok.is-loading::after, .btn-danger.is-loading::after { border-color: var(--line-strong); border-top-color: var(--navy-600); }
html.is-busy { cursor: progress; }

/* QR etiketi yazdırma */
@media print {
  html.print-sticker body * { visibility: hidden !important; }
  html.print-sticker #modal .sticker, html.print-sticker #modal .sticker * { visibility: visible !important; }
  html.print-sticker #modal .sticker { position: fixed; left: 0; top: 0; width: 8cm; border-color: #0B1F3A; }
  html.print-sticker .modal-bg { background: none; }
}

@media (max-width: 480px) {
  .topbar-in { gap: 8px; }
  .top-actions { gap: 6px; }
  .brand { font-size: 1.05rem; gap: 7px; }
  .brand .logo { width: 30px; height: 30px; }
  .icon-btn { width: 40px; height: 40px; }
}
@media (max-width: 350px) { .brand > span { display: none; } }

/* ---------- Powered by Two Pixel Studio ---------- */
.footer .bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.footer a { color: var(--on-navy); }
.tps { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 10px; border-radius: 999px; background: #05070D; border: 1px solid rgba(0, 240, 255, .18); color: #fff !important; text-decoration: none; line-height: 1; white-space: nowrap; transition: border-color .2s, box-shadow .2s; }
.tps:hover { border-color: rgba(0, 240, 255, .5); box-shadow: 0 0 18px rgba(112, 0, 255, .28); }
.tps-by { font-size: .7rem; letter-spacing: .04em; color: #9AA6B8; text-transform: lowercase; }
.tps-px { display: inline-flex; gap: 3px; }
.tps-px i { width: 9px; height: 9px; border-radius: 2.5px; background: #00F0FF; box-shadow: 0 0 9px #00F0FF; }
.tps-px i + i { background: #7000FF; box-shadow: 0 0 9px #7000FF; }
.tps-name { display: inline-flex; flex-direction: column; }
.tps-name b { font-family: Archivo, sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: -.01em; }
.tps-name small { font-size: .5rem; letter-spacing: .6em; color: #00F0FF; margin-top: 1px; }
.mini-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 22px; max-width: 1240px; margin: 0 auto; font-size: .8rem; color: var(--muted); }

/* ---------- Google Haritalar ---------- */
.gmap-wrap { display: grid; gap: 6px; min-width: 0; }
.gmap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16 / 10; max-height: 420px; width: 100%; }
.gmap iframe, .mp-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gmap.approx::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 3px rgba(242, 107, 29, .35); border-radius: inherit; }
.gmap-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(11, 31, 58, .88); color: #fff; font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.gmap-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; align-items: center; }
.gmap-links { display: inline-flex; gap: 14px; flex-wrap: wrap; font-size: .86rem; font-weight: 600; }
.gmap-links a { display: inline-flex; gap: 5px; align-items: center; }
.gmap-links svg { width: 15px; height: 15px; }
.mappick .mp-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.mappick .mp-bar input { flex: 1 1 220px; min-width: 0; }
.mp-map { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16 / 9; min-height: 220px; max-height: 360px; width: 100%; }
.mp-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; text-align: center; color: var(--muted); font-size: .88rem; }
.firm-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- Uygulama olarak yükle (PWA) ---------- */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 520px; margin: 0 auto; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--navy-900); color: #fff; box-shadow: 0 12px 34px rgba(7, 20, 38, .35); }
.install-bar img { width: 42px; height: 42px; border-radius: 10px; flex: none; }
.install-bar .t { flex: 1; min-width: 0; font-size: .86rem; line-height: 1.35; }
.install-bar .t b { display: block; font-size: .95rem; }
.install-bar .x { background: none; border: 0; color: #C8D3E3; font-size: 1.4rem; line-height: 1; padding: 4px; cursor: pointer; }
.ios-steps { display: grid; gap: 10px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.ios-steps li { display: flex; gap: 10px; align-items: center; }
.ios-steps li::before { counter-increment: s; content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 700; font-size: .85rem; }
@media (display-mode: standalone) { .hide-standalone { display: none !important; } }

/* ---------- Araç fotoğraf düzenleme ---------- */
.photo-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-edit .pe { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--surface-2); cursor: pointer; }
.photo-edit img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.photo-edit .pe:has(input:not(:checked)) img { opacity: .35; filter: grayscale(1); }
