/* GaisPay Yönetim Paneli — v2 */
:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #edf0f5;
  --border: #e2e6ee;
  --border-strong: #ccd3df;
  --text: #0b1730;
  --text-2: #36435b;
  --muted: #68758c;
  --brand: #1f4fd8;
  --primary: #1f4fd8;
  --primary-600: #1840b6;
  --primary-soft: #e7edfc;
  --primary-ink: #1a45c2;
  --accent: #0fa88f;
  --success: #0c8f5f;
  --success-soft: #e2f5ec;
  --warn: #a8650a;
  --warn-soft: #fcf0d9;
  --danger: #cf3442;
  --danger-soft: #fde9eb;
  --info: #0b76b3;
  --info-soft: #e1f1fa;
  --side-bg: #0a1633;
  --side-bg-2: #0f1f45;
  --side-line: rgba(255, 255, 255, .08);
  --side-text: #a9b5d1;
  --side-muted: #6f7da0;
  --side-hover: rgba(255, 255, 255, .06);
  --side-active: rgba(79, 124, 255, .2);
  --shadow-sm: 0 1px 2px rgba(11, 23, 48, .05);
  --shadow: 0 1px 2px rgba(11, 23, 48, .05), 0 10px 28px -14px rgba(11, 23, 48, .18);
  --shadow-lg: 0 28px 70px -18px rgba(11, 23, 48, .34);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 248px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #060c1b;
  --surface: #0d1629;
  --surface-2: #111c33;
  --surface-3: #18243f;
  --border: #1c2947;
  --border-strong: #2a3b61;
  --text: #e8edf7;
  --text-2: #b8c2d8;
  --muted: #8090ac;
  --brand: #2f6bff;
  --primary: #5b86ff;
  --primary-600: #4a76f5;
  --primary-soft: rgba(91, 134, 255, .16);
  --primary-ink: #a3bcff;
  --accent: #2dd4bf;
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, .14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .15);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, .14);
  --side-bg: #080f20;
  --side-bg-2: #0c1730;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 28px 70px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 14px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }
