/* Lokalta AR satıcı paneli. Sayfa: panel/index.html, davranış: panel/app.js
   Marka renkleri (colors.txt): #222831 · #393E46 · #00ADB5 · #EEEEEE. Site ile aynı değerler: site/css/ortak.css.
   Turkuaz açık zeminde yazı için fazla açık: yazıda --accent-text, dolguda --accent (üstündeki yazı lacivert). */

@font-face { font-family: "Fraunces"; font-display: swap; font-weight: 100 900; src: url(/fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20C0; }
@font-face { font-family: "Fraunces"; font-display: swap; font-weight: 100 900; src: url(/fonts/fraunces-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Inter"; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20C0; }
@font-face { font-family: "Inter"; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2212; }

/* ---------- Renkler ---------- */
:root {
  --bg: #eeeeee; --bg2: #e4e5e7; --panel: #f9f9f9; --ink: #222831; --ink2: #393e46; --muted: #5e646c; --line: #dadbdd; --line2: #c6c9cd;
  --accent: #00adb5; --accent2: #009aa1; --accent-soft: #d2edee; --accent-ink: #222831; --accent-text: #00747b;
  --ok: #1f7a4d; --ok-soft: #dcefe4; --warn: #8a5300; --warn-soft: #fbebd3; --bad: #b3261e; --bad-soft: #fde7e5; --focus: #00747b;
  --code: #222831; --code-ink: #eeeeee; --ctl: #8d939a; --scrim: rgba(34,40,49,.45);
  --shadow: 0 1px 2px rgba(34,40,49,.06), 0 10px 28px -10px rgba(34,40,49,.18);
  --shadow-lg: 0 2px 6px rgba(34,40,49,.08), 0 24px 60px -16px rgba(34,40,49,.35);
  --serif: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --side-w: 256px;
  color-scheme: light;
}
/* Koyu tema: sistem tercihi (kullanıcı "açık" seçmediyse) ya da kullanıcının seçimi */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #222831; --bg2: #1b2027; --panel: #2a3038; --ink: #eeeeee; --ink2: #c8cbcf; --muted: #9aa0a8; --line: #393e46; --line2: #4a505a;
    --accent: #00adb5; --accent2: #19c3cb; --accent-soft: #11393e; --accent-ink: #222831; --accent-text: #2fc8cf;
    --ok: #5cc493; --ok-soft: #173326; --warn: #f0b45a; --warn-soft: #33291a; --bad: #ff8a80; --bad-soft: #3a1c1a; --focus: #2fc8cf;
    --code: #171b21; --ctl: #6f767f; --scrim: rgba(0,0,0,.6);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -10px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 24px 60px -16px rgba(0,0,0,.8);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo .on-light { display: none; }
  :root:not([data-theme="light"]) .logo .on-dark { display: block; }
}
:root[data-theme="dark"] {
  --bg: #222831; --bg2: #1b2027; --panel: #2a3038; --ink: #eeeeee; --ink2: #c8cbcf; --muted: #9aa0a8; --line: #393e46; --line2: #4a505a;
  --accent: #00adb5; --accent2: #19c3cb; --accent-soft: #11393e; --accent-ink: #222831; --accent-text: #2fc8cf;
  --ok: #5cc493; --ok-soft: #173326; --warn: #f0b45a; --warn-soft: #33291a; --bad: #ff8a80; --bad-soft: #3a1c1a; --focus: #2fc8cf;
  --code: #171b21; --ctl: #6f767f; --scrim: rgba(0,0,0,.6);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 24px 60px -16px rgba(0,0,0,.8);
  color-scheme: dark;
}
:root[data-theme="dark"] .logo .on-light { display: none; }
:root[data-theme="dark"] .logo .on-dark { display: block; }

/* ---------- Temel ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -.02em; margin: 0; }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 19px; line-height: 1.25; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line2); border-top-color: var(--accent); animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Düğmeler ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; min-height: 40px; background: var(--ink); color: var(--bg); font: 600 14.5px/1.1 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .12s, box-shadow .12s, opacity .12s; }
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: var(--accent2); opacity: 1; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { background: var(--bg2); opacity: 1; }
.btn.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 35%, transparent); }
.btn.danger:hover { background: var(--bad-soft); opacity: 1; }
.btn.danger.solid { background: var(--bad); color: #fff; box-shadow: none; }
.btn.sm { padding: 7px 13px; min-height: 34px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn svg { flex: none; }
/* İşlem sürerken: yazı yerinde kalır (düğme zıplamaz), üstünde dönen halka */
.btn.loading { color: transparent !important; pointer-events: none; opacity: 1; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg); border-top-color: transparent; animation: spin .7s linear infinite; }
.btn.accent.loading::after { border-color: var(--accent-ink); border-top-color: transparent; }
.btn.ghost.loading::after, .btn.danger.loading::after { border-color: var(--ink); border-top-color: transparent; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--ink2); cursor: pointer; }
.iconbtn:hover { background: var(--bg2); color: var(--ink); }

