/* ============================================================================
   SmartPrep Panel — PREMIUM TASARIM SİSTEMİ  (KANONİK · Lane 1 sahibi)
   Marka: bordo #A10E17 · yeşil #39B54A · Fraunces (display) + Inter (gövde).
   Temel ADOPT: Tabler/Bootstrap admin desenleri → SmartPrep token'larına uyarlandı.
   İkon = inline stroke SVG (Lucide/Tabler hattı). Emoji ASLA.

   Bu dosya TÜM panel yüzeylerinin tek kaynağıdır (login + müşteri/tedarikçi panel +
   onboarding + admin/ops/teslimat kabuğu). shell.html ve base.html bunu yükler.
   Lane 2/3 (tedarikçi / admin-teslimat) bu sistemi base alır.

   Bölümler:
     0. Token (:root)            5. Kartlar / stat / tablo / rozet
     1. Reset + tipografi        6. Belge dropzone + onay checklist
     2. Login (full-bleed hero)  7. Banner / kilit / boş / form
     3. Onboarding + stepper     8. Modal (sözleşme okuyucu)
     4. Shell (sidebar+mobil)    9. Toast · focus · motion · responsive
   ============================================================================ */

/* GLYPH FIX: sadece & (U+0026). Masaüstü site ile AYNI — Fraunces'in çirkin
   ampersand glyphi yerine Newsreader & (değişken ağırlık). Display font stack'in
   başına konur → yalnız "&" güzelleşir, diğer harfler Fraunces kalır. */