kbd { font: 600 10.5px/1 var(--font); padding: 3px 5px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .93em; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.svg-icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Yerleşim ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  background: linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-2) 100%);
  border-right: 1px solid var(--side-line); color: var(--side-text);
  display: flex; flex-direction: column; padding: 0 12px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.sidebar .brand { height: 60px; padding: 0 8px; color: #fff; border-bottom: 1px solid var(--side-line); margin: 0 -12px; padding-left: 20px; flex: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand em { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #b9c8f5; border: 1px solid rgba(185, 200, 245, .3); padding: 2px 6px; border-radius: 5px; }
.nav { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; padding-top: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.nav-label { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--side-muted); padding: 16px 10px 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--side-text); font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--side-hover); color: #fff; }
.nav a.active { background: var(--side-active); color: #fff; font-weight: 600; }
.nav a.active::before { content: ''; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: #5b86ff; }
.nav a.active .svg-icon { color: #8fb0ff; }
.nav a span { flex: 1; }
.nav-badge { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-foot { padding-top: 12px; display: grid; gap: 10px; }
.net-card { border: 1px solid var(--side-line); background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 11px 12px; display: grid; gap: 6px; font-size: 12px; color: var(--side-text); }
.net-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.net-row strong { color: #fff; font-weight: 600; flex: 1; }
.net-row .mono { color: #dbe4fb; }
.net-ok { font-size: 10.5px; font-weight: 600; color: #4ade80; }
.sidebar-ver { font-size: 11px; color: var(--side-muted); padding: 0 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot-live { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 60px; padding: 0 28px;
  display: flex; align-items: center; gap: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 12px; }
.topbar-title h1 { font-size: 17px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; max-width: 100%; }
.topbar-title p { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.search-btn { height: 36px; min-width: 210px; padding: 0 8px 0 10px; display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 13px; transition: border-color .15s, background .15s; }
.search-btn:hover { border-color: var(--border-strong); background: var(--surface); }
.search-btn span { flex: 1; text-align: left; }
.search-btn .svg-icon { width: 16px; height: 16px; }
.clock { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); padding: 0 10px; height: 36px; border-radius: 8px; border: 1px solid var(--border); font-variant-numeric: tabular-nums; white-space: nowrap; }
.icon-btn { position: relative; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: background .15s, border-color .15s; flex: none; }
.icon-btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.user, .notif { position: relative; }
.user-btn { display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 3px 6px 3px 3px; border-radius: 9px; }
.user-btn:hover { background: var(--surface-3); }
.avatar { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #2f6bff, #1a3fae); color: #fff; font-weight: 650; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.user-name { text-align: left; font-weight: 600; font-size: 13px; line-height: 1.25; display: flex; flex-direction: column; max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-name small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; display: grid; }
.menu-head strong { font-weight: 600; }
.menu-head span { font-size: 12px; color: var(--muted); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; background: none; border: 0; text-align: left; color: var(--text-2); font-weight: 500; }
.menu a:hover, .menu button:hover { background: var(--surface-3); color: var(--text); }
.menu form { margin: 0; }
.content { padding: 24px 28px 48px; width: 100%; max-width: 1600px; margin: 0 auto; outline: none; flex: 1; }
.scrim { display: none; }
.only-mobile { display: none; }

/* ---------- Bildirimler ---------- */
.notif-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--surface); }
.notif-panel { position: absolute; right: -44px; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 50; overflow: hidden; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.notif-head strong { font-size: 14px; font-weight: 650; }
.notif-head span { font-size: 12px; color: var(--muted); }
.notif-list { max-height: min(60vh, 460px); overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: color-mix(in srgb, var(--primary-soft) 55%, transparent); }
.notif-ico { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--surface-3); color: var(--text-2); }
.notif-ico .svg-icon { width: 16px; height: 16px; }
.notif-ico.warn { background: var(--warn-soft); color: var(--warn); }
.notif-ico.danger { background: var(--danger-soft); color: var(--danger); }
.notif-ico.info { background: var(--primary-soft); color: var(--primary-ink); }
.notif-text { min-width: 0; flex: 1; }
.notif-text strong { display: block; font-weight: 600; font-size: 13px; }
.notif-text span { display: block; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-text small { font-size: 11.5px; color: var(--muted); }

/* ---------- Komut paleti ---------- */
.cmdk-back { position: fixed; inset: 0; z-index: 120; background: rgba(6, 12, 27, .55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; animation: fade .12s ease-out; }
.cmdk { width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .16s ease-out; }
.cmdk-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.cmdk-input input { flex: 1; height: 52px; border: 0; outline: 0; background: none; font-size: 15px; color: var(--text); min-width: 0; }
.cmdk-list { max-height: min(56vh, 420px); overflow-y: auto; padding: 6px; }
.cmdk-group { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 5px; }
.cmdk-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; cursor: pointer; min-width: 0; }
.cmdk-item.sel { background: var(--primary-soft); }
.cmdk-item .svg-icon { color: var(--muted); width: 17px; height: 17px; }
.cmdk-item.sel .svg-icon { color: var(--primary-ink); }
.cmdk-main { flex: 1; min-width: 0; }
.cmdk-main strong { display: block; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-main span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-side { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmdk-empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--muted); background: var(--surface-2); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.card-head h3 { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.card-head p { font-size: 12.5px; color: var(--muted); }
.card-body { padding: 16px 18px 18px; }
.card-flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.stack { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
.thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.halves { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }

.kpi { padding: 16px 18px 14px; display: grid; gap: 6px; position: relative; overflow: hidden; align-content: start; }
a.kpi { transition: border-color .15s, box-shadow .15s; }
a.kpi:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi-top > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-ico { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-ink); flex: none; }
.kpi-ico .svg-icon { width: 16px; height: 16px; }
.kpi-ico.blue { background: var(--info-soft); color: var(--info); }
.kpi-ico.amber { background: var(--warn-soft); color: var(--warn); }
.kpi-ico.red { background: var(--danger-soft); color: var(--danger); }
.kpi-ico.green { background: var(--success-soft); color: var(--success); }
.kpi-val { font-size: clamp(20px, 1.8vw, 25px); font-weight: 680; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-val small { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.kpi-foot { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 20px; }
.kpi-spark { height: 34px; margin: 2px -4px -4px; }
.kpi-spark svg { display: block; width: 100%; height: 34px; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; padding: 1px 6px; border-radius: 5px; font-size: 11.5px; }
.delta.up { color: var(--success); background: var(--success-soft); }
.delta.down { color: var(--danger); background: var(--danger-soft); }

.mini { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.mini .card { padding: 13px 18px; display: grid; gap: 2px; border: 0; border-right: 1px solid var(--border); border-radius: 0; box-shadow: none; background: none; }
.mini .card:last-child { border-right: 0; }
.mini span { color: var(--muted); font-size: 12px; }
.mini strong { font-size: 15.5px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }

/* ---------- Rozet, buton, form ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.info::before { animation: blink 1.2s infinite; }
.badge.plain::before { display: none; }
@keyframes blink { 50% { opacity: .25; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .svg-icon { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(31, 79, 216, .3); }
.btn-primary:hover { background: var(--brand); border-color: var(--brand); filter: brightness(.9); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.94); background: var(--danger); }
:root[data-theme="dark"] .btn-danger { color: #1a0608; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; height: 44px; font-size: 14.5px; }
.link { color: var(--primary-ink); font-weight: 600; }
.link:hover { text-decoration: underline; }

.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field small { color: var(--muted); font-size: 12px; }
.input, .select { width: 100%; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 84px; }
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input::placeholder { color: var(--muted); }
.input:disabled, .select:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 8px; padding-bottom: 2px; border-bottom: 1px solid var(--border); grid-column: 1 / -1; }
.alert { padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-success { background: var(--success-soft); color: var(--success); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.toolbar .input, .toolbar .select { height: 36px; width: auto; }
.toolbar .grow { flex: 1 1 240px; }
.toolbar .spacer { flex: 1; }
.search { position: relative; flex: 1 1 260px; min-width: 0; }
.search .svg-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search .input { padding-left: 36px; width: 100%; }
.tabs { display: inline-flex; background: var(--surface-3); border-radius: 8px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 5px 11px; border-radius: 6px; font-weight: 600; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tabs button b { font-weight: 600; opacity: .7; margin-left: 5px; }

.utabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.utabs::-webkit-scrollbar { display: none; }
.utabs button { position: relative; border: 0; background: none; padding: 13px 10px 12px; font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.utabs button:hover { color: var(--text); }
.utabs button.active { color: var(--primary-ink); }
.utabs button.active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--primary); }
.utabs button b { font-size: 11px; font-weight: 700; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.utabs button b:empty { display: none; }
.utabs button.active b { background: var(--primary-soft); color: var(--primary-ink); }
.toolbar .input.amt { width: 108px; }
.health { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; padding: 11px 18px; }
.health-title { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.health-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.health-item strong { font-weight: 600; color: var(--text); }
.dot-ok { background: #22c55e; }
.resolve { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--border)); background: var(--warn-soft); }
.resolve strong { display: block; font-weight: 650; color: var(--warn); }
.resolve span { display: block; font-size: 12.5px; color: var(--text-2); max-width: 420px; }
.content > * { animation: viewin .18s ease-out; }
@keyframes viewin { from { opacity: 0; transform: translateY(4px); } }
::selection { background: var(--primary-soft); }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.click { cursor: pointer; transition: background .12s; }
.table tbody tr.click:hover { background: var(--surface-2); }
.table tfoot td { background: var(--surface-2); font-weight: 650; border-top: 1px solid var(--border-strong); border-bottom: 0; }
.table th.right, .table td.right { text-align: right; }
.table .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.table td.wrap { white-space: normal; min-width: 220px; }
.cell-main { font-weight: 600; }
.amount { font-weight: 650; font-variant-numeric: tabular-nums; }
.amount small { font-weight: 500; color: var(--muted); font-size: 11.5px; margin-left: 3px; }
.pos { color: var(--success); }
.neg { color: var(--danger); }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who-ico { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; font-size: 12px; flex: none; color: #fff; }
.who-text { min-width: 0; }
.who-text strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.who-text > span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.trunc { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.pager { display: flex; align-items: center; gap: 6px; }
.pager span { padding: 0 8px; font-variant-numeric: tabular-nums; }
tr.is-new td { animation: rowflash 2.4s ease-out; }
@keyframes rowflash { 0% { background: var(--primary-soft); } 100% { background: transparent; } }

/* ---------- Akış ---------- */
.feed { display: grid; }
.feed-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--border); cursor: pointer; transition: background .12s; min-width: 0; }
.feed-item:hover { background: var(--surface-2); }
.feed-item.is-new { animation: feedin .5s ease-out, rowflash 2.4s ease-out; }
@keyframes feedin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.feed-main { flex: 1; min-width: 0; }
.feed-main strong { display: block; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-main > span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-side { text-align: right; display: grid; gap: 3px; justify-items: end; flex: none; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--success); }

.rank { display: grid; gap: 14px; }
.rank-row { display: grid; gap: 6px; cursor: pointer; }
.rank-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.rank-top strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-top span { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--primary); }

/* ---------- Grafik ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.chart-tip { position: absolute; pointer-events: none; background: #0b1730; color: #fff; padding: 7px 10px; border-radius: 7px; font-size: 12px; line-height: 1.4; white-space: nowrap; transform: translate(-50%, -112%); box-shadow: var(--shadow); z-index: 5; }
:root[data-theme="dark"] .chart-tip { background: #e8edf7; color: #0b1730; }
.chart-tip b { display: block; font-size: 13px; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.legend { display: grid; gap: 9px; flex: 1; min-width: 150px; }
.legend div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend b { font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(6, 12, 27, .58); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal.wide { max-width: 780px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.modal-head p { font-size: 12.5px; color: var(--muted); }
.modal-body { padding: 20px; display: grid; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; background: var(--surface-2); border-radius: 0 0 14px 14px; }

.detail-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.detail-hero .big { font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.detail-hero .big small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.kv { display: grid; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.card.kv, .kv.card { border-radius: var(--radius); }
.kv-title { padding: 9px 16px; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.kv-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); align-items: center; font-size: 13.5px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row > span { color: var(--muted); }
.kv-row > div { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kv-row > div > .muted { font-size: 12.5px; }
.break { word-break: break-all; }
.copy { width: 26px; height: 26px; border-radius: 6px; border: 0; background: var(--surface-3); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.copy:hover { color: var(--text); }
.copy .svg-icon { width: 14px; height: 14px; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.flow-box { border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; min-width: 0; }
.flow-box span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.flow-arrow { color: var(--primary); display: inline-flex; }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-bottom: 14px; position: relative; font-size: 13.5px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.step:last-child::before { display: none; }
.step i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); display: block; position: relative; z-index: 1; }
.step.done i { border-color: var(--success); background: var(--success); box-shadow: inset 0 0 0 4px var(--surface); }
.step.fail i { border-color: var(--danger); background: var(--danger); box-shadow: inset 0 0 0 4px var(--surface); }
.step.now i { border-color: var(--info); animation: blink 1.2s infinite; }
.step strong { font-weight: 600; }
.step small { display: block; color: var(--muted); font-size: 12px; }
.step time { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Sayfa başlığı ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page-head .who-ico { width: 48px; height: 48px; border-radius: 12px; font-size: 16px; }
.page-head h2 { font-size: 20px; font-weight: 680; letter-spacing: -.02em; }
.page-head .actions, .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 13px; justify-self: start; }
.back:hover { color: var(--text); }

/* ---------- Bildirim, iskelet ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; }
.toast { background: #0b1730; color: #fff; padding: 11px 14px; border-radius: 10px; font-weight: 500; font-size: 13.5px; box-shadow: var(--shadow-lg); animation: pop .2s ease-out; max-width: min(380px, calc(100vw - 40px)); }
:root[data-theme="dark"] .toast { background: #e8edf7; color: #0b1730; }
.toast.error, :root[data-theme="dark"] .toast.error { background: #cf3442; color: #fff; }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress-bar { height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s ease; }
.progress-label { text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Giriş / kurulum ---------- */
.auth-body { background: var(--bg); }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-side {
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(900px 520px at 0% 0%, rgba(47, 107, 255, .42) 0%, transparent 60%),
    linear-gradient(160deg, #0d1d45 0%, #0a1633 55%, #070f24 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 56px; position: relative; overflow: hidden;
}
.auth-side-inner { max-width: 480px; display: grid; gap: 18px; position: relative; z-index: 1; }
.brand-light { color: #fff; padding: 0 0 22px; font-size: 21px; }
.brand-light .brand-mark { width: 38px; height: 38px; }
.auth-side h2 { font-size: 33px; line-height: 1.16; letter-spacing: -.03em; font-weight: 680; }
.auth-side p { font-size: 15px; color: #b6c2e0; }
.auth-points { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 16px; }
.auth-points li { display: flex; align-items: flex-start; gap: 13px; }
.auth-points li > span { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #6f9bff; box-shadow: 0 0 0 5px rgba(111, 155, 255, .18); flex: none; }
.auth-points strong { display: block; font-weight: 600; font-size: 14.5px; }
.auth-points small { display: block; font-size: 13px; color: #94a3c8; }
.auth-side-foot { position: absolute; left: 56px; bottom: 32px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6f7da0; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: var(--surface); }
.auth-card { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.auth-card h1 { font-size: 25px; font-weight: 680; letter-spacing: -.03em; margin-bottom: 4px; }
.auth-foot { font-size: 12px; color: var(--muted); text-align: center; }
.auth-brand-mobile { display: none; padding: 0 0 8px; }
.install { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 32px 20px; }
.install .auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); width: min(440px, calc(100vw - 40px)); max-width: none; }

/* ---------- iGaming bileşenleri ---------- */
.cc { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 18px; padding: 0 5px; border-radius: 4px; background: var(--surface-3); border: 1px solid var(--border); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--text-2); vertical-align: 1px; }
.table .sub .cc { height: 16px; min-width: 22px; font-size: 9.5px; }
.tchip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 6px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tchip .svg-icon { width: 13px; height: 13px; stroke-width: 2.4; }
.tchip.dep { background: var(--success-soft); color: var(--success); }
.tchip.pay { background: var(--info-soft); color: var(--info); }
.risk { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.risk i { width: 46px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: block; }
.risk b { display: block; height: 100%; border-radius: 999px; background: var(--success); }
.risk.warn b { background: var(--warn); }
.risk.danger b { background: var(--danger); }
.risk.danger span { color: var(--danger); }
.lic { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 5px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.lic .svg-icon { width: 13px; height: 13px; stroke-width: 2.4; }
.lic.ok { background: var(--success-soft); color: var(--success); }
.lic.wait { background: var(--warn-soft); color: var(--warn); }
.feed-dir { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.feed-dir .svg-icon { width: 16px; height: 16px; }
.feed-dir.dep { background: var(--success-soft); color: var(--success); }
.feed-dir.pay { background: var(--info-soft); color: var(--info); }
.lang-btn { height: 36px; padding: 3px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); display: inline-flex; gap: 2px; align-items: center; flex: none; }
.lang-btn span { padding: 5px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.lang-btn span.on { background: var(--primary-soft); color: var(--primary-ink); }

/* ---------- Hazine ---------- */
.sheet { display: grid; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--border); font-size: 13.5px; }
.sheet-row > span { color: var(--text-2); display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.sheet-row > span i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.sheet-row > b { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-row.total { background: var(--surface-2); font-weight: 650; }
.sheet-row.total > span { color: var(--text); font-weight: 650; }
.sheet-row small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 6px; }
.stackbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-3); margin: 4px 18px 16px; }
.stackbar i { display: block; height: 100%; min-width: 2px; }
.wallet { display: grid; gap: 10px; padding: 16px 18px; }
.wallet + .wallet { border-top: 1px solid var(--border); }
.wallet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wallet-top strong { font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.wallet-val { font-size: 20px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wallet-val small { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.wallet-addr { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); min-width: 0; }
.meter { display: grid; gap: 6px; }
.meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.meter-top b { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
.meter .bar { height: 8px; }
.meter .bar.ok i { background: var(--success); }
.meter .bar.warn i { background: var(--warn); }

/* ---------- Geliştirici ---------- */
.http { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 2px 7px; border-radius: 5px; font: 700 10.5px/1.5 var(--mono); letter-spacing: .03em; }
.http.get { background: var(--info-soft); color: var(--info); }
.http.post { background: var(--success-soft); color: var(--success); }
.http.ok { background: var(--success-soft); color: var(--success); }
.endpoint { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--border); cursor: pointer; font-size: 13px; transition: background .12s; }
.endpoint:hover, .endpoint.active { background: var(--surface-2); }
.endpoint.active { box-shadow: inset 3px 0 0 var(--primary); }
.endpoint .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.endpoint small { color: var(--muted); white-space: nowrap; }
.code { margin: 0; padding: 14px 16px; border-radius: 10px; background: #0a1430; color: #d7e0f7; font: 400 12.5px/1.65 var(--mono); overflow-x: auto; white-space: pre; border: 1px solid #16234a; tab-size: 2; }
.code .k { color: #8fb0ff; }
.code .s { color: #7fe3c4; }
.code .n { color: #f7c56b; }
.code .c { color: #6f7da0; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.keybox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--border-strong); background: var(--surface-2); }
.keybox .mono { flex: 1; min-width: 0; word-break: break-all; font-size: 13px; }

/* ---------- Denetim, ekip ---------- */
.role { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; background: var(--surface-3); color: var(--text-2); }
.role.owner { background: var(--primary-soft); color: var(--primary-ink); }
.role.finance { background: var(--success-soft); color: var(--success); }
.role.compliance { background: var(--warn-soft); color: var(--warn); }
.actor { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.actor i { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--brand); flex: none; }
.actor.sys { color: var(--text-2); font-weight: 500; }
.actor.sys i { background: var(--surface-3); color: var(--muted); }
.actor.sys i .svg-icon { width: 13px; height: 13px; }
.diff { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.diff s { color: var(--muted); }
.diff b { font-weight: 600; color: var(--text); }
.perm-grid { display: grid; gap: 0; }
.perm-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, 74px); align-items: center; padding: 9px 18px; border-top: 1px solid var(--border); font-size: 13px; }
.perm-row.head { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.perm-row > :not(:first-child) { text-align: center; display: flex; justify-content: center; }
.perm-row .svg-icon { width: 16px; height: 16px; color: var(--success); stroke-width: 2.4; }
.perm-row .no { color: var(--border-strong); }
.readonly-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- Üçlü özet, telefon ---------- */
.kpis3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.only-xs, .only-xs-inline, .table .only-xs, .table .only-xs-inline { display: none; }
.xs-badge { margin-top: 4px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1560px) {
  .col-xl { display: none; }
}
@media (max-width: 1380px) {
  .col-lg, .col-xl { display: none; }
  .who-text strong { max-width: 240px; }
  .search-btn { min-width: 0; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 36px; padding: 0; justify-content: center; background: var(--surface); }
}
@media (max-width: 1240px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini .card:nth-child(2) { border-right: 0; }
  .mini .card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .thirds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thirds > :last-child { grid-column: 1 / -1; }
  .kpis3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis3 > :first-child { grid-column: 1 / -1; }
  .topbar-title p { display: none; }
}
@media (max-width: 1100px) {
  .table .col-md { display: none; }
  .who-text strong, .table .who-text strong { max-width: 190px; }
  .table th, .table td { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); width: min(84vw, 290px); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(6, 12, 27, .55); z-index: 35; }
  .main { margin-left: 0; }
  .only-mobile { display: inline-flex; }
  .hide-mobile { display: none !important; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar-title h1 { font-size: 16px; }
  .topbar-actions { gap: 6px; }
  .content { padding: 16px 14px 40px; }
  .halves, .thirds { grid-template-columns: minmax(0, 1fr); }
  .col-lg { display: none; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-brand-mobile { display: flex; }
  .kv-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .modal-back { padding: 0; align-items: flex-end; }
  .modal, .modal.wide { max-width: none; border-radius: 14px 14px 0 0; max-height: 94vh; overflow-y: auto; border-bottom: 0; }
  .modal-foot { border-radius: 0; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .notif-panel { position: fixed; right: 12px; left: 12px; top: 64px; width: auto; }
  .cmdk-back { padding-top: 8vh; }
  .perm-row { grid-template-columns: minmax(0, 1.2fr) repeat(4, 48px); padding: 9px 12px; }
}
@media (max-width: 560px) {
  .kpis, .kpis3 { grid-template-columns: minmax(0, 1fr); }
  .mini { grid-template-columns: minmax(0, 1fr); }
  .mini .card { border-right: 0; border-bottom: 1px solid var(--border); }
  .mini .card:last-child { border-bottom: 0; }
  .kpi-val { font-size: 23px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .col-md { display: none; }
  .table th, .table td { padding: 10px 12px; }
  .toolbar { padding: 12px; }
  .toolbar .select, .toolbar .input[type="date"] { flex: 1 1 130px; }
  .feed-item { padding: 10px 14px; }
  .card-head { padding: 14px 14px 0; }
  .card-body { padding: 14px; }
  .sheet-row, .wallet, .endpoint { padding-left: 14px; padding-right: 14px; }
  .stackbar { margin-left: 14px; margin-right: 14px; }
  .toasts { right: 12px; left: 12px; bottom: 12px; }
  .modal-foot .btn { flex: 1; }
  .topbar .lang-btn { display: none; }
  .table .col-xs, .table .sub.col-xs { display: none; }
  .table .only-xs { display: block; }
  .table .only-xs-inline { display: inline; }
  .table .who-text strong, .table .who-text > span { max-width: calc(100vw - 254px); overflow: hidden; text-overflow: ellipsis; }
  .table .who { gap: 9px; }
  .table .badge { font-size: 11px; padding: 2px 7px; }
  .table .cell-main { display: block; max-width: calc(100vw - 230px); overflow: hidden; text-overflow: ellipsis; }
  .user-btn { padding: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media print {
  .sidebar, .topbar, .toasts, .toolbar .btn, .no-print { display: none !important; }
  .main { margin-left: 0; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ============ v3 — açık, sade, ferah ============ */
:root {
  --bg: #f7f8fa; --surface: #ffffff; --surface-2: #f7f8fa; --surface-3: #f0f2f5;
  --border: #e8ebf0; --border-strong: #d3d8e0;
  --text: #0f172a; --text-2: #334155; --muted: #64748b;
  --brand: #2563eb; --primary: #2563eb; --primary-600: #1d4ed8; --primary-soft: #eef4ff; --primary-ink: #1d4ed8;
  --side-bg: #ffffff; --side-bg-2: #ffffff; --side-line: var(--border); --side-text: #475569; --side-muted: #94a3b8;
  --side-hover: #f0f2f5; --side-active: #eef4ff;
  --shadow-sm: none; --radius: 14px; --sidebar-w: 236px;
}
:root[data-theme="dark"] {
  --side-bg: #0b1322; --side-bg-2: #0b1322; --side-line: var(--border); --side-text: #b8c2d8; --side-muted: #6f7da0;
  --side-hover: rgba(255, 255, 255, .05); --side-active: rgba(91, 134, 255, .16); --shadow-sm: none;
}
body { font-size: 14.5px; }
.sidebar { background: var(--side-bg); border-right: 1px solid var(--border); padding: 0 14px 14px; }
.sidebar .brand { color: var(--text); border-bottom: 0; height: 68px; margin: 0; padding: 0 8px; font-size: 18px; }
.brand em { display: none; }
.nav { gap: 2px; padding-top: 4px; }
.nav a, .nav-more summary { padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--side-text); }
.nav a:hover, .nav-more summary:hover { color: var(--text); background: var(--side-hover); }
.nav a.active { color: var(--primary-ink); background: var(--side-active); }
.nav a.active::before { display: none; }
.nav a.active .svg-icon { color: var(--primary); }
.nav-more { display: grid; gap: 2px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
.nav-more summary { display: flex; align-items: center; gap: 11px; font-weight: 500; cursor: pointer; list-style: none; user-select: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary span { flex: 1; }
.nav-more summary .svg-icon:last-child { width: 14px; height: 14px; transition: transform .15s; color: var(--side-muted); }
.nav-more[open] summary .svg-icon:last-child { transform: rotate(90deg); }
.nav-more a { padding-left: 14px; }
.nav-more + a { margin-top: 6px; }
.nav-badge { background: var(--danger); }
.net-card { background: var(--surface-2); border-color: var(--border); color: var(--muted); border-radius: 12px; }
.net-row strong { color: var(--text); }
.net-row .mono { color: var(--text-2); }
.net-ok { color: var(--success); }
.sidebar-ver { display: none; }
.topbar { height: 68px; padding: 0 36px; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid transparent; }
.topbar-title { flex-direction: column; align-items: flex-start; gap: 0; }
.topbar-title h1 { font-size: 20px; font-weight: 650; }
.topbar-title p { font-size: 13px; }
.clock { border: 0; padding: 0 6px; color: var(--muted); }
.search-btn, .icon-btn, .lang-btn { background: var(--surface); border-color: var(--border); border-radius: 10px; }
.avatar { background: var(--text); border-radius: 10px; }
:root[data-theme="dark"] .avatar { background: var(--surface-3); }
.content { padding: 12px 36px 64px; max-width: 1440px; }
.grid, .stack { gap: 20px; }
.card { box-shadow: none; border-color: var(--border); }
.card-head { padding: 22px 24px 0; }
.card-head h3 { font-size: 16px; font-weight: 650; }
.card-head p { font-size: 13px; margin-top: 2px; }
.card-body { padding: 18px 24px 24px; }
.kpi { padding: 22px 24px 20px; gap: 10px; }
.kpi-top { font-size: 13.5px; }
.kpi-ico, .kpi-ico.blue, .kpi-ico.amber, .kpi-ico.red, .kpi-ico.green { background: var(--surface-3); color: var(--text-2); width: 32px; height: 32px; border-radius: 10px; }
.kpi-val { font-size: clamp(25px, 2.2vw, 31px); font-weight: 650; }
.kpi-val small { font-size: 13px; font-weight: 500; }
.kpi-foot { font-size: 13px; }
.kpi-spark { margin-top: 4px; }
.mini .card { padding: 18px 24px; gap: 4px; }
.mini span { font-size: 13px; }
.mini strong { font-size: 17px; }
.table { font-size: 14px; }
.table th { background: transparent; padding: 13px 20px; font-size: 11.5px; letter-spacing: .04em; }
.table td { padding: 15px 20px; }
.table tbody tr.click:hover { background: var(--surface-2); }
.table tfoot td { background: transparent; }
.who-ico { border-radius: 10px; width: 36px; height: 36px; }
.page-head .who-ico { width: 52px; height: 52px; border-radius: 14px; }
.toolbar { padding: 16px 20px; gap: 10px; }
.toolbar .input, .toolbar .select { height: 38px; }
.input, .select { height: 40px; border-radius: 10px; border-color: var(--border-strong); }
.btn { height: 38px; border-radius: 10px; border-color: var(--border-strong); }
.btn-sm { height: 32px; border-radius: 8px; }
.btn-primary { box-shadow: none; }
.btn-ghost { border-color: transparent; }
.tabs { border-radius: 10px; padding: 4px; }
.tabs button { padding: 6px 13px; border-radius: 7px; font-size: 13px; }
.utabs { padding: 0 14px; }
.utabs button { padding: 16px 10px 14px; font-size: 13.5px; }
.badge { border-radius: 999px; padding: 3px 10px; }
.feed-item { padding: 13px 24px; }
.feed-dir { border-radius: 10px; }
.feed-dir.dep { color: var(--success); }
.feed-dir.pay { color: var(--info); }
.table-foot { padding: 14px 20px; }
.sheet-row, .wallet, .endpoint { padding-left: 24px; padding-right: 24px; }
.sheet-row { padding-top: 13px; padding-bottom: 13px; }
.stackbar { margin: 6px 24px 18px; }
.perm-row { padding: 11px 24px; }
.kv-title { background: transparent; padding: 14px 18px 8px; border-bottom: 0; }
.kv-row { padding: 11px 18px; }
.modal { border-radius: 16px; }
.modal-foot { background: transparent; }
.adv { border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; }
.adv summary { display: flex; align-items: center; gap: 10px; padding: 13px 0; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.adv summary small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.adv[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.adv .form-grid { padding-bottom: 16px; }
.auth-side {
  background: linear-gradient(rgba(15, 23, 42, .04) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(15, 23, 42, .04) 1px, transparent 1px) 0 0 / 44px 44px, var(--surface-2);
  color: var(--text); border-right: 1px solid var(--border);
}
.brand-light { color: var(--text); }
.auth-side p { color: var(--text-2); }
.auth-points small, .auth-side-foot { color: var(--muted); }
.auth-points li > span { background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
@media (max-width: 1240px) { .topbar-title p { display: none; } }
@media (max-width: 900px) {
  .topbar { padding: 0 14px; height: 60px; }
  .topbar-title h1 { font-size: 17px; }
  .content { padding: 8px 14px 40px; }
  .grid, .stack { gap: 14px; }
}
@media (max-width: 560px) {
  .kpi { padding: 18px; }
  .card-head { padding: 18px 18px 0; }
  .card-body { padding: 16px 18px 18px; }
  .table th, .table td { padding: 12px 14px; }
  .feed-item, .sheet-row, .wallet, .endpoint { padding-left: 18px; padding-right: 18px; }
}

/* ============ v4 — kurumsal ödeme paneli ============ */
:root {
  --bg: #f3f5f9; --surface-2: #f8fafc; --surface-3: #eef1f6;
  --border: #e4e8ef; --border-strong: #cfd6e2;
  --text: #101828; --text-2: #344054; --muted: #667085;
  --brand: #1554f0; --primary: #1554f0; --primary-600: #0f43c9; --primary-soft: #eaf0ff; --primary-ink: #0f43c9;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 8px 24px -12px rgba(16, 24, 40, .14);
  --radius: 12px; --side-active: #eaf0ff; --sidebar-w: 244px;
}
:root[data-theme="dark"] { --shadow-sm: none; }
.sidebar { padding: 0 12px 14px; box-shadow: 1px 0 0 var(--border); border-right: 0; }
.sidebar .brand { height: 64px; padding: 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--border); margin-left: -12px; margin-right: -12px; padding-left: 22px; font-size: 19px; letter-spacing: -.03em; }
.brand-mark { width: 32px; height: 32px; }
.nav a, .nav-more summary { padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.nav a.active { background: var(--side-active); color: var(--primary-ink); font-weight: 650; }
.nav a.active::before { display: block; left: -12px; top: 8px; bottom: 8px; width: 3px; background: var(--primary); border-radius: 0 3px 3px 0; }
.topbar { height: 64px; background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 32px; backdrop-filter: none; }
.topbar-title h1 { font-size: 18px; }
.topbar-title p { font-size: 12.5px; }
.search-btn { background: var(--surface-2); }
.avatar { background: var(--brand); }
.content { padding: 24px 32px 64px; max-width: 1480px; }
.card { box-shadow: var(--shadow-sm); border-radius: var(--radius); }
.kpi { padding: 20px 22px 18px; }
.kpi-top { color: var(--text-2); font-weight: 500; }
.kpi-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.kpi-ico.blue { background: var(--info-soft); color: var(--info); }
.kpi-ico.amber { background: var(--warn-soft); color: var(--warn); }
.kpi-ico.red { background: var(--danger-soft); color: var(--danger); }
.kpi-ico.green { background: var(--success-soft); color: var(--success); }
.kpi-ico .svg-icon { width: 18px; height: 18px; }
.kpi-val { font-size: clamp(24px, 2vw, 29px); font-weight: 700; letter-spacing: -.03em; }
.table th { background: var(--surface-2); border-top: 1px solid var(--border); font-size: 11.5px; padding: 11px 20px; color: var(--muted); }
.card > .table-wrap:first-child .table th, .toolbar + .table-wrap .table th { border-top: 0; }
.table td { padding: 14px 20px; }


.btn { border-radius: 8px; font-weight: 600; }
.btn-primary { background: var(--brand); box-shadow: 0 1px 2px rgba(21, 84, 240, .35); }
.input, .select { border-radius: 8px; }
.tabs { background: var(--surface-3); border-radius: 8px; }
.tabs button { border-radius: 6px; }
.badge { border-radius: 6px; padding: 3px 9px; }
.modal-foot { background: var(--surface-2); }
.kv-title { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 10px 18px; }

.hero { order: -1; display: flex; align-items: center; gap: 28px 40px; flex-wrap: wrap; padding: 26px 30px; border-radius: 16px; color: #fff;
  background: radial-gradient(700px 300px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(120deg, #0b2a8a 0%, #1554f0 55%, #2f7bff 100%);
  box-shadow: 0 12px 32px -16px rgba(21, 84, 240, .6); }
.hero-main { display: grid; gap: 4px; flex: 1 1 280px; min-width: 0; }
.hero-main span { font-size: 13.5px; font-weight: 500; opacity: .85; }
.hero-main strong { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-main small { font-size: 12.5px; opacity: .7; }
.hero-stats { display: flex; gap: 0; flex-wrap: wrap; }
.hero-stats > div { display: grid; gap: 3px; padding: 4px 26px; border-left: 1px solid rgba(255, 255, 255, .22); }
.hero-stats span { font-size: 12.5px; opacity: .8; white-space: nowrap; }
.hero-stats b { font-size: 16.5px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-white, .btn-white:hover { background: #fff; color: #0f43c9; border-color: #fff; }
.btn-glass, .btn-glass:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-white:hover, .btn-glass:hover { filter: brightness(.96); }

.auth-side {
  background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(800px 500px at 100% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(150deg, #0b2a8a 0%, #1554f0 60%, #2f7bff 100%);
  color: #fff; border-right: 0;
}
.brand-light { color: #fff; }
.auth-side p { color: rgba(255, 255, 255, .82); }
.auth-points small { color: rgba(255, 255, 255, .7); }
.auth-side-foot { color: rgba(255, 255, 255, .55); }
.auth-points li > span { background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .2); }
@media (max-width: 900px) {
  .topbar { padding: 0 14px; height: 60px; }
  .content { padding: 16px 14px 40px; }
  .hero { padding: 22px 20px; }
  .hero-stats > div { padding: 4px 18px 4px 0; border-left: 0; }
}

/* ============ v5 — koyu menü, altın-turuncu marka, zengin kartlar ============ */
:root {
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #f8f9fb; --surface-3: #eef0f4;
  --border: #e3e6ec; --border-strong: #cdd2dc;
  --text: #12141a; --text-2: #3a3f4b; --muted: #6b7280;
  --brand: #f5a524; --primary: #f08c0a; --primary-600: #d97706; --primary-soft: #fff4de; --primary-ink: #b45309;
  --accent: #14b8a6;
  --success: #0a9d63; --success-soft: #e0f7ec; --warn: #b7791f; --warn-soft: #fdf1d3; --danger: #dc2f3f; --danger-soft: #fde8ea; --info: #2563eb; --info-soft: #e6eeff;
  --side-bg: #0f1115; --side-bg-2: #15181e; --side-line: rgba(255, 255, 255, .07); --side-text: #a3a9b6; --side-muted: #6b7280;
  --side-hover: rgba(255, 255, 255, .05); --side-active: rgba(245, 165, 36, .13);
  --shadow-sm: 0 1px 2px rgba(18, 20, 26, .05), 0 1px 3px rgba(18, 20, 26, .04);
}
:root[data-theme="dark"] {
  --bg: #0b0d11; --surface: #14171d; --surface-2: #191d24; --surface-3: #20252e; --border: #232832; --border-strong: #333a47;
  --text: #f1f3f6; --text-2: #c3c8d2; --muted: #8b92a0;
  --brand: #f5a524; --primary: #f5a524; --primary-600: #e0900a; --primary-soft: rgba(245, 165, 36, .15); --primary-ink: #fbbf5a;
  --side-bg: #0b0d11; --side-bg-2: #0f1216; --side-line: rgba(255, 255, 255, .06); --side-text: #a3a9b6; --side-muted: #6b7280;
  --side-hover: rgba(255, 255, 255, .05); --side-active: rgba(245, 165, 36, .13); --shadow-sm: none;
}
:focus-visible { outline-color: var(--brand); }
::selection { background: rgba(245, 165, 36, .3); }

/* menü */
.sidebar { background: linear-gradient(180deg, var(--side-bg), var(--side-bg-2)); box-shadow: none; border-right: 1px solid var(--side-line); }
.sidebar .brand { color: #fff; border-bottom: 1px solid var(--side-line); }
.brand-mark rect { fill: var(--brand); }
.brand-mark path { stroke: #14161c; }
.nav a, .nav-more summary { color: var(--side-text); }
.nav a:hover, .nav-more summary:hover { color: #fff; background: var(--side-hover); }
.nav a.active { background: var(--side-active); color: #ffc55c; }
.nav a.active::before { background: var(--brand); }
.nav a.active .svg-icon { color: var(--brand); }
.nav-more { border-top-color: var(--side-line); }
.net-card { background: rgba(255, 255, 255, .04); border-color: var(--side-line); color: var(--side-text); }
.net-row strong { color: #fff; }
.net-row .mono { color: #e5e7eb; }
.net-ok { color: #4ade80; }

/* üst çubuk */
.topbar { background: var(--surface); }
.avatar { background: linear-gradient(135deg, #fbbf3c, #f08c0a); color: #1a1205; }
.lang-btn span.on { background: var(--primary-soft); color: var(--primary-ink); }
.link { color: var(--primary-ink); }

/* düğmeler */
.btn-primary, .btn-primary:hover { background: linear-gradient(180deg, #fbb93a, #f09a0c); border-color: #e0900a; color: #1a1205; box-shadow: 0 1px 2px rgba(240, 140, 10, .4); }
.btn-primary:hover { filter: brightness(.96); }
.progress-bar { background: linear-gradient(90deg, #fbb93a, #f08c0a); }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(245, 165, 36, .22); }
.tabs button.active { color: var(--text); }
.utabs button.active { color: var(--primary-ink); }
.utabs button.active::after { background: var(--brand); height: 3px; }

/* özet şeridi */
.hero { background: radial-gradient(620px 280px at 88% -10%, rgba(245, 165, 36, .42), transparent 65%), radial-gradient(420px 220px at 0% 120%, rgba(20, 184, 166, .22), transparent 70%), linear-gradient(120deg, #0f1115 0%, #1a1d25 55%, #252932 100%);
  box-shadow: 0 16px 40px -20px rgba(15, 17, 21, .7); border: 1px solid rgba(255, 255, 255, .06); }
.hero-main strong { background: linear-gradient(90deg, #ffd27a, #f5a524); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats > div { border-left-color: rgba(255, 255, 255, .14); }
.btn-white, .btn-white:hover { background: linear-gradient(180deg, #fbb93a, #f09a0c); color: #1a1205; border-color: #e0900a; }
.health { order: -1; }

/* kartlar */
.card { border-radius: 14px; }
.kpi { position: relative; padding: 20px 22px 16px; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #fbb93a, #f08c0a); }
.kpi:has(.kpi-ico.green)::before { background: linear-gradient(180deg, #34d399, #059669); }
.kpi:has(.kpi-ico.blue)::before { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.kpi:has(.kpi-ico.red)::before { background: linear-gradient(180deg, #fb7185, #dc2f3f); }
.kpi:has(.kpi-ico.amber)::before { background: linear-gradient(180deg, #fcd34d, #d97706); }
.kpi-ico { width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #fbb93a, #f08c0a); box-shadow: 0 6px 14px -6px rgba(240, 140, 10, .7); }
.kpi-ico.green { color: #fff; background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 6px 14px -6px rgba(5, 150, 105, .7); }
.kpi-ico.blue { color: #fff; background: linear-gradient(135deg, #60a5fa, #2563eb); box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .7); }
.kpi-ico.red { color: #fff; background: linear-gradient(135deg, #fb7185, #dc2f3f); box-shadow: 0 6px 14px -6px rgba(220, 47, 63, .7); }
.kpi-ico.amber { color: #fff; background: linear-gradient(135deg, #fcd34d, #d97706); box-shadow: 0 6px 14px -6px rgba(217, 119, 6, .7); }
.kpi-ico .svg-icon { width: 19px; height: 19px; stroke-width: 2; }
.kpi-top { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.kpi-val { font-size: clamp(25px, 2.1vw, 31px); font-weight: 750; }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
a.kpi { transition: transform .15s, box-shadow .15s; }
.card-head h3 { font-size: 16px; font-weight: 700; }
.bar i { background: linear-gradient(90deg, #fbb93a, #f08c0a); }
.live-tag { padding: 4px 10px; border-radius: 999px; background: var(--success-soft); }

/* tablolar */
.table th { background: var(--surface-2); color: var(--text-2); font-weight: 700; font-size: 11px; letter-spacing: .06em; }
.table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table tbody tr.click:hover td { background: var(--primary-soft); }
.table td { border-bottom-color: var(--border); }
.who-ico { color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.amount { font-weight: 700; }
.badge { border-radius: 999px; padding: 3px 10px; font-weight: 650; }
.badge.success { background: var(--success-soft); color: var(--success); }
.tchip { border-radius: 999px; padding: 3px 10px 3px 7px; }
.feed-dir.dep { background: var(--success-soft); color: var(--success); }
.feed-dir.pay { background: var(--info-soft); color: var(--info); }
.feed-item:hover { background: var(--primary-soft); }
.rank-row .bar { height: 8px; }
.notif-item.unread { background: var(--primary-soft); }
.cmdk-item.sel { background: var(--primary-soft); }
.endpoint.active { box-shadow: inset 3px 0 0 var(--brand); }
.role.owner { background: var(--primary-soft); color: var(--primary-ink); }
.actor i { background: linear-gradient(135deg, #fbb93a, #f08c0a); color: #1a1205; }

/* giriş */
.auth-side { background: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
  radial-gradient(760px 460px at 100% 0%, rgba(245, 165, 36, .38), transparent 62%), radial-gradient(520px 320px at 0% 100%, rgba(20, 184, 166, .2), transparent 70%), linear-gradient(150deg, #0f1115 0%, #191c23 60%, #23272f 100%); }
.auth-side h2 { background: linear-gradient(90deg, #fff, #ffd27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-points li > span { background: var(--brand); box-shadow: 0 0 0 5px rgba(245, 165, 36, .22); }
#feed { max-height: 322px; overflow-y: auto; scrollbar-width: thin; }
.hero-main strong { padding-bottom: 2px; }
.content > * { animation: none; }

/* ============ v6 — Poppins, kurumsal mavi / lacivert ============ */
:root {
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f6f8fc; --surface-3: #edf1f8;
  --border: #e3e8f1; --border-strong: #cbd4e4;
  --text: #0f2666; --text-2: #2b3f78; --muted: #6a7799;
  --brand: #0a5fd0; --primary: #0a5fd0; --primary-600: #084fae; --primary-soft: #e8f1fd; --primary-ink: #0a5fd0;
  --accent: #14b8a6;
  --success: #0a9d63; --success-soft: #e2f7ee; --warn: #b7791f; --warn-soft: #fdf2d6; --danger: #dc2f3f; --danger-soft: #fde9eb; --info: #0a5fd0; --info-soft: #e8f1fd;
  --side-bg: #0a5fd0; --side-bg-2: #084fae; --side-line: rgba(255, 255, 255, .16); --side-text: rgba(255, 255, 255, .86); --side-muted: rgba(255, 255, 255, .6);
  --side-hover: rgba(255, 255, 255, .12); --side-active: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 38, 102, .04), 0 2px 8px -2px rgba(15, 38, 102, .06);
  --shadow: 0 2px 6px rgba(15, 38, 102, .06), 0 14px 32px -14px rgba(15, 38, 102, .2);
  --radius: 16px;
}
:root[data-theme="dark"] {
  --bg: #08122e; --surface: #0f1d42; --surface-2: #13234d; --surface-3: #1a2c5c; --border: #1f3266; --border-strong: #2e4484;
  --text: #f1f5ff; --text-2: #c4d0ee; --muted: #8fa0c8;
  --brand: #2f80ed; --primary: #5a9cf5; --primary-600: #2f80ed; --primary-soft: rgba(90, 156, 245, .16); --primary-ink: #9cc3fb;
  --info: #5a9cf5; --info-soft: rgba(90, 156, 245, .16);
  --side-bg: #0b1840; --side-bg-2: #0a1536; --side-line: rgba(255, 255, 255, .08); --side-text: rgba(255, 255, 255, .8); --side-muted: rgba(255, 255, 255, .5);
  --side-hover: rgba(255, 255, 255, .07); --side-active: rgba(90, 156, 245, .2); --shadow-sm: none;
}
body { font-family: var(--font); font-size: 14px; font-feature-settings: normal; letter-spacing: 0; }
h1, h2, h3, .kpi-val, .hero-main strong, .brand { letter-spacing: -.01em; }
.chart text { font-family: var(--font); }
:focus-visible { outline-color: var(--brand); }
::selection { background: rgba(10, 95, 208, .2); }

/* menü: mavi zemin, beyaz etkin öğe */
.sidebar { background: linear-gradient(180deg, var(--side-bg), var(--side-bg-2)); border-right: 0; }
.sidebar .brand { color: #fff; font-weight: 700; font-size: 20px; border-bottom-color: var(--side-line); }
.brand-mark rect { fill: #fff; }
.brand-mark path { stroke: #0a5fd0; }
.auth-brand-mobile .brand-mark rect, .install .brand-mark rect { fill: var(--brand); }
.auth-brand-mobile .brand-mark path, .install .brand-mark path { stroke: #fff; }
.nav a, .nav-more summary { color: var(--side-text); font-weight: 500; border-radius: 12px; padding: 11px 14px; }
.nav a:hover, .nav-more summary:hover { color: #fff; background: var(--side-hover); }
.nav a.active { background: var(--side-active); color: #0a5fd0; font-weight: 600; box-shadow: 0 6px 16px -8px rgba(4, 30, 80, .5); }
.nav a.active .svg-icon { color: #0a5fd0; }
.nav a.active::before { display: none; }
:root[data-theme="dark"] .nav a.active, :root[data-theme="dark"] .nav a.active .svg-icon { color: #fff; box-shadow: none; }
.nav-more { border-top-color: var(--side-line); }
.nav-more summary .svg-icon:last-child { color: var(--side-muted); }
.nav-badge { background: #fff; color: #dc2f3f; }
.nav a.active .nav-badge { background: #dc2f3f; color: #fff; }
.net-card { background: rgba(255, 255, 255, .1); border-color: var(--side-line); color: var(--side-text); border-radius: 14px; }
.net-row strong { color: #fff; }
.net-row .mono { color: #fff; }
.net-ok { color: #a7f3d0; }

/* üst çubuk */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-title h1 { font-size: 19px; font-weight: 700; }
.avatar { background: var(--text); color: #fff; border-radius: 12px; }
:root[data-theme="dark"] .avatar { background: var(--brand); }
.search-btn, .icon-btn, .lang-btn { border-radius: 12px; }
.lang-btn span.on { background: var(--primary-soft); color: var(--primary-ink); }
.link { color: var(--primary-ink); }

/* düğmeler, form */
.btn { border-radius: 12px; font-weight: 600; height: 40px; padding: 0 18px; }
.btn-sm { border-radius: 10px; height: 32px; padding: 0 12px; }
.btn-primary, .btn-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px rgba(10, 95, 208, .7); }
.btn-primary:hover { filter: brightness(.93); }
.btn-block { border-radius: 14px; height: 48px; }
.input, .select { border-radius: 12px; height: 42px; }
.toolbar .input, .toolbar .select { height: 40px; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 95, 208, .16); }
.progress-bar { background: var(--brand); }
.tabs { border-radius: 12px; background: var(--surface-3); }
.tabs button { border-radius: 9px; font-weight: 600; }
.utabs button.active { color: var(--primary-ink); }
.utabs button.active::after { background: var(--brand); height: 3px; }

/* özet şeridi */
.hero { background: radial-gradient(560px 260px at 92% -20%, rgba(255, 255, 255, .22), transparent 65%), linear-gradient(120deg, #0a5fd0 0%, #0b6ee8 60%, #2a86f3 100%); border: 0; border-radius: 20px; box-shadow: 0 18px 40px -22px rgba(10, 95, 208, .8); padding: 30px 34px; }
.hero-main strong { background: none; color: #fff; -webkit-text-fill-color: #fff; font-weight: 700; }
.hero-main span { font-weight: 500; }
.hero-stats > div { border-left-color: rgba(255, 255, 255, .25); }
.hero-stats b { font-weight: 600; }
.btn-white, .btn-white:hover { background: #fff; color: #0a5fd0; border-color: #fff; box-shadow: none; }
.btn-glass, .btn-glass:hover { background: #0f2666; color: #fff; border-color: #0f2666; }

/* kartlar */
.card { border-radius: var(--radius); box-shadow: var(--shadow-sm); border-color: var(--border); }
.kpi { padding: 22px 24px 18px; }
.kpi::before { display: none; }
.kpi-top { font-size: 13px; font-weight: 500; color: var(--muted); }
.kpi-val { font-size: clamp(23px, 2vw, 29px); font-weight: 700; color: var(--text); }
.kpi-val small { font-weight: 500; }
.kpi-foot { font-size: 12.5px; }
.kpi-ico, .kpi-ico.green, .kpi-ico.blue, .kpi-ico.red, .kpi-ico.amber { width: 44px; height: 44px; border-radius: 14px; box-shadow: none; }
.kpi-ico { background: var(--primary-soft); color: var(--brand); }
.kpi-ico.green { background: var(--success-soft); color: var(--success); }
.kpi-ico.blue { background: var(--primary-soft); color: var(--brand); }
.kpi-ico.red { background: var(--danger-soft); color: var(--danger); }
.kpi-ico.amber { background: var(--warn-soft); color: var(--warn); }
.kpi-ico .svg-icon { width: 21px; height: 21px; stroke-width: 1.9; }
.card-head h3 { font-size: 16px; font-weight: 600; }
.card-head p { font-size: 12.5px; }
.bar i { background: var(--brand); }
.live-tag { background: var(--success-soft); }
.health-item strong { font-weight: 600; }
.mini strong, .wallet-val, .detail-hero .big { font-weight: 700; }

/* tablolar */
.table { font-size: 13.5px; }
.table th { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 11.5px; letter-spacing: .03em; text-transform: none; padding: 13px 20px; }
.table tbody tr:nth-child(even) td { background: transparent; }
.table tbody tr.click:hover td { background: var(--surface-2); }
.cell-main { font-weight: 600; }
.who-text strong { font-weight: 600; }
.who-ico { border-radius: 12px; font-weight: 600; }
.amount { font-weight: 600; }
.badge { border-radius: 999px; font-weight: 600; font-size: 11.5px; padding: 4px 11px; }
.tchip { border-radius: 999px; font-size: 11.5px; }
.tchip.pay { background: var(--primary-soft); color: var(--brand); }
.feed-item:hover { background: var(--surface-2); }
.feed-dir.pay { background: var(--primary-soft); color: var(--brand); }
.kv-title, .form-section, .nav-label, .health-title, .cmdk-group { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; }
.notif-item.unread, .cmdk-item.sel { background: var(--primary-soft); }
.endpoint.active { box-shadow: inset 3px 0 0 var(--brand); }
.actor i { background: var(--brand); color: #fff; }
.role.owner { background: var(--primary-soft); color: var(--primary-ink); }
.modal { border-radius: 20px; }
.modal-foot { border-radius: 0 0 20px 20px; }
.kv, .flow-box, .detail-hero, .adv, .resolve, .code, .keybox { border-radius: 14px; }

/* giriş */
.auth-side { background: radial-gradient(760px 460px at 100% 0%, rgba(255, 255, 255, .2), transparent 62%), linear-gradient(150deg, #084fae 0%, #0a5fd0 50%, #2a86f3 100%); color: #fff; }
.auth-side h2 { background: none; color: #fff; -webkit-text-fill-color: #fff; font-weight: 700; font-size: 36px; line-height: 1.2; }
.auth-side p { color: rgba(255, 255, 255, .88); }
.auth-points strong { font-weight: 600; }
.auth-points small { color: rgba(255, 255, 255, .75); }
.auth-points li > span { background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .22); }
.auth-side-foot { color: rgba(255, 255, 255, .6); }
.auth-card h1 { font-weight: 700; font-size: 26px; }

/* ============ Animasyonlar ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes growY { from { transform: scaleY(0); } }
@keyframes growX { from { transform: scaleX(0); } }
@keyframes spinIn { from { opacity: 0; transform: rotate(-70deg) scale(.9); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes floatGlow { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 18px) scale(1.12); } }
@keyframes sheen { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(320%) skewX(-18deg); } }
@keyframes badgePop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* sayfa girişi: kartlar sırayla yükselir */
#view.anim-in > *, #view.anim-in .stack > *, #view.anim-in .grid > * { animation: fadeUp .5s cubic-bezier(.2, .8, .2, 1) both; }
#view.anim-in .stack > :nth-child(2), #view.anim-in .grid > :nth-child(2) { animation-delay: .06s; }
#view.anim-in .stack > :nth-child(3), #view.anim-in .grid > :nth-child(3) { animation-delay: .12s; }
#view.anim-in .stack > :nth-child(4), #view.anim-in .grid > :nth-child(4) { animation-delay: .18s; }
#view.anim-in .stack > :nth-child(5) { animation-delay: .24s; }
#view.anim-in .stack > :nth-child(n+6) { animation-delay: .3s; }
#view.anim-in .hero { order: -1; }
#view.anim-in .table tbody tr { animation: fadeIn .4s both; }
#view.anim-in .table tbody tr:nth-child(2) { animation-delay: .03s; }
#view.anim-in .table tbody tr:nth-child(3) { animation-delay: .06s; }
#view.anim-in .table tbody tr:nth-child(4) { animation-delay: .09s; }
#view.anim-in .table tbody tr:nth-child(5) { animation-delay: .12s; }
#view.anim-in .table tbody tr:nth-child(6) { animation-delay: .15s; }
#view.anim-in .table tbody tr:nth-child(7) { animation-delay: .18s; }
#view.anim-in .table tbody tr:nth-child(n+8) { animation-delay: .21s; }
#view.anim-in .feed-item, #view.anim-in .sheet-row, #view.anim-in .rank-row, #view.anim-in .legend > div { animation: fadeUp .4s both; }
#view.anim-in .feed-item:nth-child(2), #view.anim-in .sheet-row:nth-child(2), #view.anim-in .rank-row:nth-child(2), #view.anim-in .legend > div:nth-child(2) { animation-delay: .05s; }
#view.anim-in .feed-item:nth-child(3), #view.anim-in .sheet-row:nth-child(3), #view.anim-in .rank-row:nth-child(3), #view.anim-in .legend > div:nth-child(3) { animation-delay: .1s; }
#view.anim-in .feed-item:nth-child(4), #view.anim-in .sheet-row:nth-child(4), #view.anim-in .rank-row:nth-child(4), #view.anim-in .legend > div:nth-child(4) { animation-delay: .15s; }
#view.anim-in .feed-item:nth-child(n+5), #view.anim-in .sheet-row:nth-child(n+5), #view.anim-in .rank-row:nth-child(n+5), #view.anim-in .legend > div:nth-child(n+5) { animation-delay: .2s; }

/* grafikler: çizgi çizilir, sütunlar büyür, halka döner */
#view.anim-in .ln { stroke-dasharray: 1; animation: draw 1.2s cubic-bezier(.4, 0, .2, 1) .15s both; }
#view.anim-in .ar { animation: fadeIn .9s .5s both; }
#view.anim-in .br { transform-box: fill-box; transform-origin: 50% 100%; animation: growY .55s cubic-bezier(.2, .8, .2, 1) both; }
#view.anim-in .bar i, #view.anim-in .stackbar i, #view.anim-in .risk b { transform-origin: left center; animation: growX .9s cubic-bezier(.2, .8, .2, 1) .2s both; }
#view.anim-in #chart-donut svg { transform-origin: 50% 50%; animation: spinIn .9s cubic-bezier(.2, .8, .2, 1) .15s both; }

/* özet şeridi: yavaş süzülen ışık ve tek seferlik parıltı */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero > * { position: relative; z-index: 1; }
.hero::before { content: ''; position: absolute; z-index: 0; right: -80px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); animation: floatGlow 9s ease-in-out infinite; pointer-events: none; }
#view.anim-in .hero::after { content: ''; position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); animation: sheen 1.4s ease-out .35s both; pointer-events: none; }

/* etkileşim: kartlar, düğmeler, menü */
.card { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi-ico { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.kpi:hover .kpi-ico { transform: scale(1.08) rotate(-4deg); }
.btn { transition: background .15s, border-color .15s, transform .12s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.icon-btn { transition: background .15s, border-color .15s, transform .12s; }
.icon-btn:active { transform: scale(.92); }
.nav a, .nav-more summary { transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
.nav a .svg-icon { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.nav a:hover .svg-icon { transform: translateX(2px) scale(1.06); }
.nav a:active { transform: scale(.98); }
.nav-more[open] > a { animation: fadeUp .25s both; }
.nav-more[open] > a:nth-of-type(2) { animation-delay: .03s; }
.nav-more[open] > a:nth-of-type(3) { animation-delay: .06s; }
.nav-more[open] > a:nth-of-type(4) { animation-delay: .09s; }
.table tbody tr.click td { transition: background .15s; }
.who-ico, .feed-dir { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
tr.click:hover .who-ico, .feed-item:hover .feed-dir { transform: scale(1.08); }
.tabs button, .utabs button { transition: color .15s, background .2s, box-shadow .2s; }
.utabs button::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 2px 2px 0 0; background: var(--brand); transform: scaleX(0); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.utabs button.active::after { transform: scaleX(1); }
.input, .select { transition: border-color .15s, box-shadow .2s; }
.copy { transition: color .15s, transform .12s; }
.copy:active { transform: scale(.85); }
.endpoint, .notif-item, .cmdk-item { transition: background .15s; }

/* açılır öğeler */
.menu:not([hidden]), .notif-panel:not([hidden]) { animation: dropIn .18s cubic-bezier(.2, .8, .2, 1); transform-origin: top right; }
.toast { animation: slideIn .28s cubic-bezier(.2, .8, .2, 1); }
.modal { animation: pop .24s cubic-bezier(.2, .8, .2, 1); }
.nav-badge:not([hidden]), .notif-badge:not([hidden]) { animation: badgePop .35s cubic-bezier(.2, .8, .2, 1); }
.adv[open] > .form-grid, #tx-adv:not([hidden]) { animation: fadeUp .25s both; }

/* giriş sayfası */
.auth-side-inner > * { animation: fadeUp .6s cubic-bezier(.2, .8, .2, 1) both; }
.auth-side-inner > :nth-child(2) { animation-delay: .08s; }
.auth-side-inner > :nth-child(3) { animation-delay: .16s; }
.auth-side-inner > :nth-child(4) { animation-delay: .24s; }
.auth-points li { animation: fadeUp .5s both; }
.auth-points li:nth-child(1) { animation-delay: .3s; }
.auth-points li:nth-child(2) { animation-delay: .38s; }
.auth-points li:nth-child(3) { animation-delay: .46s; }
.auth-points li:nth-child(4) { animation-delay: .54s; }
.auth-card > * { animation: fadeUp .5s cubic-bezier(.2, .8, .2, 1) both; }
.auth-card > :nth-child(2) { animation-delay: .06s; }
.auth-card > :nth-child(3) { animation-delay: .12s; }
.auth-card > :nth-child(4) { animation-delay: .18s; }
.auth-card > :nth-child(n+5) { animation-delay: .24s; }
.auth-side { position: relative; }
.auth-side::before { content: ''; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 65%); animation: floatGlow 11s ease-in-out infinite; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

/* ============ İşlem detayı: yatay (iki sütun) ============ */
.modal.tx { max-width: 1200px; }
.modal.tx .modal-body { display: block; column-count: 2; column-gap: 20px; padding: 22px 24px 8px; }
.modal.tx .modal-body > * { break-inside: avoid; margin: 0 0 16px; }
.modal.tx .modal-body > .detail-hero, .modal.tx .modal-body > .flow, .modal.tx .modal-body > .skeleton, .modal.tx .modal-body > .alert { column-span: all; }
.modal.tx .kv-row { grid-template-columns: 150px minmax(0, 1fr); padding: 9px 16px; font-size: 13px; }
.modal.tx .detail-hero { padding: 18px 22px; }
.modal-back:has(.modal.tx) { padding-top: 4vh; padding-bottom: 4vh; }
@media (max-width: 1000px) {
  .modal.tx .modal-body { column-count: 1; }
}
.modal.tx { max-width: min(1400px, calc(100vw - 48px)); }
.modal.tx .kv-row { grid-template-columns: 132px minmax(0, 1fr); padding: 8px 14px; gap: 10px; }
.modal.tx .kv-title { padding: 9px 14px; }
.modal.tx .modal-body > * { margin-bottom: 14px; }
@media (min-width: 1280px) {
  .modal.tx .modal-body { column-count: 3; column-gap: 16px; }
}

/* ============ İşlem detayı v2 ============ */
.modal.tx .modal-body > .txh, .modal.tx .modal-body > .sumline, .modal.tx .modal-body > .hsteps, .modal.tx .modal-body > .resolve { column-span: all; }
.txh { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(100deg, var(--success-soft), var(--surface) 60%); flex-wrap: wrap; }
.txh.pay { background: linear-gradient(100deg, var(--primary-soft), var(--surface) 60%); }
.txh-ico { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--success); color: #fff; flex: none; box-shadow: 0 8px 18px -10px var(--success); }
.txh.pay .txh-ico { background: var(--brand); box-shadow: 0 8px 18px -10px var(--brand); }
.txh-ico .svg-icon { width: 24px; height: 24px; stroke-width: 2.2; }
.txh-main { flex: 1 1 320px; min-width: 0; display: grid; gap: 5px; }
.txh-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.txh-top strong { font-size: 18px; font-weight: 700; }
.txh-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.txh-meta .mono { color: var(--text); font-weight: 600; }
.txh-amt { text-align: right; display: grid; gap: 2px; }
.txh-amt small { font-size: 12.5px; color: var(--muted); }
.txh-amt b { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.txh-amt b span { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.sumline { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.sumline .svg-icon { margin-top: 2px; color: var(--brand); flex: none; }
.hsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 4px 0 2px; }
.hstep { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 0 8px; }
.hstep::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; border-radius: 2px; background: var(--border); z-index: 0; }
.hstep:first-child::before { display: none; }
.hstep.done::before { background: var(--success); }
.hstep.now::before { background: linear-gradient(90deg, var(--success), var(--brand)); }
.hstep.fail::before { background: linear-gradient(90deg, var(--success), var(--danger)); }
.hstep i { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 3px solid var(--border-strong); color: #fff; font-style: normal; }
.hstep i .svg-icon { width: 14px; height: 14px; stroke-width: 3; }
.hstep.done i { background: var(--success); border-color: var(--success); }
.hstep.fail i { background: var(--danger); border-color: var(--danger); }
.hstep.now i { border-color: var(--brand); box-shadow: 0 0 0 5px var(--primary-soft); animation: blink 1.4s infinite; }
.hstep strong { font-size: 13px; font-weight: 600; }
.hstep.idle strong { color: var(--muted); font-weight: 500; }
.hstep small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fin { display: grid; }
.fin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.fin-row:last-child { border-bottom: 0; }
.fin-row > span { color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fin-row > span small { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.fin-row > b { font-family: var(--mono); font-size: 13px; font-weight: 500; white-space: nowrap; }
.fin-row.pos > b { color: var(--success); }
.fin-row.neg > b { color: var(--danger); }
.fin-row.total { background: var(--surface-2); border-top: 2px solid var(--border-strong); }
.fin-row.total > span { font-weight: 600; color: var(--text); }
.fin-row.total > b { font-size: 15px; font-weight: 700; color: var(--text); }
.fin-row.total.neg > b { color: var(--danger); }
.fin-row.sub { font-size: 12.5px; padding-top: 8px; padding-bottom: 8px; }
.fin-row.sub > span { color: var(--muted); }
.balmove { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border); }
.balmove > div { display: grid; gap: 2px; }
.balmove > div:last-child { text-align: right; }
.balmove small { font-size: 12px; color: var(--muted); }
.balmove b { font-size: 17px; font-weight: 700; white-space: nowrap; }
.balmove-d { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.balmove-d.pos { background: var(--success-soft); color: var(--success); }
.balmove-d.neg { background: var(--danger-soft); color: var(--danger); }
.balmove-d .svg-icon { width: 14px; height: 14px; }
@media (max-width: 700px) {
  .hsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .hstep:nth-child(3)::before { display: none; }
  .txh-amt { text-align: left; }
  .txh-amt b { font-size: 26px; }
}
.modal.tx .kv-row > div:has(> .break) { flex-wrap: nowrap; align-items: flex-start; }
.modal.tx .kv-row .break { min-width: 0; flex: 1; }

/* ============ Bakiye işlemleri, inceleme ============ */
.balbox { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.balbox > div { padding: 10px 14px; border-right: 1px solid var(--border); display: grid; gap: 2px; background: var(--surface-2); }
.balbox > div:last-child { border-right: 0; }
.balbox small { font-size: 11.5px; color: var(--muted); }
.balbox b { font-size: 14.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 13px; color: var(--text-2); }
.seg button.active { border-color: var(--brand); background: var(--primary-soft); color: var(--primary-ink); }
.seg button .svg-icon { width: 16px; height: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.fin:empty { display: none; }
#aj-prev, #ms-prev { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
@media (max-width: 700px) { .balbox { grid-template-columns: 1fr 1fr; } .balbox > div:nth-child(2) { border-right: 0; } .seg { grid-template-columns: 1fr; } }

.mt { display: grid; gap: 1px; line-height: 1.3; }
.mt small { font-size: 11.5px; color: var(--muted); }
.mt strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.mt em { font-style: normal; font-size: 11.5px; color: var(--danger); font-weight: 500; }

/* ============ Anlık bildirim kartları ============ */
.ltoasts { position: fixed; top: 76px; right: 20px; z-index: 190; display: grid; gap: 10px; width: 360px; max-width: calc(100vw - 24px); pointer-events: none; }
.lt { --lt-c: var(--brand); --lt-play: running; position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 38px 15px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); cursor: pointer; overflow: hidden; pointer-events: auto; animation: ltIn .38s cubic-bezier(.2, .9, .25, 1.15); }
.lt::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lt-c); }
.lt.out { animation: ltOut .26s ease-in forwards; }
.lt:hover { border-color: var(--border-strong); }
.lt-success { --lt-c: var(--success); } .lt-warn { --lt-c: var(--warn); } .lt-danger { --lt-c: var(--danger); } .lt-info { --lt-c: var(--brand); }
.lt-ico { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; background: var(--lt-c); }
.lt-ico .svg-icon { width: 18px; height: 18px; stroke-width: 2.2; }
.lt-body { min-width: 0; display: grid; gap: 2px; }
.lt-body strong { font-size: 13.5px; font-weight: 650; }
.lt-body span { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.lt-body b { font-weight: 700; color: var(--text); }
.lt-body small { font-size: 11.5px; color: var(--muted); }
.lt-dim { color: var(--muted); }
.lt-x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.lt-x:hover { background: var(--surface-3); color: var(--text); }
.lt-x .svg-icon { width: 14px; height: 14px; }
.lt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--lt-c); opacity: .35; transform-origin: left; animation: ltBar linear forwards; animation-play-state: var(--lt-play); }
@keyframes ltIn { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes ltOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes ltBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 560px) { .ltoasts { top: 68px; right: 12px; left: 12px; width: auto; } }
