*{box-sizing:border-box;margin:0;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:#f4f7fc;color:#14213d;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
.app{max-width:480px;margin:0 auto;padding:max(14px,env(safe-area-inset-top)) 16px 16px}
header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;animation:fade .5s both}
.brand{display:flex;align-items:center;gap:10px;color:var(--d)}
.logo{width:38px;height:38px;border-radius:10px;object-fit:cover}
.ph{display:grid;place-items:center;background:var(--p);color:#fff;font-weight:700}
.demo{font-size:11px;background:var(--a);color:var(--d);padding:4px 10px;border-radius:99px;font-weight:600}
.welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;animation:fade .5s .08s both}
.welcome small{color:#64748b}.welcome h1{font-size:22px;color:var(--d)}
.avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 8px #0002}
.card{background:linear-gradient(135deg,var(--p),var(--d));color:#fff;border-radius:20px;padding:20px;box-shadow:0 12px 28px -10px var(--p);animation:rise .6s .12s both}
.card small{opacity:.8}.bal{display:flex;align-items:center;justify-content:space-between;margin:8px 0 6px}
.bal strong{font-size:30px;letter-spacing:.5px}
#eye{background:#fff2;border:0;color:#fff;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;cursor:pointer}
#eye svg{width:22px;height:22px}.acc{display:block}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0;animation:fade .6s .25s both}
.tile{background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:6px;font:inherit;font-size:11.5px;color:#334155;text-align:center}
.tile i{width:54px;height:54px;border-radius:16px;background:#fff;color:var(--p);display:grid;place-items:center;box-shadow:0 3px 10px #1a3a8a14;transition:transform .15s}
.tile i svg{width:24px;height:24px}button.tile{cursor:pointer}button.tile:active i{transform:scale(.92)}
.tile.off{pointer-events:none;cursor:default}
.banner{height:120px;border-radius:18px;background:linear-gradient(120deg,var(--a),#fff) center/cover;display:flex;align-items:center;padding:20px;color:var(--d);animation:fade .6s .35s both}
.banner small{display:block;opacity:.7;margin-top:4px}
.bottom{position:fixed;bottom:0;left:0;right:0;background:#fff;display:flex;justify-content:space-around;padding:8px 0 calc(8px + env(safe-area-inset-bottom));box-shadow:0 -4px 16px #0000000d;max-width:480px;margin:auto}
.bottom div{display:flex;flex-direction:column;align-items:center;font-size:11px;color:#94a3b8;gap:3px;pointer-events:none}
.bottom svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.bottom .on{color:var(--p)}
.sheet{position:fixed;inset:0;background:#0b1b3d88;display:flex;align-items:flex-end;justify-content:center;opacity:0;transition:opacity .2s;z-index:10}
.sheet.show{opacity:1}.sheet.center{align-items:center}
.panel{background:#fff;width:100%;max-width:480px;border-radius:22px 22px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom));transform:translateY(30px);transition:transform .22s}
.center .panel{border-radius:22px;margin:20px;text-align:center}.sheet.show .panel{transform:none}
h2{color:var(--d);margin-bottom:14px;font-size:19px}
dt{font-size:12px;color:#64748b;margin-top:12px}dd{font-weight:600;word-break:break-word}
.note{font-size:12px;color:#64748b;margin:14px 0}
.btn{display:block;width:100%;padding:14px;border:0;border-radius:12px;background:var(--p);color:#fff;font:inherit;font-weight:600;margin-top:10px;cursor:pointer}
.btn.ghost{background:var(--a);color:var(--d)}
.opt{display:block;margin-bottom:8px}.opt input{position:absolute;opacity:0}
.opt span{display:block;padding:13px 14px;border:1.5px solid #e2e8f0;border-radius:12px}
.opt input:checked+span{border-color:var(--p);background:var(--a);color:var(--d);font-weight:600}
#custom{display:flex;gap:10px}#custom label{flex:1;font-size:12px;color:#64748b}
#custom input{width:100%;padding:10px;border:1.5px solid #e2e8f0;border-radius:10px;font:inherit;margin-top:4px}
.err{color:#c0392b;font-size:13px;min-height:18px;margin-top:6px}
.ok{width:60px;height:60px;border-radius:50%;background:#16a34a;color:#fff;font-size:32px;display:grid;place-items:center;margin:0 auto 12px;animation:pop .4s}
@keyframes fade{from{opacity:0;transform:translateY(8px)}}@keyframes rise{from{opacity:0;transform:translateY(20px) scale(.97)}}@keyframes pop{from{transform:scale(0)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
