/* ============================================================
   Paybank — tasarım sistemi (açık / koyu)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --border: #e5e9f1;
  --border-strong: #d2d9e5;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #7b869a;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --primary-soft: #e8efff;
  --violet: #7c3aed;
  --green: #10b981; --green-soft: #e9f9f2; --green-text: #047857;
  --red: #ef4444; --red-soft: #fdecec; --red-text: #b91c1c;
  --amber: #f59e0b; --amber-soft: #fff6e0; --amber-text: #b45309;
  --blue: #3b82f6; --blue-soft: #e8f1ff; --blue-text: #1d4ed8;
  --indigo-soft: #ecefff; --indigo-text: #4338ca;
  --gray-soft: #eef2f6; --gray-text: #475569;
  --sidebar-bg: #0b1222;
  --sidebar-text: #a7b1c4;
  --sidebar-active: rgba(59, 130, 246, .22);
  --input-bg: #ffffff;
  --row-hover: #f8fafd;
  --code-bg: #0b1222; --code-text: #cbd5e1;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -14px rgba(15, 23, 42, .14);
  --shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, .3);
  --radius: 14px; --radius-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --grid-line: #eef1f6;
}
html[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #121a2e;
  --surface-2: #171f36;
  --surface-3: #1d2740;
  --border: #22304d;
  --border-strong: #2e3d5e;
  --text: #e6ebf5;
  --text-2: #b4bfd4;
  --muted: #7f8ba3;
  --primary: #3b82f6;
  --primary-600: #2f6fe0;
  --primary-700: #2a5fc4;
  --primary-soft: rgba(59, 130, 246, .16);
  --green-soft: rgba(16, 185, 129, .16); --green-text: #5ee2b2;
  --red-soft: rgba(239, 68, 68, .16); --red-text: #fb9a9a;
  --amber-soft: rgba(245, 158, 11, .16); --amber-text: #fbc565;
  --blue-soft: rgba(59, 130, 246, .16); --blue-text: #93b8ff;
  --indigo-soft: rgba(99, 102, 241, .18); --indigo-text: #b4b7ff;
  --gray-soft: rgba(148, 163, 184, .14); --gray-text: #c0c9d9;
  --sidebar-bg: #070c18;
  --sidebar-text: #93a0b8;
  --sidebar-active: rgba(59, 130, 246, .26);
  --input-bg: #0f1627;
  --row-hover: #16203a;
  --code-bg: #060a14; --code-text: #c3cde0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -16px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --grid-line: #1e2a44;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { color: var(--primary-700); }
html[data-theme="dark"] a { color: #8ab4ff; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0 0 8px; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
pre { background: var(--code-bg); color: var(--code-text); padding: 14px 16px; border-radius: var(--radius-sm); overflow: auto; margin: 8px 0; line-height: 1.55; }
code { background: var(--gray-soft); padding: 2px 6px; border-radius: 6px; }
pre code { background: none; padding: 0; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .xs { font-size: 11.5px; } .strong { font-weight: 600; }
.text-right { text-align: right; } .text-center { text-align: center; }
.text-green { color: var(--green-text); } .text-red { color: var(--red-text); } .text-amber { color: var(--amber-text); } .text-primary { color: var(--primary); }
.nowrap { white-space: nowrap; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hidden { display: none !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .items-end { align-items: flex-end; } .justify-between { justify-content: space-between; } .justify-end { justify-content: flex-end; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; } .col { display: flex; flex-direction: column; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- iskelet ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar-bg); color: var(--sidebar-text); padding: 18px 12px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background-image: radial-gradient(900px 360px at -10% -10%, rgba(37, 99, 235, .28), transparent 60%), radial-gradient(700px 300px at 120% 110%, rgba(124, 58, 237, .18), transparent 60%); }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--violet)); box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .8); flex: none; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--sidebar-text); font-weight: 500; display: block; margin-top: -2px; }
.nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #5d6a85; padding: 14px 12px 6px; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--sidebar-text); font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s; }
.nav-link svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-link.active { background: var(--sidebar-active); color: #fff; }
.nav-link.active svg { opacity: 1; color: #93c5fd; }
.nav-badge { margin-left: auto; background: rgba(255, 255, 255, .1); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.nav-badge.hot { background: rgba(239, 68, 68, .85); }
.sidebar-footer { margin-top: auto; padding: 14px 8px 2px; border-top: 1px solid rgba(255, 255, 255, .07); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip .btn-ghost { color: var(--sidebar-text); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #1e3a8a, #4c1d95); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.user-chip .name { color: #fff; font-weight: 600; font-size: 13px; line-height: 1.2; }
.user-chip .email { color: var(--sidebar-text); font-size: 11.5px; }
.user-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; padding: 4px 6px; margin: -4px 0 -4px -6px; border-radius: 10px; }
.user-link:hover { background: rgba(255, 255, 255, .06); }

.form-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .form-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Teslim komisyon önizleme */
.delivery-quote { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.delivery-quote > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.delivery-quote span { font-size: 11.5px; color: var(--muted); }
.delivery-quote strong { font-size: 14px; font-variant-numeric: tabular-nums; }

/* 2FA */
.otp-input { text-align: center; font-size: 26px; letter-spacing: 10px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.twofa-setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.twofa-qr { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--border); width: 188px; height: 188px; display: grid; place-items: center; }
.twofa-qr img, .twofa-qr canvas { display: block; }
.twofa-steps { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--text-2); display: grid; gap: 8px; }
.twofa-key { display: inline-block; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px dashed var(--border); font-size: 13px; letter-spacing: 1px; cursor: copy; user-select: all; color: var(--text); }
@media (max-width: 640px) { .twofa-setup { grid-template-columns: 1fr; } .twofa-qr { margin: 0 auto; } }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(8px); }
.topbar .title { display: flex; flex-direction: column; }
.topbar .title h1 { font-size: 20px; }
.topbar .crumb { font-size: 12px; color: var(--muted); }
.topbar .actions { display: flex; gap: 8px; align-items: center; }
.content { padding: 6px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.menu-toggle { display: none; }
.theme-toggle .i-moon { display: none; } html[data-theme="dark"] .theme-toggle .i-sun { display: none; } html[data-theme="dark"] .theme-toggle .i-moon { display: inline; }
.theme-toggle.floating { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); box-shadow: var(--shadow); }
.theme-toggle.floating svg { width: 18px; height: 18px; }

