/* Cüzdan - Material 3 arayüzü
   Not (dashboard-design skill): kullanıcı "profesyonel Material tasarım, görsellik ön planda" istedi; bu yüzden
   skill'in varsayılan sakin stili yerine Material 3 renk rolleri, yüzey katmanları ve şekilleri kullanılıyor.
   Skill kuralları korunur: renk varlığa göre (para = yeşil, kart/borç = birincil), sıcak renk yalnızca sorun için,
   tablo rakamları sağa hizalı ve tabular, açıklamalar ipucu (tooltip) içinde. */

:root {
  color-scheme: light;
  /* Renk rolleri JS (js/theme.js) tarafından tohum renginden üretilip burada ezilir; bunlar yedek değerlerdir. */
  --primary: #4b55c4; --on-primary: #fff; --primary-container: #e0e0ff; --on-primary-container: #0b0f63;
  --secondary: #5c5d72; --on-secondary: #fff; --secondary-container: #e1e0f9; --on-secondary-container: #191a2c;
  --tertiary: #7a5368; --on-tertiary: #fff; --tertiary-container: #ffd8ea; --on-tertiary-container: #2f1124;
  --surface: #fbf8ff; --surface-dim: #dbd9e0; --surface-bright: #fbf8ff;
  --surface-container-lowest: #fff; --surface-container-low: #f5f2fa; --surface-container: #efedf4;
  --surface-container-high: #e9e7ef; --surface-container-highest: #e4e1e9;
  --on-surface: #1b1b21; --on-surface-variant: #46464f; --outline: #777680; --outline-variant: #c7c5d0;
  --inverse-surface: #303036; --inverse-on-surface: #f2eff7; --inverse-primary: #bec2ff; --scrim: #000;
  --error: #ba1a1a; --on-error: #fff; --error-container: #ffdad6; --on-error-container: #410002;
  /* Anlamsal varlık renkleri (sabit, iki tema) */
  --money: #0f7f57; --money-container: #c9f1dc; --on-money-container: #00391f;
  --warn: #9a6700; --warn-container: #ffe3a6; --on-warn-container: #2c1d00;
  --chart-1: var(--primary); --chart-2: #2e9c9a; --chart-3: #a8a7b3; --chart-grey: #9b9aa4;

  --font: "Roboto Flex", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 28px; --r-full: 999px;
  --e1: 0 1px 2px rgb(0 0 0 / .1), 0 1px 3px 1px rgb(0 0 0 / .06);
  --e2: 0 1px 2px rgb(0 0 0 / .12), 0 2px 6px 2px rgb(0 0 0 / .08);
  --e3: 0 4px 8px 3px rgb(0 0 0 / .08), 0 1px 3px rgb(0 0 0 / .12);
  --ease: cubic-bezier(.2, 0, 0, 1); --ease-emph: cubic-bezier(.05, .7, .1, 1);
  --rail: 96px;
}
:root[data-dark] {
  color-scheme: dark;
  --money: #5fd6a1; --money-container: #00522f; --on-money-container: #b8f5d4;
  --warn: #f4bd4a; --warn-container: #5c4100; --on-warn-container: #ffdf9e;
  --chart-2: #5cc9c4; --chart-3: #77768a; --chart-grey: #6f6e78;
  --e1: 0 1px 2px rgb(0 0 0 / .4), 0 1px 3px 1px rgb(0 0 0 / .25);
  --e2: 0 1px 2px rgb(0 0 0 / .45), 0 2px 6px 2px rgb(0 0 0 / .3);
  --e3: 0 4px 8px 3px rgb(0 0 0 / .3), 0 1px 3px rgb(0 0 0 / .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.43; letter-spacing: .01em;
  background: var(--surface); color: var(--on-surface); -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
.num, .amt, td.n, th.n { font-variant-numeric: tabular-nums; }
.msr { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr;
  font-feature-settings: "liga"; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none; flex: none; width: 1em; overflow: hidden; }
.msr.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.msr.sm { font-size: 18px; } .msr.xs { font-size: 16px; } .msr.lg { font-size: 32px; }

/* ---------- tipografi */
.display-s { font-size: 36px; line-height: 44px; font-weight: 400; letter-spacing: -.01em; }
.headline-l { font-size: 32px; line-height: 40px; font-weight: 400; }
.headline-m { font-size: 28px; line-height: 36px; font-weight: 400; }
.headline-s { font-size: 24px; line-height: 32px; font-weight: 400; }
.title-l { font-size: 22px; line-height: 28px; font-weight: 400; }
.title-m { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: .01em; }
.title-s { font-size: 14px; line-height: 20px; font-weight: 500; }
.label-l { font-size: 14px; line-height: 20px; font-weight: 500; }
.label-m { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .04em; }
.body-s { font-size: 12px; line-height: 16px; }
.muted { color: var(--on-surface-variant); }
.money { color: var(--money); } .err { color: var(--error); } .warn-t { color: var(--warn); }

/* ---------- uygulama iskeleti */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 0; background: var(--surface-container-low); z-index: 5; }
.rail .brand { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px; cursor: pointer; border: 0;
  background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary), var(--tertiary) 55%)); color: var(--on-primary); box-shadow: var(--e1); }
