/* ============================================================
   FinKasa — uygulama stilleri
   Görsel yön: sakin, koyu "finans kontrol odası". Tek vurgu
   rengi (gök mavisi); giren yeşil, çıkan gül kurusuğu.
   Rakamlar tabular, tablolar yoğun ama nefes alan.
   ============================================================ */

:root {
  --bg: #070c16;
  --bg-2: #0b1220;
  --panel: #101a2c;
  --panel-2: #152238;
  --panel-3: #1b2c47;
  --line: rgba(148, 178, 224, .13);
  --line-2: rgba(148, 178, 224, .22);
  --text: #e7edf8;
  --muted: #93a4c0;
  --muted-2: #6d7f9c;
  --accent: #38bdf8;
  --accent-2: #0ea5e9;
  --good: #34d399;
  --bad: #fb7185;
  --warn: #fbbf24;
  --info: #60a5fa;
  --violet: #a78bfa;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .3);
  --sb-w: 252px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(56, 189, 248, .10), transparent 62%),
    radial-gradient(700px 460px at 96% 4%, rgba(167, 139, 250, .08), transparent 60%);
  background-attachment: fixed;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -.012em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; }
.num, td.n, .tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.muted { color: var(--muted); }
.dim { color: var(--muted-2); }
.pos { color: var(--good); }
.neg { color: var(--bad); }
.warn { color: var(--warn); }
.small { font-size: 12.2px; }
.tiny { font-size: 11.4px; }
.mono { font-family: var(--mono); font-size: 12.4px; }
.hide { display: none !important; }

