/* TakaTap — dark navy theme, mobile-first, modeled on the Quick Earn UI */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root{
  --bg:#0a1628; --bg2:#0d1f3c; --card:#12294d; --card2:#16305a;
  --border:#1e3a66; --text:#eaf2ff; --muted:#8fb0d8; --blue:#2f9df4;
  --green:#22c55e; --gold:#f5b93f; --pink:#f472b6; --orange:#fb923c;
}
html,body{ background:var(--bg); color:var(--text);
  font-family:"Hind Siliguri","Noto Sans Bengali",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
#app{ max-width:480px; margin:0 auto; min-height:100vh; padding:0 14px 92px;
  background:linear-gradient(180deg,var(--bg2),var(--bg) 220px); }

/* Header */
.topbar{ display:flex; justify-content:space-between; align-items:center; padding:14px 2px 10px; }
.brand{ display:flex; gap:10px; align-items:center; }
.brand-logo{ width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  font-size:22px; background:linear-gradient(135deg,#12b5a5,#2f9df4); box-shadow:0 4px 14px rgba(47,157,244,.35); }
.brand-name{ font-size:19px; font-weight:700; line-height:1.1; }
.brand-sub{ font-size:12px; color:var(--muted); }
.balance-pill{ background:rgba(245,185,63,.14); border:1px solid rgba(245,185,63,.45); color:var(--gold);
  padding:7px 12px; border-radius:999px; font-weight:700; font-size:14px; white-space:nowrap; }

/* Pages */
.page{ display:none; }
.page.active{ display:block; animation:fade .18s ease; }
@keyframes fade{ from{opacity:0; transform:translateY(4px)} to{opacity:1} }
.page-title{ font-size:20px; margin:8px 0 12px; }

/* Cards */
.card{ background:var(--card); border:1px solid var(--border); border-radius:18px; padding:16px; margin-bottom:12px; }
.card.highlight{ border-color:#2f9df4; background:linear-gradient(160deg,var(--card2),var(--card)); }
.card-title{ font-size:16px; font-weight:700; margin-bottom:4px; }
.balance-card{ background:linear-gradient(135deg,#0e4d64,#123a6e 55%,#0d2c52); border:1px solid #1f5f7a;
  border-radius:20px; padding:18px; margin:6px 0 14px; box-shadow:0 8px 24px rgba(0,0,0,.35); }
.balance-label{ color:#bfe3ff; font-size:14px; margin-bottom:6px; }
.balance-points{ font-size:40px; font-weight:800; line-height:1; }
.balance-points small{ font-size:16px; color:var(--blue); font-weight:700; }
.balance-bdt{ color:var(--gold); font-weight:700; margin-top:4px; }
.balance-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.chip{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); border-radius:999px;
  padding:6px 11px; font-size:13px; }
.chip.gold{ background:rgba(245,185,63,.15); border-color:rgba(245,185,63,.5); color:var(--gold); }

.grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:14px; }
.stat-card{ background:var(--card); border:1px solid var(--border); border-radius:18px; padding:16px; text-align:center; }
.stat-card[data-goto]{ cursor:pointer; }
.stat-icon{ width:46px; height:46px; margin:0 auto 8px; border-radius:14px; display:flex; align-items:center;
  justify-content:center; font-size:21px; background:#1b3a68; color:#fff; }
.stat-icon.big{ width:54px; height:54px; font-size:25px; margin:0; flex:none; }
.stat-icon.blue{ background:#14508f; } .stat-icon.green{ background:#14663c; }
.stat-icon.orange{ background:#7a4416; } .stat-icon.pink{ background:#7c2d52; }
.stat-icon.tiktok{ background:#26262e; }
.stat-big{ font-size:19px; font-weight:800; }
.stat-label{ color:var(--muted); font-size:13px; margin-top:2px; }

.row{ display:flex; gap:12px; align-items:center; }
.row-between{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.chev{ margin-left:auto; font-size:26px; color:var(--muted); }
.link-card{ display:flex; align-items:center; cursor:pointer; }
.muted{ color:var(--muted); font-size:13.5px; line-height:1.55; }
.center{ text-align:center; }
.big-emoji{ font-size:52px; margin-bottom:8px; }

/* Buttons */
.btn{ border:0; border-radius:14px; padding:14px 18px; font-size:16px; font-weight:700; color:#fff;
  cursor:pointer; font-family:inherit; }
.btn:active{ transform:scale(.98); }
.btn:disabled{ opacity:.55; cursor:not-allowed; }
.btn-green{ background:linear-gradient(135deg,#22c55e,#16a34a); }
.btn-blue{ background:linear-gradient(135deg,#38bdf8,#2563eb); }
.btn-block{ width:100%; margin-top:12px; }
.btn-small{ padding:9px 14px; font-size:14px; border-radius:10px; }
.cta-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:14px; }

.ref-card{ background:var(--card); border:1px dashed var(--border); border-radius:18px; padding:16px; text-align:center; }
.ref-title{ font-weight:700; margin-bottom:8px; }
.ref-link{ background:#0a1a33; border:1px solid var(--border); border-radius:10px; padding:9px; font-size:12.5px;
  word-break:break-all; color:#9fd0ff; margin-bottom:10px; }
.ref-note{ color:var(--muted); font-size:13px; margin-top:10px; }

.progress{ height:9px; background:#0a1a33; border-radius:99px; overflow:hidden; margin:6px 0 8px; }
.progress-fill{ height:100%; width:0%; background:linear-gradient(90deg,#12b5a5,#2f9df4); border-radius:99px; transition:width .4s; }
.reward-badge{ display:inline-block; margin-top:12px; background:rgba(34,197,94,.14); border:1px solid rgba(34,197,94,.5);
  color:#4ade80; border-radius:999px; padding:7px 13px; font-weight:700; font-size:14px; }
.steps{ margin:8px 0 0 18px; color:var(--muted); font-size:13.5px; line-height:1.7; }

/* Forms */
.field-label{ display:block; font-size:13.5px; color:var(--muted); margin:12px 0 6px; }
.field{ width:100%; background:#0a1a33; border:1px solid var(--border); border-radius:12px; color:var(--text);
  padding:12px; font-size:15px; font-family:inherit; }
select.field{ appearance:none; }
details{ border-top:1px solid var(--border); padding:10px 0; }
details:first-of-type{ border-top:0; }
summary{ cursor:pointer; font-weight:600; font-size:14.5px; }
details p{ margin-top:6px; }

/* Task list */
.task-card{ background:var(--card); border:1px solid var(--border); border-radius:18px; padding:15px; margin-bottom:12px; }
.task-head{ display:flex; gap:12px; align-items:center; }
.task-reward{ display:inline-block; margin-top:9px; background:rgba(34,197,94,.13); border:1px solid rgba(34,197,94,.45);
  color:#4ade80; border-radius:999px; padding:5px 11px; font-size:13px; font-weight:700; }
.task-actions{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.btn-ghost{ background:#0a1a33; border:1px solid var(--border); color:var(--text); border-radius:12px;
  padding:11px; font-size:14.5px; font-weight:700; cursor:pointer; font-family:inherit; }
.task-done{ color:#4ade80; font-weight:700; margin-top:10px; font-size:14px; }
.tag{ font-size:11px; background:#1b3a68; border-radius:6px; padding:2px 7px; color:#9fd0ff; margin-left:6px; }

/* Bottom nav */
.bottom-nav{ position:fixed; left:50%; transform:translateX(-50%); bottom:0; width:100%; max-width:480px;
  display:grid; grid-template-columns:repeat(6,1fr); background:rgba(10,24,46,.97); border-top:1px solid var(--border);
  padding:7px 2px calc(7px + env(safe-area-inset-bottom)); z-index:40; }
.nav-item{ background:none; border:0; color:var(--muted); font-size:11.5px; font-family:inherit; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:2px; padding:4px 0; }
.nav-item span{ font-size:19px; }
.nav-item.active{ color:var(--blue); }

.demo-banner{ position:fixed; left:50%; transform:translateX(-50%); bottom:78px; z-index:39;
  background:rgba(245,185,63,.92); color:#231a00; font-size:12px; font-weight:700; border-radius:999px; padding:5px 12px; }

/* Simulated ad player */
#adOverlay{ position:fixed; inset:0; z-index:100; background:#050b16; display:flex; flex-direction:column; }
#adOverlay[hidden]{ display:none; }
.ad-topbar{ display:flex; align-items:center; gap:10px; padding:12px 14px; }
.ad-close-disabled{ background:rgba(255,255,255,.14); color:#aab; border-radius:999px; padding:6px 13px; font-size:13px; }
.ad-timer{ background:rgba(255,255,255,.14); border-radius:999px; padding:6px 12px; font-size:13px; margin:0 auto; }
.ad-segments{ display:flex; gap:5px; flex:1; }
.ad-segments i{ flex:1; height:3.5px; border-radius:99px; background:rgba(255,255,255,.28); overflow:hidden; position:relative; }
.ad-segments i.done{ background:#fff; }
.ad-creative{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  padding:26px; margin:0 12px; border-radius:16px; background:linear-gradient(150deg,#173a2e,#0d2c52); }
.ad-creative-emoji{ font-size:88px; margin-bottom:14px; }
.ad-creative-title{ font-size:25px; font-weight:800; margin-bottom:8px; }
.ad-creative-text{ color:#cfe6ff; font-size:15px; max-width:300px; line-height:1.5; }
.ad-tag{ margin-top:16px; color:#9fb6d4; font-size:12px; }
.ad-bottom{ padding:14px 16px calc(16px + env(safe-area-inset-bottom)); text-align:center; }
.ad-progress{ height:34px; background:rgba(255,255,255,.18); border-radius:10px; overflow:hidden; position:relative; }
.ad-progress-fill{ height:100%; width:0%; background:var(--blue); }
.ad-progress-pct{ margin-top:-27px; position:relative; font-weight:800; font-size:15px; }
.ad-network-label{ margin-top:14px; color:#7fd4ff; font-size:12.5px; }

#toast{ position:fixed; left:50%; transform:translateX(-50%); bottom:130px; z-index:120; background:#12325e;
  border:1px solid var(--blue); color:#fff; padding:11px 17px; border-radius:12px; font-size:14px;
  max-width:88vw; text-align:center; box-shadow:0 8px 24px rgba(0,0,0,.5); }
#toast[hidden]{ display:none; }
.wd-row{ display:flex; justify-content:space-between; padding:7px 0; border-bottom:1px solid var(--border); font-size:13.5px; }
.wd-row:last-child{ border-bottom:0; }
.status-pending{ color:var(--gold); } .status-approved{ color:#4ade80; } .status-rejected{ color:#f87171; }