.rail .fab-mini { margin-bottom: 20px; }
.rail a.dest { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; padding: 4px 0 8px; color: var(--on-surface-variant); }
.rail a.dest .pill { width: 56px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .2s var(--ease); }
.rail a.dest span.lbl { font-size: 12px; font-weight: 500; letter-spacing: .03em; }
.rail a.dest:hover .pill { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
.rail a.dest.on { color: var(--on-surface); }
.rail a.dest.on .pill { background: var(--secondary-container); color: var(--on-secondary-container); }
.rail a.dest.on .msr { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.rail .spacer { flex: 1; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 8px 24px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); }
.topbar.scrolled { background: color-mix(in srgb, var(--surface-container) 92%, transparent); }
.topbar h1 { margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content { padding: 4px 24px 96px; width: 100%; max-width: 1680px; margin: 0 auto; }
.navbar { display: none; }

@media (max-width: 839px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .content { padding: 4px 16px 104px; }
  .topbar { padding: 8px 8px 8px 16px; }
  .topbar h1 { font-size: 22px; line-height: 28px; }
  .navbar { display: flex; position: fixed; inset: auto 0 0 0; height: 80px; padding-bottom: env(safe-area-inset-bottom); z-index: 6;
    background: var(--surface-container); justify-content: space-around; align-items: center; }
  .navbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--on-surface-variant); flex: 1; min-width: 0; }
  .navbar a .pill { width: 56px; height: 32px; border-radius: 16px; display: grid; place-items: center; }
  .navbar a span.lbl { font-size: 11px; font-weight: 500; white-space: nowrap; }
  .navbar a.on { color: var(--on-surface); } .navbar a.on .pill { background: var(--secondary-container); color: var(--on-secondary-container); }
  .navbar a.on .msr { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
  .hide-sm { display: none !important; }
}

/* ---------- yerleşim */
.grid { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); }
@media (max-width: 1199px) { .g-main { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.section-h { display: flex; align-items: center; gap: 8px; margin: 28px 4px 12px; flex-wrap: wrap; }
.section-h h2 { margin: 0; flex: 1; min-width: 180px; }

/* ---------- Material yüzeyleri */
.surface { background: var(--surface-container-low); border-radius: var(--r-lg); padding: 20px; position: relative; min-width: 0; }
.surface.elev { background: var(--surface-container-low); box-shadow: var(--e1); }
.surface.filled { background: var(--surface-container-highest); }
.surface.outlined { background: var(--surface); border: 1px solid var(--outline-variant); }
.surface.hi { background: var(--surface-container); }
.surface.click { cursor: pointer; transition: box-shadow .2s var(--ease); }
.surface.click:hover { box-shadow: var(--e2); }
.surface h3 { margin: 0; }
.surface-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-height: 40px; flex-wrap: wrap; }
.surface-h .t { flex: 1; min-width: 0; }

/* KPI kutusu */
.kpi { display: flex; flex-direction: column; gap: 6px; min-height: 132px; }
.kpi .top { display: flex; align-items: center; gap: 10px; color: var(--on-surface-variant); }
.kpi .ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--secondary-container); color: var(--on-secondary-container); }
.kpi .ico .msr { font-size: 20px; }
.kpi .ico.money { background: var(--money-container); color: var(--on-money-container); }
.kpi .ico.err { background: var(--error-container); color: var(--on-error-container); }
.kpi .ico.ter { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.kpi .val { font-size: 28px; line-height: 36px; font-weight: 450; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .sub { display: flex; align-items: center; gap: 6px; color: var(--on-surface-variant); font-size: 12px; flex-wrap: wrap; }
.kpi .bar { height: 6px; border-radius: 3px; background: var(--surface-container-highest); overflow: hidden; margin-top: auto; }
.kpi .bar i { display: block; height: 100%; border-radius: 3px; background: var(--primary); }

/* ---------- butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 24px; border-radius: var(--r-full);
  border: 0; cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: .01em; position: relative; overflow: hidden; white-space: nowrap;
  transition: box-shadow .2s var(--ease), background .2s var(--ease); background: transparent; color: var(--primary); }
.btn .msr { font-size: 18px; margin-left: -8px; }
.btn::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .15s; }
.btn:hover::after { opacity: .08; } .btn:active::after { opacity: .12; }
.btn:disabled { opacity: .38; cursor: default; pointer-events: none; }
.btn.filled { background: var(--primary); color: var(--on-primary); }
.btn.filled:hover { box-shadow: var(--e1); }
.btn.tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn.outlined { border: 1px solid var(--outline); color: var(--primary); }
.btn.text { padding: 0 12px; } .btn.text .msr { margin-left: -4px; }
.btn.danger { background: var(--error); color: var(--on-error); }
.btn.ter { background: var(--tertiary); color: var(--on-tertiary); }
.btn.lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--on-surface-variant); cursor: pointer;
  display: inline-grid; place-items: center; position: relative; flex: none; }
.icon-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity .15s; }
.icon-btn:hover::after { opacity: .08; }
.icon-btn.tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.icon-btn.sm { width: 32px; height: 32px; } .icon-btn.sm .msr { font-size: 20px; }
.fab { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 16px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--primary-container); color: var(--on-primary-container); box-shadow: var(--e3); font-weight: 500; font-size: 14px; position: relative; overflow: hidden; }
.fab::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .15s; } .fab:hover::after { opacity: .08; }
.fab.ter { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.fab-mini { width: 56px; height: 56px; border-radius: 16px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--tertiary-container); color: var(--on-tertiary-container); box-shadow: var(--e1); position: relative; overflow: hidden; }
.fab-mini::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; } .fab-mini:hover::after { opacity: .08; }
.fab-fixed { position: fixed; right: 24px; bottom: 24px; z-index: 7; }
@media (max-width: 839px) { .fab-fixed { bottom: 96px; right: 16px; } }

/* ---------- çipler, rozetler */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--outline-variant);
  background: transparent; font-size: 13px; font-weight: 500; color: var(--on-surface-variant); cursor: pointer; white-space: nowrap; }
.chip .msr { font-size: 18px; margin-left: -4px; }
.chip.on { background: var(--secondary-container); color: var(--on-secondary-container); border-color: transparent; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 500;
  background: var(--surface-container-highest); color: var(--on-surface-variant); white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge .msr { font-size: 16px; margin-left: -3px; }
.badge.err { background: var(--error-container); color: var(--on-error-container); }
.badge.warn { background: var(--warn-container); color: var(--on-warn-container); }
.badge.ok { background: var(--money-container); color: var(--on-money-container); }
.badge.pri { background: var(--primary-container); color: var(--on-primary-container); }
.badge.ghost { background: transparent; border: 1px solid var(--outline-variant); }

/* segmentli düğmeler */
.seg { display: inline-flex; border: 1px solid var(--outline); border-radius: var(--r-full); overflow: hidden; height: 40px; max-width: 100%; }
.seg button { border: 0; background: transparent; padding: 0 16px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--on-surface);
  display: inline-flex; align-items: center; gap: 6px; border-left: 1px solid var(--outline); min-width: 0; white-space: nowrap; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--secondary-container); color: var(--on-secondary-container); }
.seg button .msr { font-size: 18px; }
@media (max-width: 599px) { .seg button { padding: 0 10px; font-size: 13px; } .seg button .msr { display: none; } }

/* ---------- metin alanları (outlined) */
.field { position: relative; display: block; }
.field input, .field select, .field textarea { width: 100%; height: 56px; padding: 18px 16px 0; border-radius: var(--r-xs); border: 1px solid var(--outline);
  background: transparent; outline: none; font-size: 16px; transition: border-color .15s; }
.field textarea { height: auto; min-height: 96px; padding-top: 26px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; cursor: pointer; }
.field select option { background: var(--surface-container-high); color: var(--on-surface); }
.field label { position: absolute; left: 16px; top: 8px; font-size: 12px; color: var(--on-surface-variant); pointer-events: none; letter-spacing: .03em; }
.field input:focus, .field select:focus, .field textarea:focus { border: 2px solid var(--primary); padding-left: 15px; }
.field input:focus + label, .field select:focus + label, .field textarea:focus + label { color: var(--primary); }
.field .suffix { position: absolute; right: 14px; top: 24px; color: var(--on-surface-variant); pointer-events: none; }
.field .sel-arrow { position: absolute; right: 10px; top: 16px; pointer-events: none; color: var(--on-surface-variant); }
.field .help { font-size: 12px; color: var(--on-surface-variant); padding: 4px 16px 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 40px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; flex: none; }