@font-face {
  font-family: 'SPGlyphFix';
  src: url('../fonts/glyphfix-amp.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0026;
}

/* ── 0. TOKEN ────────────────────────────────────────────────────────────── */
:root {
  --sp-brand: #A10E17;
  --sp-brand-700: #7d0a11;
  --sp-brand-900: #5c060c;
  --sp-brand-050: #fbeced;
  --sp-green: #39B54A;
  --sp-green-700: #2c8f3a;
  --sp-green-050: #eaf7ec;

  --sp-ink: #1b1714;
  --sp-muted: #6c625a;
  --sp-faint: #948a81;
  --sp-line: #e9e2d9;
  --sp-line-soft: #f0ebe3;
  --sp-bg: #f6f2ec;
  --sp-card: #ffffff;

  --sp-ok-bg: #e6f4ea;     --sp-ok-fg: #1f7a39;
  --sp-warn-bg: #fbeed2;   --sp-warn-fg: #9a6c11;
  --sp-danger-bg: #fbe2df; --sp-danger-fg: #a3261d;
  --sp-neutral-bg: #efeae2;--sp-neutral-fg: #6c625a;

  --sp-rad: 16px;
  --sp-rad-sm: 11px;
  --sp-rad-lg: 22px;
  --sp-shadow: 0 1px 2px rgba(27,23,20,.05), 0 10px 30px -12px rgba(27,23,20,.18);
  --sp-shadow-lg: 0 24px 60px -24px rgba(92,6,12,.35);
  --sp-shadow-glass: 0 30px 80px -30px rgba(20,4,6,.6);
  --sp-sidebar-w: 264px;

  --sp-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sp-font-display: "SPGlyphFix", "Fraunces", Georgia, "Times New Roman", serif;

  /* Eski panel.css sınıfları (auth-card vb.) ile uyum için marka alias'ı. */
  --brand: var(--sp-brand);
  --brand-dark: var(--sp-brand-700);
}

/* ── 1. RESET + TİPOGRAFİ ────────────────────────────────────────────────── */
.sp-body, .pm-page {
  margin: 0;
  font-family: var(--sp-font-body);
  color: var(--sp-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.sp-body { min-height: 100vh; }
.sp-body *, .pm-page * { box-sizing: border-box; }

/* Panel iç yüzeyi: marka renginden dingin, derinlikli gradient. */
.sp-body {
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(161,14,23,.10), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(57,181,74,.08), transparent 55%),
    var(--sp-bg);
  background-attachment: fixed;
}
.sp-tm { font-size: .58em; vertical-align: super; font-weight: 600; }

.sp-skip {
  position: absolute; left: 12px; top: -56px; z-index: 80;
  background: var(--sp-brand); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .18s ease;
}
.sp-skip:focus { top: 12px; }

/* ── 2. LOGIN — TAM-EKRAN FOTO + BUZLU CAM FORM (MoveEase/Dribbble pattern) ── */
/* Tam-ekran foto; form elemanları (sekme/alan/OAuth) yarı-şeffaf cam → foto
   içlerinden görünür. Alta koyu scrim okunabilirlik için. Yeşil CTA marka eşi. */
.pm-login {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow-x: hidden; overflow-y: auto;
  padding: 0;
  background: var(--sp-brand-900) var(--pm-login-bg) center top / cover no-repeat;
}
.pm-login::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  /* Üstte çok hafif karartma (Ana Sayfa rozeti okunurluğu), altta koyu scrim
     (kart/form okunurluğu) — zarif tek gradyan. */
  background: linear-gradient(to bottom, rgba(20,4,7,.28) 0%, rgba(20,4,7,0) 22%, rgba(20,4,7,0) 28%, rgba(20,4,7,.5) 58%, rgba(14,3,5,.9) 100%);
}
/* Sol üst — ana sayfaya dönüş (cam rozet; web+mobil aynı köşe, ≥44px dokunma) */
.pm-home {
  position: absolute; z-index: 3;
  top: max(14px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px 10px 13px;
  border-radius: 999px; font-size: .88rem; font-weight: 600; color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .16s, transform .12s;
}
.pm-home:hover { background: rgba(255,255,255,.26); }
.pm-home:active { transform: scale(.97); }
.pm-home svg { width: 17px; height: 17px; flex: none; }
/* Mobil: 16:9 hero'nun dikey kırpımında odak görselin sağındaki yemek
   fotoğrafına kayar (dev logo kırpığı yerine premium kompozisyon). */
@media (max-width: 760px) {
  .pm-login { background-position: 72% top; }
}
.pm-auth {
  position: relative; z-index: 2; width: 100%; max-width: 480px; margin: 0 auto;
  padding: 18px clamp(20px,6vw,32px) max(26px, env(safe-area-inset-bottom)); color: #fff;
  animation: sp-rise .5s cubic-bezier(.22,1,.36,1) both;
}
.pm-auth__title { font-family: var(--sp-font-display); font-weight: 600; font-size: 1.7rem; margin: 0 0 16px; color: #fff; }
/* Site rol ipucu (/uyelik?rol=...) — cam rozet, sekmelerin üstünde. */
.pm-auth__rolehint {
  display: flex; justify-content: center; width: max-content; max-width: 100%;
  margin: 0 auto 12px; padding: 7px 16px;
  border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pm-autherr {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 14px;
  border-radius: 12px; font-size: .88rem; color: #fff;
  background: rgba(214,40,40,.35); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pm-autherr svg { width: 18px; height: 18px; flex: none; }
/* Cam sekmeler. */
.pm-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; margin-bottom: 16px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pm-tab {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; border: none;
  background: transparent; color: rgba(255,255,255,.85); padding: 11px 12px; border-radius: 999px;
  transition: background .16s, color .16s;
}
.pm-tab.is-active { background: #fff; color: var(--sp-brand-700); box-shadow: 0 2px 10px -2px rgba(0,0,0,.3); }
.pm-pane { animation: sp-rise .3s cubic-bezier(.22,1,.36,1) both; }
.pm-pane[hidden] { display: none; }
/* Cam form alanları (ikon prefiksli). */
.pm-form { display: flex; flex-direction: column; gap: 12px; }
.pm-gfield { position: relative; display: flex; align-items: center; }
.pm-gfield > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: rgba(255,255,255,.78); pointer-events: none; }
.pm-input {
  font: inherit; font-size: 16px; width: 100%; min-height: 50px;
  padding: 12px 16px 12px 42px; border-radius: 14px; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.pm-input::placeholder { color: rgba(255,255,255,.72); }
.pm-input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.2); box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
/* Beni hatırla / şifremi unuttum. */
.pm-auth__row { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px; font-size: .85rem; }
.pm-auth__row label { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.92); cursor: pointer; }
.pm-auth__row a { color: #fff; font-weight: 600; text-decoration: none; }
.pm-auth__row a:hover { text-decoration: underline; }
/* CTA — marka yeşili (bordo foto üstünde yüksek kontrast). */
.pm-cta {
  width: 100%; min-height: 52px; margin-top: 6px; font: inherit; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none; border-radius: 14px; color: #fff; background: var(--sp-green);
  box-shadow: 0 10px 26px -10px rgba(57,181,74,.7); transition: background .16s, transform .12s;
}
.pm-cta:hover { background: var(--sp-green-700); }
.pm-cta:active { transform: translateY(1px); }
/* "veya" — düz metin, çizgi yok. */
.pm-or { text-align: center; color: rgba(255,255,255,.82); font-size: .84rem; margin: 16px 0 12px; }
/* Cam OAuth butonları. */
.pm-oauth {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin-bottom: 10px;
  font: inherit; font-weight: 600; font-size: .96rem; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .16s, transform .12s;
}
.pm-oauth:hover { background: rgba(255,255,255,.22); }
.pm-oauth:active { transform: translateY(1px); }
.pm-oauth svg { background: #fff; border-radius: 5px; padding: 3px; box-sizing: content-box; }
.pm-authcard__note { margin: 10px 2px 0; font-size: .78rem; line-height: 1.5; color: rgba(255,255,255,.82); }
.pm-authcard__foot { margin: 14px 0 0; font-size: .88rem; color: rgba(255,255,255,.85); text-align: center; }
.pm-authcard__foot[hidden] { display: none; }
.pm-authcard__foot a { color: #fff; font-weight: 700; }
/* Etiketli kayıt alanları (referans: Create Your Account). */
.pm-gff { display: flex; flex-direction: column; gap: 6px; }
.pm-gff > label { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.92); }
.pm-gff > label span { color: var(--sp-green); }
.pm-input--plain { padding-left: 16px; }
.pm-pass { position: relative; }
.pm-pass .pm-input { padding-right: 44px; }
.pm-pass .pm-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,.75); cursor: pointer; padding: 6px; line-height: 0; }
.pm-oauth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-oauth-row .pm-oauth { margin-bottom: 0; }

/* ── 3. ONBOARDING + ÇERÇEVE — premium dikey kart + adım göstergesi ───────── */
.pm-ob {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background:
    radial-gradient(1000px 520px at 100% -10%, rgba(161,14,23,.10), transparent 55%),
    radial-gradient(800px 420px at -10% 110%, rgba(57,181,74,.08), transparent 55%),
    var(--sp-bg);
}
.pm-ob__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px clamp(18px, 4vw, 40px); border-bottom: 1px solid var(--sp-line);
  background: rgba(255,255,255,.7); backdrop-filter: blur(8px);
}
.pm-ob__bar img { height: 30px; width: auto; }
.pm-ob__main { flex: 1; display: flex; justify-content: center; padding: clamp(24px, 4vw, 48px) 18px; }
.pm-ob__card {
  width: min(620px, 100%); align-self: flex-start;
  background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: var(--sp-rad-lg);
  box-shadow: var(--sp-shadow); padding: clamp(26px, 3.4vw, 40px);
  animation: sp-rise .45s cubic-bezier(.22,1,.36,1) both;
}
.pm-ob__card h1 {
  font-family: var(--sp-font-display); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); line-height: 1.12; margin: 0 0 .35em;
}
.pm-ob__lead { color: var(--sp-muted); margin: 0 0 22px; }

/* Stepper — yatay, mevcut adım dolu nokta + bağlayıcı çizgi. */
.pm-stepper { display: flex; align-items: center; gap: 0; margin: 0 0 26px; padding: 0; list-style: none; }
.pm-stepper li { display: flex; align-items: center; flex: 1; min-width: 0; }
.pm-stepper li:last-child { flex: 0 0 auto; }
.pm-step__dot {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; border: 2px solid var(--sp-line); background: #fff; color: var(--sp-faint);
}
.pm-step__line { height: 2px; flex: 1; background: var(--sp-line); margin: 0 4px; border-radius: 2px; }
.pm-stepper li.is-done .pm-step__dot { background: var(--sp-green); border-color: var(--sp-green); color: #fff; }
.pm-stepper li.is-done .pm-step__line { background: var(--sp-green); }
.pm-stepper li.is-current .pm-step__dot { border-color: var(--sp-brand); color: var(--sp-brand); box-shadow: 0 0 0 4px rgba(161,14,23,.12); }
.pm-step__label { font-size: .72rem; color: var(--sp-faint); margin-left: 8px; white-space: nowrap; }
.pm-stepper li.is-current .pm-step__label { color: var(--sp-brand); font-weight: 600; }
@media (max-width: 640px) { .pm-step__label { display: none; } }

/* Rol seçimi — iki büyük kart-buton. */
.pm-roles { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 6px 0 4px; }
@media (max-width: 560px) { .pm-roles { grid-template-columns: 1fr; } }
.pm-role {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left;
  padding: 20px; border: 1.5px solid var(--sp-line); border-radius: var(--sp-rad);
  background: #fff; cursor: pointer; min-height: 116px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
.pm-role:hover { border-color: var(--sp-brand); box-shadow: var(--sp-shadow); transform: translateY(-2px); }
/* Site rol ipucu ile ön-seçilen kart (kullanıcı yine değiştirebilir). */
.pm-role.is-selected { border-color: var(--sp-brand); box-shadow: inset 0 0 0 1px var(--sp-brand), var(--sp-shadow); background: var(--sp-brand-tint, rgba(161,14,23,.04)); }
.pm-role svg { width: 26px; height: 26px; color: var(--sp-brand); }
.pm-role strong { font-size: 1.05rem; }
.pm-role small { color: var(--sp-muted); font-weight: 400; font-size: .86rem; line-height: 1.4; }

/* ── 4. SHELL — sidebar (masaüstü) + drawer & alt-nav (mobil) ─────────────── */
.sp-shell { display: grid; grid-template-columns: var(--sp-sidebar-w) 1fr; min-height: 100vh; }

.sp-sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 8px; padding: 22px 16px 18px;
  background: linear-gradient(180deg, #2a0a0c 0%, #410d11 48%, #5c060c 100%);
  color: #f6ece9;
}
.sp-sidebar__brand { display: flex; flex-direction: column; gap: 8px; text-decoration: none; padding: 4px 8px 18px; color: #fff; }
.sp-sidebar__brand img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.sp-sidebar__role { font-style: normal; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }

.sp-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.sp-nav__item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 11px; min-height: 44px;
  color: rgba(255,255,255,.78); text-decoration: none; font-weight: 500; font-size: .94rem;
  border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, transform .12s ease;
}
.sp-nav__item:hover { background: rgba(255,255,255,.08); color: #fff; }
.sp-nav__item:active { transform: translateX(1px) scale(.99); }
.sp-nav__item.is-active {
  background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.16);
  box-shadow: inset 3px 0 0 var(--sp-green);
}
.sp-ico { width: 21px; height: 21px; flex: none; }

.sp-sidebar__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 12px; }
.sp-sidebar__user { margin: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sp-sidebar__user strong { font-size: .92rem; }
.sp-sidebar__user small { color: rgba(255,255,255,.6); font-size: .8rem; }

.sp-content { display: flex; flex-direction: column; min-width: 0; }
.sp-topbar {
  display: none; align-items: center; gap: 12px; padding: 12px 18px;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--sp-line); position: sticky; top: 0; z-index: 30;
}
.sp-topbar__brand { display: inline-flex; align-items: center; text-decoration: none; }
.sp-topbar__brand img { height: 26px; width: auto; }

.sp-hamburger {
  width: 44px; height: 44px; flex: none; border: 1px solid var(--sp-line); background: #fff;
  border-radius: 11px; cursor: pointer; position: relative; padding: 0;
  transition: border-color .15s ease;
}
.sp-hamburger:hover { border-color: var(--sp-brand); }
.sp-hamburger__bar, .sp-hamburger__bar::before, .sp-hamburger__bar::after {
  position: absolute; left: 50%; width: 18px; height: 2px; background: var(--sp-ink);
  border-radius: 2px; transform: translateX(-50%); content: "";
}
.sp-hamburger__bar { top: 50%; margin-top: -1px; }
.sp-hamburger__bar::before { top: -6px; }
.sp-hamburger__bar::after { top: 6px; }

.sp-main { padding: 30px clamp(18px, 4vw, 44px) 48px; width: min(980px, 100%); margin-inline: auto; flex: 1; }
.sp-foot { padding: 18px clamp(18px, 4vw, 44px); color: var(--sp-muted); font-size: .82rem; border-top: 1px solid var(--sp-line); }
.sp-overlay { position: fixed; inset: 0; background: rgba(27,23,20,.42); z-index: 39; }

/* Mobil alt navigasyon — gerçek mobil app deseni (Tabler bottom-nav uyarlaması). */
.sp-bottomnav { display: none; }

/* ── 4b. Sayfa başlığı / hero kartı ──────────────────────────────────────── */
.sp-pagehead { margin-bottom: 26px; }
.sp-kicker { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sp-brand); font-weight: 700; margin-bottom: .5rem; }
.sp-pagehead h1 { font-family: var(--sp-font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .25em; font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.35rem); letter-spacing: -.015em; }
.sp-pagehead .sp-sub { color: var(--sp-muted); margin: 0; max-width: 64ch; }

.sp-hero {
  position: relative; overflow: hidden; border-radius: var(--sp-rad);
  padding: 28px 30px; margin-bottom: 24px; color: #fff;
  background: linear-gradient(135deg, #5c060c 0%, #A10E17 58%, #b8161f 100%);
  box-shadow: var(--sp-shadow-lg);
}
.sp-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(57,181,74,.5), transparent 70%); opacity: .55; }
.sp-hero__kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.82); font-weight: 700; }
.sp-hero h1 { font-family: var(--sp-font-display); font-weight: 600; margin: .35rem 0 .3rem; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem); position: relative; }
.sp-hero p { margin: 0; color: rgba(255,255,255,.88); position: relative; max-width: 54ch; }

