/* ============================================================
   Keuangan Pribadi — gaya tampilan
   Putih bersih, aksen biru-ungu, glass halus. Mobile-first iOS.
   ============================================================ */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6478;
  --faint: #8a93a6;
  --line: #e6e8f0;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --teal: #0d9488;
  --in: #047857;
  --in-bg: #e7f7f1;
  --out: #c2264b;
  --out-bg: #fdecef;
  --warn: #9a5b00;
  --warn-bg: #fff6e5;
  --grad: linear-gradient(135deg, #4f46e5 0%, #6d4aec 55%, #2a8fd8 100%);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  --kb: 0px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
body { position: fixed; inset: 0; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
input, select, textarea { font-size: 16px; } /* ≥16px: iOS tidak auto-zoom */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.tabnum { font-variant-numeric: tabular-nums; }

/* ---------------- Layar PIN ---------------- */
.lock {
  position: fixed; inset: 0; z-index: 50; background: radial-gradient(120% 70% at 50% 0%, #eef0ff 0%, #ffffff 60%);
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--safe-top) + 24px) 24px calc(var(--safe-bottom) + 24px);
}
.lock-inner { width: 100%; max-width: 340px; text-align: center; }
.lock-logo { border-radius: 16px; box-shadow: var(--shadow); }
.lock-title { font-size: 24px; margin: 14px 0 4px; letter-spacing: -.02em; }
.lock-msg { color: var(--muted); margin: 0 0 22px; min-height: 22px; }
.lock-msg.err { color: var(--out); }
.lock-config { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); text-align: left; font-size: 14px; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 28px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c7cbe0; transition: transform .15s, background .15s, border-color .15s; }
.pin-dots i.on { background: var(--primary); border-color: var(--primary); transform: scale(1.1); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; justify-items: center; }
.pin-pad button {
  width: 74px; height: 74px; border-radius: 50%; font-size: 28px; font-weight: 500;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
  transition: transform .08s, background .15s;
}
.pin-pad button:active { transform: scale(.94); background: #eef0ff; }
.pin-pad button:disabled { opacity: .4; }
.pin-pad button[data-k="del"] { background: transparent; border-color: transparent; box-shadow: none; font-size: 24px; }

/* ---------------- Kerangka app ---------------- */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; }
.topbar {
  position: relative; z-index: 5; padding: calc(var(--safe-top) + 10px) 18px 10px;
  background: rgba(246, 247, 251, .82); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(230, 232, 240, .7);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar-sub { margin: 0; font-size: 13px; color: var(--muted); }
.topbar-title { margin: 0; font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--muted); font-size: 18px; }
.icon-btn:active { background: #eceef6; }
.sync-pill { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--muted); max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.sync-pill.ok .dot { background: #10b981; }
.sync-pill.sync .dot { background: var(--primary); animation: pulse 1s infinite; }
.sync-pill.offline .dot, .sync-pill.queue .dot { background: #f59e0b; }
.sync-pill.error .dot { background: var(--out); }
@keyframes pulse { 50% { opacity: .3; } }

.scroller {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  padding: 14px 16px 0;
}
.scroll-pad { height: calc(var(--tabbar-h) + var(--safe-bottom) + 36px); }
.view { animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- Tab bar ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  height: calc(var(--tabbar-h) + var(--safe-bottom)); padding: 6px 8px var(--safe-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(230, 232, 240, .8);
}
.tab { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--faint); font-size: 11px; font-weight: 500; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--primary); }
.tab-add { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--primary); margin-top: -22px; }
.tab-add svg { width: 56px; height: 56px; padding: 15px; border-radius: 18px; color: #fff; background: var(--grad); box-shadow: 0 8px 20px rgba(79, 70, 229, .35); transition: transform .12s; }
.tab-add:active svg { transform: scale(.93); }

/* ---------------- Kartu & elemen umum ---------------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; border: 1px solid rgba(230, 232, 240, .6); }
.card-title { font-size: 15px; margin: 0 0 12px; color: var(--muted); font-weight: 600; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 8px; }
.section-head h2 { font-size: 17px; margin: 0; }
.link-btn { color: var(--primary); font-weight: 600; font-size: 15px; min-height: 44px; padding: 0 4px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.period-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 2px 16px; }
.period-chips::-webkit-scrollbar { display: none; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--text); font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s, border-color .15s;
}
.chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.chip .freq { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.chip.on .freq { background: #fff; }

.custom-range { display: flex; gap: 10px; margin-bottom: 12px; }
.custom-range label { flex: 1; }

.hero {
  border-radius: 22px; padding: 18px 18px 16px; color: #fff; background: var(--grad); position: relative; overflow: hidden;
  box-shadow: 0 14px 30px rgba(79, 70, 229, .28); margin-bottom: 12px;
}
.hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -90px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.hero-label { margin: 0; font-size: 14px; opacity: .88; }
.hero-amount { margin: 2px 0 2px; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.hero-period { margin: 0; font-size: 13px; opacity: .85; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mini { background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); border: 1px solid rgba(230, 232, 240, .6); }
.mini p { margin: 0; }
.mini .lbl { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mini .val { font-size: 18px; font-weight: 700; margin-top: 4px; letter-spacing: -.01em; word-break: break-word; }
.mini.in .val { color: var(--in); }
.mini.out .val { color: var(--out); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; }
.mini.in .badge-dot { background: var(--in); }
.mini.out .badge-dot { background: var(--out); }

.insights { list-style: none; margin: 0; padding: 0; }
.insights li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.insights li:first-child { border-top: 0; padding-top: 0; }
.insights .ico { width: 34px; height: 34px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #eef0ff; color: var(--primary); font-size: 16px; }
.insights b { font-weight: 600; }
.insights small { display: block; color: var(--muted); font-size: 13px; }
.up { color: var(--out); font-weight: 600; }
.down { color: var(--in); font-weight: 600; }

/* ---------------- Daftar transaksi ---------------- */
.tx-list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(230, 232, 240, .6); overflow: hidden; }
.tx-list:empty { display: none; }
.day-head { display: flex; justify-content: space-between; padding: 10px 16px 6px; font-size: 13px; color: var(--muted); background: #fafbfe; border-top: 1px solid var(--line); }
.day-head:first-child { border-top: 0; }
.tx { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 60px; text-align: left; border-top: 1px solid var(--line); }
.tx:first-child, .day-head + .tx { border-top: 0; }
.tx:active { background: #f5f6fb; }
.tx-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.tx-ico.in { background: var(--in-bg); color: var(--in); }
.tx-ico.out { background: var(--out-bg); color: var(--out); }
.tx-main { flex: 1; min-width: 0; }
.tx-cat { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.tx-note { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-amt { font-weight: 700; font-size: 15px; white-space: nowrap; }
.tx-amt.in { color: var(--in); }
.tx-amt.out { color: var(--text); }
.tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: #eef0ff; color: var(--primary); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.err { background: var(--out-bg); color: var(--out); }
.empty { text-align: center; padding: 32px 20px; color: var(--muted); }
.empty .big { font-size: 34px; margin-bottom: 6px; }
.empty b { color: var(--text); display: block; margin-bottom: 4px; }

/* ---------------- Riwayat ---------------- */
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; min-height: 48px; color: var(--faint); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; min-height: 46px; color: var(--text); -webkit-appearance: none; appearance: none; }
.filters { margin: 10px 0 12px; }
.filter-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.field-sm { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.field-sm select, .field-sm input, .custom-range input {
  width: 100%; min-height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0 10px;
  -webkit-appearance: none; appearance: none; color: var(--text);
}
.field-sm input[type="date"], .custom-range input[type="date"] { display: block; line-height: 44px; }
.h-summary { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 2px 10px; font-size: 13px; color: var(--muted); }
.h-summary b { color: var(--text); }
.more-btn { display: block; width: 100%; min-height: 48px; margin: 12px 0; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--primary); font-weight: 600; }

/* ---------------- Segmented ---------------- */
.seg { display: flex; background: #eceef5; border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 40px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--muted); transition: background .15s, color .15s, box-shadow .15s; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.seg-jenis button.on.out { color: var(--out); }
.seg-jenis button.on.in { color: var(--in); }

/* ---------------- Grafik ---------------- */
.donut-wrap { display: flex; gap: 14px; align-items: center; }
.donut-wrap svg { width: 140px; height: 140px; flex: none; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend .pc { color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-caption { margin: 8px 0 0; font-size: 13px; color: var(--muted); min-height: 18px; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-legend .li { background: #10b981; }
.chart-legend .lo { background: #e5486b; }
.bar { cursor: pointer; }

/* ---------------- Banner ---------------- */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; margin-bottom: 12px; font-size: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.banner.warn { background: var(--warn-bg); border-color: #f6dfb0; color: #5f3b00; }
.banner.info { background: #eef0ff; border-color: #dcdffd; color: #2e2a8f; }
.banner.err { background: var(--out-bg); border-color: #f7c9d3; color: #7d1430; }
.banner p, .banner .b-body { margin: 0; flex: 1; min-width: 0; }
#dlg-body .ios-steps { color: var(--text); }
.banner .act { font-weight: 700; color: inherit; min-height: 32px; text-decoration: underline; }
.banner .x { min-width: 32px; min-height: 32px; color: inherit; opacity: .7; }
.ios-steps { margin: 6px 0 0; padding-left: 18px; }
.ios-steps li { margin: 2px 0; }
.share-ico { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }

/* ---------------- Bottom sheet ---------------- */
.backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(15, 23, 42, .32); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: var(--kb); z-index: 31;
  max-height: calc(100dvh - var(--kb) - var(--safe-top) - 16px);
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(15, 23, 42, .16);
  animation: slideUp .26s cubic-bezier(.2, .8, .2, 1);
  transition: bottom .15s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: #d7dae6; margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 4px 20px; flex: none; }
.sheet-head h2 { margin: 0; font-size: 19px; }
.sheet-body { padding: 6px 20px 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; flex: 1; }
.sheet-foot { padding: 10px 20px calc(var(--safe-bottom) + 12px); border-top: 1px solid var(--line); flex: none; background: rgba(255, 255, 255, .97); }
.sheet.kb-open .sheet-foot { padding-bottom: 12px; }
.sheet-foot.two { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }

.amount-field { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 2px; padding: 4px 4px 10px; border-bottom: 2px solid var(--line); transition: border-color .15s; }
.amount-field:focus-within { border-color: var(--primary); }
.amount-prefix { font-size: 22px; color: var(--muted); font-weight: 600; }
.amount-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 36px; font-weight: 700; letter-spacing: -.02em; padding: 0; font-variant-numeric: tabular-nums; }
.field-label { font-size: 13px; color: var(--muted); margin: 16px 0 8px; font-weight: 600; display: block; }
.field-error { color: var(--out); font-size: 13px; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.field input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; outline: 0; -webkit-appearance: none; appearance: none; }
.field input:focus { border-color: var(--primary); }
.cat-chips .chip { min-height: 44px; }
.date-row { display: flex; gap: 10px; align-items: stretch; }
.date-row .seg { flex: 1.3; }
.date-pick { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; font-size: 15px; color: var(--text); overflow: hidden; }
.date-pick.on { border-color: var(--primary); color: var(--primary); }
.date-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; -webkit-appearance: none; appearance: none; font-size: 16px; }

.btn-primary { width: 100%; min-height: 52px; border-radius: 16px; background: var(--grad); color: #fff; font-weight: 700; font-size: 17px; box-shadow: 0 8px 18px rgba(79, 70, 229, .28); transition: transform .1s, opacity .15s; }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .55; box-shadow: none; }
.btn-ghost { width: 100%; min-height: 50px; border-radius: 16px; background: #eef0f6; font-weight: 600; font-size: 16px; }
.btn-danger-ghost { width: 100%; min-height: 52px; border-radius: 16px; background: var(--out-bg); color: var(--out); font-weight: 700; font-size: 16px; }
.btn-danger { background: linear-gradient(135deg, #e11d48, #be123c); box-shadow: 0 8px 18px rgba(225, 29, 72, .28); }
.btn-primary.loading, .btn-danger-ghost.loading { position: relative; color: transparent; }
.btn-primary.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv li:first-child { border-top: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { text-align: right; word-break: break-word; }
.detail-amount { font-size: 30px; font-weight: 800; margin: 4px 0 14px; letter-spacing: -.02em; }
.detail-amount.in { color: var(--in); }
.detail-amount.out { color: var(--out); }
.note-box { padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: #5f3b00; font-size: 14px; margin-top: 10px; }

.settings-group { margin-bottom: 18px; }
.settings-group h3 { font-size: 13px; color: var(--muted); margin: 6px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.settings-btn { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); margin-top: 8px; font-weight: 600; }
.settings-btn.danger { color: var(--out); }
.warn-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 40vh; overflow-y: auto; font-size: 13px; }
.warn-list li { padding: 8px 0; border-top: 1px solid var(--line); }

/* ---------------- Dialog ---------------- */
.dialog { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, .4); animation: fade .15s; }
.dialog-box { width: 100%; max-width: 360px; background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 20px 60px rgba(15, 23, 42, .3); animation: pop .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.dialog-box h2 { margin: 0 0 8px; font-size: 19px; }
#dlg-body { color: var(--muted); font-size: 15px; }
#dlg-body p { margin: 0 0 8px; }
.dialog-actions.single { grid-template-columns: 1fr !important; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 16px; right: 16px; z-index: 70; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px + var(--kb));
  margin: 0 auto; max-width: 420px; padding: 13px 16px; border-radius: 16px; background: rgba(15, 23, 42, .92); color: #fff;
  font-size: 15px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); animation: toastIn .25s cubic-bezier(.2, .8, .2, 1);
}
.toast.success .t-ico { background: #10b981; }
.toast.error .t-ico { background: #e11d48; }
.toast.warn .t-ico { background: #f59e0b; }
.t-ico { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; background: #6366f1; animation: popIco .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }
@keyframes popIco { from { transform: scale(0); } }

/* ---------------- Skeleton ---------------- */
.skel { border-radius: 14px; background: linear-gradient(90deg, #eceef5 0%, #f6f7fb 50%, #eceef5 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel.hero-s { height: 128px; border-radius: 22px; margin-bottom: 12px; }
.skel.mini-s { height: 78px; }
.skel.row-s { height: 60px; margin-bottom: 8px; }

.ai-soon { text-align: left; }
.ai-soon h2 { margin: 6px 0 6px; font-size: 19px; }
.ai-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #eef0ff; color: var(--primary); }
.ai-examples { padding-left: 18px; color: var(--text); }
.ai-examples li { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 700px) { .scroller > * { max-width: 640px; margin-left: auto; margin-right: auto; } .sheet { max-width: 560px; margin: 0 auto; } }