/* ---------- kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { font-size: 15px; }
.card-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 18px; } .card-body.tight { padding: 0; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .cols-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .cols-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 5px; position: relative; overflow: hidden; }
.stat .label { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.stat .delta { font-size: 12.5px; color: var(--text-2); }
.stat .icon { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.stat .icon svg { width: 19px; height: 19px; }
.stat.green .icon { background: var(--green-soft); color: var(--green); } .stat.red .icon { background: var(--red-soft); color: var(--red); } .stat.amber .icon { background: var(--amber-soft); color: var(--amber); } .stat.blue .icon { background: var(--blue-soft); color: var(--blue); }
.stat.gradient { background: linear-gradient(135deg, #1d4ed8, #6d28d9); color: #fff; border: none; }
.stat.gradient .label, .stat.gradient .delta, .stat.gradient .value small { color: rgba(255, 255, 255, .8); } .stat.gradient .icon { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; font-family: inherit; line-height: 1.3; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:active { transform: translateY(1px); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(37, 99, 235, .7); }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.btn-danger { background: var(--red-soft); border-color: transparent; color: var(--red-text); } .btn-danger:hover { background: var(--red); color: #fff; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; } .btn-success:hover { background: #059669; border-color: #059669; color: #fff; }
.btn-warn { background: var(--amber-soft); border-color: transparent; color: var(--amber-text); } .btn-warn:hover { background: var(--amber); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); } .btn-ghost:hover { background: var(--gray-soft); border-color: transparent; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; } .btn-sm svg { width: 14px; height: 14px; }
.btn-xs { padding: 3px 8px; font-size: 12px; border-radius: 7px; } .btn-xs svg { width: 13px; height: 13px; }
.btn-lg { padding: 12px 20px; font-size: 15px; border-radius: 12px; } .btn-block { width: 100%; } .btn-icon { padding: 7px; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------- rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.badge-gray { background: var(--gray-soft); color: var(--gray-text); } .badge-green { background: var(--green-soft); color: var(--green-text); } .badge-red { background: var(--red-soft); color: var(--red-text); }
.badge-amber { background: var(--amber-soft); color: var(--amber-text); } .badge-blue { background: var(--blue-soft); color: var(--blue-text); } .badge-indigo { background: var(--indigo-soft); color: var(--indigo-text); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; } .badge.pulse .dot { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 8px; background: var(--surface-3); font-size: 12px; font-weight: 600; color: var(--text-2); }

/* ---------- tablolar ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--row-hover); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.row-link { color: var(--text); font-weight: 600; } .table a.row-link:hover { color: var(--primary); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.table tfoot td { font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--border); }
.table.compact td { padding: 7px 12px; } .table.compact th { padding: 8px 12px; }
.table tr.hot td { background: color-mix(in srgb, var(--red-soft) 60%, var(--surface)); }
.table tr.warm td { background: color-mix(in srgb, var(--amber-soft) 50%, var(--surface)); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; margin-bottom: 10px; opacity: .4; } .empty h3 { color: var(--text-2); margin-bottom: 4px; }
.cell-2 { display: flex; flex-direction: column; line-height: 1.3; } .cell-2 .sub { font-size: 12px; color: var(--muted); }

/* ---------- formlar ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint, .hint { font-size: 12px; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=datetime-local], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--input-bg); font: inherit; font-size: 14px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%237b869a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
.input-group { display: flex; } .input-group input { border-radius: 10px 0 0 10px; }
.input-group .addon { padding: 9px 12px; border: 1px solid var(--border-strong); border-left: none; border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--muted); font-size: 13px; white-space: nowrap; display: flex; align-items: center; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; } .check input { width: 16px; height: 16px; accent-color: var(--primary); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + .track { background: var(--primary); } .switch input:checked + .track::after { transform: translateX(16px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.form-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filters .field { min-width: 150px; } .filters input, .filters select { padding: 7px 11px; font-size: 13.5px; }
.filters .quick { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.filters .quick a { padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-3); }
.filters .quick a:hover { color: var(--primary); }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form input { width: 110px; padding: 5px 9px; font-size: 13px; }

/* ---------- uyarılar ---------- */
.alert { padding: 12px 16px; border-radius: 12px; border: 1px solid; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert > strong, .alert > span, .alert > div, .alert > p { display: inline; }
.alert > div, .alert > p { display: block; flex: 1; margin: 0; }
.alert-success { background: var(--green-soft); border-color: transparent; color: var(--green-text); }
.alert-error { background: var(--red-soft); border-color: transparent; color: var(--red-text); }
.alert-warning { background: var(--amber-soft); border-color: transparent; color: var(--amber-text); }
.alert-info { background: var(--blue-soft); border-color: transparent; color: var(--blue-text); }
.flashes { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.flashes .alert { box-shadow: var(--shadow-lg); animation: slideIn .25s ease-out; background: var(--surface); border-color: var(--border); }
.flashes .alert .close { margin-left: auto; background: none; border: none; cursor: pointer; color: inherit; opacity: .6; font-size: 16px; line-height: 1; padding: 0 2px; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- sayfalama / sekmeler ---------- */
.pagination { display: flex; gap: 4px; align-items: center; justify-content: flex-end; padding: 12px 16px; font-size: 13px; }
.pagination a, .pagination span { padding: 5px 10px; border-radius: 8px; color: var(--text-2); }
.pagination a:hover { background: var(--gray-soft); } .pagination .current { background: var(--primary); color: #fff; font-weight: 600; } .pagination .info { margin-right: auto; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 16px; overflow-x: auto; }
.tabs a { padding: 11px 12px; font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); } .tabs a.active { color: var(--primary); border-color: var(--primary); }
.tabs a .n { background: var(--gray-soft); padding: 0 6px; border-radius: 6px; font-size: 11px; margin-left: 4px; color: var(--text-2); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills a { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-3); }
.pills a.active { background: var(--primary); color: #fff; }

/* ---------- kasa ---------- */
.kasa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.kasa-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kasa-card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.kasa-card .name { font-weight: 700; font-size: 14.5px; }
.kasa-card .rows { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.kasa-card .rows .k { color: var(--muted); } .kasa-card .rows .v { font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; }
.kasa-card .live { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px dashed var(--border); }
.kasa-card .live .amt { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kasa-card .live .net { font-size: 12px; color: var(--muted); }
.kasa-card .foot { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.kasa-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kasa-summary .box { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.kasa-summary .box .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.kasa-summary .box .v { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.ledger-amt.pos { color: var(--green-text); font-weight: 600; } .ledger-amt.neg { color: var(--red-text); font-weight: 600; }

/* ---------- diğer ---------- */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13.5px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; } .timeline li:last-child { border-bottom: none; }
.timeline .t { color: var(--muted); white-space: nowrap; min-width: 110px; font-size: 12px; }
.progress { height: 8px; background: var(--gray-soft); border-radius: 999px; overflow: hidden; display: flex; } .progress .bar { height: 100%; background: var(--primary); transition: width .4s; }
.progress .bar.warn { background: var(--amber); } .progress .bar.danger { background: var(--red); } .progress .bar.ok { background: var(--green); }
.chart-box { position: relative; height: 260px; }
.copy { cursor: pointer; }
.log-box { background: var(--code-bg); color: #a5b4fc; font-family: var(--mono); font-size: 12px; padding: 14px; border-radius: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap; line-height: 1.55; }
details.collapse summary { cursor: pointer; font-weight: 600; color: var(--text-2); list-style: none; display: flex; align-items: center; gap: 6px; }
details.collapse summary::-webkit-details-marker { display: none; } details.collapse summary::before { content: '▸'; font-size: 11px; transition: transform .15s; } details.collapse[open] summary::before { transform: rotate(90deg); }
.modal-bg { position: fixed; inset: 0; background: rgba(2, 6, 23, .55); z-index: 90; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); animation: slideIn .2s ease-out; }
.modal .card-head h3 { font-size: 15px; }
.amount-big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.notice-strip { padding: 10px 14px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-text); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.notice-strip svg { width: 16px; height: 16px; flex: none; }
.capacity { display: flex; align-items: center; gap: 8px; font-size: 12.5px; } .capacity .progress { flex: 1; min-width: 80px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }

/* ---------- giriş ---------- */
.auth-body { background: var(--bg); min-height: 100vh; margin: 0; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: #0b1222; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  background-image: radial-gradient(900px 500px at 10% 0%, rgba(37, 99, 235, .5), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(124, 58, 237, .35), transparent 60%); }
.auth-side h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; max-width: 480px; margin: 0 0 14px; }
.auth-side p { color: #c7d2fe; font-size: 15px; max-width: 480px; }
.auth-side .features { display: grid; gap: 12px; margin-top: 28px; }
.auth-side .feature { display: flex; gap: 12px; align-items: flex-start; color: #e0e7ff; font-size: 14px; } .auth-side .feature svg { width: 20px; height: 20px; color: #93c5fd; flex: none; margin-top: 1px; }
.auth-side .fine { color: #6b7280; font-size: 12px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; } .auth-card h1 { font-size: 24px; margin-bottom: 4px; } .auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-card .field { margin-bottom: 14px; } .auth-card .btn { margin-top: 8px; }
.auth-card .switch-link { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- kurulum ---------- */
.install-wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; }
.install-card { width: 100%; max-width: 760px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 32px 36px; }
.install-head .brand { color: var(--text); padding: 0 0 12px; } .install-head h1 { font-size: 24px; }
.install-section { padding: 18px 0; border-top: 1px solid var(--border); }
.install-section h3 { margin-bottom: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.install-section .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.install-section label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13.5px; }
.check-list li { display: flex; align-items: center; gap: 8px; } .check-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); } .check-list .fail .dot { background: var(--red); } .check-list .fail { color: var(--red-text); font-weight: 600; }
.steps { padding-left: 20px; font-size: 13.5px; line-height: 1.7; }

/* ---------- ödeme sayfası ---------- */

/* ---------- hata ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px; }
.error-page .code { font-size: 72px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- duyarlı ---------- */
@media (max-width: 1200px) { .grid-5, .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kasa-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-2-1, .cols-1-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); } .menu-toggle { display: inline-flex; }
  .topbar, .content { padding-left: 14px; padding-right: 14px; }
  .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; }
  .grid-2, .grid-3, .form-row, .form-row-3, .install-section .grid-2, .check-list { grid-template-columns: 1fr; } .span-2, .span-3 { grid-column: span 1; }
  .flashes { left: 16px; right: 16px; max-width: none; } .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dt { margin-top: 8px; }
}
@media (max-width: 600px) { .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; } .kasa-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat .value { font-size: 21px; } }
.overlay { display: none; position: fixed; inset: 0; background: rgba(2, 6, 23, .45); z-index: 40; } .overlay.open { display: block; }

/* ---------- Gelişmiş filtreler ---------- */
.filters .field.grow { flex: 1 1 220px; }
.filters .field.sm { min-width: 90px; max-width: 120px; }
.filters .n { background: var(--primary); color: #fff; padding: 0 6px; border-radius: 6px; font-size: 11px; margin-left: 2px; }
.filters-extra { display: none; flex-basis: 100%; gap: 10px; flex-wrap: wrap; align-items: end; padding-top: 10px; margin-top: 2px; border-top: 1px dashed var(--border); }
.filters-extra.open { display: flex; }
.filters-extra .field { min-width: 150px; }
label.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; padding-bottom: 8px; cursor: pointer; }
label.check input { width: 15px; height: 15px; accent-color: var(--primary); }

/* ---------- Aranabilir select ---------- */
.ss { position: relative; display: inline-block; min-width: 150px; width: 100%; }
.filters .ss { width: auto; min-width: 170px; }
.ss-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; }
.ss-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 11px; font: inherit; font-size: 13.5px; color: var(--text); background: var(--input-bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; text-align: left; }
.ss-btn .ss-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-btn svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.ss-btn.placeholder .ss-label { color: var(--muted); }
.ss.open .ss-btn, .ss-btn:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
.ss-compact .ss-btn { padding: 5px 9px; font-size: 12.5px; }
.ss.disabled .ss-btn { background: var(--surface-2); color: var(--muted); pointer-events: none; }
.ss-panel { display: none; position: fixed; z-index: 140; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overflow: hidden; }
.ss-panel.up { top: auto; bottom: calc(100% + 4px); }
.ss.open .ss-panel { display: block; }
.ss-search-wrap { padding: 8px; border-bottom: 1px solid var(--border); }
.ss-search { width: 100%; padding: 7px 10px !important; font-size: 13px !important; }
.ss-list { max-height: 260px; overflow-y: auto; padding: 4px; }
.ss-group { padding: 8px 10px 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ss-item { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--text); }
.ss-item:hover, .ss-item.active { background: var(--surface-3); }
.ss-item.selected { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.ss-item.ss-empty { color: var(--muted); font-style: italic; }
.ss-item-sub { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.ss-none { padding: 14px; text-align: center; color: var(--muted); font-size: 13px; }
.table .actions .ss { min-width: 140px; max-width: 220px; }
.table td.actions { max-width: 420px; }
.drawer { max-width: 100vw; }
@media (max-width: 700px) { .drawer { width: 100vw; } }

/* ---------- Banka rozeti / ses ---------- */
.bank-badge { font-weight: 700; letter-spacing: .01em; }
.sound-toggle .i-off { display: none; } .sound-toggle.off .i-on { display: none; } .sound-toggle.off .i-off { display: inline; } .sound-toggle.off { color: var(--muted); opacity: .7; }
.alert-warn { background: var(--amber-soft); color: var(--amber-text); border-color: transparent; }
.table-search { position: relative; min-width: 240px; } .table-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; } .table-search input { padding-left: 32px !important; }
.chip.xs { font-size: 10.5px; padding: 1px 7px; }
.strike { text-decoration: line-through; opacity: .7; }
.text-muted { color: var(--muted); }
/* Tablo / satır içi ikonlar için varsayılan boyut */
.table td > span > svg, .table td > svg, .cell-2 svg, .kv svg { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Sayfa başına seçimi ---------- */
.pagination .per { display: inline-flex; gap: 2px; align-items: center; margin-right: 12px; }
.pagination .per a { padding: 3px 8px; font-size: 12px; }
.pagination .per .current { background: var(--gray-soft); color: var(--text); }

/* ---------- Yan panel (drawer): listeden ayrılmadan işlem ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(2, 6, 23, .45); z-index: 95; display: none; }
.drawer-bg.open { display: block; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(920px, 100vw); background: var(--bg); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: drawerIn .22s ease-out; }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.drawer-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.drawer-body { overflow: auto; padding: 18px; flex: 1; }
.drawer-body .grid.cols-2-1 { grid-template-columns: 1fr; }
body.drawer-open { overflow: hidden; }

/* ---------- İşlem detayı: tutar dökümü, durum geçmişi ---------- */
.breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.breakdown .bd { background: var(--gray-soft); border-radius: 12px; padding: 10px 12px; }
.breakdown .bd .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.breakdown .bd .v { font-size: 18px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.breakdown .bd.main { background: var(--primary-soft, rgba(37, 99, 235, .1)); }
.status-flow { display: inline-flex; align-items: center; gap: 6px; }
.status-flow .arrow { color: var(--muted); }
.kvp .k { color: var(--muted); }
.timeline li.tl-change strong { color: var(--text); }
.action-box { border: 1px dashed var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.action-box h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.action-box .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Geniş tablolarda sağa yapışık işlem sütunu (Düzenle her zaman görünür) ---------- */
.table th.sticky-r, .table td.sticky-r { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -10px 0 10px -10px rgba(2, 6, 23, .25); }
.table th.sticky-r { background: var(--surface-2, var(--surface)); }
.table tbody tr:hover td.sticky-r { background: var(--row-hover); }
.table td.actions { white-space: nowrap; }
.table .actions { flex-wrap: nowrap; }
.table .actions .btn { flex-shrink: 0; }
.table tr.hot td.sticky-r { background: color-mix(in srgb, var(--red-soft) 60%, var(--surface)); }
.table tr.warm td.sticky-r { background: color-mix(in srgb, var(--amber-soft) 50%, var(--surface)); }

/* ---------- Log listesi ---------- */
.log-list .log-row { border-bottom: 1px solid var(--border); }
.log-list .log-row:last-child { border-bottom: none; }
.log-row > summary, .log-row.flat { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 16px; cursor: pointer; list-style: none; }
.log-row.flat { cursor: default; }
.log-row > summary::-webkit-details-marker { display: none; }
.log-row > summary::before { content: none; }
.log-row > summary:hover { background: var(--row-hover); }
.log-time { font-size: 11px; color: var(--muted); line-height: 1.3; font-variant-numeric: tabular-nums; }
.log-time strong { color: var(--text-2); font-size: 12.5px; }
.log-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.log-title { font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.log-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.log-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; white-space: nowrap; }
.log-row.is-change > summary, .log-row.is-change.flat { box-shadow: inset 3px 0 0 var(--amber, #f59e0b); }
.log-row.is-fail > summary, .log-row.is-fail.flat { box-shadow: inset 3px 0 0 var(--red, #ef4444); }
.log-body { padding: 4px 16px 14px 108px; }
.log-body.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.log-body .k, .kv-grid .k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin-right: 4px; }
.kv-grid { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; margin-bottom: 8px; }
pre.json { max-height: 360px; }
@media (max-width: 800px) { .log-row > summary, .log-row.flat { grid-template-columns: 1fr; gap: 6px; } .log-meta { align-items: flex-start; text-align: left; flex-direction: row; gap: 10px; } .log-body { padding-left: 16px; } .log-body.two { grid-template-columns: 1fr; } }

/* ---------- Site formu: Havalebank kapısı rehberi ---------- */
.gw-intro { background: var(--blue-soft); color: var(--blue-text); border-radius: 10px; padding: 10px 14px; line-height: 1.5; }
.gw-steps { list-style: none; counter-reset: gw; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.gw-steps > li { counter-increment: gw; position: relative; padding-left: 40px; }
.gw-steps > li::before { content: counter(gw); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.gw-step-title { font-weight: 700; font-size: 13.5px; margin-bottom: 2px; }
.gw-choice { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.gw-choice-title { font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.gw-choice-title svg { width: 16px; height: 16px; }
.card-head h3 svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

/* ---------- Herkese açık site (ana sayfa, API docs) ---------- */
.site-body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
.site-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }
.site-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-nav .site-container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-nav .brand { padding: 0; color: var(--text); }
.site-nav nav { display: flex; align-items: center; gap: 6px; }
.site-nav nav a { color: var(--text-2); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.site-nav nav a:hover { background: var(--gray-soft); color: var(--text); }
.site-main { flex: 1; }
.site-footer { border-top: 1px solid var(--border); padding: 22px 0; margin-top: 40px; font-size: 13.5px; }
.site-footer .site-container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.brand-mark.sm { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; display: inline-grid; vertical-align: -5px; }
.hero { padding: 72px 0 56px; background: radial-gradient(900px 420px at 15% -10%, rgba(37, 99, 235, .18), transparent 60%), radial-gradient(700px 400px at 95% 10%, rgba(124, 58, 237, .14), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--blue-text); background: var(--blue-soft); padding: 6px 12px; border-radius: 999px; }
.eyebrow svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.03em; margin: 18px 0 16px; }
.hero .lead { font-size: 17px; color: var(--text-2); max-width: 540px; line-height: 1.6; }
.hero-stats { display: flex; gap: 32px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; letter-spacing: -.02em; }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-card-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.hero-card-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); } .hero-card-head .dot:first-child { background: #fda4af; } .hero-card-head .dot:nth-child(2) { background: #fcd34d; } .hero-card-head .dot:nth-child(3) { background: #86efac; }
.hero-card-head .muted { margin-left: auto; }
.hero-card-body { padding: 22px; }
.hero-card .amount { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 16px; font-variant-numeric: tabular-nums; }
.hero-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--border); font-size: 14px; }
.hero-row .k { color: var(--muted); }
.hero-progress { height: 6px; border-radius: 999px; background: var(--gray-soft); margin-top: 14px; overflow: hidden; }
.hero-progress div { width: 72%; height: 100%; background: linear-gradient(90deg, var(--primary), #7c3aed); border-radius: 999px; }
.site-section { padding: 64px 0; }
.site-section.alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.site-section h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.02em; margin: 0 0 8px; }
.section-lead { color: var(--text-2); font-size: 16px; margin: 0 0 32px; max-width: 640px; }
.steps-grid, .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step, .feat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.step-n { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.step h3, .feat h3 { font-size: 17px; margin: 0 0 6px; }
.step p, .feat p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; margin: 0; }
.feat > svg { width: 26px; height: 26px; color: var(--primary); margin-bottom: 12px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, var(--blue-soft), var(--surface)); border: 1px solid var(--border); border-radius: 20px; padding: 36px; flex-wrap: wrap; }
.cta .section-lead { margin-bottom: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .steps-grid, .features-grid { grid-template-columns: 1fr; } .hero { padding: 48px 0 36px; } .site-nav nav a { padding: 8px; } }

/* API docs */
.docs-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; padding: 40px 0; }
.docs-toc { position: sticky; top: 84px; align-self: start; font-size: 13.5px; }
.docs-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-2); }
.docs-toc a:hover { background: var(--gray-soft); color: var(--text); }
.docs-toc .toc-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 14px 10px 4px; }
.docs h1 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 8px; }
.docs h2 { font-size: 24px; letter-spacing: -.02em; margin: 48px 0 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.docs h3 { font-size: 17px; margin: 28px 0 8px; }
.docs p, .docs li { color: var(--text-2); line-height: 1.65; font-size: 15px; }
.docs .endpoint { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-family: var(--mono); font-size: 13.5px; margin: 6px 0 12px; flex-wrap: wrap; }
.docs .method { background: #16a34a; color: #fff; font-weight: 800; font-size: 11px; padding: 3px 7px; border-radius: 6px; letter-spacing: .04em; }
.docs table.params { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 18px; }
.docs table.params th, .docs table.params td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.docs table.params th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.docs table.params code { white-space: nowrap; }
.docs .req { color: var(--red-text, #b91c1c); font-size: 11px; font-weight: 700; margin-left: 4px; }
.docs pre { font-size: 12.5px; }
.docs .callout { border-left: 3px solid var(--primary); background: var(--blue-soft); color: var(--blue-text); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 14px; margin: 14px 0; }
.docs .callout.warn { border-color: #f59e0b; background: var(--amber-soft); color: var(--amber-text); }
.docs .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .docs-wrap { grid-template-columns: 1fr; } .docs-toc { position: static; display: none; } .docs .two { grid-template-columns: 1fr; } }


/* ---- Varsayılan ikon boyutu (icon() çıktısı). Daha özgül kurallar bunu ezer. ---- */
:where(svg.ic) { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
:where(h1, h2) svg.ic { width: 20px; height: 20px; }
:where(h3, h4) svg.ic { width: 15px; height: 15px; margin-right: 4px; }

/* ---- Tablo aksiyon hücresi: td hiçbir zaman flex olmaz (satır kaymasını önler) ---- */
.table td.actions { display: table-cell; text-align: right; white-space: nowrap; vertical-align: middle; }
.table td.actions > * { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.table td.actions > *:first-child { margin-left: 0; }
.table td.actions form { display: inline-flex; gap: 6px; align-items: center; }
.table td.actions .btn { flex-shrink: 0; }
.table td.actions select.compact { display: inline-block; }

/* ---- Logo ---- */
.brand-logo-wrap { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.brand-logo { display: block; height: 34px; width: auto; max-width: 180px; object-fit: contain; }
.brand-logo.sm { height: 22px; max-width: 120px; }
.brand-logo.lg { height: 44px; max-width: 220px; }
html[data-theme="dark"] .brand-logo.logo-light { display: none; }
html:not([data-theme="dark"]) .brand-logo.logo-dark { display: none; }
.sidebar .brand-logo-wrap .brand-sub { margin-top: 0; }
.auth-side .brand-logo { height: 40px; max-width: 220px; }
.site-nav .brand-logo { height: 30px; }
.site-footer .brand-logo-wrap { display: inline-flex; vertical-align: middle; }
.logo-slot { display: flex; gap: 14px; align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
.logo-preview { width: 150px; min-height: 64px; border-radius: 10px; display: grid; place-items: center; padding: 10px; flex: none; }
.logo-preview.dark { background: linear-gradient(135deg, #0f172a, #1e1b4b); }
.logo-preview.light { background: #f8fafc; border: 1px solid #e2e8f0; }
.logo-preview img { max-width: 130px; max-height: 44px; object-fit: contain; }

/* ---- Ödeme sayfası (Havalebank tarzı) ---- */
.public-body { background: radial-gradient(800px 420px at 50% -10%, #3730a3 0%, transparent 55%), linear-gradient(165deg, #070b14, #1e1b4b); color: #0f172a; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); }
.public-wrap { width: 100%; max-width: 400px; margin: 0; padding: 0; }
.pay-shell { width: 100%; }
.pay-brand { text-align: center; margin-bottom: 16px; }
.pay-brand img { height: 38px; width: auto; max-width: 190px; object-fit: contain; display: inline-block; }
.pay-brand-text { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.pay-brand-text .mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #2563eb, #7c3aed); font-size: 15px; }
.pay-card { background: #fff; border: 0; border-radius: 20px; box-shadow: 0 22px 50px rgba(2, 6, 23, .45); overflow: hidden; animation: payIn .4s cubic-bezier(.16, 1, .3, 1); }
@keyframes payIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pay-header { padding: 16px 16px 14px; color: #fff; }
.pay-header.pending { background: linear-gradient(135deg, #312e81, #4338ca); }
.pay-header.approved { background: linear-gradient(135deg, #047857, #059669); }
.pay-header.rejected { background: linear-gradient(135deg, #9f1239, #e11d48); }
.pay-header .status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .14); color: #fff; }
.status-chip svg.ic { width: 12px; height: 12px; }
.status-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: payPing 1.6s ease-out infinite; }
@keyframes payPing { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.timer-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 9px; font-family: var(--mono); font-size: 13px; font-weight: 800; letter-spacing: .3px; }
.timer-chip svg.ic { width: 12px; height: 12px; color: #fbbf24; }
.timer-chip.urgent { background: rgba(239, 68, 68, .25); border-color: rgba(252, 165, 165, .45); }
.timer-chip.urgent svg.ic { color: #fecaca; }
.pay-amount { font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; margin-top: 10px; }
.pay-amount .cur { font-size: 18px; font-weight: 700; opacity: .72; margin-left: 3px; }
.pay-header .sub { color: rgba(255, 255, 255, .78); font-size: 12px; margin-top: 4px; }
.timer-track { height: 3px; background: rgba(255, 255, 255, .16); margin: 12px -16px -14px; }
.timer-fill { height: 100%; width: 100%; background: #fbbf24; transition: width .5s linear; }
#payBox.urgent .timer-fill { background: #fb7185; }
.pay-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.info-list { border: 1px solid #e8edf5; border-radius: 14px; overflow: hidden; background: #fff; }
.info-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #e8edf5; }
.info-row:last-child { border-bottom: 0; }
.info-row.hl { background: #fffbeb; }
.info-row .txt { flex: 1; min-width: 0; }
.info-row .lbl { font-size: 10px; font-weight: 800; color: #64748b; letter-spacing: .5px; text-transform: uppercase; }
.info-row .val { font-size: 13.5px; font-weight: 700; margin-top: 2px; line-height: 1.3; word-break: break-word; color: #0f172a; }
.info-row .iban { font-size: clamp(12px, 3.3vw, 14px); font-weight: 700; letter-spacing: .2px; margin-top: 3px; white-space: nowrap; overflow: hidden; color: #0f172a; font-variant-numeric: tabular-nums; }
.info-row .copy { flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 10px; cursor: pointer; background: #eef2ff; color: #4f46e5; display: grid; place-items: center; }
.info-row .copy svg.ic { width: 15px; height: 15px; }
.info-row .copy:active { transform: scale(.96); background: #4f46e5; color: #fff; }
.name-alert { display: flex; align-items: flex-start; gap: 8px; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 12px; padding: 9px 11px; }
.name-alert > svg.ic { color: #e11d48; margin-top: 2px; width: 15px; height: 15px; }
.name-alert .who { font-size: 13px; font-weight: 800; color: #be123c; }
.name-alert .why { font-size: 11px; color: #e11d48; margin-top: 2px; line-height: 1.35; }
.pay-body .action-row { display: flex; gap: 8px; }
.pay-body .action-row form { flex: 1; display: flex; margin: 0; }
.pbtn { flex: 1; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; border: 1px solid transparent; text-decoration: none; font-family: inherit; line-height: 1.2; }
.pbtn svg.ic { width: 14px; height: 14px; }
.pbtn-ghost { background: #fff; color: #0f172a; border-color: #e2e8f0; }
.pbtn-danger { background: #fff1f2; color: #e11d48; border-color: #fecdd3; }
.pbtn-primary { background: #4f46e5; color: #fff; }
.pay-note { text-align: center; font-size: 12px; color: #64748b; margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pay-note span { font-weight: 800; color: #0f172a; }
.status-box { text-align: center; padding: 10px 8px 4px; }
.status-box .ico-wrap { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; }
.status-box .ico-wrap svg.ic { width: 22px; height: 22px; stroke-width: 2.5; }
.status-box.success .ico-wrap { background: #ecfdf5; color: #059669; }
.status-box.success h3 { color: #047857; font-size: 16px; margin: 0; }
.status-box.error .ico-wrap { background: #fff1f2; color: #dc2626; }
.status-box.error h3 { color: #be123c; font-size: 16px; margin: 0; }
.status-box p { margin: 6px 0 0; font-size: 13px; color: #64748b; }
.pay-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px 12px; color: #94a3b8; font-size: 11px; }
.pay-footer .secure { display: inline-flex; align-items: center; gap: 5px; color: #16a34a; font-weight: 700; }
.pay-footer .secure svg.ic { width: 12px; height: 12px; }
.pay-footer .ref { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 140%); background: #0f172a; color: #fff; border-radius: 12px; padding: 11px 16px; display: flex; align-items: center; gap: 8px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); z-index: 9999; transition: transform .35s cubic-bezier(.16, 1, .3, 1); font-size: 13px; font-weight: 500; max-width: calc(100vw - 24px); }
.pay-toast.show { transform: translate(-50%, 0); }
.pay-toast svg.ic { color: #34d399; width: 15px; height: 15px; }
@media (max-width: 380px) { .pay-amount { font-size: 28px; } }
.table a.row-link { white-space: nowrap; }
.table td .badge { white-space: nowrap; }
.grid > * { min-width: 0; }
.card .card-body > pre, pre.xs { white-space: pre-wrap; word-break: break-all; }
