/* Wanpy Partner ortak stil
   Marka kırmızısı logodan alındı. Başlıklar logonun yuvarlak hatlarına yakın Nunito, metin Figtree. */
:root {
  --bg: #F7F4F1;
  --surface: #FFFFFF;
  --surface-2: #F0EBE6;
  --ink: #1F1A17;
  --muted: #6E645D;
  --line: #E3DBD4;
  --brand: #FF3D1F;
  --brand-ink: #FFFFFF;
  --brand-soft: #FFE5DE;
  --brand-deep: #D92A10;
  --good: #23784A; --good-soft: #DCF0E3;
  --warn: #9A6212; --warn-soft: #F8EBCF;
  --bad: #B42323;  --bad-soft: #F8DEDC;
  --info: #1D6496; --info-soft: #DCEAF5;
  --shadow: 0 18px 40px -24px rgba(60, 30, 15, .35);
  --f-display: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100E; --surface: #1D1815; --surface-2: #27201C; --ink: #F1EBE6; --muted: #A99D94; --line: #352C27;
    --brand: #FF5A3D; --brand-ink: #1A0905; --brand-soft: #3D1A12; --brand-deep: #FF7A62;
    --good: #6FD58F; --good-soft: #173022; --warn: #F0BE55; --warn-soft: #352B14;
    --bad: #FF8A80; --bad-soft: #3A1C1A; --info: #7DBBE9; --info-soft: #152A3B;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
p { margin: 0; }
a { color: var(--brand-deep); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xs { font-size: 12.5px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* yerleşim */
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .grid2.collapse { grid-template-columns: minmax(0, 1fr); } }
.spacer { flex: 1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card-tight { padding: 14px 16px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* üst bar */
.topbar { display: flex; align-items: center; gap: 12px; padding-block: 12px; }
.logo { height: 44px; width: auto; display: block; }
.topbar .who { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.3; }

/* butonlar */
.btn {
  font: inherit; font-weight: 700; font-size: 16px; border-radius: 12px; padding: 12px 18px; min-height: 48px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); border-color: transparent; }
.btn-danger { color: var(--bad); border-color: var(--bad); background: transparent; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 9px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* form */
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="datetime-local"], select, textarea {
  font: inherit; font-size: 16px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--ink); width: 100%; min-width: 0;
}
textarea { font-family: var(--f-mono); font-size: 13px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
input.code-input { font-family: var(--f-mono); font-size: 24px; letter-spacing: .3em; text-align: center; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brand); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 9px; cursor: pointer; color: var(--muted); min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.err { color: var(--bad); font-size: 14px; font-weight: 700; }
.ok { color: var(--good); font-size: 14px; font-weight: 700; }
.note { background: var(--info-soft); color: var(--info); border-radius: 11px; padding: 10px 13px; font-size: 14px; }
.warnbox { background: var(--warn-soft); color: var(--warn); border-radius: 11px; padding: 10px 13px; font-size: 14px; }

/* etiketler */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.c-good { background: var(--good-soft); color: var(--good); }
.c-warn { background: var(--warn-soft); color: var(--warn); }
.c-bad { background: var(--bad-soft); color: var(--bad); }
.c-info { background: var(--info-soft); color: var(--info); }
.c-accent { background: var(--brand-soft); color: var(--brand-deep); }

/* sekmeler */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 20px; }
.tabs button { font: inherit; font-weight: 700; font-size: 15px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; color: var(--muted); cursor: pointer; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.badge { background: var(--brand); color: var(--brand-ink); border-radius: 999px; font-size: 11.5px; padding: 0 7px; line-height: 19px; }

/* tablolar */
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r { text-align: right; }

/* ölçer */
.meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; min-width: 80px; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.meter.hot i { background: var(--warn); }

/* kanıt adımları */
.ev { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; background: var(--surface); }
.ev .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.ev.done { border-color: var(--good); }
.ev.done .dot { background: var(--good-soft); color: var(--good); }
.ev img.thumb { width: 92px; height: 70px; object-fit: cover; border-radius: 8px; display: block; }
@media (max-width: 520px) { .ev { grid-template-columns: 32px minmax(0, 1fr); } .ev > :last-child { grid-column: 2; } }

/* bildirim */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 15px; z-index: 50; max-width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow); }
.toast[data-kind="bad"] { background: var(--bad); color: #fff; }

.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); }
.center-screen { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  body { background: #fff; color: #000; padding: 0; }
  .no-print { display: none !important; }
}
