:root{
  --bg:#F7F7F4; --ink:#111111; --sub:#6F706B; --accent:#B8F34A; --accent-ink:#0B1A00;
  --border:#E4E3DD; --err:#C6432B; --white:#FFFFFF;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;}
html{height:100%; scroll-padding-top:env(safe-area-inset-top,0px);}
body{
  height:100%; margin:0; background:var(--bg); color:var(--ink);
  font-family:'Manrope',system-ui,sans-serif; -webkit-font-smoothing:antialiased;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
#app{
  width:100%; max-width:480px; height:100dvh; max-height:960px; min-height:700px;
  background:var(--bg); color:var(--ink); position:relative; overflow:hidden;
  display:flex; flex-direction:column;
}
@media (min-width:481px){
  #app{ border-radius:32px; box-shadow:0 30px 70px rgba(0,0,0,0.16); max-height:min(94dvh,900px); }
}
.screen{
  position:absolute; inset:0; display:flex; flex-direction:column;
  padding:28px 24px calc(24px + env(safe-area-inset-bottom,0px));
  opacity:0; transform:translateX(24px); pointer-events:none;
  transition:opacity .28s ease, transform .28s ease;
}
.screen.active{opacity:1; transform:translateX(0); pointer-events:auto;}
.screen.leaving{opacity:0; transform:translateX(-24px);}
.topbar{display:flex; align-items:center; justify-content:space-between; min-height:28px;}
.back{
  width:36px; height:36px; border-radius:10px; border:none; background:transparent;
  font-size:20px; color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.back:active{background:rgba(0,0,0,0.05);}
.progress-wrap{display:flex; align-items:center; gap:8px;}
.progress-num{font-size:12px; color:var(--sub); font-weight:600; letter-spacing:.02em;}
.progress-track{width:56px; height:3px; background:var(--border); border-radius:2px; overflow:hidden;}
.progress-fill{height:100%; background:var(--accent); border-radius:2px; transition:width .4s ease;}
.wordmark{font-size:18px; font-weight:800; letter-spacing:-0.02em;}
.spacer{flex:1;}
.hero{flex:1; display:flex; align-items:center; justify-content:center; min-height:0; position:relative;}
.anim-in{animation:riseIn .6s cubic-bezier(.2,.8,.2,1) both;}
@keyframes riseIn{from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);}}
.globe-scene{position:relative; width:240px; height:240px;}
.glow{position:absolute; inset:20px; border-radius:50%; background:radial-gradient(circle at 40% 35%, rgba(184,243,74,0.55), rgba(184,243,74,0) 70%); filter:blur(2px); animation:pulseGlow 4s ease-in-out infinite;}
@keyframes pulseGlow{0%,100%{transform:scale(1); opacity:.85;} 50%{transform:scale(1.08); opacity:1;}}
.orbit-ring{position:absolute; inset:0; width:100%; height:100%;}
.ring-1{animation:spinSlow 22s linear infinite;}
.ring-2{animation:spinSlow 16s linear infinite reverse;}
@keyframes spinSlow{to{transform:rotate(360deg);}}
.core-orb{
  position:absolute; top:50%; left:50%; width:104px; height:104px; margin:-52px 0 0 -52px;
  border-radius:50%; background:radial-gradient(circle at 35% 30%, #cdfb7d, #97d92e);
  box-shadow:0 14px 34px rgba(151,217,46,0.45), inset 0 -10px 18px rgba(0,0,0,0.08);
  animation:floatY 5s ease-in-out infinite;
}
@keyframes floatY{0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);}}
.sym{position:absolute; font-weight:800; color:#0B1A00; font-size:15px; opacity:.85;}
.sym-1{top:14px; left:16px;} .sym-2{bottom:16px; right:14px;} .sym-3{top:18px; right:18px; font-size:13px;} .sym-4{bottom:14px; left:20px; font-size:13px;}
.chip{
  position:absolute; background:var(--white); border:1px solid var(--border); border-radius:20px;
  padding:6px 12px; font-size:11.5px; font-weight:700; color:var(--ink); box-shadow:0 6px 16px rgba(0,0,0,0.08);
  animation:floatY 5s ease-in-out infinite;
}
.chip-a{top:6px; right:-6px; animation-delay:.4s;}
.chip-b{bottom:10px; left:-14px; animation-delay:1.1s;}
.dot{position:absolute; border-radius:50%; background:var(--ink); opacity:.55;}
.dot-a{width:6px; height:6px; top:36px; left:4px; animation:floatY 4s ease-in-out infinite;}
.dot-b{width:4px; height:4px; bottom:44px; right:8px; animation:floatY 4.5s ease-in-out infinite .3s;}
.dot-c{width:8px; height:8px; top:0; right:60px; opacity:.18; animation:floatY 6s ease-in-out infinite .6s;}
.content{display:flex; flex-direction:column; gap:6px;}
h1{font-size:28px; line-height:1.15; font-weight:700; letter-spacing:-0.02em; margin:0 0 4px;}
.sub{font-size:15px; line-height:1.5; color:var(--sub); margin:0 0 20px; max-width:34ch;}
.eyebrow{font-size:12px; color:var(--sub); font-weight:600; margin-bottom:6px;}
.field{margin-bottom:14px;}
.field label{display:block; font-size:13px; font-weight:600; color:var(--ink); margin-bottom:6px;}
.input-wrap{position:relative;}
input{
  width:100%; padding:14px 16px; border-radius:12px; border:1.5px solid var(--border);
  background:var(--white); font-size:15px; font-family:inherit; color:var(--ink);
  outline:none; transition:border-color .15s ease;
}
input:focus{border-color:var(--ink);}
.field.error input{border-color:var(--err);}
.error-msg{font-size:12.5px; color:var(--err); margin-top:6px; display:none;}
.field.error .error-msg{display:block;}
.eye-toggle{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  background:none; border:none; font-size:12px; color:var(--sub); cursor:pointer; font-weight:600;
}
.btn{
  width:100%; padding:16px; border-radius:14px; border:none; font-size:16px; font-weight:700;
  cursor:pointer; font-family:inherit; transition:transform .1s ease, opacity .15s ease;
}
.btn:active{transform:scale(0.98);}
.btn-primary{background:var(--ink); color:var(--white);}
.btn-primary:disabled{opacity:.35; cursor:not-allowed;}
.btn-primary:disabled:active{transform:none;}
.btn-social{
  background:var(--white); color:var(--ink); border:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:10px;
  transition:opacity .15s ease;
}
.btn-social svg{flex-shrink:0;}
.btn-social:disabled{opacity:.55; cursor:default;}
.btn-social:disabled:active{transform:none;}
#verify-intro{flex:1; display:flex; flex-direction:column; min-height:0;}
.btn-text{background:none; border:none; color:var(--sub); font-size:14px; font-weight:600; cursor:pointer; font-family:inherit; padding:10px;}
.divider{display:flex; align-items:center; gap:10px; margin:16px 0; color:var(--sub); font-size:12.5px;}
.divider::before, .divider::after{content:''; flex:1; height:1px; background:var(--border);}
.footer-actions{margin-top:auto; padding-top:16px; display:flex; flex-direction:column; align-items:center; gap:6px;}
.form-body{flex:1; overflow-y:auto; min-height:0;}
/* Welcome hero art */
.orb{width:220px; height:220px; position:relative;}
.orb svg{width:100%; height:100%;}
/* Identity hero */
.check-list{display:flex; flex-direction:column; gap:10px; margin:18px 0 4px;}
.check-item{display:flex; align-items:center; gap:10px; font-size:14.5px; color:var(--ink); font-weight:500;}
.check-dot{width:20px; height:20px; border-radius:50%; background:var(--accent); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.check-dot svg{width:11px; height:11px;}
.reassure{font-size:13px; color:var(--sub); margin-top:10px;}
.verify-status{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; text-align:center;}
.spinner{width:44px; height:44px; border-radius:50%; border:3px solid var(--border); border-top-color:var(--ink); animation:spin .8s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}
.success-dot{width:64px; height:64px; border-radius:50%; background:var(--accent); display:flex; align-items:center; justify-content:center; animation:pop .35s ease;}
.success-dot svg{width:30px; height:30px;}
@keyframes pop{from{transform:scale(0.6); opacity:0;} to{transform:scale(1); opacity:1;}}
.status-text{font-size:15px; font-weight:600;}
/* PIN */
.pin-dots{display:flex; gap:18px; justify-content:center; margin:36px 0 24px;}
.pin-dot{width:18px; height:18px; border-radius:50%; border:2px solid var(--border); transition:background .15s ease, border-color .15s ease, transform .1s ease;}
.pin-dot.filled{background:var(--ink); border-color:var(--ink); transform:scale(1.05);}
.pin-dot.shake{animation:shake .35s ease;}
@keyframes shake{0%,100%{transform:translateX(0);} 25%{transform:translateX(-6px);} 75%{transform:translateX(6px);}}
.pin-match{text-align:center; font-size:13.5px; color:var(--ink); font-weight:600; min-height:18px; margin-bottom:8px;}
.pin-match.err{color:var(--err);}
.keypad{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; max-width:280px; margin:0 auto; width:100%;}
.key{
  aspect-ratio:1; border-radius:50%; border:none; background:var(--white); border:1.5px solid var(--border);
  font-size:22px; font-weight:600; color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.key:active{background:var(--border);}
.key.ghost{background:transparent; border:none;}
/* Splash */
#splash{
  position:absolute; inset:0; background:var(--ink); color:var(--white);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  z-index:50; transition:opacity .5s ease;
}
#splash .word{font-size:30px; font-weight:800; letter-spacing:-0.02em; animation:splashIn .6s ease;}
#splash .tag{font-size:13px; color:#B9BAB3; animation:splashIn .6s ease .1s backwards;}
@keyframes splashIn{from{opacity:0; transform:scale(0.98);} to{opacity:1; transform:scale(1);}}
#splash.hide{opacity:0; pointer-events:none;}
.done-screen{align-items:center; text-align:center; justify-content:center;}
.done-screen h1{font-size:22px;}
/* Date picker sheet */
.date-backdrop{
  position:absolute; inset:0; background:rgba(17,17,17,0.32); z-index:40;
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.date-backdrop.show{opacity:1; pointer-events:auto;}
.date-sheet{
  position:absolute; left:0; right:0; bottom:0; z-index:41;
  background:var(--white); border-radius:20px 20px 0 0;
  padding:10px 20px calc(20px + env(safe-area-inset-bottom,0px));
  transform:translateY(105%); transition:transform .28s cubic-bezier(.32,.72,0,1);
  box-shadow:0 -8px 30px rgba(0,0,0,0.12);
}
.date-sheet.show{transform:translateY(0);}
.sheet-handle{width:36px; height:4px; background:var(--border); border-radius:2px; margin:0 auto 14px;}
.sheet-header{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; gap:8px;}
.sheet-nav{
  width:32px; height:32px; border-radius:9px; border:1.5px solid var(--border); background:var(--white);
  font-size:16px; color:var(--ink); cursor:pointer; flex-shrink:0;
}
.sheet-title{display:flex; gap:6px; flex:1; justify-content:center;}
.sheet-title select{
  border:1.5px solid var(--border); border-radius:9px; padding:7px 8px; font-family:inherit;
  font-size:14px; font-weight:600; color:var(--ink); background:var(--white);
}
.weekday-row{display:grid; grid-template-columns:repeat(7,1fr); text-align:center; margin-bottom:4px;}
.weekday-row span{font-size:11.5px; color:var(--sub); font-weight:600;}
.day-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:2px; margin-bottom:14px;}
.day-cell{
  aspect-ratio:1; display:flex; align-items:center; justify-content:center;
  font-size:14px; border-radius:50%; border:none; background:transparent; color:var(--ink); cursor:pointer;
}
.day-cell:disabled{color:var(--border); cursor:default;}
.day-cell.today{font-weight:700;}
.day-cell.selected{background:var(--accent); font-weight:700;}
/* Home */
.home-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:18px;}
.home-greet{font-size:13px; color:var(--sub); font-weight:600;}
.home-name{font-size:20px; font-weight:800; letter-spacing:-0.01em;}
.avatar{width:40px; height:40px; border-radius:50%; background:var(--ink); color:var(--white); display:flex; align-items:center; justify-content:center; font-weight:700;}
.balance-card{
  background:linear-gradient(145deg,#171717,#0b0b0b); color:var(--white); border-radius:20px;
  padding:22px 20px; margin-bottom:18px; position:relative; overflow:hidden;
}
.balance-card::after{content:''; position:absolute; width:160px; height:160px; background:radial-gradient(circle,rgba(184,243,74,0.35),transparent 70%); top:-60px; right:-40px;}
.bal-label{font-size:12.5px; color:#B9BAB3; font-weight:600; position:relative;}
.bal-amount{font-size:34px; font-weight:800; margin:6px 0 14px; letter-spacing:-0.02em; position:relative;}
.bal-row{display:flex; gap:8px; position:relative;}
.bal-chip{background:rgba(255,255,255,0.1); border-radius:20px; padding:5px 10px; font-size:11.5px; font-weight:600;}
.quick-actions{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:20px;}
.qa{background:var(--white); border:1.5px solid var(--border); border-radius:14px; padding:12px 4px; display:flex; flex-direction:column; align-items:center; gap:6px; font-size:11.5px; font-weight:600; color:var(--ink); cursor:pointer; font-family:inherit;}
.qa:active{background:var(--border);}
.qa-icon{width:30px; height:30px; border-radius:50%; background:var(--accent); display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:800; color:var(--accent-ink);}
.home-section-title{font-size:14px; font-weight:700; margin-bottom:10px;}
.empty-activity{border:1.5px dashed var(--border); border-radius:16px; padding:26px 16px; display:flex; flex-direction:column; align-items:center;}
.empty-dot{width:34px; height:34px; border-radius:50%; background:var(--bg); border:1.5px solid var(--border);}
.tab-bar{margin-top:auto; display:flex; justify-content:space-between; padding-top:14px; border-top:1px solid var(--border);}
.tab{flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; font-size:11px; font-weight:600; color:var(--sub);}
.tab span{font-size:15px;}
.tab.active{color:var(--ink);}