/* switch */
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: absolute; z-index: 1; }
.switch .tr { position: absolute; inset: 0; border-radius: 16px; background: var(--surface-container-highest); border: 2px solid var(--outline); transition: .2s var(--ease); }
.switch .th { position: absolute; left: 8px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--outline); transition: .2s var(--ease); }
.switch input:checked ~ .tr { background: var(--primary); border-color: var(--primary); }
.switch input:checked ~ .th { left: 24px; top: 4px; width: 24px; height: 24px; background: var(--on-primary); }

input[type=range] { width: 100%; accent-color: var(--primary); height: 24px; }

/* ---------- listeler / tablolar */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-radius: var(--r-md); min-height: 64px; position: relative; }
.li.click { cursor: pointer; } .li.click:hover { background: color-mix(in srgb, var(--on-surface) 5%, transparent); }
.li + .li { border-top: 1px solid var(--outline-variant); }
.li .lead { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--secondary-container); color: var(--on-secondary-container); flex: none; font-weight: 500; }
.li .lead.sq { border-radius: 12px; }
.li .txt { flex: 1; min-width: 0; }
.li .txt .h { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .txt .s { font-size: 12px; color: var(--on-surface-variant); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.li .trail { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.li .trail .a { font-size: 16px; font-weight: 500; }
.li.done .txt .h, .li.done .trail .a { color: var(--on-surface-variant); text-decoration: line-through; text-decoration-thickness: 1px; }

.tbl-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--on-surface-variant); padding: 8px; border-bottom: 1px solid var(--outline-variant); white-space: nowrap; letter-spacing: .02em; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--outline-variant); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.n, .tbl th.n { text-align: right; white-space: nowrap; }
.tbl tbody tr { transition: background .15s; } .tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--on-surface) 4%, transparent); }
.tbl tfoot td { font-weight: 500; border-top: 1px solid var(--outline); border-bottom: 0; padding-top: 12px; }
.tbl .grp td { background: var(--surface-container); font-weight: 500; font-size: 13px; position: sticky; top: 0; }
.share { height: 3px; border-radius: 2px; background: var(--surface-container-highest); margin-top: 6px; overflow: hidden; }
.share i { display: block; height: 100%; background: var(--primary); border-radius: 2px; }
.share.warn i { background: var(--warn); } .share.err i { background: var(--error); }
.prog { height: 8px; border-radius: 4px; background: var(--surface-container-highest); overflow: hidden; display: flex; }
.prog i { display: block; height: 100%; background: var(--primary); }
.prog i.money { background: var(--money); }

/* ---------- kredi kartı görseli */
.ccard { --c1: #3b47b8; --c2: #1d2370; --c3: #8a93ff; position: relative; aspect-ratio: 1.586; border-radius: 20px; padding: 18px 20px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c3) 70%, transparent) 0%, transparent 55%),
              radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--c2) 90%, #000 10%) 0%, transparent 60%),
              linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--c2) 80%, transparent), 0 2px 6px rgb(0 0 0 / .18);
  display: flex; flex-direction: column; isolation: isolate; transition: transform .35s var(--ease-emph), box-shadow .3s; container-type: inline-size; }
