:root { color-scheme:dark; --bg:#090f19; --surface:#101a29; --surface2:#172335; --stroke:#26344a; --ink:#f6f8ff; --muted:#94a4bb; --accent:#61e0b3; --accent-bright:#7cf4c9; --danger:#ff7180; --radius:20px; }
* { box-sizing:border-box; }
html { background:var(--bg); scroll-behavior:smooth; }
body { margin:0; min-height:100vh; background:radial-gradient(circle at 80% -15%, #1e334a 0%, transparent 46%),var(--bg); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; -webkit-font-smoothing:antialiased; }
body::before { content:"";position:fixed;z-index:-1;inset:0;pointer-events:none;background:radial-gradient(circle at 5% 120%, #14231f 0%, transparent 48%); }
a { color:inherit; text-decoration:none; }
button,input { font:inherit; }
button { cursor:pointer; }
.app-shell { max-width:1000px; padding:0 28px; margin:0 auto; }
.header { height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1f2b3c; }
.brand { display:flex;align-items:center;gap:12px; }
.brand-symbol { display:grid;place-items:center;font-size:28px;font-weight:800;width:46px;height:46px;border-radius:14px;color:#061910;background:linear-gradient(150deg,#a3f6d5,#48cba0);box-shadow:0 6px 34px #39cc9936; }
.brand strong { font-size:15px;letter-spacing:2.1px;display:block; }
.brand small { display:block;font-size:12px;color:var(--muted);margin-top:3px; }
.header-right { display:flex;gap:16px;align-items:center; }
.welcome { color:var(--muted);font-size:14px; }
.inline { display:inline;margin:0; }
.icon-btn { display:grid;place-items:center;width:40px;height:40px;background:var(--surface);color:#bac8db;border:1px solid var(--stroke);border-radius:12px; }
.icon-btn:hover { color:white;background:#24344b; }
.content { padding-top:47px;padding-bottom:120px; }
.top-label,.eyebrow { color:var(--accent);font-size:11px;font-weight:750;letter-spacing:2px; }
.page-heading { display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 32px; }
h1 { font-size:clamp(34px,5.3vw,46px);letter-spacing:-1.8px;line-height:1.15;margin:0;font-weight:760; }
h2 { font-size:19px;letter-spacing:-.45px; }
.period-indicator { border:1px solid var(--stroke);padding:9px 13px;border-radius:99px;color:#b4c0d0;font-size:12px;white-space:nowrap; }
.period-indicator i { display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 9px #4bdfa8; }
.stats-grid { display:grid;grid-template-columns:1fr 1fr;gap:16px; }
.stat-card { min-width:0;min-height:194px;border-radius:var(--radius);padding:24px;background:linear-gradient(145deg,#172234,#101827);border:1px solid #293649;box-shadow:0 12px 34px #00000019; }
.stat-card.featured { background:linear-gradient(132deg,#1c3b36,#142d32 54%,#14253a 105%);border-color:#365c54; }
.stat-label { color:#b1c1d4;font-size:13px; }
.stat-value { font-size:clamp(27px,3.8vw,40px);font-weight:770;letter-spacing:-1.4px;margin-top:18px;white-space:nowrap;font-variant-numeric:tabular-nums; }
.featured .stat-value { color:#9af7d1; }
.stat-value.negative { color:var(--danger); }
.stat-divider { border-top:1px solid #ffffff1d;margin:18px 0 15px; }
.stat-bottom { display:flex;justify-content:space-between;gap:8px;color:#98aabe;font-size:12px;flex-wrap:wrap; }
.stat-bottom b { color:#e7eef8;font-weight:650; }
.add-cta { display:flex;align-items:center;gap:17px;min-height:88px;margin-top:22px;padding:18px 24px;background:linear-gradient(110deg,#85f0c5,#55d8aa);color:#082a21;border-radius:19px;font-weight:800;font-size:21px;letter-spacing:-.4px;box-shadow:0 12px 44px #37d5a22c;transition:transform .15s ease,filter .15s ease; }
.add-cta:hover { filter:brightness(1.06); transform:translateY(-2px); }
.cta-plus { display:grid;place-items:center;width:48px;height:48px;background:#0c5b49;border-radius:13px;color:#b4ffe2; }
.cta-plus svg { width:29px;height:29px;stroke-width:2.5; }
.cta-arrow { margin-left:auto;font-weight:400;font-size:28px; }
.section-head { display:flex;justify-content:space-between;align-items:center;gap:12px;margin:39px 0 15px; }
.section-head h2 { margin:0; }
.section-head a { font-size:13px;color:#9cead0; }
.exchange-list { background:var(--surface);border:1px solid var(--stroke);border-radius:var(--radius);overflow:hidden; }
.exchange-row { display:flex;align-items:center;gap:15px;padding:19px 21px;min-width:0; }
.exchange-row+.exchange-row { border-top:1px solid #243247; }
.row-icon { flex:0 0 38px;width:38px;height:38px;background:#183b35;color:var(--accent);display:grid;place-items:center;border-radius:13px; }
.row-icon svg { width:19px;height:19px; }
.row-main { min-width:0;display:flex;flex-direction:column;gap:5px; }
.row-main strong { font-weight:670;font-size:16px;letter-spacing:-.2px;white-space:nowrap; }
.row-main small { color:var(--muted);font-size:12px;white-space:nowrap; }
.row-right { min-width:0;margin-left:auto;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:5px; }
.row-right strong { font-size:15px;white-space:nowrap; }
.earn { color:var(--accent); }
.loss { color:var(--danger); }
.edit-link { font-size:12px;color:#8eacd0;text-decoration:underline;text-decoration-color:#617b9870;text-underline-offset:3px; }
.empty-state { padding:45px 15px;line-height:1.8;text-align:center;color:var(--muted);font-size:14px; }
.privacy-note { display:flex;gap:7px;justify-content:center;align-items:center;margin-top:26px;font-size:12px;color:#71849b; }
.privacy-note svg { width:14px;height:14px; }
.bottom-nav { position:fixed;z-index:10;display:none;left:0;right:0;bottom:0;background:#111b2bf4;border-top:1px solid var(--stroke);padding:10px 14px max(12px,env(safe-area-inset-bottom));backdrop-filter:blur(16px); }
.nav-link { display:flex;flex-direction:column;align-items:center;gap:4px;color:#96a7bc;font-size:11px;flex:1; }
.nav-link.selected { color:var(--accent); }
.nav-link svg { width:21px;height:21px; }
.back-link { display:inline-flex;gap:7px;align-items:center;color:#93aac6;font-size:13px;margin-bottom:30px; }
.back-link svg { height:18px;width:18px; }
.form-heading { max-width:610px;margin-bottom:24px; }
.form-heading h1 { margin-top:9px; }
.form-heading p { color:var(--muted);line-height:1.6;font-size:14px; }
.editor-card { max-width:610px;padding:31px;background:var(--surface);border:1px solid var(--stroke);border-radius:var(--radius); }
.field-label { display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;color:#d8e2f1;margin-bottom:11px; }
.field-label span { color:#708aa2; }
.second-field { margin-top:30px; }
.amount-input, .login-card input:not([type=hidden]) { width:100%;height:67px;padding:0 19px;background:#0a1422;border:1px solid #304359;border-radius:14px;color:var(--ink);font-size:24px;font-weight:650;outline:none;transition:border-color .15s,box-shadow .15s;font-variant-numeric:tabular-nums; }
.amount-input:focus,.login-card input:focus { border-color:var(--accent);box-shadow:0 0 0 3px #55e3b322; }
.amount-input::placeholder,.login-card input::placeholder { color:#53637a; }
.field-hint { margin-top:9px;color:#8495ab;font-size:12px;line-height:1.5; }
.primary-btn { display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:58px;background:var(--accent);color:#0b261d;border:0;border-radius:13px;font-size:16px;font-weight:800; }
.primary-btn:hover { background:var(--accent-bright); }
.primary-btn:disabled { opacity:.7;cursor:wait; }
.primary-btn svg { width:20px;height:20px; }
.full { width:100%; }
.save-btn { margin-top:33px; }
.cancel-link { display:block;text-align:center;color:#92a5bb;margin-top:18px;font-size:14px; }
.message { padding:13px 17px;border-radius:12px;font-size:14px;margin:0 0 20px; }
.message.success { color:#95f1c9;background:#173d31;border:1px solid #397659; }
.message.error { color:#ffb2bc;background:#44212c;border:1px solid #7b3746; }
.delete-form { max-width:610px;text-align:center;margin:17px 0; }
.delete-btn { background:none;border:none;color:#ef8c99;display:inline-flex;align-items:center;gap:8px;font-size:13px; }
.delete-btn svg { width:16px;height:16px; }
.history-toolbar { display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--muted);margin:0 0 14px; }
.history-toolbar a { color:#a5dfd0;display:flex;align-items:center;gap:5px; }
.history-toolbar svg { width:16px;height:16px; }
.pagination { display:flex;justify-content:space-between;align-items:center;margin-top:20px; }
.page-link { border:1px solid var(--stroke);padding:12px 20px;border-radius:12px;font-size:13px;color:#b6c8d8; }
.login-body .app-shell { max-width:520px; }
.login-body .content { padding:0; }
.login-wrap { min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:50px 0; }
.login-logo { display:grid;place-items:center;width:76px;height:76px;border-radius:24px;font-size:48px;font-weight:800;color:#06251b;background:linear-gradient(140deg,#a3f6d5,#48cba0);margin-bottom:28px;box-shadow:0 8px 44px #39cc9930; }
.login-wrap .eyebrow { margin:0 0 11px; }
.login-wrap h1 { font-size:34px;text-align:center;letter-spacing:-1px; }
.subtitle { color:var(--muted);font-size:14px;text-align:center;margin:13px 0 30px; }
.login-card { width:100%;padding:30px;background:var(--surface);border:1px solid var(--stroke);border-radius:22px; }
.login-card input:not([type=hidden]) { height:54px;font-size:16px;font-weight:400; }
.login-card button { margin-top:28px; }
.login-footer { color:#798aa1;font-size:12px;margin-top:25px; }
@media (max-width:720px) {
  .app-shell { padding:0 17px; }
  .header { height:78px; }
  .brand-symbol { width:40px;height:40px;font-size:25px;border-radius:12px; }
  .brand strong { font-size:13px;letter-spacing:1.5px; }
  .brand small { font-size:11px; }
  .welcome { font-size:12px; }
  .content { padding-top:31px;padding-bottom:126px; }
  .page-heading { margin-bottom:25px; }
  .period-indicator { font-size:11px;padding:7px 9px; }
  .stats-grid { grid-template-columns:1fr;gap:12px; }
  .stat-card { min-height:155px;padding:20px; }
  .stat-value { font-size:clamp(30px,7vw,38px);margin-top:12px; }
  .stat-divider { margin:14px 0 12px; }
  .add-cta { margin-top:16px;min-height:78px;font-size:18px;padding:16px;gap:13px; }
  .cta-plus { width:45px;height:45px; }
  .section-head { margin-top:32px; }
  .exchange-row { padding:16px 12px;gap:9px; }
  .row-icon { flex-basis:32px;width:32px;height:32px;border-radius:10px; }
  .row-main strong { font-size:14px; }
  .row-main small { font-size:10px; }
  .row-right strong { font-size:13px; }
  .edit-link { font-size:11px; }
  .bottom-nav { display:flex; }
  .editor-card { padding:20px; }
  .form-heading h1 { font-size:36px; }
  .login-wrap { padding:30px 0;min-height:100dvh; }
  .login-card { padding:22px; }
}
@media (max-width:390px) {
  .welcome { display:none; }
  .stat-bottom { font-size:11px; }
  .row-icon { display:none; }
  .exchange-row { gap:7px; }
  .row-main strong,.row-right strong { font-size:12px; }
  .row-main small { font-size:10px; }
  .stat-value { font-size:30px; }
}