/* ---------- Form ---------- */
input, select, textarea { width: 100%; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); border-radius: 11px; padding: 10px 12px; font: 15px var(--sans); transition: border-color .12s, box-shadow .12s; }
input:hover, select:hover, textarea:hover { border-color: var(--ctl); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
input::placeholder { color: var(--ctl); }
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: var(--ink2); }
.field { margin-bottom: 14px; }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.row3 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr 1fr; } }
.unit { position: relative; } .unit input { padding-right: 38px; } .unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.field small.muted { display: block; margin-top: 5px; font-size: 12.5px; }
.field.bad input, .field.bad select { border-color: var(--bad); }
.field.bad .seg span { border-color: var(--bad); }
.ferr { display: block; color: var(--bad); font-size: 12.5px; margin-top: 5px; font-weight: 600; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 2px; margin: 0 0 14px; }
legend { font-size: 13px; font-weight: 600; padding: 0 6px; color: var(--ink2); }
.inline-check { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.inline-check input, label.check input { width: 18px; height: 18px; flex: none; accent-color: var(--accent-text); padding: 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--ink2); cursor: pointer; margin: 0; }
label.check input { margin: 2px 0 0; }
label.check a { color: var(--ink); font-weight: 600; }
input[type="range"] { accent-color: var(--accent-text); border: 0; background: transparent; box-shadow: none; }
input[type="color"] { height: 42px; padding: 4px; cursor: pointer; }

/* ---------- Kart, rozet, not ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card + .card { margin-top: 14px; }
.card > h2 { margin-bottom: 14px; }
.card.flush { padding: 0; overflow: hidden; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); } .chip.n { background: var(--bg2); color: var(--muted); }
.chip.plain::before { display: none; }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.limit { margin: 0 0 16px; } .note.limit a { color: inherit; font-weight: 650; }
.welcome { background: var(--ok-soft); color: var(--ok); border-radius: 14px; padding: 12px 16px; font-weight: 600; margin-bottom: 18px; }

/* ---------- Bildirimler ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
@media (max-width: 860px) { .toasts { right: 50%; transform: translateX(50%); bottom: 16px; } }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: var(--bg); padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; box-shadow: var(--shadow-lg); pointer-events: auto; animation: toast-in .18s ease-out; overflow-wrap: anywhere; }
.toast svg { flex: none; margin-top: 1px; }
.toast.err { background: var(--bad); color: #fff; }
:root[data-theme="dark"] .toast.err, .toast.err { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast.err { background: #b3261e; } }
:root[data-theme="dark"] .toast.err { background: #b3261e; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .18s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Onay penceresi ---------- */
dialog.modal { border: 1px solid var(--line); border-radius: 18px; padding: 0; background: var(--panel); color: var(--ink); width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: var(--scrim); }
dialog.modal .mbody { padding: 22px 22px 6px; }
dialog.modal h2 { margin-bottom: 8px; }
dialog.modal p { margin: 0; color: var(--ink2); font-size: 14.5px; }
dialog.modal .mfoot { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 22px 20px; flex-wrap: wrap; }