/* ── 5. KARTLAR / GRID / STAT / TABLO / ROZET ────────────────────────────── */
.sp-grid { display: grid; gap: 16px; }
.sp-grid--stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.sp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.sp-card {
  background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: var(--sp-rad);
  box-shadow: var(--sp-shadow); padding: 22px 24px; margin-bottom: 18px;
  animation: sp-rise .4s ease both;
}
.sp-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sp-card h2 { font-family: var(--sp-font-display); font-weight: 600; font-size: 1.22rem; margin: 0; }
.sp-card__hint, .sp-muted { color: var(--sp-muted); }
.sp-card__hint { font-size: .88rem; margin: 0; }
.sp-small { font-size: .85rem; }

.sp-stat { background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: var(--sp-rad); padding: 18px 20px; box-shadow: var(--sp-shadow); display: flex; flex-direction: column; gap: 6px; animation: sp-rise .4s ease both; }
.sp-stat__label { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-faint); font-weight: 600; }
.sp-stat__value { font-family: var(--sp-font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.sp-stat__value.is-ok { color: var(--sp-green-700); }
.sp-stat__value.is-warn { color: var(--sp-warn-fg); }

.sp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--sp-rad-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--sp-ink);
  transition: background .16s ease, border-color .16s ease, transform .08s ease, box-shadow .16s ease;
}
.sp-btn:active { transform: translateY(1px); }
.sp-btn--primary { background: var(--sp-brand); color: #fff; box-shadow: 0 8px 22px -10px rgba(161,14,23,.7); }
.sp-btn--primary:hover { background: var(--sp-brand-700); box-shadow: 0 12px 26px -10px rgba(161,14,23,.8); }
.sp-btn--accent { background: var(--sp-green); color: #fff; box-shadow: 0 8px 20px -10px rgba(57,181,74,.7); }
.sp-btn--accent:hover { background: var(--sp-green-700); }
.sp-btn--ghost { background: transparent; border-color: var(--sp-line); color: var(--sp-ink); }
.sp-btn--ghost:hover { border-color: var(--sp-brand); color: var(--sp-brand-700); }
.sp-body .sp-sidebar .sp-btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.sp-body .sp-sidebar .sp-btn--ghost:hover { background: rgba(255,255,255,.1); }
.sp-btn--lg { min-height: 54px; padding: 15px 30px; font-size: 1.04rem; }
.sp-btn--block { width: 100%; }
.sp-btn--sm { min-height: 38px; padding: 7px 14px; font-size: .86rem; }
.sp-btn.is-disabled, .sp-btn[aria-disabled="true"], .sp-btn:disabled { background: var(--sp-neutral-bg); color: var(--sp-faint); cursor: not-allowed; box-shadow: none; pointer-events: none; border-color: var(--sp-line); }

.sp-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sp-neutral-bg); color: var(--sp-neutral-fg); }
.sp-badge--ok, .sp-badge--approved { background: var(--sp-ok-bg); color: var(--sp-ok-fg); }
.sp-badge--warn, .sp-badge--pending { background: var(--sp-warn-bg); color: var(--sp-warn-fg); }
.sp-badge--danger, .sp-badge--rejected, .sp-badge--missing { background: var(--sp-danger-bg); color: var(--sp-danger-fg); }
.sp-badge--neutral { background: var(--sp-neutral-bg); color: var(--sp-neutral-fg); }
.sp-badge--optional { background: #eef1f6; color: #5a6678; border: 1px dashed #c4ccd9; }
.sp-badge .sp-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.sp-table { width: 100%; border-collapse: collapse; }
.sp-table th, .sp-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--sp-line); vertical-align: middle; }
.sp-table th { font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--sp-faint); }
.sp-table tr:last-child td { border-bottom: 0; }