/* ============================================================
   GİRİŞ / KAYIT EKRANI
   ============================================================ */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 28px 18px;
  position: relative;
}
.auth-card {
  width: min(1000px, 100%); display: grid; grid-template-columns: 1.05fr .95fr;
  background: linear-gradient(180deg, rgba(21, 34, 56, .92), rgba(13, 21, 36, .96));
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
}
.auth-hero { padding: 38px 34px; border-right: 1px solid var(--line); background: radial-gradient(600px 300px at 0% 0%, rgba(56, 189, 248, .13), transparent 70%); }
.auth-hero .brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.auth-hero h1 { font-size: 27px; line-height: 1.24; margin-bottom: 12px; }
.auth-hero p { color: var(--muted); font-size: 13.6px; max-width: 42ch; }
.auth-badges { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.auth-badges .badge { padding: 5px 11px; font-size: 12.2px; font-weight: 600; }
.auth-hero-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.auth-hero-cta .btn { flex: 1 1 auto; }
.auth-trust { margin-top: 20px; font-size: 11.6px !important; color: var(--muted-2) !important; line-height: 1.55; max-width: 48ch; }
.auth-feats { margin-top: 26px; display: grid; gap: 11px; }
.auth-feat { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #cdd9ec; }
.auth-feat .ic { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.auth-form { padding: 34px 32px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.auth-tabs { display: flex; gap: 6px; background: rgba(7, 12, 22, .6); padding: 5px; border-radius: 11px; border: 1px solid var(--line); }
.auth-tabs button { flex: 1; padding: 9px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13.2px; font-weight: 600; cursor: pointer; }
.auth-tabs button.on { background: linear-gradient(180deg, var(--panel-3), var(--panel-2)); color: var(--text); box-shadow: var(--shadow-sm); }
.auth-alt { text-align: center; color: var(--muted-2); font-size: 12.4px; }
.auth-alt button { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 12.4px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.auth-billing { border: 1px solid var(--line); background: rgba(7, 12, 22, .45); border-radius: 12px; padding: 13px 14px; display: flex; flex-direction: column; gap: 6px; }
.auth-billing .ab-head { display: flex; align-items: center; gap: 7px; font-size: 10.6px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.auth-billing .ab-head .ic { width: 15px; height: 15px; color: var(--accent); }
.auth-billing .ab-line { font-size: 12.5px; color: #cdd9ec; line-height: 1.5; word-break: break-word; }
.auth-billing .ab-line.dim { color: var(--muted-2); font-size: 11.7px; }

/* #180 — kayıt hukuki onay satırı (yalnız panel anahtarı açıksa çizilir) */
.auth-onay {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.2px; color: var(--muted); line-height: 1.55;
}
.auth-onay input { margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.auth-onay a { color: var(--accent); text-underline-offset: 2px; }

/* ---------- tanıtım / paylaşım sayfası ---------- */
.promo-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.promo-link { flex: 1 1 340px; font-size: 13px; letter-spacing: .01em; }
.promo-msg {
  border: 1px solid var(--line); background: rgba(7, 12, 22, .45); border-radius: 12px;
  padding: 14px 15px; font-size: 13.2px; line-height: 1.62; color: #dbe7f7; white-space: pre-line;
  word-break: break-word;
}
.auth-wrap.inset { min-height: 0; padding: 2px 0 0; display: block; }
.auth-card.preview { border-color: var(--line-2); }
.auth-card.preview .auth-hero { opacity: .97; }
.auth-locked {
  display: flex; gap: 9px; align-items: flex-start; font-size: 12.2px; line-height: 1.5;
  color: var(--muted); border: 1px dashed var(--line-2); border-radius: 11px; padding: 10px 12px;
  background: rgba(56, 189, 248, .06);
}
.auth-locked .ic { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: var(--accent); }
.inp:disabled, .inp[readonly] { opacity: .6; cursor: not-allowed; }
.auth-tabs button:disabled, .auth-alt button:disabled { cursor: not-allowed; }

/* ---------- şifre kurtarma (giriş sekmesinin altı) ---------- */
.auth-forgot {
  margin: -2px 0 2px; border: 1px solid var(--line); border-radius: 11px;
  background: rgba(148, 178, 224, .05);
}
.auth-forgot > summary {
  cursor: pointer; list-style: none; padding: 9px 12px; font-size: 12.4px;
  font-weight: 600; color: var(--muted); user-select: none;
}
.auth-forgot > summary::-webkit-details-marker { display: none; }
.auth-forgot > summary:hover, .auth-forgot[open] > summary { color: var(--text); }
.auth-forgot .af-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.auth-forgot .af-body p { margin: 0; font-size: 12.1px; line-height: 1.56; color: var(--muted); }
/* kopyalanacak şifre soluk görünmemeli ve seçilebilmeli */
.modal .inp[readonly] { opacity: 1; cursor: text; }

/* ---------- açılış sayfasındaki kalıcı tanıtım metni (arama motoru için) ---------- */
.seo { border-top: 1px solid var(--line); padding: 34px 20px 46px; background: rgba(6, 11, 20, .55); }
body[data-oturum="acik"] .seo { display: none; }
.seo-inner { max-width: 940px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
/* h1 ham kaynakta (JS'siz görünüm) kullanılıyor; app.js uygulamayı açınca
   onu h2'ye indiriyor. İkisi aynı görünmeli — ekranın kendi h1'i üstte. */
.seo h1, .seo h2 { margin: 0 0 2px; font-size: 19px; line-height: 1.35; color: var(--text); letter-spacing: -.01em; }
.seo h3 { margin: 14px 0 0; font-size: 15px; color: var(--text); }
.seo p { margin: 0; font-size: 13.4px; line-height: 1.68; color: #c3d1e6; }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 6px; }
.seo-grid article { border: 1px solid var(--line); border-radius: 13px; padding: 14px 15px; background: rgba(148, 178, 224, .05); }
.seo-grid h3 { margin: 0 0 6px; font-size: 13.6px; }
.seo-grid p { font-size: 12.6px; line-height: 1.6; }
.seo-faq { margin: 4px 0 0; display: flex; flex-direction: column; gap: 9px; }
.seo-faq dt { font-size: 13.2px; font-weight: 650; color: var(--text); }
.seo-faq dd { margin: 3px 0 0; font-size: 12.8px; line-height: 1.62; color: #c3d1e6; }
.seo-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; font-size: 12.4px; color: var(--muted); }
.seo-copy { width: 100%; border-top: 1px dashed var(--line); padding-top: 10px; }

/* ---------- kalıcı telif şeridi (giriş ekranı + panel altı) ---------- */
.legal-foot {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 10px; padding: 12px 22px 18px; border-top: 1px solid var(--line);
  font-size: 11.9px; color: var(--muted);
}
.auth-wrap .legal-foot { padding: 14px 6px 2px; border-top: 0; justify-content: center; width: 100%; }
.legal-foot .lf-copy { color: #b6c6dc; }
.legal-foot .lf-sep { opacity: .45; }
.legal-foot .lf-dim { opacity: .8; }
.legal-foot button.lf-link {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}
.legal-foot button.lf-link:hover { color: #7dd3fc; }
.legal-foot button.lf-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* kullanım koşulları ve lisans penceresi */
.legal-doc { display: flex; flex-direction: column; gap: 13px; }
.legal-doc .ld-top { margin: 0; font-size: 12.6px; color: var(--muted); }
.legal-doc section { display: flex; flex-direction: column; gap: 5px; }
.legal-doc h4 { margin: 0; font-size: 13.4px; color: var(--text); }
.legal-doc p { margin: 0; font-size: 12.9px; line-height: 1.62; color: #c3d1e6; }
.legal-doc .ld-iz {
  margin: 0; padding-top: 11px; border-top: 1px solid var(--line);
  font-size: 11.8px; color: var(--muted-2);
}

/* ---------- #180 hukuk sayfaları (views/hukuk.js) ----------
   Misafir VE kullanıcı aynı bağımsız adresi görür: kartın kendisi
   .hukuk-page'dir (kabuk/menu yok); .auth-wrap yalnız ortalar. */
.hukuk-page {
  width: min(820px, 100%);
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, rgba(21, 34, 56, .92), rgba(13, 21, 36, .96));
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: 26px 30px 14px;
}
.hukuk-head { display: flex; flex-direction: column; gap: 5px; }
.hukuk-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.hukuk-brand .ic { width: 22px; height: 22px; color: var(--accent); display: inline-flex; }
.hukuk-brand .brand-name { font-weight: 750; font-size: 16.5px; letter-spacing: .2px; }
.hukuk-brand .brand-name small { display: block; font-weight: 500; font-size: 11px; color: var(--muted-2); }
.hukuk-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.hukuk-head h1 { font-size: 23px; line-height: 1.3; margin: 8px 0 0; }
.legal-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.legal-sec h4 { margin: 0; font-size: 13.8px; color: var(--text); }
.legal-sec p { margin: 0; font-size: 12.9px; line-height: 1.66; color: #c3d1e6; word-break: break-word; }
.hukuk-page .legal-foot { border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .hukuk-page { padding: 20px 16px 10px; border-radius: 16px; }
  .hukuk-head h1 { font-size: 20px; }
}

/* panel başka bir sitenin içine gömüldüyse üste asılan kalıcı uyarı */
.frame-warn {
  position: sticky; top: 0; z-index: 90;
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center;
  padding: 9px 16px; font-size: 12.4px; line-height: 1.5; color: #dbe7f7;
  background: rgba(9, 16, 28, .97); border-bottom: 1px solid rgba(56, 189, 248, .45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .38);
}
.frame-warn .fw-mark { font-weight: 750; color: var(--accent); letter-spacing: .2px; }
.frame-warn a.fw-link {
  color: #7dd3fc; text-decoration: underline; text-underline-offset: 2px; word-break: break-all;
}
.frame-warn a.fw-link:hover { color: #bae6fd; }

/* ---------- WhatsApp köprüsü: sorular, ödeme bilgisi, dekont iletimi ---------- */
.auth-wa { margin-top: -6px; }
.wa-cta {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(37, 211, 102, .38); background: rgba(37, 211, 102, .1);
  color: #d7f7e6; text-decoration: none; transition: background .14s, border-color .14s, color .14s;
}
.wa-cta:hover { background: rgba(37, 211, 102, .19); border-color: rgba(37, 211, 102, .62); color: #eafff3; }
.wa-cta .ic { width: 21px; height: 21px; flex: 0 0 auto; color: #25d366; }
.wa-cta b { display: block; font-size: 13.2px; font-weight: 640; }
.wa-sub { display: block; font-size: 11.6px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.wa-mini {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 7px 10px;
  border-radius: 9px; border: 1px solid rgba(37, 211, 102, .4); background: rgba(37, 211, 102, .12);
  color: #d7f7e6; font-size: 11.6px; font-weight: 600; text-decoration: none; width: fit-content;
  transition: background .14s, border-color .14s, color .14s;
}
.wa-mini:hover { background: rgba(37, 211, 102, .22); border-color: rgba(37, 211, 102, .66); color: #eafff3; }
.wa-mini .ic { width: 15px; height: 15px; flex: 0 0 auto; color: #25d366; }
/* kenar çubuğundaki kalıcı destek satırı */
.sb-wa { display: flex; width: 100%; }

.brand-logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), #6366f1); color: #06121f;
  box-shadow: 0 6px 18px rgba(56, 189, 248, .28);
}
.brand-logo .ic { width: 19px; height: 19px; }
.brand-name { font-weight: 700; letter-spacing: -.02em; font-size: 16.4px; }
.brand-name small { display: block; font-weight: 500; font-size: 10.6px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

/* ============================================================
   İSKELET
   ============================================================ */
.app { display: grid; grid-template-columns: var(--sb-w) 1fr; min-height: 100vh; }
.sidebar {
  border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(16, 26, 44, .82), rgba(9, 15, 27, .92));
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30;
}
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.sb-co { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sb-co .lbl { font-size: 10.4px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.sb-co .nm { font-weight: 640; font-size: 14.2px; line-height: 1.3; word-break: break-word; }
.sb-co .sub { font-size: 11.6px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.nav { padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 2px; }
.nav-sec { font-size: 10.2px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: #b9c7de; font-size: 13.3px; font-weight: 520; transition: background .14s, color .14s;
}
.nav a .ic { width: 17px; height: 17px; opacity: .82; flex: 0 0 auto; }
.nav a:hover { background: rgba(148, 178, 224, .08); color: var(--text); }
.nav a.on { background: linear-gradient(90deg, rgba(56, 189, 248, .18), rgba(56, 189, 248, .05)); color: #eaf6ff; box-shadow: inset 2px 0 0 var(--accent); }
.nav a .cnt { margin-left: auto; font-size: 10.8px; background: rgba(148, 178, 224, .14); padding: 1px 6px; border-radius: 20px; color: #cbd8ec; font-variant-numeric: tabular-nums; }
.nav a.on .cnt { background: rgba(56, 189, 248, .26); color: #eaf6ff; }
.sb-foot { margin-top: auto; padding: 14px 16px 18px; border-top: 1px solid var(--line); }
.mode-badge { display: flex; gap: 8px; align-items: flex-start; font-size: 11.4px; color: var(--muted); background: rgba(7, 12, 22, .5); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; line-height: 1.45; }
.mode-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-top: 5px; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(52, 211, 153, .16); }
.mode-badge.local .dot { background: var(--warn); box-shadow: 0 0 0 3px rgba(251, 191, 36, .16); }
/* abonlik durumu bandı — kenar çubuğunda her sayfada görünür */
.billing-badge { display: flex; gap: 8px; align-items: flex-start; font-size: 11.4px; line-height: 1.45; margin: 12px 10px 0; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(7, 12, 22, .5); color: var(--muted); }
.billing-badge .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; }
.billing-badge.ok { border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .07); color: #a7edd6; }
.billing-badge.ok .dot { background: var(--good); box-shadow: 0 0 0 3px rgba(52, 211, 153, .16); }
.billing-badge.bad { border-color: rgba(251, 113, 133, .34); background: rgba(251, 113, 133, .08); color: #ffc2cd; }
.billing-badge.bad .ic { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; color: #fb7185; }
.billing-badge b { color: var(--text); }
.billing-badge .pay-line { display: block; margin-top: 5px; padding-top: 5px; border-top: 1px dashed rgba(148, 178, 224, .26); word-break: break-word; font-variant-numeric: tabular-nums; }
/* Demo bandı (web/js/app.js › billingBadge): "borç/ödeme" değil "vitrin"
   rengi — mavi bilgi tonu, kırmızı kilit ya da yeşil abonelik değil. */
.billing-badge.demo { border-color: rgba(56, 189, 248, .34); background: rgba(56, 189, 248, .08); color: #bfe2fb; }
.billing-badge.demo .ic { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; color: #7dd3fc; }
.billing-badge.demo b { color: var(--text); }
.mode-badge.demo { border-color: rgba(56, 189, 248, .3); background: rgba(56, 189, 248, .07); color: #b6d8f5; }
.mode-badge.demo .dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, .18); }
/* yönetim paneli: kayıt ekranı metninin önizlemesi */
.preview-box { border: 1px dashed var(--line-2); border-radius: 11px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: rgba(7, 12, 22, .35); }
.preview-line { font-size: 12.6px; color: #cdd9ec; line-height: 1.5; word-break: break-word; }
.preview-line.strong { font-weight: 640; color: var(--text); }
.user-row { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.avatar { width: 31px; height: 31px; border-radius: 9px; background: linear-gradient(140deg, var(--violet), var(--accent)); display: grid; place-items: center; font-weight: 700; font-size: 12.6px; color: #08111f; flex: 0 0 auto; }
.user-row .un { font-size: 12.6px; font-weight: 600; line-height: 1.25; }
.user-row .ur { font-size: 10.8px; color: var(--muted-2); }
.user-row button { margin-left: auto; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-bottom: 1px solid var(--line);
  background: rgba(9, 15, 27, .82); backdrop-filter: blur(14px);
}
.topbar h2 { font-size: 15.4px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.content { padding: 22px; display: flex; flex-direction: column; gap: 18px; max-width: 1560px; width: 100%; }
.menu-btn { display: none; }

/* ============================================================
   KART / KPI
   ============================================================ */
.card { background: linear-gradient(180deg, rgba(21, 34, 56, .58), rgba(16, 26, 44, .78)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 14.2px; }
.card-meta { font-size: 11.8px; color: var(--muted-2); }
.card-actions { margin-left: auto; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.card-body { padding: 16px 17px; }
.card.flush .card-body { padding: 0; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)); gap: 13px; }
.kpi { background: linear-gradient(180deg, rgba(21, 34, 56, .62), rgba(16, 26, 44, .8)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 15px; position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: .55; }
.kpi.good::after { background: var(--good); } .kpi.bad::after { background: var(--bad); }
.kpi.warn::after { background: var(--warn); } .kpi.violet::after { background: var(--violet); }
.kpi-top { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11.6px; letter-spacing: .02em; margin-bottom: 8px; }
.kpi-ic { width: 15px; height: 15px; display: inline-flex; color: var(--accent); }
.kpi-ic .ic { width: 15px; height: 15px; }
.kpi.good .kpi-ic { color: var(--good); } .kpi.bad .kpi-ic { color: var(--bad); } .kpi.warn .kpi-ic { color: var(--warn); } .kpi.violet .kpi-ic { color: var(--violet); }
.kpi-value { font-size: 23px; font-weight: 660; letter-spacing: -.024em; font-variant-numeric: tabular-nums; line-height: 1.16; }
.kpi-sub { font-size: 11.6px; color: var(--muted); margin-top: 5px; line-height: 1.42; }

.ic { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
.ic svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   DÜĞMELER / GİRDİLER
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--text); font-size: 13px; font-weight: 580; cursor: pointer; transition: filter .14s, transform .08s, border-color .14s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.18); border-color: rgba(148, 178, 224, .34); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .48; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-color: rgba(56, 189, 248, .55); color: #05131f; font-weight: 660; }
.btn.danger { background: linear-gradient(180deg, rgba(251, 113, 133, .22), rgba(251, 113, 133, .1)); border-color: rgba(251, 113, 133, .42); color: #ffd9e0; }
.btn.good { background: linear-gradient(180deg, rgba(52, 211, 153, .22), rgba(52, 211, 153, .1)); border-color: rgba(52, 211, 153, .4); color: #cdfff0; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { color: var(--text); }
.btn.sm { padding: 5px 10px; font-size: 12.2px; border-radius: 8px; }
.btn.lg { padding: 11px 18px; font-size: 13.8px; border-radius: 11px; }
.btn .ic { width: 15px; height: 15px; }
.btn > svg { width: 15px; height: 15px; flex: 0 0 auto; }
.btn.lg > svg { width: 17px; height: 17px; }
.icon-btn { background: transparent; border: 1px solid transparent; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.icon-btn:hover { background: rgba(148, 178, 224, .12); color: var(--text); }
.icon-btn.danger:hover { background: rgba(251, 113, 133, .16); color: #ffc2cd; }
.icon-btn .ic { width: 16px; height: 16px; }

.inp {
  width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line-2);
  background: rgba(6, 11, 20, .72); color: var(--text); font-size: 13.4px; font-family: inherit;
  transition: border-color .14s, box-shadow .14s;
}
.inp:focus { outline: none; border-color: rgba(56, 189, 248, .6); box-shadow: 0 0 0 3px rgba(56, 189, 248, .14); }
.inp.bad { border-color: rgba(251, 113, 133, .7); }
.inp::placeholder { color: var(--muted-2); }
select.inp { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a4c0' stroke-width='2' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 9px center; background-size: 15px; padding-right: 30px; }
select.inp option { background: #101a2c; color: #e7edf8; }
textarea.inp { resize: vertical; min-height: 62px; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld-label { font-size: 11.8px; color: var(--muted); font-weight: 560; letter-spacing: .01em; }
.fld-hint { font-size: 11.2px; color: var(--muted-2); }
.form-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 13px; }
.fld.wide { grid-column: 1 / -1; }
.form-section { font-size: 11.6px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin: 6px 0 -4px; grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--line); }

.seg { display: inline-flex; gap: 3px; background: rgba(6, 11, 20, .66); border: 1px solid var(--line); padding: 3px; border-radius: 10px; }
.seg-btn { padding: 5px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12.4px; font-weight: 580; cursor: pointer; }
.seg-btn:hover { color: var(--text); }
.seg-btn.on { background: linear-gradient(180deg, var(--panel-3), var(--panel-2)); color: var(--text); box-shadow: var(--shadow-sm); }

/* DİL DEĞİŞTİRİCİ — ui.js langPills()
   Girişte markanın sağında, Ayarlar kartında etiketiyle tek satırda. */
.auth-lang { margin-left: auto; }
.lang-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lang-cap { font-size: 12.4px; font-weight: 600; color: var(--muted); }
.lang-seg .lang-btn { min-width: 42px; text-align: center; letter-spacing: .06em; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.6px; color: var(--muted); user-select: none; }
.switch input { appearance: none; width: 34px; height: 19px; border-radius: 20px; background: rgba(148, 178, 224, .2); position: relative; cursor: pointer; transition: background .18s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #cfdcee; transition: transform .18s; }
.switch input:checked { background: rgba(56, 189, 248, .55); }
.switch input:checked::after { transform: translateX(15px); background: #06121f; }
.switch input:disabled { opacity: .45; cursor: not-allowed; }

/* TCMB resmî kur köprüsü — Ayarlar › Döviz kurları kutusu */
.fx-tcmb {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 13px; border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 12px; background: rgba(56, 189, 248, .06);
}
.fx-tcmb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fx-tcmb .switch { color: var(--text); font-size: 13px; }
.fx-tcmb p { margin: 0; }
.fx-tcmb .notice { margin: 0; }

/* ============================================================
   TABLOLAR
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th {
  text-align: left; padding: 9px 12px; font-size: 11.2px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 640; border-bottom: 1px solid var(--line); background: rgba(7, 12, 22, .42);
  position: sticky; top: 0; z-index: 2; white-space: nowrap;
}
.tbl td { padding: 9px 12px; border-bottom: 1px solid rgba(148, 178, 224, .07); vertical-align: middle; }
.tbl tbody tr:hover { background: rgba(148, 178, 224, .05); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tr.dayrow td { background: rgba(56, 189, 248, .07); font-weight: 640; }
.tbl tfoot td { padding: 11px 12px; border-top: 1px solid var(--line-2); background: rgba(7, 12, 22, .5); font-weight: 660; font-size: 13px; }
.ta-right { text-align: right; } .ta-center { text-align: center; }
.tbl-empty { padding: 34px 14px; text-align: center; color: var(--muted-2); font-size: 13px; }
.row-actions { white-space: nowrap; display: flex; gap: 4px; justify-content: flex-end; }

/* ---------- DEMO · YALNIZCA İZLE ----------
   Demo oturumunda `<body>` etiketi `data-demo="okuma"` taşır (web/js/app.js ›
   render). Satır içi yazma düğmeleri — Düzenle / Sil / Öde / Tahsil et /
   Taksit öde — tek kural ile kaybolur: hepsi `.row-actions` hücresinde
   doğuyor. Okumaya hizmet eden düğme `.keep-demo` sınıfı ile istisna
   olur (cari satırındaki "Ekstre").
   Başlık ve araç çubuğu düğmeleri CSS ile değil KODDA gizlenir
   (web/js/ui.js › wBtn + store.js › canEdit) — orada hangi düğmenin
   yazma olduğu ancak çağıran bilinir.
   Neden bu kural? Sahibin 2026-10-10 kararı: "demoyu sadece izle";
   örnek veride kayıt yapılabildiği izlenimi bile ürünün demosunu bozar. */
body[data-demo="okuma"] .row-actions > * { display: none; }
body[data-demo="okuma"] .row-actions > .keep-demo { display: inline-flex; }
body[data-demo="okuma"] .row-actions > .icon-btn.keep-demo { display: inline-grid; }
/* Hücreye tıklanarak yazılan bütçe matisi: demo'da tıklayacak bir şey yok. */
body[data-demo="okuma"] .budget-cell { cursor: default; }
.tbl .subtotal td { background: rgba(148, 178, 224, .05); font-weight: 620; }
.tbl .grand td { background: rgba(56, 189, 248, .09); font-weight: 700; border-top: 1px solid var(--line-2); }
.tbl .neg-row td { color: #f6c9d1; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 20px; font-size: 11.2px; font-weight: 600; border: 1px solid var(--line-2); background: rgba(148, 178, 224, .1); color: #cbd8ec; white-space: nowrap; }
.badge.good { background: rgba(52, 211, 153, .15); border-color: rgba(52, 211, 153, .34); color: #9df3d5; }
.badge.bad { background: rgba(251, 113, 133, .15); border-color: rgba(251, 113, 133, .34); color: #ffc2cd; }
.badge.warn { background: rgba(251, 191, 36, .15); border-color: rgba(251, 191, 36, .34); color: #ffe6a8; }
.badge.info { background: rgba(96, 165, 250, .15); border-color: rgba(96, 165, 250, .34); color: #bcd8ff; }
.badge.violet { background: rgba(167, 139, 250, .15); border-color: rgba(167, 139, 250, .34); color: #ddd0ff; }
.cur-tag { font-size: 10.4px; font-weight: 700; letter-spacing: .04em; color: var(--muted); background: rgba(148, 178, 224, .12); padding: 1px 5px; border-radius: 5px; }
.dotcat { width: 8px; height: 8px; border-radius: 3px; display: inline-block; margin-right: 7px; vertical-align: 0; }

/* ============================================================
   BÜTÇE & GERÇEKLEŞEN matrisi
   ============================================================ */
.budget-cell { display: flex; flex-direction: column; gap: 1px; min-width: 64px; padding: 2px 3px; border-radius: 6px; }
.budget-cell .plan { font-weight: 640; color: var(--text); }
.budget-cell.taslak, tr .taslak { opacity: .62; font-style: italic; }
.bud-h { min-width: 62px; }
.tbl th.bud-h { font-size: 11px; }
.check-line { display: inline-flex; align-items: center; gap: 7px; font-size: 12.4px; color: var(--muted); cursor: pointer; }
.check-line input[type=checkbox] { width: auto; accent-color: var(--accent); }
/* FAZ E (2026-10-11): projeksiyon ekranının dayanak kutuları — tek satıra
   sığmazsa sarar, kart gövdesinin ritmini bozmaz. */
.checks { display: flex; flex-wrap: wrap; gap: 9px 22px; padding: 14px 16px 4px; }

/* ============================================================
   SAYFA BAŞLIĞI / FİLTRE ÇUBUĞU
   ============================================================ */
.page-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ph-text h1 { font-size: 21px; letter-spacing: -.02em; }
.ph-text p { color: var(--muted); font-size: 13px; margin-top: 4px; max-width: 82ch; }
.ph-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 11px 14px; background: rgba(21, 34, 56, .42); border: 1px solid var(--line); border-radius: var(--radius); }
.toolbar .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 2px; }
.tb-label { font-size: 11.4px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .09em; }
.tb-inp { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(6, 11, 20, .7); color: var(--text); font-size: 12.8px; font-family: inherit; }
.tb-inp:focus { outline: none; border-color: rgba(56, 189, 248, .55); }
.search { position: relative; }
.search .ic { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted-2); }
.search input { padding-left: 29px; min-width: 190px; }

/* ============================================================
   GRAFİK / ÖZET DÜZENLERİ
   ============================================================ */
.cols { display: grid; gap: 14px; }
.cols.c2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.cols.c3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.chart { width: 100%; height: 290px; }
.chart.tall { height: 360px; }
.chart.short { height: 210px; }

.mini-list { display: flex; flex-direction: column; gap: 2px; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(148, 178, 224, .07); font-size: 13px; }
.mini-row:last-child { border-bottom: 0; }
.mini-row .mr-t { min-width: 0; flex: 1; }
.mini-row .mr-n { font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row .mr-s { font-size: 11.4px; color: var(--muted-2); }
.mini-row .mr-v { font-variant-numeric: tabular-nums; font-weight: 620; white-space: nowrap; }
.bar { height: 5px; border-radius: 4px; background: rgba(148, 178, 224, .13); overflow: hidden; margin-top: 5px; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 4px; overflow-x: auto; }
.tab { padding: 9px 14px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 580; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }

/* nakit akış tablosu */
.cf { display: flex; flex-direction: column; gap: 0; }
.cf-sec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cf-sec:last-child { border-bottom: 0; }
.cf-sec-h { display: flex; align-items: center; gap: 9px; font-size: 12px; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); margin-bottom: 9px; font-weight: 660; }
.cf-sec-h .bar-i { width: 3px; height: 14px; border-radius: 2px; background: var(--good); }
.cf-sec-h.exp .bar-i { background: var(--bad); }
.cf-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 6px 2px; font-size: 13.2px; }
.cf-row .cf-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cf-row .cf-v { font-variant-numeric: tabular-nums; font-weight: 600; }
.cf-row.tot { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 14px; }
.cf-net { background: linear-gradient(90deg, rgba(56, 189, 248, .12), rgba(56, 189, 248, .02)); border: 1px solid rgba(56, 189, 248, .28); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 4px; }
.cf-net > div .l { font-size: 11.2px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
.cf-net > div .v { font-size: 19px; font-weight: 680; font-variant-numeric: tabular-nums; margin-top: 3px; letter-spacing: -.02em; }

/* ============================================================
   MODAL / TOAST
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(3, 7, 14, .74); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; z-index: 200; opacity: 0; transition: opacity .2s; }
.modal-overlay.on { opacity: 1; }
.modal { width: min(560px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; background: linear-gradient(180deg, #16233a, #0f1829); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: translateY(10px) scale(.985); transition: transform .2s; }
.modal-overlay.on .modal { transform: none; }
.modal.sm { width: min(420px, 100%); }
.modal.md { width: min(620px, 100%); }
.modal.lg { width: min(920px, 100%); }
.modal.xl { width: min(1180px, 100%); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 15.4px; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 17px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; gap: 9px; justify-content: flex-end; padding: 13px 17px; border-top: 1px solid var(--line); background: rgba(7, 12, 22, .34); }
.confirm-text { font-size: 13.6px; color: #cdd9ec; line-height: 1.6; }

#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 400; display: flex; flex-direction: column; gap: 9px; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #101a2e; border: 1px solid rgba(52, 211, 153, .4); color: #e8ecf5; font-size: 13px; line-height: 1.5; box-shadow: 0 16px 44px rgba(0, 0, 0, .55); cursor: pointer; opacity: 0; transform: translateY(8px); transition: opacity .22s, transform .22s; }
.toast.on { opacity: 1; transform: none; }
.toast.bad { border-color: rgba(251, 113, 133, .5); }
.toast.warn { border-color: rgba(251, 191, 36, .5); }
.toast .tico { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; color: var(--good); }
.toast.bad .tico { color: var(--bad); } .toast.warn .tico { color: var(--warn); }

.loading { display: flex; gap: 11px; align-items: center; padding: 40px 18px; justify-content: center; color: var(--muted); font-size: 13px; }
.spin { width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(148, 178, 224, .25); border-top-color: var(--accent); animation: sp .75s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-ic { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--muted-2); opacity: .6; }
.empty-ic .ic { width: 40px; height: 40px; }
.empty h3 { font-size: 15px; color: var(--text); margin-bottom: 7px; }
.empty p { font-size: 13px; max-width: 52ch; margin: 0 auto 16px; line-height: 1.6; }

.notice { display: flex; gap: 11px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(148, 178, 224, .07); font-size: 12.8px; line-height: 1.58; color: #cdd9ec; }
.notice.warn { border-color: rgba(251, 191, 36, .34); background: rgba(251, 191, 36, .08); }
.notice.bad { border-color: rgba(251, 113, 133, .34); background: rgba(251, 113, 133, .08); }
.notice.good { border-color: rgba(52, 211, 153, .34); background: rgba(52, 211, 153, .08); }
.notice .ic { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.notice b { color: var(--text); }

/* ---------- ticari modül: tanıtım ve fiyat sayfası ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.9px; line-height: 1.6; color: #cdd9ec; }
.check-list .ic { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: #34d399; }
.price-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.price-box { border: 1px solid var(--line-2); border-radius: 13px; padding: 13px 14px; background: rgba(148, 178, 224, .05); }
.price-title { font-size: 11.4px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.price-value { font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price-missing { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: 12.8px; line-height: 1.6; color: #f7d483; }
.price-missing .ic { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.pay-info { margin-top: 14px; padding-top: 11px; border-top: 1px dashed var(--line); }
.pay-info .pay-line { font-size: 12.6px; line-height: 1.62; color: #cdd9ec; word-break: break-word; font-variant-numeric: tabular-nums; }

/* ---------- ödeme ve iletişim kartı (views/pay-info.js — 2026-10-10) ----------
   Sahibin spesifikasyonu: üstte bilgi ikonlu yeşilimtırak uyarı kutusu,
   alt alta belirgin sınır çizgili satırlar (Banka/Şube logolu, Alıcı,
   IBAN + kopyalama, zarflı e-posta, yeşil WhatsApp) — koyu temaya sadık,
   okunaklı beyaz/gri. FİYAT SATIRI YOK: tek kaynak #/fiyat. */
.pi-card { margin-top: 12px; border: 1px solid var(--line-2); border-radius: 13px; background: linear-gradient(180deg, rgba(148, 178, 224, .06), rgba(148, 178, 224, .02)); padding: 13px 14px; display: flex; flex-direction: column; gap: 2px; container-type: inline-size; }
/* KART KENDİ GENİŞLİĞİNİ ÖLÇÜR: 340px altına düşerse etiket satırı üste
   geçer, değer tüm genişliği kullanır — e-posta/IBAN kelime ortasından
   kırılmaz (2026-10-10: kayıt formunun dar sütununda bu oluyordu; kart
   artık o sütunda hiç çizilmiyor, bu kural ikinci katman sigortadır). */
@container (max-width: 340px) { .pi-row { flex-wrap: wrap; gap: 6px; } .pi-k { flex-basis: 100%; } }
.pi-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin-bottom: 9px; }
.pi-head .ic { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }
.pi-alert { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border: 1px solid rgba(52, 211, 153, .32); border-radius: 10px; background: rgba(52, 211, 153, .09); color: #a7f3d0; font-size: 13.4px; line-height: 1.55; margin-bottom: 6px; }
.pi-alert .ic { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; color: var(--good); }
.pi-row { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-top: 1px solid var(--line); }
.pi-k { flex: 0 0 88px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.pi-v { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; font-size: 13.4px; color: var(--text); flex-wrap: wrap; }
.pi-v-txt { word-break: break-word; }
a.pi-v-txt { color: var(--accent); text-decoration: none; }
a.pi-v-txt:hover { text-decoration: underline; }
/* IBAN mono satırı: 4'lü gruplarla KIRILIR (pay-info.js › ibanGrupla).
   word-break:break-all YASAK — boşluksuz metni dar sütunda tek harfe
   çökürüyordu (canlıda IBAN'ın alt alta düşmesi). Gruptan da sıkışırsa
   kelimeyi bönen şey overflow-wrap'tır, min-content hâlâ 4+1 harftir. */
.pi-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .045em; font-size: 13.4px; font-variant-numeric: tabular-nums; flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.pi-ic { width: 18px; height: 18px; flex: 0 0 auto; color: var(--info); }
.pi-ic.wa { color: #25d366; }
.pi-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-size: 12.2px; cursor: pointer; flex: 0 0 auto; transition: border-color .15s, color .15s; }
.pi-btn:hover { border-color: var(--accent); color: var(--accent); }
.pi-btn:disabled { opacity: .55; cursor: default; }
.pi-btn .ic { width: 13px; height: 13px; }
.pi-copy { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; flex: 0 0 auto; transition: border-color .15s, color .15s; }
.pi-copy:hover { border-color: var(--accent); color: var(--accent); }
.pi-copy .ic.sm { width: 13px; height: 13px; }
.pi-note { font-size: 12.2px; color: var(--muted); line-height: 1.55; border-top: 1px dashed var(--line); padding-top: 9px; margin: 6px 0 0; }
/* Logo beyaz etiket üstünde: koyu temada bankaların koyu yazılı
   logoları da okunur. Dosya yoksa/bozuksa renkli baş-harf rozeti.
   2026-10-10 sahibin onayıyla irileştirildi (34×22 → 56×36): kartta
   banka kimliği ilk bakışta okunsun. Yönetim formundaki küçük kutu
   (.bk-logo-kutu) kendi boyutunu ezer. */
.pi-logo { width: 56px; height: 36px; object-fit: contain; flex: 0 0 auto; background: #fff; border: 1px solid var(--line-2); border-radius: 7px; padding: 2px 5px; }
.pi-badge { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 36px; flex: 0 0 auto; background: var(--bc, var(--panel-3)); color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; border-radius: 7px; border: 1px solid var(--line-2); }
@media (max-width: 640px) { .pi-row { flex-wrap: wrap; gap: 6px; } .pi-k { flex-basis: 100%; } }

/* Yönetim formu: Banka kutusunun yanındaki canlı logo önizlemesi */
.bk-line { display: flex; gap: 8px; align-items: center; }
.bk-line > input, .bk-line > .fld { flex: 1; min-width: 0; }
.bk-logo-kutu { display: inline-flex; width: 44px; height: 30px; align-items: center; justify-content: center; flex: 0 0 auto; }
.bk-logo-kutu .pi-logo { width: 42px; height: 28px; }
.bk-logo-kutu .pi-badge { width: 42px; height: 28px; font-size: 11px; }
.bk-yok { border: 1px dashed var(--line-2); border-radius: 6px; }
/* Hesap formundaki banka alanı: logo + kutu üstte, katalog seçici altta */
.bk-field { display: flex; flex-direction: column; gap: 6px; }
/* Kasa & Banka hesap kartında banka logosu — kartın küçük ritmine iner */
.kpi-top .pi-logo { width: 38px; height: 25px; padding: 1px 4px; border-radius: 6px; }
.kpi-top .pi-badge { width: 38px; height: 25px; font-size: 10px; border-radius: 6px; }
.price-cta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.ordered { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 12.9px; line-height: 1.6; color: #cdd9ec; }
.ordered li::marker { color: var(--muted-2); }

/* sahihin modül kataloğu kartı (yonetim.html › Modüller) */
.mod-katalog { border: 1px solid var(--line-2); border-radius: 13px; padding: 13px 14px; background: rgba(148, 178, 224, .04); display: flex; flex-direction: column; gap: 11px; }
.mod-katalog-head { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: 13px; }
.mod-katalog-head .dim { font-size: 11.6px; }

/* ---------- paketler ve fiyatlar (panel sayfası + misafir penceresi) ---------- */
.pk-wrap, .pk-panel { display: flex; flex-direction: column; gap: 13px; }
.pk-lede-note { margin: 0; font-size: 12.8px; line-height: 1.62; color: var(--muted); max-width: 76ch; }
/* Kartlar: taban paket → ek modül → üst paket; dar ekranda alt alta düşer. */
.pk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 12px; align-items: start; }
.pk-grid > .card { margin: 0; }
.pk-card { display: flex; flex-direction: column; gap: 12px; }
.pk-name { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.4px; color: var(--text); }
.pk-name .ic { width: 17px; height: 17px; flex: 0 0 auto; color: #7dd3fc; }
.pk-ozet { margin: 0; font-size: 12.7px; line-height: 1.62; color: #cdd9ec; }
.pk-scope { border-top: 1px dashed var(--line); padding-top: 11px; display: flex; flex-direction: column; gap: 8px; }
.pk-scope-title { font-size: 11.2px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.pk-scope .check-list .ic { color: var(--muted-2); }
.pk-scope .check-list li .ic { color: #34d399; }
/* Kapsam dışı satırlar: çarpı ikonu yeşil değil, uyarı rengi. */
.pk-scope .check-list.pk-excl li .ic { color: #fb7185; }
.pk-scope .check-list.pk-excl li { color: #b9c6da; }
.pk-good { display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .07); border-radius: 12px; padding: 10px 12px; font-size: 12.7px; line-height: 1.6; color: #b7f0d8; }
.pk-good .ic { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: #34d399; }
/* Misafir ekranı (sahibin isteği, 2026-10-10): uzun fiyat bloğu sayfadan
   kalktı — "anasayfa aşağıya doğru çok uzamış, insanlar aşağıya kadar inmez".
   Giriş bloğu sola, "Ödeme, deneme ve değişiklik" kartı yanına durur;
   paketlerin karşılaştırması düğmenin açtığı pencerede çizilir. */
.auth-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; justify-content: center; width: min(1320px, 100%); }
.auth-row .auth-card { width: auto; flex: 1 1 660px; min-width: 0; }
.auth-side { flex: 0 1 560px; min-width: 300px; display: flex; }
.auth-side > .card { width: 100%; }
/* Yandaki kart dar sütunda okunur kalsın: düğmeler alt alta, satırlar kaydırmasız. */
.pk-side .ordered { font-size: 12.4px; gap: 7px; }
.pk-side .price-cta { flex-direction: column; align-items: stretch; }
.pk-side .price-cta .btn { justify-content: center; }
@media (max-width: 1120px) { .auth-side { flex: 1 1 100%; max-width: 760px; } }
@media (max-width: 720px) { .pk-grid { grid-template-columns: 1fr; } }

/* anahtar-değer listesi */
.kv { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 7px 14px; font-size: 12.9px; margin: 0; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; color: var(--text); word-break: break-word; }

/* sıkışık tablo */
.tbl.compact th, .tbl.compact td { padding: 5px 9px; font-size: 12.1px; }

/* içe aktarma */
.drop { border: 1.6px dashed var(--line-2); border-radius: 14px; padding: 34px 20px; text-align: center; cursor: pointer; background: rgba(6, 11, 20, .34); transition: border-color .16s, background .16s; }
.drop:hover, .drop.over { border-color: rgba(56, 189, 248, .6); background: rgba(56, 189, 248, .07); }
.drop h3 { font-size: 15px; margin-bottom: 6px; }
.drop p { color: var(--muted); font-size: 12.8px; }
.map-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px 12px; align-items: center; font-size: 12.8px; }
.map-grid .arrow { color: var(--muted-2); }
.tpl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 13px; }
.tpl { border: 1px solid var(--line); border-radius: 13px; padding: 15px; background: rgba(6, 11, 20, .34); display: flex; flex-direction: column; gap: 9px; }
.tpl h4 { font-size: 14px; }
.tpl p { font-size: 12.4px; color: var(--muted); line-height: 1.55; }
.tpl .cols-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tpl .cols-list span { font-size: 10.8px; padding: 2px 7px; border-radius: 20px; background: rgba(148, 178, 224, .1); color: #b9c7de; }
.tpl .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   DUYARLI
   ============================================================ */
@media (max-width: 1000px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-hero { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 24px; }
  .auth-form { padding: 24px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 272px; transform: translateX(-104%); transition: transform .22s; box-shadow: 0 0 60px rgba(0, 0, 0, .6); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-grid; }
  .content { padding: 16px 14px; }
  .topbar { padding: 10px 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .kpi-value { font-size: 20px; }
}
.scrim { position: fixed; inset: 0; background: rgba(3, 7, 14, .6); z-index: 25; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }

/* ============================================================
   YAZDIRMA
   ============================================================ */
@media print {
  :root { --bg: #fff; --panel: #fff; --text: #111; --muted: #444; --line: #ddd; }
  body { background: #fff !important; color: #111 !important; font-size: 11.5px; }
  .sidebar, .topbar, .ph-actions, .toolbar, .card-actions, #toasts, .menu-btn, .no-print, .modal-overlay, .scrim { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; }
  .card, .kpi { background: #fff !important; border: 1px solid #ccc !important; box-shadow: none !important; break-inside: avoid; }
  .card::after, .kpi::after { display: none; }
  .tbl th { background: #f2f2f2 !important; color: #333 !important; position: static; }
  .tbl td, .tbl th { border-color: #ddd !important; }
  .print-head { display: flex !important; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #333; padding-bottom: 8px; margin-bottom: 14px; }
  .print-head h1 { font-size: 17px; }
  .print-head .ph-sub { font-size: 11px; color: #555; }
  h1, h2, h3 { color: #111 !important; }
  .pos { color: #0a7d55 !important; } .neg { color: #b02438 !important; }
}
.print-head { display: none; }

/* ============================================================
   SAHİP YÖNETİM MERKEZİ (yonetim.html)
   Müşteri panelinin yan menüsü burada yok: tek sütun, üstte sekmeler.
   Kart/tablo/form stilleri panelle ortak (yukarıdaki sınıflar).
   ============================================================ */
.yon { min-height: 100vh; display: flex; flex-direction: column; }
.yon-bar {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px 16px;
  align-items: center; justify-content: space-between; padding: 12px 20px;
  background: rgba(8, 14, 26, .94); backdrop-filter: blur(9px); border-bottom: 1px solid var(--line);
}
.yon-brand { display: flex; align-items: center; gap: 10px; }
.yon-who { display: flex; flex-wrap: wrap; gap: 9px; align-items: baseline; font-size: 12.4px; color: var(--muted); }
.yon-who .yon-co { color: var(--text); font-weight: 640; }
.yon-who .yon-user { color: var(--muted-2); }
.yon-who .yon-status { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 11.6px; color: var(--violet); }
.yon-act { display: flex; gap: 8px; align-items: center; }
.yon-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px 0;
  background: rgba(8, 14, 26, .5); border-bottom: 1px solid var(--line);
}
.yon-tab {
  border: 1px solid transparent; border-bottom: 0; background: transparent; color: var(--muted);
  padding: 9px 14px; font-size: 12.8px; font-weight: 620; cursor: pointer;
  border-radius: 10px 10px 0 0;
}
.yon-tab:hover { color: var(--text); }
.yon-tab.on { background: var(--panel-2); border-color: var(--line-2); color: var(--text); }
.yon-notice { padding: 12px 20px 0; }
.yon-main { flex: 1 1 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; max-width: 1240px; width: 100%; margin: 0 auto; }
.yon .legal-foot { border-top: 1px solid var(--line); }

/* ---------- kapı (giriş / yetki yok) ---------- */
.yon-gate-wrap { justify-content: center; align-items: center; padding: 26px 16px; gap: 6px; }
.yon-gate { display: grid; place-items: center; padding: 26px 6px; width: 100%; }
.yon-gate-card {
  width: min(560px, 100%); display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, rgba(21, 34, 56, .94), rgba(13, 21, 36, .97));
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 26px 24px;
}
.yon-gate-card h1 { font-size: 21px; }
.yon-gate-card p { color: var(--muted); font-size: 13.2px; line-height: 1.6; }
.yon-form { display: flex; flex-direction: column; gap: 12px; }
.yon-gate-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12.2px; }

/* ---------- satır editörleri (site içeriği / sosyal hesaplar) ---------- */
.sc-list, .sc-rows { display: flex; flex-direction: column; gap: 9px; }
.sc-row {
  display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) auto;
  gap: 9px; align-items: center;
}
.sc-rows .sc-row { grid-template-columns: minmax(0, 1fr) auto; }
.sc-pair-in { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sc-name { display: flex; flex-direction: column; font-size: 12.8px; }
.sc-name .dim { font-size: 11px; letter-spacing: .06em; }
.sc-del { flex: 0 0 auto; }
.preview-strip { margin: 0 !important; }

/* ---------- sosyal hesap satırı (misafir ekranı + kalıcı tanıtım) ---------- */
.auth-social { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.auth-social .as-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-right: 2px; }
.auth-social .as-link {
  font-size: 12.2px; font-weight: 620; color: #cfe3fb; border: 1px solid var(--line-2);
  background: rgba(56, 189, 248, .08); border-radius: 999px; padding: 5px 12px;
}
.auth-social .as-link:hover { color: #fff; border-color: rgba(56, 189, 248, .55); }

.seo-social { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.seo-social[hidden] { display: none; }
.seo-social .ss-label { font-size: 11.4px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.seo-social .ss-link { font-size: 12.4px; color: #9fd8f7; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .yon-bar { padding: 10px 14px; }
  .yon-tabs { padding: 10px 12px 0; }
  .yon-main { padding: 14px 12px; }
  /* sosyal satırları dar ekranda iki satıra iner: isim + kutu, sonra "Aç" */
  .sc-list .sc-row { grid-template-columns: minmax(90px, 130px) minmax(0, 1fr); }
  .sc-list .sc-row .btn.sm { grid-column: 2 / -1; justify-self: start; }
  .yon-tab { flex: 1 1 auto; text-align: center; }
}

/* ---------- kurulum yol haritası (#181, Genel Bakış üstü kart) ---------- */
.card.kurulum { border-color: rgba(56, 189, 248, .28); }
.card.kurulum .card-body { padding: 6px 17px 14px; }
.kur-body { display: flex; flex-direction: column; gap: 4px; }
.kur-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 10px 0 6px; }
.kur-count { font-size: 12.4px; font-weight: 680; color: #7dd3fc; letter-spacing: .02em; }
.kur-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); }
.kur-ic { flex: 0 0 auto; width: 26px; height: 26px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.4px; font-weight: 650; color: var(--muted-2); }
.kur-ic.on { border-color: rgba(56, 189, 248, .55); color: #7dd3fc; background: rgba(56, 189, 248, .10); }
.kur-ic.ok { border-color: rgba(52, 211, 153, .5); color: #34d399; background: rgba(52, 211, 153, .10); }
.kur-ic .ic { width: 14px; height: 14px; }
.kur-txt { flex: 1 1 auto; min-width: 0; }
.kur-baslik { font-size: 13.2px; font-weight: 640; }
.kur-row.done .kur-baslik { color: var(--muted-2); text-decoration: line-through; text-decoration-color: rgba(148, 178, 224, .45); }
.kur-ipucu { font-size: 11.9px; color: var(--muted-2); line-height: 1.5; margin-top: 2px; }
.kur-row .btn.sm { flex: 0 0 auto; }
@media (max-width: 720px) {
  .kur-row { flex-wrap: wrap; }
  .kur-row .kur-txt { flex: 1 1 70%; }
  .kur-row .btn.sm { margin-left: 38px; }
}