.ccard.click { cursor: pointer; } .ccard.click:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--c2) 85%, transparent), 0 2px 6px rgb(0 0 0 / .2); }
.ccard::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background: repeating-linear-gradient(115deg, rgb(255 255 255 / .35) 0 1px, transparent 1px 14px); mask: linear-gradient(120deg, #000 0%, transparent 60%); }
.ccard::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -22%; bottom: -55%; border-radius: 50%; z-index: -1; border: 28px solid rgb(255 255 255 / .07); }
.ccard .cc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ccard .cc-bank { font-size: clamp(11px, 4.4cqi, 14px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.ccard .cc-name { font-size: clamp(12px, 4.8cqi, 16px); font-weight: 500; opacity: .85; }
.ccard .cc-chip { width: clamp(30px, 12cqi, 42px); aspect-ratio: 1.3; border-radius: 6px; margin-top: auto; margin-bottom: 4px;
  background: linear-gradient(135deg, #f7e1a1, #c79b3b 45%, #f2d48a 70%, #b98a2c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); position: relative; }
.ccard .cc-chip::before { content: ""; position: absolute; inset: 22% 18%; border: 1px solid rgb(0 0 0 / .25); border-radius: 3px; }
.ccard .cc-lbl { font-size: clamp(10px, 3.6cqi, 12px); opacity: .8; letter-spacing: .04em; }
.ccard .cc-amt { font-size: clamp(18px, 9cqi, 30px); font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.15; text-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.ccard .cc-bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; font-size: clamp(10px, 3.8cqi, 12px); opacity: .95; margin-top: 4px; }
.ccard .cc-num { letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.ccard .cc-net { font-weight: 800; font-style: italic; font-size: clamp(14px, 6cqi, 20px); letter-spacing: -.02em; opacity: .95; }
.ccard .cc-net.mc { font-style: normal; display: flex; } .ccard .cc-net.mc i { width: 1.25em; height: 1.25em; border-radius: 50%; display: block; }
.ccard .cc-net.mc i:first-child { background: #eb001b; } .ccard .cc-net.mc i:last-child { background: #f79e1b; margin-left: -.5em; opacity: .9; }
.ccard .cc-paid { position: absolute; inset: 0; background: rgb(0 0 0 / .42); display: grid; place-items: center; }
.ccard .cc-paid span { display: inline-flex; gap: 6px; align-items: center; background: rgb(255 255 255 / .94); color: #0f5132; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.ccard.inactive { filter: grayscale(.85) brightness(.9); }
.cc-emerald { --c1: #12805c; --c2: #064a38; --c3: #5fe0a8; } .cc-crimson { --c1: #c4243b; --c2: #6d0f1f; --c3: #ff8a8a; }
.cc-navy { --c1: #1c4fa3; --c2: #0b1f4d; --c3: #6aa6ff; } .cc-violet { --c1: #6d3fd1; --c2: #2b1470; --c3: #c49bff; }
.cc-gold { --c1: #b88a2a; --c2: #5c4210; --c3: #ffe08a; } .cc-plum { --c1: #8b2d7c; --c2: #3c0f3a; --c3: #ff8fe0; }
.cc-amber { --c1: #d28c0f; --c2: #6e3d00; --c3: #ffd36b; } .cc-indigo { --c1: #3b47b8; --c2: #1d2370; --c3: #8a93ff; }
.cc-teal { --c1: #0f7d86; --c2: #053c42; --c3: #6be6ee; } .cc-graphite { --c1: #3d4148; --c2: #121418; --c3: #9aa3b2; }
.cc-rose { --c1: #d0457a; --c2: #6a1238; --c3: #ffa3c6; } .cc-sky { --c1: #1d8fd6; --c2: #0a3c6b; --c3: #8fd3ff; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.ccard-wrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ccard-meta { display: flex; align-items: center; gap: 8px; padding: 0 4px; flex-wrap: wrap; min-height: 32px; }

/* ---------- kahraman (hero) kartı */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 28px; color: var(--on-primary-container); isolation: isolate;
  background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--tertiary-container) 90%, transparent), transparent 60%),
              radial-gradient(60% 90% at 0% 100%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
              var(--primary-container); }
.hero .big { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: 450; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero .stack { height: 14px; border-radius: 7px; overflow: hidden; display: flex; gap: 2px; background: color-mix(in srgb, var(--on-primary-container) 12%, transparent); }
.hero .stack i { display: block; height: 100%; }
.hero .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; }
.hero .legend span { display: inline-flex; align-items: center; gap: 6px; }
.hero .legend b { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hero-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: end; }
@media (max-width: 899px) { .hero-cols { grid-template-columns: 1fr; } .hero { padding: 20px; } }
.netbox { border-radius: 20px; padding: 16px 18px; background: color-mix(in srgb, var(--surface-container-lowest) 72%, transparent); color: var(--on-surface); }
.netbox .row + .row { margin-top: 6px; }
.netbox .tot { border-top: 1px dashed var(--outline-variant); margin-top: 10px; padding-top: 10px; }

/* kurtuluş butonu */
.escape { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 24px; border: 0; cursor: pointer; text-align: left; width: 100%;
  background: linear-gradient(120deg, var(--tertiary), color-mix(in oklab, var(--tertiary), var(--primary) 60%)); color: var(--on-tertiary); box-shadow: var(--e2);
  position: relative; overflow: hidden; transition: transform .3s var(--ease-emph), box-shadow .3s; isolation: isolate; }
.escape:hover { transform: translateY(-2px); box-shadow: var(--e3); }
.escape .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgb(255 255 255 / .18); flex: none; }
.escape .ic .msr { font-size: 30px; }
.escape::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 220px; height: 220px; border-radius: 50%; background: rgb(255 255 255 / .1); z-index: -1; }

/* takvim */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dh { font-size: 11px; color: var(--on-surface-variant); text-align: center; padding: 2px 0; font-weight: 500; }
.cal .d { height: 40px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; position: relative;
  font-variant-numeric: tabular-nums; min-height: 32px; }
.cal .d.today { outline: 2px solid var(--primary); outline-offset: -2px; font-weight: 600; }
.cal .d.has { background: var(--secondary-container); color: var(--on-secondary-container); font-weight: 500; }
.cal .d.has.paid { background: var(--money-container); color: var(--on-money-container); }
.cal .d.has.late { background: var(--error-container); color: var(--on-error-container); }
.cal .d.has.soon { background: var(--warn-container); color: var(--on-warn-container); }
.cal .d .dots { display: flex; gap: 2px; position: absolute; bottom: 4px; }
.cal .d .dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }
.cal .d.out { visibility: hidden; }

/* ---------- grafikler */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { fill: var(--on-surface-variant); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .grid-l { stroke: var(--outline-variant); stroke-width: 1; shape-rendering: crispEdges; }
.chart .zero { stroke: var(--outline); stroke-width: 1; shape-rendering: crispEdges; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:hover { fill: color-mix(in srgb, var(--on-surface) 6%, transparent); }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--on-surface-variant); }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row b { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-row b.line { height: 3px; border-radius: 2px; width: 14px; }
.legend-row b.dash { height: 0; border-top: 2px dashed var(--chart-grey); width: 14px; border-radius: 0; background: none !important; }
#tip { position: fixed; z-index: 90; pointer-events: none; background: var(--inverse-surface); color: var(--inverse-on-surface); border-radius: var(--r-sm);
  padding: 8px 12px; font-size: 12px; box-shadow: var(--e2); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; max-width: 300px; }
#tip.on { opacity: 1; transform: none; }
#tip .tv { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
#tip .tr { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
#tip .tr i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
[data-tip] { cursor: help; }

/* ---------- diyalog, snackbar, menü */
.scrim { position: fixed; inset: 0; background: color-mix(in srgb, var(--scrim) 40%, transparent); z-index: 40; display: grid; place-items: center; padding: 16px;
  animation: fade .2s var(--ease); }
.dialog { background: var(--surface-container-high); border-radius: var(--r-xl); padding: 24px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: var(--e3); animation: pop .3s var(--ease-emph); }
.dialog.wide { width: min(1040px, 100%); }
.dialog .d-ico { display: grid; place-items: center; color: var(--secondary); margin-bottom: 12px; }
.dialog h2 { margin: 0 0 16px; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 599px) { .scrim { padding: 0; place-items: end stretch; } .dialog { border-radius: 28px 28px 0 0; max-height: 92vh; width: 100%; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
#snackbar { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--inverse-surface); color: var(--inverse-on-surface);
  border-radius: var(--r-xs); padding: 14px 16px; min-width: 280px; max-width: min(560px, calc(100% - 32px)); box-shadow: var(--e3); z-index: 95; opacity: 0;
  pointer-events: none; transition: .25s var(--ease); display: flex; gap: 12px; align-items: center; }
#snackbar.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#snackbar button { margin-left: auto; color: var(--inverse-primary); background: none; border: 0; font-weight: 500; cursor: pointer; }
@media (max-width: 839px) { #snackbar { bottom: 96px; } }
.menu { position: fixed; z-index: 45; background: var(--surface-container); border-radius: var(--r-sm); box-shadow: var(--e2); padding: 8px 0; min-width: 220px; animation: fade .15s; }
.menu .mh { padding: 8px 16px 12px; border-bottom: 1px solid var(--outline-variant); margin-bottom: 8px; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 16px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 14px; color: var(--on-surface); }
.menu button .msr { color: var(--on-surface-variant); font-size: 20px; }
.menu button:hover { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }

/* ---------- durumlar */
.skeleton { background: linear-gradient(90deg, var(--surface-container) 0%, var(--surface-container-high) 50%, var(--surface-container) 100%); background-size: 200% 100%;
  animation: sk 1.2s infinite linear; border-radius: var(--r-lg); }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 16px; color: var(--on-surface-variant); }
.empty .msr { font-size: 48px; color: var(--outline); }
.empty h3 { color: var(--on-surface); margin: 12px 0 4px; font-weight: 500; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--secondary-container); border-top-color: var(--primary); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linear { height: 4px; border-radius: 2px; background: var(--secondary-container); overflow: hidden; position: relative; }
.linear::after { content: ""; position: absolute; inset: 0 60% 0 0; background: var(--primary); border-radius: 2px; animation: lin 1.4s var(--ease) infinite; }
@keyframes lin { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

body.hide-amt .amt { filter: blur(8px); transition: filter .2s; }
body.hide-amt .amt:hover { filter: none; }

.page { animation: pagein .35s var(--ease-emph); }
@keyframes pagein { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- giriş sayfası */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); }
.auth-art { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--primary), color-mix(in oklab, var(--primary), #000 45%)); color: #fff;
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
:root[data-dark] .auth-art { background: linear-gradient(150deg, var(--primary-container), color-mix(in oklab, var(--primary-container), #000 60%)); }
.auth-art .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.12); } }
.auth-art .cards3d { position: relative; height: 340px; margin: 24px 0; }
.auth-art .cards3d .ccard { position: absolute; width: min(340px, 72%); left: 50%; top: 50%; }
.auth-art .cards3d .ccard:nth-child(1) { transform: translate(-70%, -72%) rotate(-12deg); animation: f1 7s ease-in-out infinite alternate; }
.auth-art .cards3d .ccard:nth-child(2) { transform: translate(-48%, -48%) rotate(3deg); animation: f2 8s ease-in-out infinite alternate; }
.auth-art .cards3d .ccard:nth-child(3) { transform: translate(-28%, -20%) rotate(14deg); animation: f3 9s ease-in-out infinite alternate; }
@keyframes f1 { to { transform: translate(-72%, -76%) rotate(-9deg); } }
@keyframes f2 { to { transform: translate(-49%, -52%) rotate(1deg); } }
@keyframes f3 { to { transform: translate(-26%, -16%) rotate(16deg); } }
.auth-form { display: grid; place-items: center; padding: 32px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card .logo { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: var(--on-primary); margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary), var(--tertiary) 55%)); box-shadow: var(--e2); }
.auth-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auth-feats div { background: rgb(255 255 255 / .1); border-radius: 16px; padding: 14px; font-size: 13px; }
.auth-feats .msr { display: block; margin-bottom: 6px; }
@media (max-width: 899px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }
.pw-wrap { position: relative; } .pw-wrap .icon-btn { position: absolute; right: 6px; top: 8px; }
.err-box { background: var(--error-container); color: var(--on-error-container); padding: 10px 14px; border-radius: var(--r-md); display: flex; gap: 8px; align-items: center; font-size: 13px; }

/* ---------- planlayıcı */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.opt { border: 1px solid var(--outline-variant); border-radius: 20px; padding: 14px; cursor: pointer; background: var(--surface); transition: .2s var(--ease); position: relative; text-align: left; }
.opt:hover { border-color: var(--outline); }
.opt.sel { background: var(--primary-container); color: var(--on-primary-container); border-color: transparent; box-shadow: var(--e1); }
.opt.no { opacity: .6; }
.opt .t { font-size: 20px; font-weight: 450; font-variant-numeric: tabular-nums; }
.opt .tag { position: absolute; top: -11px; right: 12px; }
.verdict { border-radius: var(--r-xl); padding: 24px; background: var(--money-container); color: var(--on-money-container); position: relative; overflow: hidden; }
.verdict.bad { background: var(--error-container); color: var(--on-error-container); }
.verdict .big { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.18; font-weight: 450; letter-spacing: -.01em; }
.verdict .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 18px; }
.verdict .facts div { background: color-mix(in srgb, var(--surface-container-lowest) 55%, transparent); border-radius: 16px; padding: 12px 14px; }
.verdict .facts b { display: block; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- ayarlar */
.set-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; }
.set-nav a { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: var(--r-full); color: var(--on-surface-variant); font-weight: 500; }
.set-nav a:hover { background: color-mix(in srgb, var(--on-surface) 6%, transparent); }
.set-nav a.on { background: var(--secondary-container); color: var(--on-secondary-container); }
@media (max-width: 899px) { .set-grid { grid-template-columns: 1fr; } .set-nav { position: static; flex-direction: row; overflow-x: auto; } .set-nav a { white-space: nowrap; } }
.set-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--outline-variant); flex-wrap: wrap; }
.set-row:first-of-type { border-top: 0; }
.set-row .txt { flex: 1; min-width: 200px; } .set-row .txt .h { font-size: 15px; } .set-row .txt .s { font-size: 12px; color: var(--on-surface-variant); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.swatch.on::after { content: "check"; font-family: "Material Symbols Rounded"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; }

/* ---------- yükleme alanı */
.drop { border: 2px dashed var(--outline-variant); border-radius: 24px; padding: 32px; text-align: center; cursor: pointer; transition: .2s; background: var(--surface-container-lowest); }
.drop:hover, .drop.over { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.drop .msr { font-size: 48px; color: var(--primary); }

.month-sw { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-container-high); border-radius: var(--r-full); padding: 4px; }
.month-sw .m { min-width: 112px; text-align: center; font-weight: 500; font-size: 14px; }
.lock-screen { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(24px); }

/* =====================================================================  v2: animasyon ve görsellik */
/* sayfa öğeleri sırayla yükselerek gelir */
.rise { animation: rise .6s var(--ease-emph) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.page { animation: none; }
/* Material dalga efekti */
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .18; transform: scale(0); animation: ripple .6s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
/* kredi kartı: 3B eğim + fareyi izleyen parlama */
.ccard { transform-style: preserve-3d; will-change: transform; }
.ccard .cc-shine, .ccard.lit::before { pointer-events: none; }
.ccard.lit { transition: transform .08s linear, box-shadow .3s; }
.ccard .cc-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 1; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .3), transparent 45%); }
.ccard.lit .cc-shine { opacity: 1; }
/* hero: yavaşça akan renk alanları */
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; z-index: -1; pointer-events: none; }
.hero::before { width: 340px; height: 340px; background: color-mix(in srgb, var(--tertiary) 55%, transparent); top: -140px; right: -60px; animation: float1 14s ease-in-out infinite alternate; }
.hero::after { width: 280px; height: 280px; background: color-mix(in srgb, var(--primary) 45%, transparent); bottom: -150px; left: 20%; animation: float2 18s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate(-80px, 60px) scale(1.15); } }
@keyframes float2 { to { transform: translate(120px, -40px) scale(.9); } }
.hero .stack i { transform-origin: left; animation: grow 1s var(--ease-emph) both .25s; }
@keyframes grow { from { transform: scaleX(0); } }
.kpi { transition: transform .3s var(--ease-emph), box-shadow .3s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--e2); }
.kpi .ico { transition: transform .4s var(--ease-emph); }
.kpi:hover .ico { transform: rotate(-8deg) scale(1.1); }
.escape .ic { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.cal .d.has { transition: transform .2s var(--ease-emph); }
.cal .d.has:hover { transform: scale(1.12); }
.rail a.dest .pill { transition: background .25s var(--ease), transform .3s var(--ease-emph); }
.rail a.dest:hover .pill { transform: scale(1.06); }
.surface.click:hover, .li.click:hover { transform: translateX(2px); }
.surface, .li { transition: background .2s, transform .25s var(--ease-emph), box-shadow .25s; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
@media (prefers-reduced-motion: reduce) { .rise, .hero::before, .hero::after, .escape .ic { animation: none !important; } }

/* ödeme ve hızlı harcama */
.pay-amount { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 6px 0 2px; border-bottom: 2px solid var(--primary); margin: 0 auto; width: min(320px, 100%); }
.pay-amount .cur { font-size: 28px; color: var(--on-surface-variant); }
.pay-amount input { border: 0; outline: 0; background: transparent; font-size: 44px; font-weight: 450; width: 100%; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--on-surface); }
.pay-prev:empty { display: none; }
.pay-ok, .pay-warn { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; animation: rise .35s var(--ease-emph); }
.pay-ok { background: var(--money-container); color: var(--on-money-container); align-items: center; }
.pay-warn { background: var(--warn-container); color: var(--on-warn-container); }
.qe-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.qe-card { position: relative; aspect-ratio: 1.586; border: 0; border-radius: 14px; padding: 10px 12px; color: #fff; text-align: left; cursor: pointer; display: flex; flex-direction: column;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 6px 16px -8px var(--c2); transition: transform .25s var(--ease-emph), box-shadow .25s, outline-color .2s;
  outline: 3px solid transparent; outline-offset: 3px; overflow: hidden; }
.qe-card:hover { transform: translateY(-2px); }
.qe-card[aria-checked="true"] { outline-color: var(--primary); transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 24px -10px var(--c2); }
.qe-card[aria-checked="true"]::after { content: "check_circle"; font-family: "Material Symbols Rounded"; font-variation-settings: "FILL" 1; position: absolute; top: 8px; right: 8px; font-size: 22px; animation: pop .3s var(--ease-emph); }
.qe-card .qe-bank { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.qe-card .qe-name { font-size: 13px; font-weight: 500; margin-top: 2px; }
.qe-card .qe-num { margin-top: auto; font-size: 11px; letter-spacing: .12em; opacity: .9; }
.qe-step { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--outline-variant); border-radius: var(--r-sm); height: 32px; padding: 0 2px; font-size: 13px; font-weight: 500; color: var(--on-surface-variant); }
.qe-step #qe-inst { min-width: 72px; text-align: center; }
.qe-per { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--secondary-container); color: var(--on-secondary-container); font-size: 13px; }
.qe-fab { position: fixed; right: 108px; bottom: 28px; z-index: 7; background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary), var(--tertiary) 50%)); color: var(--on-primary); }
.hide-lg { display: none !important; }
@media (max-width: 839px) { .hide-lg { display: inline-flex !important; } .qe-fab { bottom: 96px; right: 96px; } .qe-fab span:not(.msr) { display: none; } .qe-fab { width: 56px; padding: 0; justify-content: center; } }
.fab-fixed { right: 108px; }
@media (max-width: 839px) { .fab-fixed { right: 96px; bottom: 160px; } }
.avatar-btn img { width: 40px; height: 40px; }

