:root{
  --bg:#f6efe9; --card:#ffffff; --text:#16130f; --muted:#8a7f74;
  --orange1:#ffb545; --orange2:#e8850f; --green:#1ba672; --green-soft:#e7f7f0;
  --blue-soft:#e9f1fb; --blue:#2f6fd6; --purple1:#8b6bf2; --purple2:#6a3ff0;
  --red:#e0453c; --red-soft:#fdeceb;
  --border:rgba(20,15,10,0.07); --shadow:0 10px 30px rgba(60,40,10,0.08);
  --nav-h:70px;
}
*{box-sizing:border-box;}
body{ margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background:var(--bg); color:var(--text); display:flex; justify-content:center; }
.phone{ width:100%; max-width:430px; min-height:100vh; position:relative; background:var(--bg); }
.topbar{ display:flex; align-items:center; justify-content:space-between; padding:18px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand .logo{ width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg,#2b2b2b,#000);
  display:flex; align-items:center; justify-content:center; font-size:18px; }
.brand h1{ font-size:19px; margin:0; }
.screen{ padding:0 18px calc(var(--nav-h) + 26px); }
.section-title{ font-size:17px; font-weight:800; margin:22px 2px 12px; }

.balance-card{ background:linear-gradient(160deg,#1c1a17,#0c0b09); color:#fff; border-radius:24px; padding:24px 22px; box-shadow:var(--shadow); }
.balance-top{ display:flex; justify-content:space-between; font-size:12px; letter-spacing:1.2px; color:#c9c2b6; font-weight:700; }
.balance-amt{ font-size:34px; font-weight:800; margin-top:10px; }
.balance-actions{ display:flex; gap:12px; margin-top:20px; }

.btn{ flex:1; padding:15px 10px; border-radius:16px; border:none; font-weight:700; font-size:15px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; }
.btn-primary{ background:linear-gradient(135deg,var(--orange1),var(--orange2)); color:#1a1206; }
.btn-ghost{ background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.18); }
.btn-block{ width:100%; }
.btn-green{ background:linear-gradient(135deg,#3fe0c5,#0f9c86); color:#fff; }
.btn-outline{ background:var(--card); border:1.5px solid var(--border); color:var(--text); }

.stat-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.stat-card{ background:var(--card); border:1px solid var(--border); border-radius:18px; padding:16px; box-shadow:var(--shadow); }
.stat-card .label{ font-size:11.5px; font-weight:700; color:var(--muted); }
.stat-card .value{ font-size:21px; font-weight:800; margin-top:8px; }
.stat-card .value.green{ color:var(--green); }

.list-card{ display:flex; align-items:center; gap:14px; background:var(--card); border:1px solid var(--border);
  border-radius:18px; padding:16px; margin-bottom:14px; box-shadow:var(--shadow); text-decoration:none; color:var(--text); }
.list-icon{ width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0; position:relative; }
.list-icon.gold{ background:linear-gradient(135deg,var(--orange1),var(--orange2)); }
.list-icon.teal{ background:linear-gradient(135deg,#3fe0c5,#0f9c86); }
.list-icon::before{ content:""; position:absolute; top:-4px; right:-4px; width:9px; height:9px; border-radius:50%;
  background:#fff; box-shadow:0 0 6px 1px rgba(255,255,255,.9); animation:sparklePulse 2.2s ease-in-out infinite; }
.list-icon::after{ content:""; position:absolute; bottom:-4px; left:-4px; width:8px; height:8px; border-radius:50%;
  background:var(--orange1); box-shadow:0 0 10px 3px rgba(255,181,69,.85); animation:glowPulse 2.2s ease-in-out infinite .4s; }
@keyframes sparklePulse{ 0%,100%{opacity:.5; transform:scale(.8);} 50%{opacity:1; transform:scale(1.15);} }
@keyframes glowPulse{ 0%,100%{opacity:.4; transform:scale(.85);} 50%{opacity:1; transform:scale(1.2);} }
.list-body{ flex:1; min-width:0; }
.list-body .t{ font-weight:700; font-size:15.5px; }
.list-body .s{ font-size:12.5px; color:var(--orange2); font-weight:700; margin-top:3px; }
.chev{ color:var(--muted); font-size:18px; }

.product-card{ position:relative; background:linear-gradient(165deg,#f2fbf5,var(--card)); border:1px solid var(--border);
  border-radius:22px; padding:18px; margin-bottom:18px; box-shadow:var(--shadow); }
.days-badge{ position:absolute; top:-10px; right:14px; background:linear-gradient(135deg,#4a8ef0,#2f6fd6); color:#fff;
  font-weight:800; font-size:13px; padding:8px 16px; border-radius:14px; box-shadow:0 6px 14px rgba(47,111,214,.35); }
.badge-tag{ font-weight:800; font-size:16px; margin-bottom:2px; }
.product-top{ display:flex; gap:14px; align-items:flex-start; }
.product-img{ width:80px; height:80px; border-radius:16px; background:var(--bg); flex-shrink:0; display:flex;
  align-items:center; justify-content:center; font-size:38px; border:1px solid var(--border); }
.income-row{ display:flex; gap:22px; margin-top:10px; }
.income-col .amt{ font-size:19px; font-weight:800; color:var(--green); }
.income-col .lbl{ font-size:11px; color:var(--muted); font-weight:600; margin-top:2px; }
.product-bottom{ display:flex; align-items:center; justify-content:space-between; margin-top:16px; }
.price-tag{ font-weight:800; font-size:16px; color:var(--purple2); }
.invest-btn{ background:linear-gradient(135deg,var(--purple1),var(--purple2)); color:#fff; border:none; padding:13px 26px;
  border-radius:30px; font-weight:800; font-size:14.5px; cursor:pointer; }

.form-card{ background:var(--card); border:1px solid var(--border); border-radius:20px; padding:20px; box-shadow:var(--shadow); margin-top:16px; }
.field{ margin-bottom:14px; }
.field label{ font-size:12.5px; font-weight:700; color:var(--muted); display:block; margin-bottom:6px; }
.field input, .field select{ width:100%; padding:14px; border-radius:12px; border:1.5px solid var(--border);
  background:var(--bg); font-size:15px; color:var(--text); outline:none; }
.field input:focus, .field select:focus{ border-color:var(--orange2); }
.quick-amts{ display:flex; gap:8px; margin-top:8px; }
.quick-amts span{ flex:1; text-align:center; padding:9px; border-radius:10px; background:var(--bg); border:1px solid var(--border);
  font-size:12.5px; font-weight:700; cursor:pointer; }

.active-card{ background:var(--card); border:1px solid var(--border); border-radius:18px; padding:16px; margin-bottom:14px; box-shadow:var(--shadow); }
.active-head{ display:flex; align-items:center; gap:12px; }
.active-head .ic{ width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:22px; background:var(--bg); }
.active-head .name{ font-weight:800; font-size:15px; }
.active-head .sub{ font-size:11.5px; color:var(--muted); margin-top:2px; }
.active-row{ display:flex; justify-content:space-between; margin-top:12px; font-size:12.5px; }
.active-row b{ color:var(--green); font-size:14px; }
.progress-bar{ height:8px; background:var(--bg); border-radius:6px; overflow:hidden; margin-top:12px; }
.progress-fill{ height:100%; background:linear-gradient(90deg,var(--orange1),var(--orange2)); border-radius:6px; }

.tx-item{ display:flex; align-items:center; gap:12px; background:var(--card); border:1px solid var(--border);
  border-radius:16px; padding:14px; margin-bottom:10px; box-shadow:var(--shadow); }
.tx-ic{ width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:19px; flex-shrink:0; }
.tx-body{ flex:1; }
.tx-body .n{ font-weight:700; font-size:14px; }
.tx-body .d{ font-size:11.5px; color:var(--muted); margin-top:2px; }
.tx-amt{ font-weight:800; font-size:14.5px; white-space:nowrap; }
.tx-amt.pos{ color:var(--green); } .tx-amt.neg{ color:var(--red); } .tx-amt.pending{ color:var(--orange2); }

.empty{ text-align:center; padding:50px 20px; background:var(--card); border-radius:20px; border:1px solid var(--border); margin-top:16px; box-shadow:var(--shadow); }
.empty .star{ width:64px; height:64px; border-radius:20px; margin:0 auto 16px; background:linear-gradient(135deg,var(--orange1),var(--orange2));
  display:flex; align-items:center; justify-content:center; font-size:28px; }
.empty h3{ margin:0 0 6px; font-size:16px; } .empty p{ color:var(--muted); font-size:13px; margin:0 0 16px; }

.bottom-nav{ position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:430px; height:var(--nav-h);
  background:var(--card); border-top:1px solid var(--border); display:flex; z-index:30; }
.nav-item{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font-size:11px;
  font-weight:700; color:var(--muted); text-decoration:none; }
.nav-item.active{ color:var(--orange2); }
.nav-item .ic{ font-size:20px; }

.alert{ padding:13px 16px; border-radius:14px; font-size:13.5px; font-weight:600; margin:14px 0; }
.alert-success{ background:var(--green-soft); color:var(--green); }
.alert-error{ background:var(--red-soft); color:var(--red); }

.pill{ font-size:11px; font-weight:800; padding:4px 11px; border-radius:20px; display:inline-block; }
.pill.pending{ background:#fff3e0; color:var(--orange2); }
.pill.approved{ background:var(--green-soft); color:var(--green); }
.pill.rejected{ background:var(--red-soft); color:var(--red); }

.auth-wrap{ display:flex; flex-direction:column; justify-content:center; min-height:100vh; padding:30px 26px; }
.auth-wrap h1{ font-size:26px; margin:0 0 4px; }
.auth-wrap p.sub{ color:var(--muted); font-size:13.5px; margin:0 0 26px; }
.auth-link{ text-align:center; margin-top:18px; font-size:13.5px; color:var(--muted); }
.auth-link a{ color:var(--orange2); font-weight:700; text-decoration:none; }

.wait-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:80; display:flex; align-items:center; justify-content:center; padding:20px; }
.wait-card{ background:var(--card); border-radius:22px; padding:30px 24px; max-width:340px; width:100%; text-align:center; box-shadow:var(--shadow); }
.wait-card .ic{ width:64px; height:64px; border-radius:50%; background:var(--green-soft); display:flex; align-items:center;
  justify-content:center; font-size:30px; margin:0 auto 16px; }
.wait-card h3{ margin:0 0 8px; font-size:17px; }
.wait-card p{ margin:0 0 20px; font-size:13px; color:var(--muted); line-height:1.6; }
.back-link{ display:inline-block; margin-top:12px; font-size:12.5px; color:var(--muted); text-decoration:none; font-weight:600; }

.welcome-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:90; display:flex; align-items:center;
  justify-content:center; padding:20px; }
.welcome-card{ width:100%; max-width:360px; background:var(--card); border-radius:24px; padding:24px 20px 20px;
  position:relative; box-shadow:0 20px 50px rgba(0,0,0,.35); }
.welcome-head{ display:flex; gap:14px; align-items:flex-start; }
.welcome-head .logo-circle{ width:50px; height:50px; border-radius:50%; background:linear-gradient(135deg,#2b2b2b,#000);
  display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.welcome-head h2{ margin:0; font-size:17px; }
.welcome-head p{ margin:4px 0 0; font-size:11.5px; color:var(--muted); }
.welcome-divider{ height:1px; background:var(--border); margin:16px 0; }
.welcome-list{ font-size:13px; line-height:2; }
.welcome-list b{ color:var(--green); }
.welcome-btn{ width:100%; padding:14px; border:none; border-radius:16px; background:linear-gradient(135deg,#3fe0c5,#0f9c86);
  color:#fff; font-weight:800; font-size:14.5px; margin-top:16px; cursor:pointer; display:flex; align-items:center;
  justify-content:center; gap:8px; text-decoration:none; }
.welcome-close{ position:absolute; left:50%; bottom:-20px; transform:translateX(-50%); width:40px; height:40px; border-radius:50%;
  background:var(--card); border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
  font-size:16px; cursor:pointer; box-shadow:var(--shadow); }
