/* ZAPWORK identity v3: violet / orange / lavender. Landing + member shell + dashboard.
   No inline styles anywhere (CSP): every value lives here. */
@font-face { font-family: "ZW Naira"; src: url("../fonts/naira.woff") format("woff"); font-weight: 400 900; font-display: swap; unicode-range: U+20A6; }
@font-face { font-family: "ZW Sans"; src: url("../fonts/dmsans.woff") format("woff"); font-weight: 100 1000; font-display: swap; }

:root {
  --v50: #F5F0FF; --v100: #E4D9FF; --v200: #D5C9F0; --v300: #C4B0FA; --v400: #8B5CF6; --v500: #6D3FE8; --v600: #5A2FCB; --v700: #43239A; --v800: #2A1666; --v900: #1A0F3D;
  --o400: #FF9A6B; --o500: #FF7043; --o600: #E85A2C;
  --bg: #F5F0FF; --surface: #FFFFFF; --text: #211A35; --text2: #77718A; --line: #E7DFF7;
  --ok: #12A150; --warn: #E8A317; --err: #E5484D;
  --f: "ZW Naira", "ZW Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: 200ms ease-out;
  --cut: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.zw { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.zw img, .zw svg { display: block; max-width: 100%; }
.zw a { color: inherit; text-decoration: none; }
.zw h1, .zw h2, .zw h3, .zw p { margin: 0; }
:where(.zw) button { font: inherit; color: inherit; cursor: pointer; }
.zw :focus-visible { outline: 3px solid var(--v400); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; font-weight: 700; font-size: 15.5px; letter-spacing: .1px; transition: transform var(--ease), box-shadow var(--ease), background var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-or { background: var(--o500); color: #fff; box-shadow: 0 8px 20px -8px rgba(255,112,67,.7); }
.btn-or:hover { background: var(--o600); }
.btn-vi { background: linear-gradient(135deg, var(--v500), var(--v400)); color: #fff; box-shadow: 0 8px 20px -10px rgba(109,63,232,.8); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-line { background: #fff; color: var(--v600); box-shadow: inset 0 0 0 1.5px var(--v200); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ======================= LANDING ======================= */
.nav-top { position: sticky; top: 0; z-index: 50; background: rgba(245,240,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .6px; font-size: 17px; color: var(--v900); }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: none; gap: 28px; font-weight: 600; font-size: 15px; color: var(--v800); }
.nav-links a:hover { color: var(--v500); }
.nav-act { display: flex; align-items: center; gap: 8px; }
.nav-act .login { font-weight: 700; font-size: 14.5px; color: var(--v700); padding: 8px 10px; }
.burger { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 12px; color: var(--v800); }
.sheet-menu { display: none; border-top: 1px solid var(--line); background: #fff; }
.sheet-menu.open { display: block; }
.sheet-menu a { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 600; border-bottom: 1px solid var(--line); }

.hero { position: relative; background: linear-gradient(160deg, var(--v900) 0%, #2E1A78 55%, var(--v700) 100%); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139,92,246,.55), transparent); }
.hero .wrap { position: relative; display: grid; gap: 28px; padding-top: 36px; padding-bottom: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--v300); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--o500); border-radius: 2px; }
.hero h1 { margin-top: 14px; font-size: clamp(38px, 11vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -1.2px; }
.hero h1 em { font-style: normal; color: var(--o400); }
.hero .sub { margin-top: 16px; font-size: 17.5px; line-height: 1.55; color: #D9CCFB; max-width: 520px; }
.hero .sub b { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { position: relative; margin-top: 6px; display: flex; justify-content: center; }
.hero-photo { width: min(100%, 340px); height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 18%; border-radius: 28px 28px 0 0; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
.rate-chip { position: absolute; left: 4px; bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: #fff; color: var(--text); border-radius: 18px; box-shadow: 0 18px 40px -12px rgba(10,4,40,.6); }
.rate-chip .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--o500); color: #fff; }
.rate-chip b { display: block; font-size: 22px; line-height: 1.1; letter-spacing: -.5px; }
.rate-chip small { color: var(--text2); font-size: 12.5px; }
.pill-chip { position: absolute; right: 6px; top: 22px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(26,15,61,.72); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.pill-chip i { width: 8px; height: 8px; border-radius: 50%; background: #35D07F; }

.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; gap: 0; }
.fact { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--v100); color: var(--v600); flex: none; }
.fact.o .ic { background: #FFE3D9; color: var(--o600); }
.fact b { display: block; font-size: 18px; letter-spacing: -.3px; }
.fact span { color: var(--text2); font-size: 14px; }

.sec { padding: 64px 0 0; }
.sec h2 { font-size: clamp(28px, 7vw, 40px); line-height: 1.1; letter-spacing: -.8px; font-weight: 800; color: var(--v900); margin-top: 10px; }
.sec .lead { margin-top: 12px; color: var(--text2); font-size: 16.5px; max-width: 560px; }
.sec .eyebrow { color: var(--v500); }

.steps { margin-top: 30px; display: grid; gap: 0; position: relative; counter-reset: s; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-bottom: 26px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 4px; width: 2px; background: linear-gradient(var(--v300), var(--v100)); }
.step .n { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--v500); color: #fff; font-weight: 800; font-size: 20px; clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 0 100%); }
.step:nth-child(4) .n { background: var(--o500); }
.step h3 { font-size: 19px; letter-spacing: -.3px; color: var(--v900); padding-top: 4px; }
.step p { margin-top: 4px; color: var(--text2); font-size: 15.5px; }

.bento { margin-top: 28px; display: grid; gap: 14px; }
.tile { position: relative; padding: 24px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tile .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--v100); color: var(--v600); margin-bottom: 16px; }
.tile h3 { font-size: 19px; letter-spacing: -.3px; color: var(--v900); }
.tile p { margin-top: 6px; color: var(--text2); font-size: 15px; }
.tile.big { background: linear-gradient(160deg, var(--v900), var(--v700)); color: #fff; clip-path: var(--cut); box-shadow: none; padding: 28px 24px; }
.tile.big h3 { color: #fff; font-size: 24px; }
.tile.big p { color: #D9CCFB; font-size: 16px; }
.tile.big .ic { background: rgba(255,255,255,.14); color: var(--o400); }
.tile.big .calc { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); font-size: 15px; color: #D9CCFB; }
.tile.big .calc b { color: #fff; font-size: 20px; }
.tile.or .ic { background: #FFE3D9; color: var(--o600); }

.link-split { margin-top: 28px; display: grid; gap: 22px; padding: 26px 22px; border-radius: 26px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.link-split ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: l; }
.link-split li { counter-increment: l; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 15.5px; }
.link-split li::before { content: counter(l); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--v100); color: var(--v600); font-weight: 800; font-size: 14px; }
.codebox { padding: 20px; border-radius: 20px; background: var(--v900); color: #fff; }
.codebox small { color: var(--v300); font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 14px 0 12px; }
.slots i { aspect-ratio: 3/4; border-radius: 10px; box-shadow: inset 0 0 0 1.5px rgba(196,176,250,.45); }
.slots i:nth-child(4) { margin-right: 6px; }
.codebox p { color: #D9CCFB; font-size: 14.5px; }

.faq { margin-top: 26px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 17px; cursor: pointer; color: var(--v900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--v500); transition: transform var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 34px 20px 0; color: var(--text2); font-size: 15.5px; }

.cta-band { margin-top: 72px; background: linear-gradient(160deg, var(--v900), var(--v700)); color: #fff; }
.cta-band .wrap { padding-top: 52px; padding-bottom: 52px; display: grid; gap: 20px; }
.cta-band h2 { font-size: clamp(28px, 7vw, 42px); letter-spacing: -.8px; line-height: 1.1; font-weight: 800; }
.cta-band p { color: #D9CCFB; max-width: 480px; }
.foot { background: var(--v900); color: #B7A8E6; font-size: 14px; }
.foot .wrap { display: grid; gap: 16px; padding-top: 28px; padding-bottom: 36px; border-top: 1px solid rgba(255,255,255,.1); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a:hover { color: #fff; }
.foot .logo { color: #fff; }

/* ======================= MEMBER SHELL ======================= */
body.shell { padding-bottom: 96px; }
.side { display: none; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(245,240,255,.9); backdrop-filter: blur(12px); }
.topbar .in { display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 16px; max-width: 760px; margin: 0 auto; }
.avatar { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--v500); color: #fff; font-weight: 800; font-size: 17px; clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%); border: 0; }
.hi { flex: 1; min-width: 0; }
.hi small { display: block; font-size: 12.5px; color: var(--text2); }
.hi b { display: block; font-size: 17px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibtn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 14px; background: #fff; color: var(--v700); box-shadow: inset 0 0 0 1px var(--line); }
.ibtn .dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--o500); box-shadow: 0 0 0 2px #fff; }
.main { max-width: 760px; margin: 0 auto; padding: 4px 16px 24px; display: grid; gap: 26px; }
.alert { padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.alert.ok { background: #DDF5E7; color: #0C6B38; } .alert.err { background: #FDE4E4; color: #A12B30; }

.drawer-bg { position: fixed; inset: 0; z-index: 80; background: rgba(26,15,61,.5); opacity: 0; pointer-events: none; transition: opacity var(--ease); }
.drawer { position: fixed; z-index: 81; top: 0; bottom: 0; left: 0; width: min(84vw, 320px); background: var(--v900); color: #fff; transform: translateX(-102%); transition: transform 260ms ease-out; display: flex; flex-direction: column; padding: 22px 16px; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
.nav-list { display: grid; gap: 4px; margin-top: 22px; }
.nav-list a, .nav-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 14px; border: 0; background: transparent; border-radius: 14px; font-weight: 600; font-size: 15.5px; color: #D9CCFB; text-align: left; }
.nav-list a:hover, .nav-list button:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-list a[aria-current] { background: rgba(139,92,246,.28); color: #fff; box-shadow: inset 3px 0 0 var(--o500); }
.drawer .who { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer .who small { display: block; color: var(--v300); font-size: 13px; }
.drawer .spacer { flex: 1; }
.drawer .close { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: rgba(255,255,255,.08); color: #fff; border-radius: 12px; }

.bnav { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); }
.bnav .in { max-width: 520px; margin: 0 auto; display: flex; justify-content: space-around; align-items: flex-start; height: 70px; padding-top: 10px; }
.bnav a { position: relative; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--text2); }
.bnav a[aria-current] { color: var(--v500); font-weight: 700; }
.bnav a[aria-current]::before { content: ""; position: absolute; top: -11px; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--v500); }
.bnav .mid .fab { width: 52px; height: 52px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--v500), var(--v400)); color: #fff; border: 4px solid var(--bg); box-shadow: 0 8px 18px rgba(109,63,232,.4); }

/* ======================= DASHBOARD ======================= */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-h h2 { font-size: 18px; letter-spacing: -.3px; color: var(--v900); font-weight: 800; }
.sec-h a, .sec-h span { font-size: 13.5px; font-weight: 700; color: var(--v500); }

.earn { position: relative; color: #fff; padding: 24px 22px 22px; background: linear-gradient(160deg, var(--v900) 0%, var(--v700) 100%); clip-path: var(--cut); border-radius: 26px 26px 26px 26px; overflow: hidden; }
.earn::after { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139,92,246,.5), transparent); pointer-events: none; }
.earn > * { position: relative; z-index: 1; }
.earn .lbl { font-size: 13px; font-weight: 600; color: var(--v300); letter-spacing: .3px; }
.earn .amt { margin-top: 6px; font-size: 44px; line-height: 1.05; font-weight: 800; letter-spacing: -1.4px; font-variant-numeric: tabular-nums; }
.earn .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.earn .pair div + div { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.14); }
.earn .pair small { display: block; color: var(--v300); font-size: 12.5px; }
.earn .pair b { font-size: 18px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.earn .pair b.up { color: var(--o400); }
.minbar { margin-top: 18px; }
.minbar .l { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--v300); margin-bottom: 7px; }
progress { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.16); }
progress::-webkit-progress-bar { background: rgba(255,255,255,.16); }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--o500), var(--o400)); border-radius: 99px; transition: width 400ms ease-out; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--o500), var(--o400)); border-radius: 99px; }
.earn .acts { display: flex; gap: 10px; margin-top: 20px; }
.earn .acts .btn { flex: 1; }

.panel { background: #fff; border-radius: 22px; padding: 20px 18px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.chart-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.chart-top small { display: block; color: var(--text2); font-size: 13px; }
.chart-top b { font-size: 26px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; color: var(--v900); }
.chart-top .tag { padding: 5px 10px; border-radius: 99px; background: var(--v100); color: var(--v600); font-size: 12.5px; font-weight: 700; }
.chart { margin-top: 14px; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ylab, .chart .xlab { fill: var(--text2); font-size: 11px; font-family: var(--f); }
.chart .xlab.now { fill: var(--v600); font-weight: 700; }
.chart .area { fill: url(#zwArea); }
.chart .line { fill: none; stroke: var(--v500); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .pt { fill: #fff; stroke: var(--v500); stroke-width: 2.5; }
.chart .pt.now { fill: var(--o500); stroke: #fff; stroke-width: 3; }
.chart .flat { stroke: var(--v200); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.chart-empty { margin-top: 12px; font-size: 14px; color: var(--text2); text-align: center; padding-bottom: 6px; }

.wa { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 18px 18px 18px 22px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.wa::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ok); }
.wa.off::before { background: var(--o500); }
.wa.wait::before { background: var(--warn); }
.wa .ring { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: #E5F7EC; color: var(--ok); }
.wa.off .ring { background: #FFE3D9; color: var(--o600); }
.wa.wait .ring { background: #FDF1D6; color: #A8730A; }
.wa .ring::after { content: ""; position: absolute; right: -3px; top: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #fff; }
.wa.off .ring::after { background: var(--o500); } .wa.wait .ring::after { background: var(--warn); }
.wa.live .ring::after { animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 3px #fff, 0 0 0 3px rgba(18,161,80,.5); } 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 12px rgba(18,161,80,0); } }
.wa .t b { display: block; font-size: 16.5px; letter-spacing: -.2px; }
.wa .t span { display: block; color: var(--text2); font-size: 13.5px; margin-top: 1px; }
.wa .btn { grid-column: 1 / -1; }
.wa .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.wa .meta i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--v50); color: var(--v700); font-size: 12.5px; font-weight: 600; }

.perf-sum { display: flex; align-items: baseline; gap: 10px; }
.perf-sum b { font-size: 38px; letter-spacing: -1.2px; line-height: 1; color: var(--v900); font-variant-numeric: tabular-nums; }
.perf-sum span { color: var(--text2); font-size: 14px; }
.split { margin-top: 16px; width: 100%; height: 12px; display: block; }
.split rect.bg { fill: var(--v100); }
.split rect.d { fill: var(--v500); } .split rect.p { fill: var(--warn); } .split rect.f { fill: var(--err); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 16px; }
.kpi { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.kpi:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.kpi small { display: flex; align-items: center; gap: 7px; color: var(--text2); font-size: 13px; }
.kpi small i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.kpi b { font-size: 20px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.run { margin-top: 6px; padding: 14px; border-radius: 16px; background: var(--v50); }
.run .l { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--v700); margin-bottom: 8px; }
.run progress { background: var(--v100); } .run progress::-webkit-progress-bar { background: var(--v100); }
.run .note { margin-top: 8px; font-size: 13px; color: var(--text2); }

.acts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qa { position: relative; display: grid; gap: 10px; padding: 16px 16px 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform var(--ease), box-shadow var(--ease); }
.qa:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--v300), 0 12px 24px -16px rgba(109,63,232,.5); }
.qa::before { content: ""; position: absolute; left: 16px; top: 0; width: 28px; height: 4px; border-radius: 0 0 4px 4px; background: var(--v500); }
.qa.o::before { background: var(--o500); }
.qa .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--v100); color: var(--v600); margin-top: 6px; }
.qa.o .ic { background: #FFE3D9; color: var(--o600); }
.qa b { font-size: 15.5px; letter-spacing: -.2px; }
.qa small { color: var(--text2); font-size: 12.5px; margin-top: -8px; }

.feed { background: #fff; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); padding: 4px 18px; }
.rowi { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rowi:last-child { border-bottom: 0; }
.rowi .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--v50); color: var(--v600); }
.rowi .ic.in { background: #E5F7EC; color: var(--ok); }
.rowi .d { min-width: 0; }
.rowi .d b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi .d small { color: var(--text2); font-size: 12.5px; }
.rowi .a { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.rowi .a.in { color: var(--ok); }
.empty { padding: 28px 8px; text-align: center; color: var(--text2); font-size: 14.5px; }
.empty b { display: block; color: var(--v900); font-size: 16px; margin-bottom: 2px; }

/* popups (announcement + operation successful) */
.modal, .opmodal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(26,15,61,.6); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card, .opcard { position: relative; width: 100%; max-width: 360px; padding: 28px 22px 22px; border-radius: 26px; background: #fff; text-align: center; display: grid; gap: 12px; box-shadow: 0 30px 60px -20px rgba(10,4,40,.6); }
.modal-card .badge { width: 60px; height: 60px; margin: 0 auto; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, var(--v500), var(--v400)); color: #fff; }
.modal-card h2, .opcard h2 { font-size: 21px; letter-spacing: -.4px; color: var(--v900); }
.modal-card p { color: var(--text2); font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; text-align: left; }
.modal-card .annclose { margin-top: 2px; }
.modal-x { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: var(--v50); border-radius: 12px; color: var(--v700); }
.opcard b { font-size: 24px; color: var(--v600); letter-spacing: -.5px; }
.opcard progress { background: var(--v100); } .opcard progress::-webkit-progress-bar { background: var(--v100); }
.btn-dark { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--v800); color: #fff; font-weight: 700; }

/* ======================= DESKTOP ======================= */
@media (min-width: 99999px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 40px; padding-top: 72px; }
  .hero-copy { padding-bottom: 72px; }
  .facts .wrap { grid-template-columns: repeat(3, 1fr); }
  .fact { border-bottom: 0; border-right: 1px solid var(--line); padding: 26px 24px; }
  .fact:first-child { padding-left: 0; } .fact:last-child { border-right: 0; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 3; } .tile.big { grid-column: span 6; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step:not(:last-child)::before { left: 62px; right: -20px; top: 25px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--v300), var(--v100)); }
  .link-split { grid-template-columns: 1fr 1fr; padding: 36px; align-items: center; }
  .cta-band .wrap { grid-template-columns: 1.2fr auto; align-items: center; }
}
@media (min-width: 99999px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .tile { grid-column: span 2; } .tile.big { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; }
  .hero h1 { font-size: 68px; }

}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.kd { background: var(--v500); } .kp { background: var(--warn); } .kf { background: var(--err); } .kt { background: var(--o500); }

/* ======================= SHARED COMPONENTS (inner pages) ======================= */
.stack { display: grid; gap: 14px; }
.card { background: #fff; border-radius: 22px; padding: 20px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.card h2 { font-size: 17px; letter-spacing: -.3px; color: var(--v900); font-weight: 800; }
.card .muted, .muted { color: var(--text2); font-size: 14px; }
.card .muted { margin-top: 4px; }
.note { color: var(--text2); font-size: 13.5px; line-height: 1.5; }
.note a, .lnk { color: var(--v500); font-weight: 700; }
.hero-card { position: relative; color: #fff; padding: 22px 20px; border-radius: 26px; background: linear-gradient(160deg, var(--v900), var(--v700)); clip-path: var(--cut); overflow: hidden; }
.hero-card .lbl { font-size: 13px; color: var(--v300); font-weight: 600; }
.hero-card .big { margin-top: 4px; font-size: 38px; line-height: 1.05; font-weight: 800; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.hero-card .sub { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--v300); }
.hero-card .sub b { color: #fff; }
.hero-card .acts { display: flex; gap: 10px; margin-top: 18px; }
.hero-card .acts .btn { flex: 1; }

.field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text2); margin-top: 14px; }
.field .input { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow var(--ease); color: var(--v600); }
.field .input:focus-within { box-shadow: inset 0 0 0 2px var(--v500), 0 0 0 4px rgba(109,63,232,.12); }
.field .input.bad { box-shadow: inset 0 0 0 2px var(--err); }
.field input, .field select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 500; color: var(--text); outline: 0; }
.field input::placeholder { color: #A8A2BC; }
.field .err { color: var(--err); font-weight: 600; font-size: 12.5px; }
.eye { border: 0; background: transparent; color: var(--text2); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-red { background: #fff; color: var(--err); box-shadow: inset 0 0 0 1.5px #F7C9CB; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--v100); color: var(--v700); white-space: nowrap; }
.pill.ok, .pill.paid, .pill.delivered, .pill.active { background: #DDF5E7; color: #0C6B38; }
.pill.warn, .pill.pending, .pill.requested, .pill.approved, .pill.processing { background: #FDF1D6; color: #8A5A00; }
.pill.bad, .pill.rejected, .pill.failed, .pill.cancelled { background: #FDE4E4; color: #A12B30; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--v100); gap: 4px; }
.seg a { text-align: center; padding: 10px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--v700); }
.seg a[aria-current] { background: #fff; box-shadow: 0 2px 8px -2px rgba(42,22,102,.25); color: var(--v900); }
.list { background: #fff; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); padding: 4px 18px; }
.rowi .ic.warn { background: #FDF1D6; color: #A8730A; } .rowi .ic.bad { background: #FDE4E4; color: var(--err); }
.rowi.unread .d b { color: var(--v900); } .rowi.unread::before { content: none; }
.rowi.two { grid-template-columns: 1fr auto; }
.d small.w { white-space: normal; display: block; }
.statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.statrow div { padding: 16px 14px; }
.statrow div + div { border-left: 1px solid var(--line); }
.statrow small { display: block; color: var(--text2); font-size: 12.5px; }
.statrow b { font-size: 22px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.help-steps { display: grid; gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: h; }
.help-steps li { counter-increment: h; display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 15px; align-items: start; }
.help-steps li::before { content: counter(h); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--v100); color: var(--v600); font-weight: 800; }
.stepper { display: flex; }
.stepper div { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--text2); }
.stepper i { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-style: normal; font-weight: 800; font-size: 13px; }
.stepper .on { color: var(--v600); } .stepper .on i { background: var(--v500); color: #fff; box-shadow: none; }
.stepper .done i { background: var(--ok); color: #fff; box-shadow: none; }
.paircode { display: flex; gap: 6px; justify-content: center; margin: 16px 0 10px; }
.paircode span { width: 34px; height: 52px; display: grid; place-items: center; border-radius: 11px; background: #fff; color: var(--v800); font-weight: 800; font-size: 22px; box-shadow: inset 0 0 0 1.5px var(--v200); }
.paircode span:nth-child(4) { margin-right: 10px; }
.codecard { text-align: center; background: linear-gradient(160deg, var(--v900), var(--v700)); color: #fff; border-radius: 26px; padding: 22px 18px; clip-path: var(--cut); }
.codecard .cap { font-size: 13px; color: var(--v300); font-weight: 600; }
.codecard .paircode span { background: #fff; }
.codecard .count { color: var(--o400); font-weight: 700; font-size: 13.5px; }
.linkbox { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--v200); }
.linkbox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--v700); font-size: 14.5px; }
.task { display: grid; gap: 12px; position: relative; padding: 18px 18px 18px 22px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.task::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--v500); }
.task .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.task h3 { font-size: 17px; letter-spacing: -.3px; color: var(--v900); }
.task .rw { font-weight: 800; color: var(--o600); font-size: 15px; white-space: nowrap; }
.task progress { background: var(--v100); } .task progress::-webkit-progress-bar { background: var(--v100); }
.task .l { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.tablewrap { overflow-x: auto; }
.empty .btn { margin-top: 14px; }
.sk { background: linear-gradient(90deg, #EAE2FA 25%, #F6F1FF 50%, #EAE2FA 75%); background-size: 200% 100%; animation: sh 1.3s infinite; border-radius: 8px; }
@keyframes sh { to { background-position: -200% 0; } }
.sk-line { height: 14px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 95; padding: 12px 18px; border-radius: 14px; background: var(--v900); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -10px rgba(10,4,40,.6); }
.chan { display: flex; align-items: center; gap: 12px; justify-content: center; }
.chan img { width: 64px; height: 64px; border-radius: 20px; object-fit: cover; }
.chan b { font-size: 17px; color: var(--v900); }
.chlink { display: block; word-break: break-all; color: var(--v500); font-weight: 700; font-size: 14px; }

/* ---- auth ---- */
body.auth { min-height: 100vh; background: var(--v900); display: flex; flex-direction: column; }
.auth-top { position: relative; padding: 28px 24px 54px; color: #fff; overflow: hidden; }
.auth-top::before { content: ""; position: absolute; right: -100px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139,92,246,.55), transparent); }
.auth-top .logo { color: #fff; position: relative; }
.auth-top h1 { position: relative; margin-top: 26px; font-size: 32px; line-height: 1.08; letter-spacing: -.8px; font-weight: 800; }
.auth-top h1 em { font-style: normal; color: var(--o400); }
.auth-top p { position: relative; margin-top: 8px; color: #D9CCFB; font-size: 15px; }
.auth-sheet { flex: 1; background: var(--bg); border-radius: 28px 28px 0 0; margin-top: -28px; padding: 22px 20px 32px; position: relative; }
.auth-in { max-width: 440px; margin: 0 auto; }
.auth-sheet .seg { margin-bottom: 18px; }
.auth-sheet h2 { font-size: 24px; letter-spacing: -.5px; color: var(--v900); font-weight: 800; }
.auth-sheet .sub { margin-top: 4px; color: var(--text2); }
.auth-sheet .btn-block { margin-top: 20px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--text2); }
.auth-foot a { color: var(--v500); font-weight: 700; }
.forgot { text-align: right; margin-top: 10px; font-size: 13.5px; font-weight: 700; }
.forgot a { color: var(--v500); }
}

.u-top { margin-top: 14px; } .ta-r { text-align: right; } .a.sm { font-size: 13px; margin-top: 3px; }
.paircode + .count { margin-bottom: 14px; }
.kv { margin: 14px 0 0; display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv dt { color: var(--text2); } .kv dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }
.avatar.big { width: 64px; height: 64px; font-size: 26px; border-radius: 20px; }
.who2 { margin-bottom: 6px; }
.menu-list { display: grid; margin-top: 6px; }
.menu-list a { display: flex; align-items: center; gap: 14px; padding: 15px 2px; border-top: 1px solid var(--line); font-weight: 600; }
.menu-list a span { flex: 1; } .menu-list a svg:first-child { color: var(--v500); } .menu-list a svg:last-child { color: var(--text2); }
.bankrow { padding: 0 0 8px; border: 0; }
.g-wide { max-width: 560px; margin: 0 auto; width: 100%; }
.main > .stack { width: 100%; }
.u-002535 { margin-top:12px; }
.u-029c93 { display:flex;gap:14px;align-items:center; }
.u-062d4a { margin-top:24px; }
.u-11305a { white-space:pre-line; }
.u-118850 { display:flex;gap:12px;align-items:center; }
.u-13ab45 { margin:12px 0 0; }
.u-1eba89 { font-size:17px;color:var(--v900); }
.u-228013 { margin:0 0 14px; }
.u-2bc5d0 { margin:4px 0 0;font-size:13.5px;color:var(--text2); }
.u-4a5222 { font-size:13px;color:var(--text2); }
.u-4a909e { margin-top:18px; }
.u-510ea6 { display:flex;justify-content:space-between;align-items:center; }
.u-53896a { margin-top:0; }
.u-553a64 { margin-top:14px; }
.u-617963 { margin-bottom:14px; }
.u-933465 { margin-left:0; }
.u-9dc109 { margin:14px 20px 0; }
.u-9e3c4c { margin-top:6px; }
.u-a6857a { font-size:18px;color:var(--v900); }
.u-b0043e { margin-top:16px; }
.u-be2540 { margin-bottom:18px; }
.u-c27077 { max-width:460px; }
.u-d43169 { margin-top:8px; }
.u-d6f757 { color:var(--text2);font-size:14px;margin:0; }
.u-ff9c46 { flex:none; }
.btn-dark { transition: transform var(--ease); } .btn-dark:active { transform: translateY(1px); }
.card .btn-block + .note, .card .btn-block + p, .auth-in .btn-block + .auth-foot { margin-top: 12px; }
.auth-foot { margin-top: 14px; }

/* ======================= PHONE-ONLY APP + CALMER, MORE PROFESSIONAL LOOK ======================= */
:root { --r: 14px; --line: #E6E2F0; --bg: #F6F5FA; }
body.shell { background: #E9E6F3; }
body.shell > .topbar, body.shell > .main { max-width: 480px; margin-left: auto; margin-right: auto; width: 100%; }
body.shell { min-height: 100vh; }
body.shell::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #E9E6F3; }
.topbar, .main { background: var(--bg); }
.topbar .in, .main { max-width: 480px; }
.main { min-height: calc(100vh - 68px - 96px); gap: 20px; padding: 6px 16px 120px; }
.bnav .in { max-width: 480px; }
.bnav { background: #fff; }
.topbar { background: var(--bg); backdrop-filter: none; border-bottom: 1px solid var(--line); }
.drawer { max-width: 320px; }
@media (min-width: 520px) {
  body.shell .topbar, body.shell .main { box-shadow: 0 0 0 1px var(--line); }
  .bnav .in { box-shadow: none; }
  .bnav { left: 50%; right: auto; width: 480px; transform: translateX(-50%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
.avatar, .tile.big, .earn, .hero-card, .codecard { clip-path: none; }
.avatar { border-radius: 12px; font-weight: 700; }
.earn, .hero-card, .codecard { border-radius: 18px; background: var(--v900); }
.earn::after { display: none; }
.earn .amt { font-weight: 700; letter-spacing: -1px; }
.btn { border-radius: 12px; font-weight: 600; box-shadow: none; }
.btn-or { background: var(--o500); box-shadow: none; }
.btn-vi { background: var(--v500); box-shadow: none; }
.btn-vi:hover { background: var(--v600); }
.btn-or:hover { background: var(--o600); }
.bnav .mid .fab { background: var(--v500); box-shadow: 0 4px 12px rgba(109,63,232,.28); }
progress::-webkit-progress-value { background: var(--v500); }
progress::-moz-progress-bar { background: var(--v500); }
.card, .panel, .wa, .statrow { border-radius: 16px; }
.qa { border-radius: 16px; } .qa:hover { transform: none; box-shadow: inset 0 0 0 1px var(--v300); }
.sec-h h2, .card h2 { font-weight: 700; font-size: 16.5px; letter-spacing: -.1px; }
.hi b { font-weight: 700; }
.pill { font-weight: 600; }
.statrow.two { grid-template-columns: 1fr 1fr; }

/* ---- form focus: one clean ring only (no second box) ---- */
.zw .field input:focus, .zw .field input:focus-visible, .zw .field select:focus-visible, .zw .field textarea:focus-visible { outline: 0; box-shadow: none; border-radius: 0; }
.zw input, .zw select, .zw textarea { -webkit-tap-highlight-color: transparent; }
.zw .field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }

/* ---- nothing may push a page wider than the phone ---- */
.main, .main > *, .stack, .stack > * { min-width: 0; }
.main { grid-template-columns: minmax(0, 1fr); }
.linkbox span { max-width: 100%; }
.main img, .main svg { max-width: 100%; }

/* ---- profile pictures ---- */
.avatar { overflow: hidden; border-radius: 50%; padding: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-0 { background: #6D3FE8; } .av-1 { background: #FF7043; } .av-2 { background: #3B5BDB; }
.av-3 { background: #B5389A; } .av-4 { background: #0E7C86; } .av-5 { background: #8B5CF6; }
.avmenu { padding: 0; border: 0; background: transparent; border-radius: 50%; }
.avatar.big { width: 72px; height: 72px; font-size: 30px; border-radius: 50%; }
.profile-top { display: flex; align-items: center; gap: 14px; }
.profile-top h2 { font-size: 18px; } .profile-top small { display: block; margin-top: 2px; word-break: break-all; }
.photo-form { margin: 14px 0 4px; } .photo-form .btn { cursor: pointer; }

/* ---- app feel ---- */
@keyframes zwin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.main > * { animation: zwin 260ms ease-out both; }
.main > *:nth-child(2) { animation-delay: 40ms; } .main > *:nth-child(3) { animation-delay: 80ms; } .main > *:nth-child(4) { animation-delay: 120ms; } .main > *:nth-child(n+5) { animation-delay: 160ms; }
.qa:active, .rowi:active, .menu-list a:active, .bnav a:active { transform: scale(.97); }
.qa, .rowi, .menu-list a, .bnav a { transition: transform 120ms ease-out; }

/* toasts + pull to refresh */
.toast { animation: zwin 200ms ease-out both; max-width: calc(100vw - 32px); text-align: center; }
.toast.good { background: #0E6B3A; } .toast.bad { background: #B3261E; }
.toast.out { opacity: 0; transition: opacity 300ms; }
.ptr { position: fixed; left: 50%; top: 0; z-index: 90; transform: translate(-50%, -60px); padding: 8px 16px; border-radius: 99px; background: var(--v900); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 120ms; }
.ptr.show { opacity: 1; }

/* Dashboard balance card: round action buttons */
.earn .rounds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.earn .rounds a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.earn .rounds a span { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--v500); transition: transform .15s ease; }
.earn .rounds a:first-child span { background: var(--o500, #FF7043); color: #fff; }
.earn .rounds a:active span { transform: scale(.92); }
.earn .rounds svg { width: 22px; height: 22px; }

/* Dashboard balance card (slim, white) */
.wcard { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 1px 0 #E6E2F0, 0 10px 24px -16px rgba(26,15,61,.35); }
.wc-top, .wc-mid, .wc-row { display: flex; justify-content: space-between; align-items: center; }
.wc-top > span { font-size: 12.5px; color: #77718A; font-weight: 600; }
.wc-eye { width: 34px; height: 34px; border-radius: 50%; background: var(--v50); color: var(--v500); display: flex; align-items: center; justify-content: center; border: 0; padding: 0; }
.wc-amt { font-size: 30px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; color: #211A35; }
.wc-spark { width: 96px; height: 34px; flex: none; }
.wc-row { margin-top: 8px; }
.wc-row small { font-size: 12px; color: #77718A; }
.wc-chip { display: inline-flex; align-items: center; gap: 4px; background: #EFECF6; color: #77718A; border-radius: 99px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.wc-chip.up { background: #E3F6EA; color: #12803E; }
.wcard progress { display: block; width: 100%; height: 6px; margin-top: 12px; border: 0; border-radius: 9px; overflow: hidden; background: #EFE9FF; -webkit-appearance: none; appearance: none; }
.wcard progress::-webkit-progress-bar { background: #EFE9FF; }
.wcard progress::-webkit-progress-value { background: var(--v500); border-radius: 9px; }
.wcard progress::-moz-progress-bar { background: var(--v500); border-radius: 9px; }
.wc-btns { display: flex; gap: 8px; margin-top: 14px; }
.wc-b { flex: 1; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; text-decoration: none; }
.wc-b.p { background: var(--o500); color: #fff; }
.wc-b.s { background: var(--v50); color: var(--v500); }
.wc-b:active { transform: scale(.97); }
.wcard.hide [data-money] { letter-spacing: 1px; }

/* Approved: dashboard tabs card, action tiles, steps card, floating menu */
.wcard { padding: 16px; }
.wcard .wc-amt { display: block; margin-top: 2px; }
.wc-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 12px; padding: 3px; margin: 12px 0 10px; }
.wc-tabs button { flex: 1; border: 0; background: transparent; color: var(--text2); font-weight: 700; font-size: 12.5px; padding: 8px 0; border-radius: 9px; font-family: inherit; }
.wc-tabs button.on { background: #fff; color: var(--v900); box-shadow: 0 1px 3px rgba(26,15,61,.12); }
.wc-fig { font-size: 20px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.wc-note { margin-top: 8px; font-size: 12px; color: var(--text2); }
.wcard.hide .wc-fig { letter-spacing: 1px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tiles a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 2px 10px; background: #fff; border-radius: 14px; font-size: 11.5px; font-weight: 700; color: var(--v900); box-shadow: inset 0 0 0 1px var(--line); }
.tiles .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--v50); color: var(--v500); }
.tiles .ic.o { background: #FFE9E0; color: var(--o600); }
.tiles .st { font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: #EFECF6; color: var(--text2); }
.tiles .st.live { background: #DDF5E7; color: #0C6B38; } .tiles .st.wait { background: #FDF1D6; color: #8A5A00; }
.tiles a:active { transform: scale(.97); }
.steps h2 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.steps ol { list-style: none; padding: 0; margin: 0 0 12px; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps .n { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--v50); color: var(--v500); font-weight: 800; font-size: 14px; }
.steps li.now .n { background: var(--v500); color: #fff; }
.steps b { display: block; font-size: 14.5px; } .steps small { color: var(--text2); font-size: 12.5px; }
.steps .btn { width: 100%; margin-top: 4px; }
/* button text colour: .zw a {color: inherit} was beating .btn-* inside cards */
.zw .btn-vi, .zw .btn-or, .zw a.btn-vi, .zw a.btn-or { color: #fff; }
.zw a.btn-ghost { color: #fff; } .zw a.btn-line { color: var(--v600); }
/* floating bottom menu */
.bnav { background: transparent; border: 0; left: 0; right: 0; width: auto; transform: none; padding: 0 14px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.bnav .in { pointer-events: auto; max-width: 440px; height: 62px; margin: 0 auto; padding: 0 8px; align-items: center; background: #fff; border-radius: 22px; box-shadow: 0 12px 28px -10px rgba(26,15,61,.4), 0 0 0 1px var(--line); justify-content: space-around; }
.bnav a { width: auto; flex-direction: row; gap: 6px; padding: 10px 12px; border-radius: 16px; color: var(--text2); font-size: 12.5px; font-weight: 700; transition: background .2s ease, color .2s ease; }
.bnav a span { display: none; }
.bnav a[aria-current] { background: var(--v50); color: var(--v500); }
.bnav a[aria-current] span { display: inline; }
.bnav a[aria-current]::before { display: none; }
@media (min-width: 520px) { .bnav { left: 50%; width: 480px; transform: translateX(-50%); } }

/* ===== App polish: one compact, consistent system for every page (phone first) ===== */
body.zw { font-size: 15px; }
.btn { min-height: 44px; padding: 0 16px; font-size: 14.5px; font-weight: 700; border-radius: 12px; gap: 7px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-dark { min-height: 44px; border-radius: 12px; }
form > .btn, form > button.btn, form > .field + .btn { margin-top: 14px; }
.acts .btn, .btns .btn, .wc-btns .btn { margin-top: 0; }
.field .input { height: 46px; border-radius: 12px; padding: 0 12px; }
.field input, .field select { font-size: 15.5px; }
.field label, .field > span:first-child { font-size: 12.5px; }
.card, .panel { padding: 14px; }
.card h2, .panel h2 { font-size: 16px; }
.main { gap: 14px; }
.stack { gap: 12px; }
.note { font-size: 12.5px; line-height: 1.45; }

/* top balance cards on Wallet / Withdraw / Invite: same slim white card as the dashboard */
.hero-card { background: #fff; color: var(--text); border-radius: 18px; padding: 16px; box-shadow: 0 1px 0 var(--line), 0 10px 24px -16px rgba(26,15,61,.35); }
.hero-card::before, .hero-card::after { display: none; }
.hero-card .lbl { color: var(--text2); font-size: 12.5px; }
.hero-card .big { font-size: 30px; letter-spacing: -1px; color: var(--text); }
.hero-card .sub { color: var(--text2); font-size: 12.5px; margin-top: 6px; }
.hero-card .sub b { color: var(--text); }
.hero-card .acts { margin-top: 14px; }
.hero-card .btn { min-height: 42px; }
.hero-card .btn-ghost, .zw .hero-card a.btn-ghost { background: var(--v50); color: var(--v500); box-shadow: none; }

/* pairing code card stays dark but compact */
.codecard { padding: 16px; border-radius: 18px; }
.paircode span { width: 30px; height: 46px; font-size: 20px; border-radius: 10px; }

/* auth */
.auth-top h1 { font-size: 27px; margin-top: 18px; }
.auth-top p { font-size: 14.5px; }

/* landing page */
.hero .wrap { padding-top: 22px; gap: 18px; }
.hero h1 { font-size: clamp(30px, 9vw, 38px); letter-spacing: -.8px; margin-top: 10px; }
.hero .sub { font-size: 15px; line-height: 1.5; margin-top: 12px; }
.hero-photo { width: min(100%, 300px); }
.sec { padding-top: 34px; padding-bottom: 34px; }
.sec h2 { font-size: 24px; letter-spacing: -.5px; }
.cta-band { padding: 34px 0; }
.cta-band h2 { font-size: 24px; }
.main { align-content: start; grid-auto-rows: max-content; gap: 14px; padding: 4px 14px 110px; }
.seg a { padding: 9px 8px; font-size: 13.5px; }
.seg { padding: 3px; border-radius: 12px; }

/* ===== App look v2 (approved design 1): violet header band on every member page ===== */
body.shell .topbar { background: #5A2FCB; border-bottom: 0; box-shadow: none; }
body.shell .topbar .in { height: 64px; }
.topbar .hi small { color: #D9CCFB; }
.topbar .hi b { color: #fff; }
.topbar .ibtn { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; border: 0; }
.topbar .ibtn .dot { box-shadow: 0 0 0 2px #5A2FCB; }
.topbar .avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
body.pg-in .topbar { border-radius: 0 0 24px 24px; padding-bottom: 6px; background: linear-gradient(160deg, #5A2FCB, #7444EE); }
body.pg-in .main { padding-top: 16px; }
/* home: balance lives in the header band */
body.pg-home .main { padding-top: 0; }
body.pg-home .wcard.g-earn { background: linear-gradient(170deg, #5A2FCB, #8B5CF6); color: #fff; border-radius: 0 0 28px 28px; box-shadow: none; margin: 0 -14px; padding: 2px 18px 58px; }
body.pg-home .wc-top > span { color: #D9CCFB; }
body.pg-home .wc-eye { background: rgba(255,255,255,.18); color: #fff; }
body.pg-home .wc-amt { color: #fff; font-size: 36px; }
body.pg-home .wc-tabs { background: rgba(255,255,255,.16); }
body.pg-home .wc-tabs button { color: #E4D9FF; }
body.pg-home .wc-tabs button.on { background: #fff; color: var(--v700); }
body.pg-home .wc-fig { color: #fff; }
body.pg-home .wc-chip.up { background: rgba(255,255,255,.2); color: #fff; }
body.pg-home .wc-note { color: #D9CCFB; }
body.pg-home .g-acts { margin-top: -34px; position: relative; }
body.pg-home .tiles { background: #fff; border-radius: 20px; padding: 14px 6px 12px; box-shadow: 0 12px 28px -16px rgba(40,20,100,.4); gap: 2px; }
body.pg-home .tiles a { background: transparent; box-shadow: none; padding: 0 2px; }
body.pg-home .tiles .ic { width: 44px; height: 44px; border-radius: 14px; }
body.pg-home .main { gap: 14px; }
.avatar.av-fig { background: none; padding: 0; overflow: hidden; border-radius: 50%; }
.avatar.av-fig svg { width: 100%; height: 100%; max-width: none; }
.photo-form.busy .btn { opacity: .6; pointer-events: none; }

/* country picker */
.field .lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.ccfield { display: flex; align-items: center; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.ccfield:focus-within { border-color: var(--v500); box-shadow: 0 0 0 3px rgba(109,63,232,.14); }
.ccbtn { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; height: 100%; cursor: pointer; border-right: 1.5px solid var(--line); background: #FAF8FF; font-size: 14.5px; color: var(--text); }
.ccbtn svg { color: var(--text2); }
.ccnum { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent; padding: 0 12px; font-size: 16px; color: var(--text); }
.flag { width: 26px; height: 18px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(33,26,53,.12); object-fit: cover; flex: none; display: block; }
.hint { display: block; margin-top: 6px; color: var(--text2); font-size: 12px; }
.ccsheet { position: fixed; inset: 0; z-index: 200; background: rgba(26,15,61,.5); display: flex; align-items: flex-end; justify-content: center; }
.ccsheet[hidden] { display: none; }
.ccpanel { width: 100%; max-width: 480px; max-height: 82vh; background: #fff; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.cchead { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; font-size: 16px; }
.cchead button { all: unset; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #F4F1FB; cursor: pointer; color: var(--text); }
.ccsearch { display: flex; align-items: center; gap: 8px; margin: 4px 16px 8px; padding: 0 12px; height: 44px; border-radius: 12px; background: #F4F1FB; color: var(--text2); }
.ccsearch input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text); min-width: 0; }
.cclist { list-style: none; margin: 0; padding: 0 8px 12px; overflow-y: auto; }
.cclist li[hidden] { display: none; }
.cclist button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; cursor: pointer; font-size: 15px; color: var(--text); }
.cclist button:active, .cclist button:hover { background: #F4F1FB; }
.cclist span { flex: 1; }
.cclist em { font-style: normal; color: var(--text2); font-size: 14px; }
body.cc-open { overflow: hidden; }
.ccsearch input { border: 0 !important; box-shadow: none !important; height: 100%; padding: 0; background: transparent !important; }

/* WhatsApp chooser after copying the code */
.washeet { position: fixed; inset: 0; z-index: 200; background: rgba(26,15,61,.5); display: flex; align-items: flex-end; justify-content: center; }
.washeet[hidden] { display: none; }
.wapanel { width: 100%; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0; padding: 0 16px calc(18px + env(safe-area-inset-bottom)); }
.wapanel .cchead { padding: 16px 0 6px; }
.wasub { margin: 0 0 14px; font-size: 13.5px; }
.watiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.watiles a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; border-radius: 16px; background: #F6F3FF; color: var(--text); text-decoration: none; font-weight: 700; font-size: 13.5px; text-align: center; }
.watiles a:active { background: #ECE5FF; }

/* landing stays phone-sized on every screen: a centred app column on wide screens */
html { background: #E9E3F7; }
@media (min-width: 520px) {
  body.site { max-width: 480px; margin: 0 auto; background: var(--bg, #F5F0FF); box-shadow: 0 0 0 1px rgba(33,26,53,.08), 0 24px 70px -20px rgba(26,15,61,.35); min-height: 100vh; }
}

/* ===== Scroll reveal (landing). Only active when reveal-boot.js adds .rv; transform and opacity only, so nothing shifts. ===== */
body.site main { overflow-x: clip; }
html.rv [data-rv] { opacity: 0; transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1), clip-path .95s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
html.rv [data-rv="up"] { transform: translate3d(0, 22px, 0); }
html.rv [data-rv="left"] { transform: translate3d(-24px, 0, 0); }
html.rv [data-rv="right"] { transform: translate3d(24px, 0, 0); }
html.rv [data-rv="fade"] { transform: none; }
html.rv [data-rv="img"] { transform: translate3d(0, 14px, 0) scale(.985); clip-path: inset(100% -48px -24px -48px); }
html.rv [data-rv].rv-in { opacity: 1; transform: none; clip-path: inset(-24px -48px -24px -48px); }

/* language pop-up + switcher */
.langbtn { width: auto; min-width: 44px; padding: 0 9px; display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.langbtn b { font-size: 12px; font-weight: 800; letter-spacing: .4px; }
.langbtn svg { width: 20px; height: 20px; }
.nav-list .navbtn { cursor: pointer; font-family: inherit; }
.langcard { max-width: 380px; padding: 30px 20px 20px; gap: 14px; }
.langcard .badge svg { width: 30px; height: 30px; }
.langcard h2 small { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--v600, #7C4DEB); letter-spacing: 0; }
.langopts { display: grid; gap: 10px; text-align: left; }
.langopt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 1.500px solid var(--line, #E6DEF8); border-radius: 18px; background: #fff; font-family: inherit; color: var(--text, #211A35); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.langopt:active { transform: scale(.985); }
.langopt:hover, .langopt.on { border-color: #8B5CF6; background: #F5F0FF; }
.langopt .lcode { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .5px; color: #fff; background: linear-gradient(135deg, #6D3FE8, #8B5CF6); }
.langopt .ltxt { flex: 1; display: grid; gap: 2px; }
.langopt .ltxt b { font-size: 16px; }
.langopt .ltxt small { font-size: 13px; color: var(--text2, #6B6385); }
.langopt .lchk { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #E9E3F7; color: transparent; }
.langopt.on .lchk { background: #6D3FE8; color: #fff; }
.langcard .note { font-size: 13px; color: var(--text2, #6B6385); }

/* connect page video guide */
.vgbox { position: relative; display: block; width: 100%; max-width: 300px; aspect-ratio: 16 / 9; margin: 0 auto; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; font-family: inherit; color: #fff; background: radial-gradient(120% 120% at 20% 0%, #8B5CF6 0%, #5A2FCB 55%, #2A1666 100%); box-shadow: 0 14px 28px -16px rgba(60,28,150,.7); }
.vgbox::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(10,4,40,.55)); }
.vgplay { position: absolute; left: 50%; top: 44%; z-index: 1; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: #6D3FE8; box-shadow: 0 8px 20px rgba(10,4,40,.35); transition: transform .2s; }
.vgplay svg { width: 26px; height: 26px; margin-left: 3px; }
.vgbox:hover .vgplay { transform: scale(1.06); }
.vglabel { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 9px; text-align: left; display: grid; }
.vglabel b { font-size: 15px; letter-spacing: -.2px; }
.vglabel small { font-size: 12px; opacity: .85; }
.vcard { max-width: 520px; padding: 14px; text-align: left; gap: 12px; }
.vhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 0 6px; }
.vhead b { font-size: 17px; color: var(--v900, #2A1666); }
.vx { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--v50, #F5F0FF); color: var(--v700, #5A2FCB); cursor: pointer; }
.vframe { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #120A30; }
.vframe iframe, .vframe video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vframe:empty { display: none; }
.vsoon { margin: 0; padding: 10px 4px; text-align: center; }

.vcard .btn-ghost { background: var(--v50, #F5F0FF); color: #5A2FCB; box-shadow: none; }
.vcard .btn-ghost:hover { background: #ECE3FF; }
.langopt, .langopt .ltxt { text-align: left; }
.vgbox { max-width: 240px; border-radius: 16px; }
.vgplay { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.vgplay svg { width: 22px; height: 22px; }
.vglabel b { font-size: 14px; }
.vglabel small { font-size: 11.500px; }

/* profile photo: round picture with a small camera button */
.profile-top { gap: 16px; }
.profile-top .photo-form { margin: 0; flex: none; }
.avwrap { position: relative; width: 76px; height: 76px; }
.avwrap .avatar.big { width: 76px; height: 76px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #E3D9FB; }
.camfab { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: linear-gradient(135deg, #6D3FE8, #8B5CF6); color: #fff; box-shadow: 0 0 0 3px #fff, 0 6px 12px -4px rgba(60,28,150,.6); transition: transform .15s; }
.camfab:active { transform: scale(.92); }
.camfab svg { width: 16px; height: 16px; }
.photo-form.busy .camfab { opacity: .6; pointer-events: none; }
.photo-form.busy .avwrap::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.55); }
.profile-top { padding-bottom: 14px; }

.rwcard { max-width: 340px; text-align: center; padding: 28px 20px 20px; gap: 12px; }
.rwbadge { background: #E3F7EA; color: #168A4A; }
.rwcard h2 { font-size: 24px; }
.rwcard p { color: var(--text2, #6B6385); font-size: 15px; margin: 0; }

/* dashboard task card */
.taskcard { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 18px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.taskcard .ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--v500), var(--v400)); color: #fff; }
.taskcard .d b { display: block; font-size: 16px; color: var(--v900); }
.taskcard .d small { display: block; margin-top: 2px; color: var(--text2); font-size: 13.5px; line-height: 1.45; }
.taskcard .btn { grid-column: 1 / -1; width: 100%; }
/* withdrawal amount picker */
.wdopts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.wdopt { position: relative; display: block; cursor: pointer; }
.wdopt input { position: absolute; opacity: 0; inset: 0; }
.wdopt span { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; transition: box-shadow .15s, background .15s; }
.wdopt b { font-size: 18px; color: var(--v900); font-variant-numeric: tabular-nums; }
.wdopt small { color: var(--text2); font-size: 12.5px; }
.wdopt input:checked + span { box-shadow: inset 0 0 0 2.5px var(--v500); background: var(--v50); }
.wdopt input:focus-visible + span { box-shadow: inset 0 0 0 2.5px var(--v500), 0 0 0 4px rgba(109,63,232,.18); }
.wdopt.off { opacity: .5; cursor: not-allowed; }
.wdsum { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--v50); display: grid; gap: 8px; }
.wdsum[hidden] { display: none; }
.wdsum div { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--text2); }
.wdsum b { color: var(--v900); font-variant-numeric: tabular-nums; }
.wdsum .net { padding-top: 8px; border-top: 1px dashed var(--v200, #d9ccff); font-size: 16px; font-weight: 700; color: var(--v900); }
.wdsum .net b { color: var(--v600); font-size: 18px; }
/* link progress pop-up */
.lpmodal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(26,15,61,.62); backdrop-filter: blur(6px); }
.lpmodal[hidden] { display: none; }
.lpcard { position: relative; width: 100%; max-width: 360px; padding: 26px 22px 20px; border-radius: 28px; background: #fff; text-align: center; display: grid; gap: 14px; box-shadow: 0 30px 70px -20px rgba(10,4,40,.65); }
.lpcard h2 { font-size: 20px; letter-spacing: -.3px; color: var(--v900); }
.lpcard .sub { color: var(--text2); font-size: 14px; line-height: 1.45; margin-top: -6px; }
.lpring { position: relative; width: 150px; height: 150px; margin: 2px auto; }
.lpring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lpring .tr { stroke: var(--v100); } .lpring .fg { stroke: var(--v500); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.lpring.done .fg { stroke: var(--ok); } .lpring.warn .fg { stroke: var(--warn); }
.lpring .pc { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--v900); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.lpstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lpstats div { padding: 10px 6px; border-radius: 14px; background: var(--v50); }
.lpstats b { display: block; font-size: 17px; color: var(--v900); font-variant-numeric: tabular-nums; }
.lpstats small { display: block; margin-top: 2px; color: var(--text2); font-size: 11.5px; font-weight: 600; }
.lpearn { font-size: 13.5px; color: var(--text2); } .lpearn b { display: block; font-size: 26px; color: var(--v600); letter-spacing: -.6px; }
.lpx { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: var(--v50); border-radius: 12px; color: var(--v700); }

/* long pop-up messages scroll inside, so the buttons always stay on screen */
.modal-card { max-height: 92vh; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#announcement .modal-card p { max-height: 34vh; max-height: 34dvh; overflow-y: auto; padding-right: 4px; }

.taskcard .ic.wag { background: linear-gradient(135deg, #1FAF5A, #25D366); }

.taskcard .ic.wag { background: none; overflow: hidden; padding: 0; } .taskcard .ic.wag img { width: 48px; height: 48px; display: block; border-radius: 14px; }
.tiles .ic.wal img { width: 26px; height: 26px; display: block; }
.wa .ring img { display: block; width: 34px; height: 34px; }

/* Floating help button, help sheet, install chips */
.helpfab { position: fixed; z-index: 70; right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 54px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--v500); box-shadow: 0 10px 24px -8px rgba(26,15,61,.45), 0 0 0 1px var(--line); touch-action: none; cursor: grab; }
.helpfab.drag { cursor: grabbing; transform: scale(1.06); }
.helpcard { text-align: center; }
.helplist { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: left; overflow: hidden; }
.helplist a { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.helplist a:last-child { border-bottom: 0; }
.helplist .hic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--v50); color: var(--v600); }
.helplist .htx { min-width: 0; display: grid; }
.helplist .htx b { color: var(--v900); font-size: 15px; }
.helplist .htx small { color: var(--v600); font-size: 12.5px; text-decoration: underline; overflow-wrap: anywhere; }
.getapp { display: flex; gap: 10px; justify-content: flex-end; margin: 0 0 12px; }
.getapp[hidden] { display: none; }
.getapp .chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--v600); font-weight: 700; font-size: 13.5px; font-family: inherit; }

/* Shortcut / App pills live in the top bar on the home page */
.topbar .getapp { display: flex; gap: 6px; margin: 0; flex: none; }
.topbar .getapp .chip { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: 12.5px; font-family: inherit; }
.topbar .getapp .chip svg { flex: none; }
.pg-home .topbar .in { gap: 8px; padding: 0 12px; }
.pg-home .topbar .ibtn { width: 38px; height: 38px; }
.pg-home .topbar .langbtn { width: auto; padding: 0 8px; gap: 3px; }
.pg-home .topbar .langbtn svg { width: 18px; height: 18px; }
@media (max-width: 380px) { .topbar .getapp .chip svg { display: none; } }
.topbar .getapp .chip svg { display: none; }
.pg-home .topbar .langbtn svg { display: none; }
.pg-home .topbar .hi { min-width: 72px; }
.pg-home .topbar .hi small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-home .topbar .avmenu { flex: none; }

/* Home task row: icon, total for one round, Get started */
.taskrow { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.taskrow .tr-ic { flex: none; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; display: block; }
.taskrow .tr-ic img { width: 56px; height: 56px; display: block; }
.taskrow .tr-amt { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.taskrow .tr-amt b { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--v900); font-variant-numeric: tabular-nums; }
.taskrow .tr-amt span { font-size: 13px; font-weight: 700; color: var(--text2); }
.taskrow .btn { flex: none; width: auto; min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14.5px; }

/* Sending pop-up */
.lpcard { text-align: left; max-width: 380px; padding: 20px; gap: 14px; border-radius: 24px; }
.lphead { display: flex; align-items: center; gap: 12px; padding-right: 48px; }
.lphead img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.lphead h2 { font-size: 18px; margin: 0; } .lphead .sub { margin: 1px 0 0; font-size: 13px; }
.lpbar { display: grid; gap: 8px; }
.lpbar .top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--text2); }
.lpbar .top b { font-size: 26px; letter-spacing: -.5px; color: var(--v600); font-variant-numeric: tabular-nums; }
.lpbar .track { height: 12px; border-radius: 99px; background: var(--v100); overflow: hidden; }
.lpbar .fill { height: 100%; width: 0; border-radius: 99px; background: var(--v600); transition: width .6s ease; }
.lpbar.done .top b { color: var(--ok); } .lpbar.done .fill { background: var(--ok); }
.lpwarn { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #FFFAEB; border: 1px solid #FEC84B; color: #93370D; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.lpwarn svg { flex: none; margin-top: 1px; }
.lpinfo { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: var(--v50); }
.lpinfo .k { flex: 1; font-size: 14px; color: var(--text2); font-weight: 500; }
.lpinfo .v { font-size: 15px; font-weight: 700; color: var(--v900); font-variant-numeric: tabular-nums; }
.lpinfo .v.earn { color: var(--v600); }
.lpdone { display: grid; justify-items: center; gap: 8px; text-align: center; }
.lpdone .tick { width: 60px; height: 60px; border-radius: 50%; background: #ECFDF3; border: 1px solid #ABEFC6; display: grid; place-items: center; color: #067647; }
.lpdone h2 { margin: 0; font-size: 22px; } .lpdone p { margin: 0; color: var(--text2); font-size: 14px; line-height: 1.45; }
.lptotal { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 14px; background: #2E1065; color: #fff; }
.lptotal span { font-size: 14px; color: #D9CCF7; } .lptotal b { font-size: 28px; letter-spacing: -.5px; }
.lpoff { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid #DDD6FE; background: #FAF8FF; color: #3B2A5E; font-size: 13.5px; line-height: 1.45; }
.lpoff svg { flex: none; margin-top: 1px; color: var(--v700); }
.lpcard .lpstats div { border: 1px solid var(--line); background: var(--v50); }

/* Home quick-action tiles: solid colour tiles with white glyphs, same weight as the WhatsApp tile */
body.pg-home .tiles .ic.g, .tiles .ic.g { background: #12B76A; color: #fff; }
body.pg-home .tiles .ic.b, .tiles .ic.b { background: #2E90FA; color: #fff; }
body.pg-home .tiles .ic.v, .tiles .ic.v { background: #6D28D9; color: #fff; }
body.pg-home .tiles .ic.wal { background: #ECFDF3; }
body.pg-home .tiles .ic { width: 48px; height: 48px; border-radius: 15px; }

/* progress pop-up: scrolling warning, no close while the task runs */
.lpwarn .mq { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.lpwarn .mq i { display: inline-block; font-style: normal; padding-left: 100%; animation: lpmq 16s linear infinite; }
@keyframes lpmq { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .lpwarn .mq { white-space: normal; } .lpwarn .mq i { animation: none; padding-left: 0; } }
.lpcard { max-width: 100%; box-sizing: border-box; overflow: hidden; }
.lpcard > div, .lpwarn, .lpinfo, .lpbar { min-width: 0; max-width: 100%; box-sizing: border-box; }
.lpwarn { overflow: hidden; width: 100%; }

/* progress pop-up: professional layout */
.lpcard { padding: 0; gap: 0; border-radius: 26px; max-width: 380px; }
.lpbody { display: grid; gap: 16px; padding: 22px 20px 20px; }
.lpband { display: flex; align-items: center; gap: 12px; padding: 18px 20px; color: #fff; background: linear-gradient(135deg, #4C1D95 0%, #6D28D9 55%, #7C3AED 100%); }
.lpband img { width: 46px; height: 46px; border-radius: 13px; flex: none; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.lpband .bt { flex: 1; min-width: 0; } .lpband h2 { margin: 0; font-size: 17px; color: #fff; letter-spacing: -.2px; } .lpband p { margin: 2px 0 0; font-size: 13px; color: #DDD0FB; }
.lpband .live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.16); font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.lpband .live i, .lpto .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: lppulse 1.6s ease-out infinite; }
@keyframes lppulse { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.lpbig { text-align: center; display: grid; gap: 0; }
.lpbig b { font-size: 54px; line-height: 1.05; letter-spacing: -2px; color: var(--v900); font-variant-numeric: tabular-nums; }
.lpbig span { font-size: 12.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text2); }
.lpbar .track { height: 14px; border-radius: 99px; background: var(--v100); overflow: hidden; }
.lpbar .fill { background: linear-gradient(90deg, #7C3AED, #A78BFA, #7C3AED); background-size: 200% 100%; animation: lpflow 2.2s linear infinite; transition: none; }
@keyframes lpflow { to { background-position: -200% 0; } }
.lpto { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 14px; background: var(--v50); border: 1px solid var(--line); }
.lpto .k { flex: 1; font-size: 14px; color: var(--text2); font-weight: 600; } .lpto .v { font-size: 15px; font-weight: 800; color: var(--v900); font-variant-numeric: tabular-nums; }
.lpwarn { border-radius: 14px; align-items: center; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .lpband .live i, .lpto .dot, .lpbar .fill { animation: none; } }

/* quick actions: professional tiles */
body.pg-home .tiles { padding: 16px 6px 14px; border-radius: 22px; gap: 4px; box-shadow: 0 14px 30px -18px rgba(40,20,100,.5), inset 0 0 0 1px rgba(109,40,217,.06); }
body.pg-home .tiles a { gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .1px; color: var(--v900); }
body.pg-home .tiles .ic { width: 52px; height: 52px; border-radius: 17px; position: relative; box-shadow: 0 10px 18px -10px var(--tg, rgba(40,20,100,.6)), inset 0 1px 0 rgba(255,255,255,.35); }
body.pg-home .tiles .ic.g { --tg: rgba(5,150,105,.75); background: linear-gradient(145deg, #34D399 0%, #059669 100%); color: #fff; }
body.pg-home .tiles .ic.b { --tg: rgba(37,99,235,.75); background: linear-gradient(145deg, #60A5FA 0%, #2563EB 100%); color: #fff; }
body.pg-home .tiles .ic.v { --tg: rgba(109,40,217,.75); background: linear-gradient(145deg, #A78BFA 0%, #6D28D9 100%); color: #fff; }
body.pg-home .tiles .ic.wal { --tg: rgba(18,140,70,.45); background: #fff; box-shadow: 0 10px 18px -10px var(--tg), inset 0 0 0 1.5px #CFF3DD; }
body.pg-home .tiles .ic svg { width: 26px; height: 26px; }

/* history page */
.hsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hsum div { padding: 12px 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.hsum span { display: block; font-size: 11.5px; font-weight: 600; color: var(--text2); }
.hsum b { display: block; margin-top: 2px; font-size: 16px; letter-spacing: -.3px; color: var(--v900); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hfilter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.hfilter::-webkit-scrollbar { display: none; }
.hfilter a { flex: none; padding: 9px 15px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 700; color: var(--text2); }
.hfilter a.on { background: var(--v600, #6D28D9); color: #fff; box-shadow: none; }
.hrow .d small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hamt { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hamt.in { color: var(--ok); } .hamt.out { color: var(--err); }
.hsum { margin-top: 12px; }

/* ===== Professional dashboard ===== */
body.pg-home .wcard.g-earn { background: radial-gradient(120% 90% at 100% 0%, rgba(167,139,250,.55) 0%, rgba(167,139,250,0) 55%), linear-gradient(165deg, #4C1D95 0%, #5B21B6 45%, #7C3AED 100%); padding-bottom: 64px; }
body.pg-home .wc-top > span { font-size: 13px; font-weight: 600; letter-spacing: .3px; }
body.pg-home .wc-amt { font-size: 40px; letter-spacing: -1.4px; }
body.pg-home .wc-tabs { border-radius: 14px; padding: 4px; }
body.pg-home .g-feed .taskrow { box-shadow: 0 12px 26px -18px rgba(40,20,100,.45); border: 0; box-shadow: inset 0 0 0 1px var(--line), 0 12px 26px -18px rgba(40,20,100,.45); }
.g-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-stats .stat { padding: 13px 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.g-stats .k { display: block; font-size: 11.5px; font-weight: 600; color: var(--text2); }
.g-stats b { display: block; margin-top: 3px; font-size: 17px; letter-spacing: -.4px; color: var(--v900); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-recent, .g-how { background: #fff; border-radius: 20px; padding: 16px 16px 6px; box-shadow: inset 0 0 0 1px var(--line); }
.g-recent .rh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.g-recent h2, .g-how h2 { margin: 0; font-size: 16px; color: var(--v900); letter-spacing: -.2px; }
.g-recent .rh a { font-size: 13px; font-weight: 700; color: var(--v600, #6D28D9); }
.g-recent .list { box-shadow: none; padding: 0; background: transparent; }
.g-how { padding-bottom: 14px; }
.g-how ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.g-how li { display: flex; gap: 12px; align-items: flex-start; }
.g-how li > span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #EDE9FE; color: #5B21B6; font-weight: 800; font-size: 13px; }
.g-how b { display: block; font-size: 14.5px; color: var(--v900); } .g-how small { display: block; margin-top: 1px; color: var(--text2); font-size: 12.5px; line-height: 1.4; }

/* ===== Bottom bar: docked, labelled, professional ===== */
.bnav { padding: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(40,20,100,.35); pointer-events: auto; }
.bnav .in { max-width: 520px; height: auto; margin: 0 auto; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: transparent; border-radius: 0; box-shadow: none; justify-content: space-around; align-items: stretch; }
.bnav a { flex: 1; width: auto; flex-direction: column; gap: 3px; padding: 4px 0 2px; border-radius: 0; background: transparent !important; font-size: 11.5px; font-weight: 600; color: #7A7391; }
.bnav a span, .bnav a[aria-current] span { display: block; }
.bnav a svg, .bnav a .wai { width: 24px; height: 24px; box-sizing: content-box; padding: 4px 18px; border-radius: 99px; transition: background .2s ease, color .2s ease; }
.bnav a .wai { padding: 4px 18px; object-fit: contain; }
.bnav a[aria-current] { color: #5B21B6; font-weight: 800; }
.bnav a[aria-current] svg, .bnav a[aria-current] .wai { background: #EDE9FE; }
.bnav a:active svg, .bnav a:active .wai { background: #F3EFFE; }
@media (min-width: 520px) { .bnav { left: 50%; width: 480px; transform: translateX(-50%); border-radius: 18px 18px 0 0; } }
.msgprev { max-width: 340px; white-space: normal; word-break: break-word; font-size: 13px; color: var(--text2); }

/* progress pop-up: live steps */
.lpsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lpsteps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #F5F3FF; color: #8B84A3; font-size: 14px; font-weight: 600; }
.lpsteps li i { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px #CFC7EA; }
.lpsteps li.done { color: #3B2A7A; } .lpsteps li.done i { background: #10B981 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: none; }
.lpsteps li.now { color: #4C1D95; background: #EDE9FE; } .lpsteps li.now i { box-shadow: inset 0 0 0 2px #7C3AED; animation: lppulse2 1.2s ease-in-out infinite; }
@keyframes lppulse2 { 50% { box-shadow: inset 0 0 0 2px #7C3AED, 0 0 0 5px rgba(124,58,237,.18); } }
@media (prefers-reduced-motion: reduce) { .lpsteps li.now i { animation: none; } }