/* =====================================================================  maskot Kuruş */
.kurus { position: fixed; right: 22px; bottom: 18px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.kurus-btn { pointer-events: auto; width: 76px; height: 76px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .22)); }
.kurus-svg { width: 100%; height: 100%; overflow: visible; }
.kurus .k-body { transform-origin: 60px 100px; animation: k-bob 3.2s ease-in-out infinite; }
.kurus .k-shadow { transform-origin: 60px 112px; animation: k-shadow 3.2s ease-in-out infinite; }
@keyframes k-bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes k-shadow { 50% { transform: scaleX(.8); opacity: .1; } }
.kurus .k-arm.r { transform-origin: 98px 66px; animation: k-wave 6s ease-in-out infinite; }
@keyframes k-wave { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-22deg); } 88% { transform: rotate(8deg); } 92% { transform: rotate(-18deg); } }
.kurus .k-eyes { transform-origin: 60px 56px; transition: transform .08s; }
.kurus.blink .k-eyes { transform: scaleY(.1); }
.kurus[data-mood="worried"] .k-brows { transform: translateY(2px) rotate(0); }
.kurus[data-mood="worried"] .k-brows path:first-child { transform: rotate(12deg); transform-origin: 46px 44px; }
.kurus[data-mood="worried"] .k-brows path:last-child { transform: rotate(-12deg); transform-origin: 74px 44px; }
.kurus[data-mood="worried"] .k-mouth { d: path("M50 74 q10 -7 20 0"); }
.kurus[data-mood="happy"] .k-mouth { d: path("M48 68 q12 14 24 0"); }
.kurus.wiggle .kurus-btn { animation: k-wiggle .5s var(--ease-emph); }
@keyframes k-wiggle { 25% { transform: rotate(-12deg) scale(1.08); } 60% { transform: rotate(9deg) scale(1.05); } }
.kurus-btn:hover .k-body { animation-duration: 1.2s; }
.kurus-badge { position: absolute; top: 2px; right: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--error); color: var(--on-error);
  font-size: 12px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--surface); animation: pop .4s var(--ease-emph); }