/* ── 6. BELGE DROPZONE (alan başına) + ONAY CHECKLIST ────────────────────── */
.sp-doc { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--sp-line); }
.sp-doc:last-child { border-bottom: 0; }
.sp-doc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sp-doc__title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-doc__desc { color: var(--sp-muted); font-size: .88rem; margin: 0; max-width: 70ch; }
.sp-dropzone {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1.5px dashed var(--sp-line); border-radius: var(--sp-rad-sm);
  background: linear-gradient(0deg, #fbf8f3, #fff); padding: 14px 16px;
  transition: border-color .16s ease, background .16s ease;
}
.sp-dropzone:hover, .sp-dropzone:focus-within, .sp-dropzone.is-dragover { border-color: var(--sp-brand); background: #fff; }
.sp-dropzone.is-dragover { box-shadow: 0 0 0 3px rgba(161,14,23,.12); }
.sp-dropzone.is-uploaded { border-style: solid; border-color: var(--sp-green); background: linear-gradient(0deg, #f1faf3, #fff); }
.sp-dropzone__file { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.sp-dropzone__file > label { font-size: .8rem; color: var(--sp-muted); }
/* Native "Choose File" → şık tetik düğmesi. */
.sp-dropzone input[type="file"] { font: inherit; font-size: 15px; width: 100%; color: var(--sp-muted); }
.sp-dropzone input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: 12px; padding: 9px 14px;
  border: 1px solid var(--sp-line); border-radius: 9px; background: #fff; color: var(--sp-brand-700); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.sp-dropzone input[type="file"]::file-selector-button:hover { border-color: var(--sp-brand); background: var(--sp-brand-050); }
.sp-dropzone__meta { font-size: .8rem; color: var(--sp-faint); }

.sp-checklist { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.sp-checkbox {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--sp-line); border-radius: var(--sp-rad-sm); background: #fbf8f3;
  transition: border-color .16s ease, background .16s ease;
}
.sp-checkbox.is-optional { border-style: dashed; background: #fff; }
.sp-checkbox__mark { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sp-checkbox__mark.is-on { background: var(--sp-ok-bg); color: var(--sp-ok-fg); }
.sp-checkbox__mark.is-off { background: var(--sp-neutral-bg); color: var(--sp-faint); }
.sp-checkbox__mark svg { width: 16px; height: 16px; }
.sp-checkbox__title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-checkbox__text { color: var(--sp-muted); font-size: .89rem; margin: 4px 0 0; line-height: 1.5; }

/* İnteraktif onay satırı (modal + Okudum-anladım auto-tik). */
.sp-consent { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.sp-consent__row {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: start; gap: 12px;
  padding: 15px 16px; border: 1px solid var(--sp-line); border-radius: var(--sp-rad-sm); background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.sp-consent__row.is-optional { border-style: dashed; }
.sp-consent__row.is-checked { border-color: var(--sp-green); box-shadow: inset 3px 0 0 var(--sp-green); }
.sp-consent__check {
  appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 1px 0 0; flex: none;
  border: 1.6px solid var(--sp-line); border-radius: 7px; background: #fff; cursor: pointer; position: relative;
  transition: border-color .15s ease, background .15s ease;
}
.sp-consent__check:checked { background: var(--sp-green); border-color: var(--sp-green); }
.sp-consent__check:checked::after {
  content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg);
}
.sp-consent__body { min-width: 0; }
.sp-consent__title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-consent__hint { color: var(--sp-muted); font-size: .88rem; margin: 3px 0 0; line-height: 1.45; }
.sp-consent__read {
  align-self: center; white-space: nowrap; background: none; border: 0; cursor: pointer;
  color: var(--sp-brand-700); font: inherit; font-weight: 600; font-size: .86rem;
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 4px; border-radius: 8px;
}
.sp-consent__read:hover { text-decoration: underline; }
.sp-consent__read svg { width: 15px; height: 15px; }
.sp-consent__sep { border: 0; border-top: 1px solid var(--sp-line); margin: 4px 0; }

/* ── Onboarding onay çıtası (resmî/banka stili — küçük, sade, kartsız) ───── */
.sp-agree { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--sp-line); }
.sp-agree__row {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 4px;
  border-bottom: 1px solid var(--sp-line); cursor: pointer; background: none;
}
.sp-agree__row:hover { background: rgba(0,0,0,.015); }
.sp-agree__row:focus-visible { outline: 2px solid var(--sp-green); outline-offset: -1px; border-radius: 4px; }
/* 16px checkbox — yalnızca durum göstergesi (tıklama satırdan yönetilir) */
.sp-agree__check {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 16px; height: 16px; margin: 1px 0 0; position: relative;
  border: 1.5px solid #9aa3b2; border-radius: 4px; background: #fff;
  pointer-events: none;
}
.sp-agree__row.is-checked .sp-agree__check { background: var(--sp-green); border-color: var(--sp-green); }
.sp-agree__row.is-checked .sp-agree__check::after {
  content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sp-agree__text { font-size: 13.5px; line-height: 1.5; color: #374151; }
/* Banka stili: sözleşme adı SİYAH (kırmızı dikkat çekmesin), ince gri altçizgi */
.sp-agree__link { color: var(--sp-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(0,0,0,.28);
  background: none; border: none; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.sp-agree__row:hover .sp-agree__link { color: #000; text-decoration-color: rgba(0,0,0,.6); }
/* Salt-okur sözleşme listesi (panel "Sözleşmeler & Onaylar" geçmişi) — banka stili,
   olabildiğince sönük: altçizgisiz sakin başlık, sönük gri onay işareti, düz kutu. */
.sp-agree--readonly .sp-agree__row { cursor: default; }
.sp-agree__textwrap { flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sp-agree__meta { font-size: 11px; color: #8a92a0; white-space: nowrap; font-weight: 400; }
.sp-agree__meta--muted { color: #b3b9c2; }
/* Başlık: kırmızı/altçizgi YOK → sakin koyu gri, yalnız hover'da ince ipucu */
.sp-agree--readonly .sp-agree__link { color: #3d4350; font-weight: 500; text-decoration: none; }
.sp-agree--readonly .sp-agree__link:hover { color: #1b1714; text-decoration: underline; text-decoration-color: rgba(0,0,0,.2); }
/* Onaylanınca onay işareti YEŞİL (kabul göstergesi) — başlık/kutu sönük kalır */
/* Kutu: düz, gölgesiz, çok hafif zemin */
.sp-card--quiet { box-shadow: none; background: #fcfcfb; border: 1px solid var(--sp-line); }
.sp-card--quiet .sp-card__head h2 { font-weight: 600; color: #555c68; }

/* ── 7. BANNER / KİLİT / BOŞ / FORM ──────────────────────────────────────── */
.sp-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--sp-rad-sm); margin-bottom: 18px; border: 1px solid; }
.sp-banner--warn { background: var(--sp-warn-bg); border-color: #ecd49a; color: #7a5510; }
.sp-banner--ok { background: var(--sp-ok-bg); border-color: #bfe2c8; color: var(--sp-ok-fg); }
.sp-banner__mark { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.6); }
.sp-banner__mark svg { width: 17px; height: 17px; }
.sp-banner h3 { margin: 0 0 3px; font-size: 1rem; }
.sp-banner p { margin: 0; font-size: .9rem; }
.sp-banner .sp-btn { margin-top: 10px; }

.sp-lock { text-align: center; padding: 30px 22px; border: 1px dashed var(--sp-line); border-radius: var(--sp-rad); background: #fbf8f3; }
.sp-lock__ico { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--sp-warn-fg); }
.sp-lock h2 { font-family: var(--sp-font-display); margin: 0 0 6px; font-weight: 600; }
.sp-missing { list-style: none; margin: 14px auto 0; padding: 0; max-width: 360px; text-align: left; display: inline-flex; flex-direction: column; gap: 8px; }
.sp-missing li { display: flex; align-items: center; gap: 9px; font-size: .92rem; }
.sp-missing li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sp-warn-fg); flex: none; }

.sp-empty { text-align: center; color: var(--sp-muted); padding: 26px 18px; }
.sp-empty__ico { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--sp-faint); }

.sp-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.sp-field > label { font-weight: 600; font-size: .9rem; }
.sp-field input, .sp-field select, .sp-field textarea {
  font: inherit; font-size: 16px; width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--sp-line); border-radius: var(--sp-rad-sm); background: #fff; color: var(--sp-ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.sp-field input:focus, .sp-field select:focus, .sp-field textarea:focus {
  outline: none; border-color: var(--sp-brand); box-shadow: 0 0 0 3px rgba(161,14,23,.14);
}
.sp-field textarea { min-height: 84px; resize: vertical; }
.sp-field .sp-hint { font-size: .8rem; color: var(--sp-faint); line-height: 1.45; }
.sp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.sp-formerror {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--sp-danger-bg); color: var(--sp-danger-fg); border: 1px solid #ecc4c0;
  border-radius: var(--sp-rad-sm); padding: 12px 14px; font-size: .9rem; margin: 0 0 16px; line-height: 1.45;
}
.sp-formerror svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.sp-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0; }
.sp-dl dt { color: var(--sp-muted); }
.sp-dl dd { margin: 0; font-weight: 500; }

/* ── 8. MODAL — sözleşme okuyucu ─────────────────────────────────────────── */
.pm-modal { position: fixed; inset: 0; z-index: 90; display: none; }
.pm-modal.is-open { display: block; }
.pm-modal__backdrop { position: absolute; inset: 0; background: rgba(20,8,8,.55); backdrop-filter: blur(2px); animation: sp-fade .2s ease both; }
.pm-modal__dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(640px, calc(100vw - 32px)); max-height: min(82vh, 760px);
  display: flex; flex-direction: column;
  background: var(--sp-card); border-radius: var(--sp-rad); box-shadow: var(--sp-shadow-lg);
  animation: sp-pop .24s cubic-bezier(.22,1,.36,1) both;
}
.pm-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 22px 13px; border-bottom: 1px solid var(--sp-line); }
.pm-modal__head h2 { font-weight: 600; font-size: 15px; line-height: 1.4; margin: 0; color: #111827; }
.pm-modal__close { width: 38px; height: 38px; flex: none; border: 1px solid var(--sp-line); background: #fff; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--sp-muted); }
.pm-modal__close:hover { border-color: var(--sp-brand); color: var(--sp-brand); }
.pm-modal__close svg { width: 18px; height: 18px; }
/* Resmî hukuki belge görünümü: küçük, nötr gri, dikkat çekmeyen (banka çıtası). */
/* Yasal ufak punto — sözleşme tam metni küçük, sakin okuma boyutu */
.pm-modal__body { flex: 1 1 auto; min-height: 0; padding: 16px 20px; overflow-y: auto; color: #374151; font-size: 11.5px; line-height: 1.55; }
.pm-modal__body p { margin: 0 0 8px; }
.pm-modal__body .sp-muted { font-size: 11px; }
/* Avukat metnindeki başlıklar da ufak punto — dev başlık YOK */
.pm-modal__body h1, .pm-modal__body h2 { font-size: 12.5px; line-height: 1.4; margin: 13px 0 5px; }
.pm-modal__body h3, .pm-modal__body h4 { font-size: 11.5px; line-height: 1.4; margin: 11px 0 4px; }
.pm-modal__body ul, .pm-modal__body ol { margin: 0 0 8px; padding-left: 18px; }
.pm-modal__body li { margin: 0 0 4px; }
/* Render edilen sözleşme tipografisi (server md→html) — başlıklar yalnız hafif büyük */
.pm-modal__body h1 { font-size: 15px; font-weight: 600; margin: 2px 0 12px; color: #111827; }
.pm-modal__body h2 { font-size: 14px; font-weight: 600; margin: 18px 0 7px; color: #1f2937; }
.pm-modal__body h3, .pm-modal__body h4 { font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
.pm-modal__body ul { margin: 0 0 10px; padding-left: 20px; }
.pm-modal__body li { margin: 0 0 4px; }
.pm-modal__body blockquote { margin: 0 0 10px; padding: 8px 12px; border-left: 2px solid var(--sp-line); background: rgba(0,0,0,.02); color: #6b7280; }
.pm-modal__body hr { border: 0; border-top: 1px solid var(--sp-line); margin: 14px 0; }
.pm-modal__body table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 12px; }
.pm-modal__body th, .pm-modal__body td { border: 1px solid var(--sp-line); padding: 6px 9px; text-align: left; vertical-align: top; }
.pm-modal__body thead th { background: var(--sp-neutral-bg); font-weight: 600; }
/* İnce, nötr/sönük okuma ilerleme çubuğu (parlak gradient YOK) */
.pm-modal__progress { height: 2px; background: var(--sp-line); width: 100%; flex: none; }
.pm-modal__progressbar { display: block; height: 100%; width: 0; background: #9aa3b2; transition: width .15s linear; }
/* "Sona kadar kaydır" — sade statik metin (renkli banner/animasyon YOK) */
.pm-modal__scrollhint { flex: none; margin: 0; padding: 8px 16px; text-align: center; font-size: 12px; font-weight: 400; color: #6b7280; background: var(--sp-neutral-bg); border-top: 1px solid var(--sp-line); }
.pm-modal__foot { padding: 14px 22px; border-top: 1px solid var(--sp-line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
/* Onay butonu sönük/düz primary — lift/gölge animasyonu YOK */
.pm-modal__foot .sp-btn--accent { background: #374151; color: #fff; box-shadow: none; font-weight: 600; }
.pm-modal__foot .sp-btn--accent:not(:disabled):hover { background: #1f2937; transform: none; box-shadow: none; }
.pm-modal__foot .sp-btn--accent.is-disabled, .pm-modal__foot .sp-btn--accent:disabled { background: var(--sp-neutral-bg); color: var(--sp-muted); box-shadow: none; cursor: not-allowed; }
body.pm-noscroll { overflow: hidden; }

/* ── 9. TOAST · FOCUS · MOTION · RESPONSIVE ──────────────────────────────── */
.sp-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; gap: 10px; max-width: 360px; transition: opacity .4s ease, transform .4s ease; }
.sp-toasts.is-hiding { opacity: 0; transform: translateY(8px); pointer-events: none; }
.sp-toast { padding: 13px 16px; border-radius: 12px; box-shadow: var(--sp-shadow-lg); font-size: .92rem; font-weight: 500; background: #fff; border-left: 4px solid var(--sp-brand); color: var(--sp-ink); animation: sp-rise .3s ease both; }
.sp-toast--ok, .sp-toast--success { border-left-color: var(--sp-green); }
.sp-toast--warn { border-left-color: var(--sp-warn-fg); }
.sp-toast--error, .sp-toast--danger { border-left-color: var(--sp-danger-fg); }

.sp-body a:focus-visible, .sp-body button:focus-visible, .sp-body input:focus-visible,
.sp-body select:focus-visible, .sp-body textarea:focus-visible,
.pm-page a:focus-visible, .pm-page button:focus-visible, .pm-page input:focus-visible {
  outline: 3px solid var(--sp-green); outline-offset: 2px; border-radius: 8px;
}

@keyframes sp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-pop { from { opacity: 0; transform: translate(-50%,-46%) scale(.97); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .sp-body *, .pm-page *, .sp-card, .sp-stat, .sp-toast, .pm-card, .pm-ob__card,
  .pm-modal__dialog, .pm-modal__backdrop { animation: none !important; transition: none !important; }
}

/* ---- Tablet / mobil ----------------------------------------------------- */
@media (max-width: 980px) {
  .sp-shell { grid-template-columns: 1fr; }
  .sp-topbar { display: flex; }
  .sp-sidebar {
    position: fixed; top: 0; left: 0; z-index: 40; width: min(86vw, var(--sp-sidebar-w)); height: 100vh;
    transform: translateX(-100%); transition: transform .26s ease; box-shadow: var(--sp-shadow-lg);
  }
  .sp-shell.is-nav-open .sp-sidebar { transform: none; }
  .sp-overlay[hidden] { display: none; }
  /* Alt boşluk: alt-nav yüksekliği kadar pay bırak. */
  .sp-main { padding-bottom: 84px; }

  /* Gerçek mobil alt-navigasyon — birincil bölümler tek dokunuşta. */
  .sp-bottomnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 35;
    background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
    border-top: 1px solid var(--sp-line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px -16px rgba(27,23,20,.4);
  }
  .sp-bottomnav__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 4px; min-height: 56px; justify-content: center;
    text-decoration: none; color: var(--sp-faint); font-size: .68rem; font-weight: 600; border-radius: 12px;
  }
  .sp-bottomnav__item svg { width: 22px; height: 22px; }
  .sp-bottomnav__item.is-active { color: var(--sp-brand); background: var(--sp-brand-050); }
}
@media (min-width: 981px) {
  .sp-overlay { display: none !important; }
  .sp-bottomnav { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .sp-sidebar { transition: none; } }

/* Login zaten flex-ortalı tam-ekran; ek bir grid değişimi gerekmez. */
@media (max-width: 560px) {
  .sp-main { padding: 22px 16px 84px; }
  .sp-hero, .sp-card { padding: 20px 18px; }
  .sp-form-grid { grid-template-columns: 1fr; }
  .sp-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .sp-dl dt { margin-top: 8px; }
  .sp-doc__head { align-items: flex-start; }
  .sp-consent__row { grid-template-columns: 24px 1fr; }
  .sp-consent__read { grid-column: 1 / -1; justify-self: start; }
  .doc-list li .sp-btn { width: 100%; }

  /* Login mobil: kart tam genişlik, logo biraz küçülür. */
  .pm-login { padding: 16px; }
  .pm-authcard { width: 100%; padding: 26px 20px; }
  .pm-authcard__logo img { height: 54px; }
  .pm-modal__dialog { width: calc(100vw - 24px); max-height: 88vh; }
  /* Mobilde primary onay butonu alt bantta (parmak erişimi — kılavuz §7.3);
     İptal üstte. DOM sırası İptal→Onay olduğundan düz column doğru sıralar. */
  .pm-modal__foot { flex-direction: column; }
  .pm-modal__foot .sp-btn { width: 100%; }
}