/* ---------- Yükleniyor iskeleti ---------- */
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--bg2) 25%, color-mix(in srgb, var(--bg2) 55%, var(--panel)) 37%, var(--bg2) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; }
@keyframes sk { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
.sk-row { display: grid; grid-template-columns: 44px 1fr 90px 80px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sk-row:last-child { border-bottom: 0; }
.sk-row .sk { height: 14px; } .sk-row .sk:first-child { height: 44px; border-radius: 9px; }
@media (prefers-reduced-motion: reduce) { .sk, .progress i, .spin, .btn.loading::after { animation-duration: 0s; animation-iteration-count: 1; } }

/* ---------- Giriş / kayıt ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .box { width: min(420px, 100%); }
.auth h1 { margin: 20px 0 8px; }
.auth .box > p { margin: 0 0 20px; color: var(--ink2); }
.auth .card { box-shadow: var(--shadow); }
.auth .tools { display: flex; gap: 8px; margin-top: 18px; }
.code-input { letter-spacing: .45em; font: 600 22px var(--sans); text-align: center; font-variant-numeric: tabular-nums; padding-left: calc(12px + .45em); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent-text); font: 600 13.5px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.auth .after { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.ssteps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ssteps li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--bg2); }
.ssteps li span { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--panel); font-weight: 700; font-size: 12px; }
.ssteps li.on { background: var(--ink); color: var(--bg); } .ssteps li.on span { background: var(--accent); color: var(--accent-ink); }
.ssteps li.done { color: var(--ok); } .ssteps li.done span { background: var(--ok-soft); color: var(--ok); }
.swap { margin: 16px 0 0; font-size: 14px; color: var(--ink2); } .swap a { font-weight: 650; }
.onb { width: min(760px, 100%); margin: 0 auto; padding: 22px 16px 64px; }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.foot-links { display: flex; gap: 8px; }
.pform .card + .card { margin-top: 14px; }
@media (max-width: 560px) { .pform .row2 { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg label { margin: 0; font-weight: 500; font-size: 14px; color: var(--ink); cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; text-align: center; padding: 10px 8px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel); line-height: 1.25; }
.seg input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 650; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 560px) { .seg { grid-template-columns: 1fr; } }
.phonebox { max-width: 440px; margin: 0 auto; } .phonebox h1 { margin-bottom: 8px; } .phonebox > p { color: var(--ink2); margin: 0 0 16px; }

/* ---------- Uygulama iskeleti ---------- */
.shell { display: grid; min-height: 100vh; grid-template-columns: var(--side-w) minmax(0, 1fr); }
.shell > *, .pgrid > *, .row2 > *, .row3 > *, .proof > *, .hgrid > * { min-width: 0; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 24px; width: auto; display: block; }
.logo .on-dark { display: none; }
.side { border-right: 1px solid var(--line); padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { padding: 0 6px; }
.storesel { font-size: 14px; font-weight: 600; padding: 9px 10px; }
nav.menu { display: grid; gap: 2px; }
nav.menu .grp { font-size: 12px; font-weight: 600; color: var(--muted); padding: 12px 11px 4px; }
nav.menu .grp:first-child { padding-top: 0; }
nav.menu a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 11px; border-radius: 10px; color: var(--ink2); font-size: 14.5px; font-weight: 500; }
nav.menu a:hover { background: var(--bg2); color: var(--ink); }
nav.menu a[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
nav.menu a[aria-current="page"] svg { color: var(--accent-text); }
nav.menu a .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.side .grow { flex: 1; }
.planbox { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: 13px; color: var(--muted); display: grid; gap: 7px; text-decoration: none; }
.planbox:hover { border-color: var(--line2); }
.planbox b { color: var(--ink); font-weight: 600; }
.planbox .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.planbox .meter { max-width: none; flex: none; width: 100%; }
.userbox { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 2px 4px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.userbox .who { font-size: 13px; line-height: 1.3; }
.userbox .who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userbox .who span { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.sidetools { display: flex; gap: 2px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.sidetools .txt { background: none; border: 0; color: var(--ink2); font: 500 13px var(--sans); cursor: pointer; padding: 8px 9px; border-radius: 9px; display: inline-flex; gap: 7px; align-items: center; }
.sidetools .txt:hover { background: var(--bg2); color: var(--ink); }
.sidetools .sp { flex: 1; }
.topbar { display: none; }
.scrim { display: none; }
main.view { padding: 30px 36px 72px; max-width: 1160px; width: 100%; outline: none; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.head .actions { margin: 0; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; }
.crumb:hover { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .topbar .name { font-weight: 600; font-size: 14px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(300px, 86vw); background: var(--bg); transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .shell.open .side { transform: none; }
  .shell.open .scrim { display: block; position: fixed; inset: 0; z-index: 50; background: var(--scrim); border: 0; padding: 0; width: 100%; }
  main.view { padding: 20px 16px 64px; }
  h1 { font-size: 24px; }
}

/* ---------- Genel bakış ---------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; text-decoration: none; }
a.stat:hover { border-color: var(--line2); }
.stat .lbl { color: var(--muted); font-size: 13px; }
.stat .val { font: 600 26px/1.15 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .val small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stat .sub { font-size: 12.5px; color: var(--muted); }
.stat .meter { max-width: none; margin-top: 6px; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat { padding: 14px; } .stat .val { font-size: 22px; } }
.hgrid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.hgrid .card + .card { margin-top: 0; }
@media (max-width: 980px) { .hgrid { grid-template-columns: minmax(0, 1fr); } }
.setup { list-style: none; margin: 0; padding: 0; display: grid; }
.setup li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.setup li:first-child { border-top: 0; padding-top: 2px; }
.setup .mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line2); color: var(--muted); font: 600 12px var(--sans); }
.setup li.done .mark { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.setup li.next .mark { border-color: var(--accent-text); color: var(--accent-text); }
.setup b { display: block; font-weight: 600; font-size: 14.5px; }
.setup li.done b { color: var(--muted); font-weight: 500; }
.setup span.d { display: block; color: var(--muted); font-size: 13px; }
.setup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.setup-head h2 { margin: 0; }
.setup-head + .meter { max-width: none; margin-bottom: 6px; }
.setup-head + .meter.full i { background: var(--ok); }
.mini { list-style: none; margin: 0; padding: 0; }
.mini li a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; }
.mini li:first-child a { border-top: 0; }
.mini .nm { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .sub { color: var(--muted); font-size: 12.5px; }
.cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.cardhead h2 { margin: 0; }
.cardhead a { font-size: 13.5px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.cardhead a:hover { text-decoration: underline; }

/* ---------- Ürünler ---------- */
.addbar { display: flex; gap: 8px; }
.addbar input { border-radius: 999px; padding: 11px 16px; }
@media (max-width: 560px) { .addbar { flex-direction: column; } }
.usage { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); margin: 14px 0 18px; }
.meter { flex: 1; max-width: 240px; height: 6px; border-radius: 999px; background: var(--bg2); overflow: hidden; display: block; }
.meter i { display: block; height: 100%; background: var(--accent-text); border-radius: 999px; }
.meter.full i { background: var(--warn); }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; color: var(--muted); font: 600 13.5px var(--sans); padding: 7px 11px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { background: var(--bg2); color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--bg2); color: var(--ink); }
.tabs button .c { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.search { position: relative; width: min(260px, 100%); }
.search input { padding: 8px 12px 8px 34px; font-size: 14px; border-radius: 10px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
@media (max-width: 640px) { .search { width: 100%; } }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
th.r, td.r { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; } tr.click:hover td { background: color-mix(in srgb, var(--bg2) 55%, transparent); }
tr.click:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.thumb { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--bg2); display: block; }
.thumb.sm { width: 40px; height: 40px; }
.thumb.none { display: grid; place-items: center; color: var(--ctl); }
td .nm { font-weight: 600; } td .sub { color: var(--muted); font-size: 13px; }
td.nmcell { max-width: 380px; } td.nmcell .nm, td.nmcell .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tablewrap { overflow-x: auto; }
@media (max-width: 560px) { th.opt, td.opt { display: none; } th, td { padding: 10px 8px; } .thumb { width: 38px; height: 38px; } }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--bg2); display: grid; place-items: center; margin: 0 auto 12px; color: var(--ink2); }
.empty b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 4px; }
.empty p { margin: 0 auto; max-width: 44ch; font-size: 14px; }
.empty .btn { margin-top: 14px; }

/* ---------- Ürün detayı ---------- */
.pgrid { display: grid; gap: 18px; grid-template-columns: 1.1fr 1fr; align-items: start; }
@media (max-width: 980px) { .pgrid { grid-template-columns: 1fr; } }
.pubcall { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-color: var(--accent); margin-bottom: 14px; }
.pubcall p { margin: 4px 0 0; font-size: 14px; }
.pubcall .btn { flex: none; }
.stage { aspect-ratio: 4/3.2; border-radius: 16px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); }
.stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.stage .placeholder { height: 100%; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 12px; }
.pick { aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg2); cursor: pointer; position: relative; }
.pick img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pick[aria-pressed="true"] { border-color: var(--accent-text); }
.pick.add { border: 2px dashed var(--ctl); background: transparent; color: var(--ink2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 600 11.5px/1.25 var(--sans); padding: 6px; text-align: center; }
.pick.add:hover { border-color: var(--accent-text); color: var(--accent-text); }
.pick .tag { position: absolute; left: 5px; top: 5px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 999px; }
.share code, pre.snip { display: block; background: var(--code); color: var(--code-ink); border-radius: 12px; padding: 12px 14px; font: 12.5px/1.6 var(--mono); overflow-x: auto; white-space: pre; margin: 6px 0 10px; max-width: 100%; }
.share .qr { width: 120px; height: 120px; background: #fff; border-radius: 10px; padding: 6px; }
.share .qr svg { width: 100%; height: 100%; }
.progress { height: 5px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; width: 30%; background: var(--accent); border-radius: 999px; animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(380%); } }

/* ---------- Kurulum ---------- */
.steps-k { display: grid; gap: 14px; }
.stepk { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.stepk > * { min-width: 0; }
.stepk .n { width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.stepk h3 { font-family: var(--sans); font-size: 16px; font-weight: 650; letter-spacing: 0; margin: 6px 0 6px; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 14px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.igrid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.igrid > * { min-width: 0; }
@media (max-width: 1000px) { .igrid { grid-template-columns: minmax(0, 1fr); } }
.igrid .card + .card { margin-top: 0; }
.help h2 { font-size: 18px; margin-bottom: 10px; } .help h3 { font: 650 14.5px/1.3 var(--sans); letter-spacing: 0; margin: 0 0 4px; } .help p { font-size: 13.5px; margin: 0 0 8px; }
.guide { margin-top: 12px; font-size: 14.5px; }
.gsum { margin: 0 0 8px; color: var(--ink2); }
.gwhere { margin: 0 0 10px; }
.crumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; vertical-align: middle; }
.crumbs span { background: var(--bg2); border: 1px solid var(--line); border-radius: 7px; padding: 1px 7px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.crumbs i { font-style: normal; color: var(--muted); }
.gsteps { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.gsteps > li > b { display: block; } .gsteps > li > span { display: block; color: var(--ink2); margin-top: 2px; }
.guide code, .help code { background: var(--bg2); border-radius: 5px; padding: 1px 5px; font: 12.5px var(--mono); }
.gtips { margin: 12px 0 0; padding: 10px 14px 10px 30px; background: var(--warn-soft); color: var(--warn); border-radius: 12px; font-size: 13.5px; display: grid; gap: 4px; }

/* ---------- Satış kanıtı ---------- */
.proof { display: grid; gap: 22px; }
@media (min-width: 860px) { .proof { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.big { font: 560 28px/1.15 var(--serif); letter-spacing: -.02em; margin: 10px 0 8px; }
.big em { font-style: normal; color: var(--ok); }
.bar label { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; font-weight: 500; }
.bar .tr { height: 12px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin-bottom: 12px; }
.bar .tr i { display: block; height: 100%; border-radius: 999px; background: var(--accent-text); }
.bar.ctl .tr i { background: var(--ctl); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 14px 0; }
.kpis .card + .card { margin-top: 0; }
.kpi b { display: block; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 13px; }

/* ---------- Ayarlar: buton önizlemesi ---------- */
.sgrid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.bprev .arbtn .s { white-space: nowrap; }
@media (max-width: 1040px) { .sgrid { grid-template-columns: minmax(0, 1fr); } }
.bprev { position: sticky; top: 24px; }
.bprev .mock { background: #fff; color: #1b1b1b; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; font: 14px/1.4 system-ui, sans-serif; }
.bprev .mock .ph { height: 120px; border-radius: 8px; background: #ececec; }
.bprev .mock .ttl { font-weight: 600; } .bprev .mock .pr { color: #555; }
.bprev .mock .cart { background: #1b1b1b; color: #fff; border-radius: 6px; text-align: center; padding: 12px; font-weight: 600; }
.bprev .arbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 18px; font: 600 15px/1.2 system-ui, sans-serif; }
.bprev .arbtn .t { display: flex; flex-direction: column; align-items: flex-start; }
.bprev .arbtn .s { font-weight: 400; font-size: 12px; opacity: .75; margin-top: 2px; }
.savebar { display: flex; gap: 12px; align-items: center; margin-top: 16px; }

/* ---------- Planlar ---------- */
.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); align-items: stretch; }
.plans .card + .card { margin-top: 0; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan.cur { border-color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-text); }
.plan .ptop { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 26px; }
.plan h2 { margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 6px; color: var(--ink2); font-size: 14px; display: grid; gap: 8px; flex: 1; align-content: start; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.plan li svg { color: var(--ok); margin-top: 2px; }
.plan li.no { color: var(--muted); } .plan li.no svg { color: var(--ctl); }

/* ---------- Tehlikeli işlemler, yönetici ---------- */
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.danger-zone h2 { color: var(--bad); }
.astore { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.astore + .astore { border-top: 1px solid var(--line); }
.astore b { font-weight: 600; }
.astore select { width: auto; min-width: 124px; padding: 6px 10px; font-size: 13.5px; }
dialog.modal .code-input { font-size: 20px; }
#asum { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- Yönetim alanı ---------- */
.areatag { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin: -6px 6px 0; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 12.5px/1 var(--sans); }
main.view.wide { max-width: 1560px; }
.tgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pager { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pager:empty { display: none; }
.pager .sp { flex: 1; }
.rowacts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.rowacts .btn.sm { padding: 5px 10px; min-height: 30px; font-size: 12.5px; }
table.dbt { font-size: 13.5px; }
table.dbt th, table.dbt td { padding: 9px 12px; white-space: nowrap; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
table.dbt th { font-family: var(--mono); font-size: 12px; font-weight: 500; position: sticky; top: 0; background: var(--panel); }
table.dbt td:last-child { max-width: none; overflow: visible; }
.mono { font-family: var(--mono); font-size: 12.5px; }
a.mono { color: var(--accent-text); text-decoration: none; } a.mono:hover { text-decoration: underline; }
.astore a { text-decoration: none; } .astore a:hover { text-decoration: underline; }
dialog.modal.wide { width: min(720px, calc(100vw - 32px)); }
dl.kv { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 0; margin: 12px 0 0; font-size: 13.5px; max-height: min(62vh, 620px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
dl.kv dt, dl.kv dd { margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); }
dl.kv dt { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg2); }
dl.kv dd { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px; }
dl.kv dt:last-of-type, dl.kv dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { border-bottom: 0; padding-bottom: 2px; } }
table.dbt .rowacts { flex-wrap: nowrap; }

/* ---------- Kullanım grafiği (genel bakış) ---------- */
.perf { margin-bottom: 14px; }
.pkpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 16px; }
.pk { display: grid; gap: 2px; }
.pk .lbl { color: var(--muted); font-size: 13px; }
.pk .val { font: 600 24px/1.15 var(--sans); letter-spacing: -.02em; }
.pk .sub { color: var(--muted); font-size: 12.5px; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 4px; border-bottom: 1px solid var(--line); }
.chart .col { flex: 1; height: 100%; position: relative; min-width: 2px; }
.chart .col i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px 3px 0 0; min-height: 0; }
.chart .col i.v { background: var(--bg2); border: 1px solid var(--line2); border-bottom: 0; }
.chart .col i.o { background: var(--accent-text); left: 22%; right: 22%; }
.chart .col:hover i.v { background: var(--accent-soft); }
.chartx { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.chartx .lg { display: inline-flex; align-items: center; gap: 6px; }
.chartx .lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.chartx .lg i.v { background: var(--bg2); border: 1px solid var(--line2); } .chartx .lg i.o { background: var(--accent-text); }
.ptop { font: 600 14px/1.3 var(--sans); letter-spacing: 0; margin: 18px 0 4px; }
@media (max-width: 560px) { .pkpis { grid-template-columns: 1fr 1fr; } .pk .val { font-size: 20px; } }

/* ---------- İade durumu, yardım ---------- */
.rfc h2 { margin-bottom: 12px; }
.rfc p { margin: 0 0 10px; }
.rfc p a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.rfs { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; }
.rfs.ok { background: var(--ok-soft); color: var(--ok); }
.rfs.no { background: var(--warn-soft); color: var(--warn); }
.rfs svg { flex: none; margin-top: 2px; }
.rfs span span { display: block; font-size: 13.5px; margin-top: 2px; opacity: .9; }
.rfs span b { font-weight: 600; }
.hlist { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink2); font-size: 14.5px; }
.hlist b { color: var(--ink); font-weight: 600; }
.hlist code { background: var(--bg2); border-radius: 5px; padding: 1px 5px; font: 12.5px var(--mono); }
.hdocs { list-style: none; margin: 0; padding: 0; display: grid; }
.hdocs li a { display: block; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 14.5px; }
.hdocs li:first-child a { border-top: 0; padding-top: 0; }
.hdocs li a:hover { color: var(--accent-text); }

/* ---------- Toplu ekleme, ölçü seçenekleri, API anahtarları ---------- */
.bulkc { display: grid; gap: 8px; margin: 14px 0 0; }
.bulkc details { font-size: 13.5px; } .bulkc summary { cursor: pointer; font-weight: 600; }
.bulkc ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; max-height: 180px; overflow: auto; overflow-wrap: anywhere; }
.bulkc .btn { justify-self: start; }
.vrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.vrow input { padding: 8px 10px; font-size: 14px; }
.vrow .unit input { padding-right: 34px; }
.vrow .vdel { font-size: 20px; color: var(--muted); }
textarea { resize: vertical; line-height: 1.5; }
.keys { list-style: none; margin: 0; padding: 0; }
.keys li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.keys li:first-child { border-top: 0; padding-top: 0; }
.keys .sub { display: block; color: var(--muted); font-size: 12.5px; }
.apidoc { margin-top: 14px; font-size: 14px; } .apidoc summary { cursor: pointer; font-weight: 600; color: var(--accent-text); }
.apidoc code { background: var(--bg2); border-radius: 5px; padding: 1px 5px; font: 12px var(--mono); white-space: nowrap; }

/* Ödeme: plan fiyatı, satın alma özeti */
.pprice { font: 600 14px/1.3 var(--sans); color: var(--muted); min-height: 18px; margin-top: -4px; }
.pcta { display: flex; flex-wrap: wrap; gap: 8px; }
.paysum { border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; overflow: hidden; }
.payrow { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; font-size: 14px; color: var(--ink2); border-bottom: 1px solid var(--line); }
.payrow:last-child { border-bottom: 0; }
.payrow.tot { font-weight: 700; font-size: 15.5px; color: var(--ink); background: var(--bg2); }
.payrow span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
#pexp .note { display: flex; gap: 10px; align-items: flex-start; background: var(--bg2); color: var(--ink2); margin: 0 0 16px; }
#pexp .note b { color: var(--ink); }
#pexp .note svg { flex: none; margin-top: 2px; }