.kurus-bubble { pointer-events: auto; max-width: min(300px, calc(100vw - 120px)); margin: 0 18px 8px 0; padding: 12px 34px 12px 14px; border-radius: 18px 18px 4px 18px; background: var(--inverse-surface);
  color: var(--inverse-on-surface); font-size: 13px; line-height: 1.45; box-shadow: var(--e3); cursor: pointer; position: relative; opacity: 0; transform: translateY(8px) scale(.96);
  transform-origin: bottom right; transition: .3s var(--ease-emph); visibility: hidden; }
.kurus-bubble.on { opacity: 1; transform: none; visibility: visible; }
.kurus-x { position: absolute; top: 6px; right: 6px; border: 0; background: none; color: inherit; opacity: .7; cursor: pointer; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
@media (max-width: 839px) { .kurus { bottom: 88px; right: 10px; } .kurus-btn { width: 64px; height: 64px; } }
.kurus-panel { position: fixed; right: 16px; bottom: 108px; z-index: 46; width: min(400px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 140px)); display: flex; flex-direction: column;
  background: var(--surface-container-high); border-radius: 28px; box-shadow: var(--e3); overflow: hidden; opacity: 0; transform: translateY(16px) scale(.96); transform-origin: bottom right;
  transition: .3s var(--ease-emph); }
