/* Hano Web Panel — prestijli fintech tasarımı. Açık/koyu tema (data-theme), Inter self-host. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/inter.woff2') format('woff2');
}

/* ---- Tasarım token'ları ---- */
:root {
  --bg: #f5f6fb;
  --bg-2: #eef0f7;
  --card: #ffffff;
  --card-2: #fafbff;
  --border: #e8eaf2;
  --border-strong: #dcdfeb;
  --text: #0d1020;
  --text-2: #474b63;
  --muted: #8b8fa6;
  --accent: #2a63ea;
  --accent-2: #4f8bf6;
  --accent-soft: rgba(42, 99, 234, 0.08);
  --accent-ring: rgba(42, 99, 234, 0.16);
  --income: #0ea66a;
  --income-soft: rgba(14, 166, 106, 0.10);
  --expense: #ef4444;
  --expense-soft: rgba(239, 68, 68, 0.10);
  --gold: #d99a24;
  --gold-soft: rgba(217, 154, 36, 0.12);
  --sidebar-1: #122444;
  --sidebar-2: #0b1830;
  --sidebar-text: #9aa6bd;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-active: rgba(79, 139, 246, 0.24);
  --shadow-sm: 0 1px 2px rgba(16, 18, 40, 0.04);
  --shadow: 0 1px 3px rgba(16, 18, 40, 0.05), 0 10px 30px rgba(16, 18, 40, 0.05);
  --shadow-lg: 0 20px 50px rgba(16, 18, 40, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* Koyu: sistem tercihi (kullanıcı 'light' zorlamadıysa) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #080d16; --bg-2: #0d1420; --card: #101826; --card-2: #16202f;
    --border: #202a3c; --border-strong: #2b3750;
    --text: #f2f5fa; --text-2: #b4bccb; --muted: #717a8c;
    --accent: #5b93f7; --accent-2: #86b1fa; --accent-soft: rgba(91, 147, 247, 0.12); --accent-ring: rgba(91, 147, 247, 0.22);
    --income: #34d399; --income-soft: rgba(52, 211, 153, 0.12); --expense: #fb7185; --expense-soft: rgba(251, 113, 133, 0.12);
    --gold: #f0b34a; --gold-soft: rgba(240, 179, 74, 0.14);
    --sidebar-1: #0e1a30; --sidebar-2: #07101f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}
/* Koyu: kullanıcı zorladı */
:root[data-theme='dark'] {
  --bg: #080d16; --bg-2: #0d1420; --card: #101826; --card-2: #16202f;
  --border: #202a3c; --border-strong: #2b3750;
  --text: #f2f5fa; --text-2: #b4bccb; --muted: #717a8c;
  --accent: #5b93f7; --accent-2: #86b1fa; --accent-soft: rgba(91, 147, 247, 0.12); --accent-ring: rgba(91, 147, 247, 0.22);
  --income: #34d399; --income-soft: rgba(52, 211, 153, 0.12); --expense: #fb7185; --expense-soft: rgba(251, 113, 133, 0.12);
  --gold: #f0b34a; --gold-soft: rgba(240, 179, 74, 0.14);
  --sidebar-1: #0e1a30; --sidebar-2: #07101f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.01em;
}
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; font-size: 14px; }
::selection { background: var(--accent-ring); }

.boot { display: flex; align-items: center; justify-content: center; height: 100vh; background: var(--bg); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.logo .wm { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }

/* İkincil auth ekranları (QR / şifre sıfırlama / hane yok / hata) */
.auth-wrap { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.auth-wrap .auth-card { max-width: 400px; width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 34px 30px; text-align: center; }
.auth-wrap .auth-card .auth-sub { text-align: center; }
.auth-brand { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }

/* ================= LOGIN (iki panel) ================= */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-brand-panel {
  position: relative; overflow: hidden; padding: 56px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(1200px 600px at 10% -10%, #1e40b0 0%, transparent 55%), linear-gradient(160deg, #12285a 0%, #0a1428 100%);
  color: #fff;
}
.auth-brand-panel .logo .wm { color: #fff; }
.auth-brand-panel::after {
  content: ''; position: absolute; right: -120px; bottom: -120px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 139, 246, 0.4), transparent 60%); filter: blur(20px);
}
.auth-hero { position: relative; z-index: 1; margin-top: auto; }
.auth-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.auth-hero p { margin-top: 16px; font-size: 16px; color: rgba(255, 255, 255, 0.72); max-width: 420px; line-height: 1.6; }
.auth-badges { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.auth-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 12.5px; color: rgba(255, 255, 255, 0.85); }
.auth-badge svg { width: 15px; height: 15px; }

.auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--bg); position: relative; }
.auth-topright { position: absolute; top: 22px; right: 24px; display: flex; gap: 8px; align-items: center; }
.auth-card { width: 100%; max-width: 380px; animation: fadeUp 0.4s ease; }
.auth-card .logo { display: none; }
.auth-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.auth-sub { color: var(--text-2); margin: 6px 0 26px; font-size: 14.5px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text); outline: none; transition: border-color 0.15s, box-shadow 0.15s; font-size: 14.5px;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 13px 16px; border-radius: 12px; font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em;
  background: var(--accent); color: #fff; transition: background 0.15s, opacity 0.12s, transform 0.05s;
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.secondary { background: var(--card); color: var(--text); border: 1px solid var(--border-strong); }
.btn.secondary:hover { border-color: var(--accent); background: var(--card); }
.btn.ghost { background: transparent; color: var(--accent); width: auto; padding: 8px; }
.btn.ghost:hover { background: transparent; opacity: 0.75; }
.btn.google { background: var(--card); color: var(--text); border: 1px solid var(--border-strong); }
.btn.google:hover { border-color: var(--accent); background: var(--card); }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-links { text-align: center; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.auth-links a, .auth-links button { font-size: 13px; }
.link-muted { color: var(--muted) !important; }
.msg { font-size: 13px; padding: 11px 13px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.msg.err { background: var(--expense-soft); color: var(--expense); }
.msg.ok { background: var(--income-soft); color: var(--income); }

/* Icon buttons (theme toggle) + selects */
.icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--card); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: color 0.15s, border-color 0.15s; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-select, .select {
  padding: 9px 32px 9px 13px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--card); color: var(--text);
  font-weight: 550; cursor: pointer; outline: none; box-shadow: var(--shadow-sm); font-size: 13.5px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8fa6' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

/* ================= APP SHELL ================= */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 256px; flex-shrink: 0; color: var(--sidebar-text); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 22px 16px;
  background: linear-gradient(175deg, var(--sidebar-1), var(--sidebar-2));
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.sidebar .logo { padding: 4px 10px 22px; }
.sidebar .logo .wm { color: #fff; }
.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.32); padding: 8px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px;
  color: var(--sidebar-text); font-weight: 550; font-size: 14px; width: 100%; text-align: left; transition: background 0.13s, color 0.13s;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; box-shadow: inset 0 0 0 1px rgba(79, 139, 246, 0.28); }
.nav-item svg { width: 19px; height: 19px; flex-shrink: 0; opacity: 0.9; }
.side-tools { display: flex; gap: 8px; padding: 10px 4px 12px; }
.side-user { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(160deg, var(--accent-2), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.side-user .u-name { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .u-mail { color: var(--sidebar-text); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04); color: var(--sidebar-text); display: inline-flex; align-items: center; justify-content: center; }
.side-icon-btn:hover { color: #fff; background: rgba(255,255,255,0.09); }
.side-icon-btn svg { width: 17px; height: 17px; }
.side-lang { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); color: var(--sidebar-text); border-radius: 10px; padding: 8px 30px 8px 11px; font-size: 12.5px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a7a3bd' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 24px 34px 8px; gap: 16px; flex-wrap: wrap; }
.topbar h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; }
.topbar .hh-name { color: var(--muted); font-size: 13px; margin-top: 2px; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.content { padding: 16px 34px 44px; max-width: 1680px; width: 100%; animation: fadeUp 0.35s ease; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.section-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 0 0 16px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: relative; overflow: hidden; }
.kpi .k-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.kpi .k-ico svg { width: 20px; height: 20px; }
.kpi .k-label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.kpi .k-value { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; margin-top: 5px; font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 18px; }

/* Category bars */
.cat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.cat-row:last-child { margin-bottom: 0; }
.cat-info { flex: 1; min-width: 0; }
.cat-top { display: flex; justify-content: space-between; font-size: 13.5px; }
.cat-top .c-name { color: var(--text); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-top .c-amt { color: var(--text-2); flex-shrink: 0; margin-left: 10px; font-variant-numeric: tabular-nums; }
.bar-track { height: 8px; border-radius: 5px; background: var(--bg-2); overflow: hidden; margin-top: 7px; }
.bar-fill { height: 8px; border-radius: 5px; }

/* Table */
.table-wrap { overflow-x: auto; }
table.tx { width: 100%; border-collapse: collapse; }
table.tx th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.tx td { padding: 14px 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
table.tx tr:last-child td { border-bottom: none; }
table.tx tbody tr { transition: background 0.1s; }
table.tx tbody tr:hover td { background: var(--card-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.income { background: var(--income-soft); color: var(--income); }
.pill.expense { background: var(--expense-soft); color: var(--expense); }
.amt-income { color: var(--income); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt-expense { color: var(--expense); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat-chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 550; }

/* Filters */
.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px; box-shadow: var(--shadow-sm); }
.seg button { padding: 8px 17px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--text-2); transition: color 0.12s; }
.seg button.active { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; }
.search { padding: 10px 15px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--card); color: var(--text); outline: none; min-width: 220px; flex: 1; max-width: 340px; box-shadow: var(--shadow-sm); }
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--card); color: var(--text-2); font-weight: 600; font-size: 13px; box-shadow: var(--shadow-sm); }
.chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Members */
.member { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.member:last-child { border-bottom: none; }
.member .m-role { margin-left: auto; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* Misc */
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.invite-code { font-size: 30px; font-weight: 800; letter-spacing: 8px; color: var(--accent); text-align: center; padding: 18px; background: var(--accent-soft); border-radius: var(--radius-sm); margin: 14px 0; font-variant-numeric: tabular-nums; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 8px; line-height: 1.5; }
.badge-plan { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.03em; }

/* QR */
#qr-box svg { width: 216px; height: 216px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 18px; justify-content: center; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* Mobile */
.menu-btn { display: none; }
.backdrop { display: none; }
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-card .logo { display: inline-flex; margin-bottom: 22px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: inline-flex; }
  .backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 39; backdrop-filter: blur(2px); }
  .backdrop.show { display: block; }
  .content, .topbar { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 540px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .kpi { padding: 15px; }
  .kpi .k-value { font-size: 20px; }
  .kpi .k-ico { width: 34px; height: 34px; margin-bottom: 10px; }
}

/* İşlem ekle butonu + modal (web'den işlem girişi) */
.tx-add { width: auto; flex: none; padding: 10px 16px; font-size: 13px; border-radius: 999px; white-space: nowrap; }
.tx-export { width: auto; flex: none; margin-left: auto; padding: 9px 14px; font-size: 13px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tx-export svg { width: 15px; height: 15px; }
.modal-ov { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 10, 22, 0.55); backdrop-filter: blur(3px); animation: fadeUp 0.18s ease; }
.modal-card { width: 100%; max-width: 430px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-x { width: 32px; height: 32px; border-radius: 9px; color: var(--muted); font-size: 21px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.modal-x:hover { background: var(--bg-2); color: var(--text); }
.modal-card .seg { width: 100%; margin-bottom: 14px; }
.modal-card .seg button { flex: 1; }
.field select { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--card); color: var(--text); font-size: 14px; outline: none; appearance: none; -webkit-appearance: none; }
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.modal-actions .btn { flex: 1; width: auto; }
.modal-actions .btn.del { flex: none; width: auto; margin-right: auto; background: var(--expense-soft); color: var(--expense); box-shadow: none; }
.modal-actions .btn.del:hover { background: var(--expense-soft); opacity: 0.82; }
#tx-list .tx-row { cursor: pointer; }
#tx-list tbody tr:hover td { background: var(--bg-2); }
/* Onay diyaloğu (native confirm yerine) */
.confirm-ov { z-index: 90; }
.confirm-card { max-width: 360px; }
.confirm-msg { font-size: 15px; color: var(--text); line-height: 1.55; margin-bottom: 18px; }
.btn.danger { background: var(--expense); color: #fff; }
.btn.danger:hover { background: var(--expense); opacity: 0.9; }
/* AI hızlı giriş çubuğu (overview üstü) */
.ai-bar { margin-bottom: 18px; padding: 14px; }
.ai-row { display: flex; gap: 10px; align-items: center; }
.ai-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ai-ic svg { width: 19px; height: 19px; }
.ai-input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--card-2); color: var(--text); font-size: 14px; outline: none; }
.ai-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.ai-send { width: auto; flex: none; padding: 11px 20px; }
.ai-reply { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); color: var(--text); font-size: 13.5px; line-height: 1.55; white-space: pre-line; }
.ai-reply.thinking { color: var(--muted); }
.ai-reply.err { background: var(--expense-soft); color: var(--expense); }
@media (max-width: 520px) { .ai-row { flex-wrap: wrap; } .ai-input { flex: 1 1 100%; order: 2; } .ai-send { order: 3; } }
/* Hanesiz ekran: katıl / oluştur */
.nh-card { max-width: 430px; text-align: left; }
.nh-sub { color: var(--text-2); text-align: center; margin: 14px 0 20px; font-size: 14px; line-height: 1.5; }
.nh-block { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; background: var(--card-2); }
.nh-h { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.nh-block .field:last-of-type { margin-bottom: 12px; }
.nh-or { text-align: center; color: var(--muted); font-size: 11px; margin: 2px 0 12px; text-transform: uppercase; letter-spacing: 0.09em; }
/* KPI dönem karşılaştırma rozeti */
.kpi-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; margin-top: 6px; padding: 2px 8px; border-radius: 999px; }
.kpi-delta.up { background: var(--income-soft); color: var(--income); }
.kpi-delta.down { background: var(--expense-soft); color: var(--expense); }
.kpi-delta.flat { background: var(--bg-2); color: var(--muted); }
/* Raporlar (aylık analizler) */
.report-card { margin-bottom: 16px; }
.rc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 4px; }
.rc-k-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.rc-k-val { font-size: 18px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.rc-summary { margin-top: 14px; padding: 12px 14px; background: var(--bg-2); border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.rc-cats { margin-top: 16px; }
.rc-cats-h { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; }
.rc-cat { margin-bottom: 9px; }
.rc-cat-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.rc-cat-top span:last-child { color: var(--text-2); font-variant-numeric: tabular-nums; }
.rc-bar { height: 7px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.rc-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; }
.rc-print { width: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 7px 12px; }
.rc-print svg { width: 15px; height: 15px; }
@media (max-width: 560px) { .rc-kpis { grid-template-columns: 1fr 1fr; } }
/* Yazdır: yalnız seçili rapor, beyaz zemin */
@media print {
  body.printing .sidebar, body.printing .topbar, body.printing .backdrop, body.printing .rc-print { display: none !important; }
  body.printing .shell, body.printing .main, body.printing .content, body.printing .stack { display: block !important; background: #fff !important; }
  body.printing .report-card { display: none !important; }
  body.printing .report-card.print-target { display: block !important; border: none !important; box-shadow: none !important; background: #fff !important; color: #111 !important; margin: 0 !important; }
  body.printing .report-card.print-target .section-title, body.printing .report-card.print-target .rc-cat-top, body.printing .report-card.print-target .rc-cats-h { color: #111 !important; }
  body.printing .report-card.print-target .rc-summary { background: #f4f4f8 !important; color: #333 !important; }
}
/* Rapor grafik panosu */
.rep-analytics .card { margin-bottom: 16px; }
.rep-analytics .card > svg { width: 100%; height: auto; display: block; }
.rep-kpis { margin-bottom: 16px; }
.rep-ai-h { margin: 26px 0 12px; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut-svg { width: 172px; height: 172px; flex: none; }
.donut-legend { flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 9px; }
.dl-row { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.dl-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dl-name { flex: 1; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-pct { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
/* ---- Investing tarzı yoğun Raporlar ---- */
.rep-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .rep-grid { grid-template-columns: 1fr; } }
.rep-main { min-width: 0; }
.rep-wrap { display: flex; flex-direction: column; gap: 16px; }
.rep-tabs { display: inline-flex; align-self: flex-start; margin: 0; }
.rep-pane { display: none; }
.rep-pane.active { display: block; }
.rep-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.rep-charts .card { display: flex; flex-direction: column; }
.rep-charts .card > svg { width: 100%; height: auto; display: block; margin-top: auto; }
.rep-ct-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ct-legend { display: inline-flex; gap: 14px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.ct-legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .rep-charts { grid-template-columns: 1fr; } }
/* Üst özet şeridi */
.rep-tiles { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 10px; }
.rtile { padding: 4px 18px; border-left: 1px solid var(--border); min-width: 0; }
.rtile:first-child { padding-left: 0; border-left: none; }
.rt-l { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-v { font-size: 17px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-s { font-size: 11.5px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-cmp { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; }
.rep-cmp-h { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cmp-item { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; }
.cmp-item .ci-l { color: var(--text-2); }
.cmp-item b { font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .rep-tiles { grid-template-columns: repeat(3, 1fr); gap: 16px 0; } .rtile:nth-child(3n+1) { padding-left: 0; border-left: none; } }
@media (max-width: 560px) { .rep-tiles { grid-template-columns: repeat(2, 1fr); } .rtile { padding: 4px 12px; } .rtile:nth-child(2n+1) { padding-left: 0; border-left: none; } }
.rep-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rep-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--border-strong); }
.rep-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.rep-table tbody tr:last-child td { border-bottom: none; }
.rep-table tbody tr:hover td { background: var(--bg-2); }
.rep-table .rt-name { font-weight: 600; white-space: nowrap; }
.rep-table th.num, .rep-table td.num, .rep-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-table .pill { font-size: 11px; padding: 2px 8px; }
.spark-cell { width: 116px; }
.spark { width: 108px; height: 30px; display: inline-block; vertical-align: middle; }
.chg { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--income); }
.chg.down { color: var(--expense); }
.chg.flat { color: var(--muted); }
.rep-rail .card { padding: 15px 16px; margin-bottom: 16px; }
.rail-h { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin-bottom: 6px; }
.rail-stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rail-stat:last-child { border-bottom: none; padding-bottom: 0; }
.rail-stat .rs-l { min-width: 0; }
.rail-stat .rs-label { font-size: 12px; color: var(--muted); }
.rail-stat .rs-sub { font-size: 11.5px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 165px; }
.rail-stat .rs-val { font-weight: 700; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rail-cmp .rc-line { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.rail-cmp .rc-line:last-child { border-bottom: none; padding-bottom: 0; }
.rail-cmp .rc-r { font-weight: 700; font-variant-numeric: tabular-nums; display: inline-flex; gap: 8px; align-items: baseline; }