.kurus-panel.on { opacity: 1; transform: none; }
.kurus-panel header { display: flex; align-items: center; gap: 12px; padding: 16px 12px 12px 16px; background: linear-gradient(135deg, color-mix(in srgb, #f6c344 28%, var(--surface-container-high)), var(--surface-container-high)); }
.kp-face { width: 48px; height: 48px; flex: none; }
.kp-body { overflow-y: auto; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.kp-h { padding: 12px 4px 2px; color: var(--on-surface-variant); }
.kp-empty { display: grid; justify-items: center; gap: 8px; padding: 24px; color: var(--on-surface-variant); text-align: center; }
.kp-empty .msr { font-size: 40px; color: var(--money); }
.kurus-panel footer { padding: 12px; border-top: 1px solid var(--outline-variant); }
.tip { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface-container-lowest); animation: rise .4s var(--ease-emph) both; }
.tip.read { opacity: .72; background: transparent; }
.tip-ic { width: 36px; height: 36px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--tb); color: var(--tf); }
.tip-ic .msr { font-size: 20px; }
.tip-t { flex: 1; min-width: 0; }
.tip-t .body-s { color: var(--on-surface-variant); margin-top: 2px; }
.tip-m { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--on-surface-variant); }
@media (max-width: 839px) { .kurus-panel { bottom: 160px; right: 8px; } }

/* =====================================================================  profil */
.profile { position: relative; }
.pf-cover { position: relative; height: 190px; border-radius: 28px; overflow: hidden; isolation: isolate; }
.pf-cover i { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .75; z-index: -1; }
.pf-cover .b1 { width: 260px; height: 260px; background: var(--g1); left: -40px; top: -80px; animation: float1 12s ease-in-out infinite alternate; }
.pf-cover .b2 { width: 220px; height: 220px; background: var(--g2); right: 10%; top: -40px; animation: float2 15s ease-in-out infinite alternate; }
.pf-cover .b3 { width: 200px; height: 200px; background: var(--g3); left: 40%; bottom: -120px; animation: float1 17s ease-in-out infinite alternate-reverse; }
.cover-aurora { --g0: #1b1f4b; --g1: #6a5cff; --g2: #00d4b4; --g3: #ff7ac6; background: var(--g0); }
.cover-sunset { --g0: #3b1027; --g1: #ff6b4a; --g2: #ffb84d; --g3: #c04cff; background: var(--g0); }
.cover-ocean { --g0: #052b46; --g1: #1e90ff; --g2: #3fe0d0; --g3: #5b6cff; background: var(--g0); }
.cover-forest { --g0: #0d2a1c; --g1: #2bb673; --g2: #b6e35a; --g3: #0f8f7a; background: var(--g0); }
.cover-berry { --g0: #2a0f2e; --g1: #e0408a; --g2: #8a4dff; --g3: #ff9a8a; background: var(--g0); }
.cover-gold { --g0: #2b1d05; --g1: #f6c344; --g2: #ff8a3c; --g3: #ffe3a1; background: var(--g0); }
.pf-cv { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .6); cursor: pointer; background: linear-gradient(135deg, var(--g1), var(--g2)); transition: transform .2s var(--ease-emph); }
.pf-cv:hover { transform: scale(1.15); } .pf-cv.on { border-color: #fff; box-shadow: 0 0 0 2px rgb(255 255 255 / .35); transform: scale(1.12); }
.pf-covers { position: absolute; right: 16px; top: 16px; display: flex; gap: 8px; padding: 6px 8px; border-radius: 999px; background: rgb(0 0 0 / .22); backdrop-filter: blur(8px); }
.pf-head { display: flex; align-items: flex-end; gap: 20px; padding: 0 24px; margin-top: -60px; position: relative; flex-wrap: wrap; }
.pf-avatar { width: 128px; height: 128px; border-radius: 50%; flex: none; position: relative; box-shadow: 0 0 0 6px var(--surface), var(--e2); background: var(--primary-container);
  color: var(--on-primary-container); display: grid; place-items: center; font-size: 44px; font-weight: 500; animation: pop .5s var(--ease-emph); }
.pf-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pf-cam { position: absolute; right: 2px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 4px var(--surface); transition: transform .2s var(--ease-emph); }
.pf-cam:hover { transform: scale(1.1) rotate(-8deg); }
.pf-cam .msr { font-size: 20px; }
.pf-id { flex: 1; min-width: 200px; padding-bottom: 8px; }
.pf-goal { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tertiary-container); color: var(--on-tertiary-container); font-size: 13px; font-weight: 500; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 20px; }
.pf-st { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 20px; background: var(--surface-container-low); transition: transform .3s var(--ease-emph), box-shadow .3s; }
.pf-st:hover { transform: translateY(-3px); box-shadow: var(--e2); }
.pf-st b { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pf-st > span:last-child { font-size: 12px; color: var(--on-surface-variant); }
.pf-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--secondary-container); color: var(--on-secondary-container); margin-bottom: 4px; }
.pf-ic .msr { font-size: 19px; } .pf-ic.money { background: var(--money-container); color: var(--on-money-container); } .pf-ic.err { background: var(--error-container); color: var(--on-error-container); } .pf-ic.ter { background: var(--tertiary-container); color: var(--on-tertiary-container); }
@media (max-width: 599px) { .pf-head { padding: 0 8px; } .pf-avatar { width: 104px; height: 104px; } }

/* diyalog: başlık ve düğmeler sabit, yalnız içerik kayar (iç içe kaydırma çubuğu olmasın) */
.dialog { display: flex; flex-direction: column; overflow: hidden; }
.dialog > h2, .dialog > .d-ico, .dialog > .actions { flex: none; }
.dialog > .d-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0 -24px; padding: 2px 24px 4px; overscroll-behavior: contain; }
.dialog > .actions { margin-top: 0; padding-top: 16px; border-top: 1px solid transparent; }
.dialog.scrolled > .actions { border-top-color: var(--outline-variant); }
.st-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-container-high); }
.st-table td input.lbl { color: inherit; }
.st-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface-container); font-size: 13px; }
.st-sum b { font-variant-numeric: tabular-nums; }
.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.st-grid .wide { grid-column: span 2; }
@media (max-width: 760px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-opts { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--outline-variant); }
.st-opts .check { min-height: 34px; font-size: 13px; }

.pf-id { padding-top: 68px; }
@media (max-width: 599px) { .pf-id { padding-top: 0; } }

/* =====================================================================  v3: kullanılabilirlik */
/* PDF yükleme alanı: <label> satır içi olduğu için kenarlık parçalanıyordu → blok/flex */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 220px; box-sizing: border-box; }
.drop .msr { font-size: 56px; }
.drop > * { max-width: 520px; }

/* üst çubuk ay seçici: büyük tıklama alanları + ay ızgarası */
.month-sw { gap: 4px; padding: 4px; }
.month-sw .icon-btn { width: 40px; height: 40px; }
.month-sw .m { display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 0; padding: 0 14px; border: 0; border-radius: var(--r-full); cursor: pointer;
  background: var(--surface-container-highest); color: var(--on-surface); font: 500 15px/1 inherit; white-space: nowrap; transition: background .2s var(--ease); }
.month-sw .m:hover { background: color-mix(in srgb, var(--primary) 14%, var(--surface-container-highest)); }
.month-sw .m .msr { color: var(--primary); }
.mp-pop { position: fixed; z-index: 60; width: 300px; padding: 12px; border-radius: 24px; background: var(--surface-container-high); color: var(--on-surface);
  box-shadow: var(--e3, 0 12px 40px rgb(0 0 0 / .35)); animation: pop .18s var(--ease-emph, ease) both; transform-origin: top center; }
.mp-h { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mp-m { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 0; border-radius: 14px; cursor: pointer; background: transparent; color: var(--on-surface); font: inherit; }
.mp-m span { font-weight: 500; font-size: 14px; }
.mp-m small { font-size: 11px; color: var(--on-surface-variant); }
.mp-m:hover { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
.mp-m.past { opacity: .7; }
.mp-m.now { box-shadow: inset 0 0 0 1.5px var(--primary); }
.mp-m.on { background: var(--primary); color: var(--on-primary); opacity: 1; }
.mp-m.on small { color: inherit; opacity: .85; }
.mp-f { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--outline-variant); }

/* bu ay bitti şeridi */
.done-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--money-container); color: var(--on-money-container); }
.done-banner > .msr { font-size: 26px; }

/* kart detayı: dönem çipleri (yatay kaydırılır) */
.per-chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.per-chip { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 128px; padding: 10px 14px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--outline-variant); background: var(--surface-container-low); color: var(--on-surface); font: inherit; text-align: left; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.per-chip:hover { background: var(--surface-container-high); transform: translateY(-1px); }
.per-chip .pm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.per-chip .pa { font-size: 17px; font-weight: 600; }
.per-chip .ps { font-size: 11px; color: var(--on-surface-variant); }
.per-chip.cur { border-color: var(--primary); }
.per-chip.on { background: var(--secondary-container); color: var(--on-secondary-container); border-color: transparent; }
.per-chip.on .ps { color: inherit; opacity: .8; }
.per-chip.ghost { min-width: 0; justify-content: center; }
.per-sep { flex: 0 0 1px; align-self: stretch; background: var(--outline-variant); margin: 4px 2px; }

/* yan menü: sade logo + tek "Ekle" */
.rail .brand { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 12px; }
.rail .brand .msr { font-size: 24px; }
.rail-add { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px; padding: 0 0 8px; margin-bottom: 12px; border: 0; background: none; cursor: pointer; color: var(--on-surface); font: inherit; }
.rail-add .pill { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: var(--on-primary-container);
  background: var(--primary-container); box-shadow: var(--e1); transition: transform .25s var(--ease-emph, ease), box-shadow .2s var(--ease); }
.rail-add:hover .pill { transform: translateY(-2px) rotate(90deg); box-shadow: var(--e2, 0 6px 16px rgb(0 0 0 / .25)); }
.rail-add .pill .msr { font-size: 28px; }
.rail-add .lbl { font-size: 12px; font-weight: 600; letter-spacing: .03em; }

/* hızlı harcama: nakit seçeneği */
.qe-card.qe-cash { background: linear-gradient(135deg, #1f7a4d, #2fb37a); --c2: #2fb37a; }
.qe-card.qe-cash .qe-num .msr { font-size: 22px; letter-spacing: 0; }

/* v4: ana sayfada tıklanabilir veriler, süre kutusu */
.go { cursor: pointer; border-radius: 8px; transition: background .15s var(--ease), opacity .15s; }
.netbox .go { margin: 0 -8px; padding: 4px 8px; }
.netbox .go:hover, .legend .go:hover, h2.go:hover, .title-m.go:hover { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
.legend .go { padding: 2px 6px; margin: -2px -6px; }
.big.go:hover { opacity: .85; }
.stack i.go:hover { filter: brightness(1.15); }
.badge.go:hover { filter: brightness(1.1); }
.kpi.click { position: relative; }
.kpi .kpi-go { margin-left: auto; opacity: 0; transform: translateX(-4px); transition: .2s var(--ease); color: var(--on-surface-variant); }
.kpi.click:hover .kpi-go, .kpi.click:focus-visible .kpi-go { opacity: 1; transform: none; }
.cal .d[data-day] { cursor: pointer; } .cal .d[data-day]:hover { filter: brightness(1.15); outline: 1.5px solid var(--primary); }
#cf .hit { cursor: pointer; }
.go:focus-visible, .li.click:focus-visible, .cal .d:focus-visible, .kpi.click:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
tr.flash > td { animation: flashRow 2.4s var(--ease) 1; }
@keyframes flashRow { 0%, 40% { background: color-mix(in srgb, var(--primary) 22%, transparent); } 100% { background: transparent; } }
.dur-box { padding: 16px; border-radius: 16px; border: 1px solid var(--outline-variant); background: var(--surface-container-low); }
.dur-prev { display: flex; align-items: center; gap: 6px; min-height: 20px; margin-top: 8px; color: var(--on-surface-variant); }
.dur-prev b { color: var(--on-surface); }

/* aşağı çekerek yenile */
html { overscroll-behavior-y: contain; }
#ptr { position: fixed; top: -44px; left: 50%; z-index: 95; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; opacity: 0; pointer-events: none;
  background: var(--surface-container-high); color: var(--primary); box-shadow: var(--elev-2, 0 2px 8px rgba(0,0,0,.3)); transform: translate(-50%, 0); transition: transform .25s var(--ease-emph, ease), opacity .25s; }
#ptr.hazir { background: var(--primary); color: var(--on-primary); }
#ptr.donuyor .msr { animation: ptr-don .8s linear infinite; }
@keyframes ptr-don { to { transform: rotate(360deg); } }

/* ---------- telefon: daha sıkı yerleşim */
.cal-chev { display: none; }
@media (max-width: 839px) {
  /* ödeme takvimi istenince açılır */
  .cal-sec .cal-toggle { cursor: pointer; margin-bottom: 0; min-height: 32px; }
  .cal-chev { display: inline-flex; color: var(--on-surface-variant); transition: transform .25s var(--ease-emph, ease); }
  .cal-sec:not(.open) .cal { display: none; }
  .cal-sec.open .cal-toggle { margin-bottom: 10px; }
  .cal-sec.open .cal-chev { transform: rotate(180deg); }
  .cal .d { height: 34px; }

  .content { padding: 0 12px 100px; }
  .grid { gap: 10px; }
  .mt16 { margin-top: 10px !important; } .mt24 { margin-top: 14px !important; }
  .surface { padding: 14px; border-radius: 20px; }
  .surface-h { margin-bottom: 8px; min-height: 32px; }
  .section-h { margin: 18px 2px 8px; gap: 6px; }
  .section-h h2 { min-width: 0; font-size: 20px; line-height: 26px; }
  .section-h .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .hero { padding: 16px; border-radius: 24px; }
  .hero .big { font-size: 32px; }
  .escape { padding: 12px 14px; gap: 12px; border-radius: 20px; }
  .escape .ic { width: 40px; height: 40px; }

  /* özet kutuları ikişer */
  .g-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { min-height: 0; gap: 4px; }
  .kpi .top { gap: 8px; font-size: 13px; }
  .kpi .ico { width: 30px; height: 30px; border-radius: 10px; }
  .kpi .ico .msr { font-size: 18px; }
  .kpi .val { font-size: 20px; line-height: 26px; }
  .kpi .sub { font-size: 11px; }

  /* kartlar iki sütun */
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .ccard { border-radius: 14px; padding: 10px 12px; }
  .ccard .cc-name, .ccard .cc-chip, .ccard::after { display: none; }
  .ccard .cc-lbl { margin-top: auto; }
  .ccard .cc-amt { font-size: clamp(16px, 11cqi, 22px); }
  .ccard .cc-bot { font-size: 10px; }
  .ccard .cc-num { letter-spacing: .06em; }
  .ccard-wrap { gap: 6px; }
  .ccard-meta { padding: 0 2px; gap: 4px; min-height: 28px; }
  .ccard-meta .badge { font-size: 11px; padding: 0 6px; }
  .ccard-meta .btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }
  .ccard-meta .btn.sm .msr { display: none; }
}
