/* Earnly — styles for rewards, leaderboard, wallet, notifications and language switch */
.welcome-copy { position: relative; z-index: 1; }
.lang-toggle { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border: 1px solid #dbe6d4; border-radius: 9px; background: #fff; color: var(--forest); font: 700 11px "DM Sans", "Hind Siliguri", sans-serif; }
.lang-toggle .icon { width: 15px; height: 15px; }
.bell-button { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #dbe6d4; border-radius: 50%; background: #fff; color: var(--forest); }
.bell-button .icon { width: 17px; height: 17px; }
.bell-dot, .nav-dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #e0673f; box-shadow: 0 0 0 2px #fff; }
.nav-item { position: relative; }
.nav-dot { position: static; margin-left: auto; box-shadow: none; }

.taka-line { margin: 2px 0 0; color: #c7ddc9; font-size: 13px; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-actions .hero-cta { margin-top: 0; }
.hero-cta.ghost { background: rgba(255,255,255,.08); color: #eaf5df; border: 1px solid rgba(255,255,255,.22); box-shadow: none; gap: 8px; }
.hero-cta.ghost:hover { background: rgba(255,255,255,.16); }

.notice-banner { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 15px 16px; border: 1px solid #dcebc9; border-radius: 14px; background: linear-gradient(90deg, #f1f8e6, #fbfdf7); animation: page-in .4s ease both; }
.notice-banner > .icon { color: #5d8c4b; margin-top: 2px; }
.notice-banner div { flex: 1; min-width: 0; }
.notice-banner strong { display: block; font-size: 13px; }
.notice-banner p { margin: 3px 0 0; color: #6c7d70; font-size: 12px; line-height: 1.6; }
.notice-close { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: #8a9a8d; }
.notice-close:hover { background: #e7f0dc; }
.notice-close .icon { width: 14px; height: 14px; }

.daily-card { min-height: 0; }
.daily-list { position: relative; z-index: 1; display: grid; gap: 8px; margin: 14px 0 16px; }
.daily-row { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.62); font-size: 12px; font-weight: 600; }
.daily-row .icon { width: 16px; height: 16px; color: #58834c; }
.daily-row span { flex: 1; }
.daily-row em { font-style: normal; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.daily-row em.ready { background: var(--forest); color: var(--lime); }
.daily-row em.wait { background: #e3ecd8; color: #6d8762; }
.daily-card .dark-button { position: relative; z-index: 1; width: 100%; }

.rewards-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: start; }
.rewards-side { display: grid; gap: 20px; }
.game-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.game-head h2 { margin: 0; font-size: 19px; letter-spacing: -.3px; }
.game-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.game-badge { flex: none; padding: 5px 9px; border-radius: 7px; background: #eef3e9; color: #6c8563; font-size: 10px; font-weight: 700; white-space: nowrap; }
.game-badge.ready { background: var(--forest); color: var(--lime); }
.wheel-wrap { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 6px auto 0; }
.wheel { width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 18px 28px rgba(23,62,50,.18)); will-change: transform; }
.wheel svg { display: block; width: 100%; height: 100%; }
.wheel-num { fill: #173e32; font: 800 21px "DM Sans", sans-serif; }
.wheel-unit { fill: #5f7d62; font: 600 10px "Hind Siliguri", "DM Sans", sans-serif; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; z-index: 2; width: 30px; height: 36px; transform: translateX(-50%); background: #e0673f; clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 3px 3px rgba(0,0,0,.2)); }
.wheel-hub { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; place-items: center; width: 84px; height: 84px; transform: translate(-50%, -50%); border: 5px solid #d5ef91; border-radius: 50%; background: var(--forest); color: var(--lime); font: 800 16px "DM Sans", "Hind Siliguri", sans-serif; box-shadow: 0 8px 20px rgba(16,51,41,.3); transition: transform .2s, background .2s; }
.wheel-hub:not(:disabled):hover { transform: translate(-50%, -50%) scale(1.06); background: #235b45; }
.wheel-hub:disabled { opacity: .85; }
.wheel-hub .icon { width: 26px; height: 26px; }
.game-foot { margin: 16px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.scratch-card { position: relative; overflow: hidden; aspect-ratio: 2 / 1; border-radius: 16px; background: radial-gradient(circle at 30% 20%, #fbfff0, #e3f3c1); border: 1px solid #d9e9c2; user-select: none; }
.scratch-prize { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; color: #315c3b; }
.scratch-prize span, .scratch-prize small { font-size: 12px; color: #6f8a68; font-weight: 600; }
.scratch-prize strong { font: 800 46px "DM Sans", sans-serif; letter-spacing: -2px; line-height: 1.05; }
.scratch-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity .6s ease; }
.scratch-card canvas.revealed { opacity: 0; pointer-events: none; }
.scratch-card.locked { background: #f4f7f0; border-style: dashed; }
.scratch-card.locked .scratch-prize { color: #7d8f80; }
.scratch-card.locked .scratch-prize strong { font-size: 26px; letter-spacing: -.5px; }
.scratch-card.locked .icon { width: 24px; height: 24px; color: #9bb294; }

.win-modal { text-align: center; padding-top: 6px; }
.win-burst { display: grid; place-items: center; width: 86px; height: 86px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle, #eaf7c9, #d5ef91); color: var(--forest); box-shadow: 0 0 0 10px #f3f9e7, 0 0 0 22px #fafcf6; animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.win-burst .icon { width: 38px; height: 38px; }
.win-modal h2 { margin: 0 0 6px; font: 800 34px "DM Sans", sans-serif; letter-spacing: -1px; color: #2f5d3b; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.refer-count { position: relative; z-index: 1; display: inline-flex !important; align-items: center; gap: 8px; margin-top: 18px !important; padding: 8px 12px; border-radius: 9px; background: rgba(255,255,255,.08); color: #e5f3d8 !important; font-weight: 600; }
.refer-count .icon { width: 16px; height: 16px; }

.lb-mine { display: inline-flex; align-items: center; gap: 7px; color: #5b7a5c; font-size: 12px; font-weight: 700; }
.lb-mine .icon { width: 16px; height: 16px; }
.prize-strip { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 16px 18px; border-radius: 15px; background: var(--forest); color: #fff; }
.prize-strip > .icon { width: 28px; height: 28px; color: var(--lime); flex: none; }
.prize-strip strong { display: block; font-size: 13px; }
.prize-strip p { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 0; color: #c3d9c8; font-size: 12px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; margin-bottom: 16px; }
.podium-card { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 12px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: center; box-shadow: var(--shadow); }
.podium-card.rank-1 { padding-top: 38px; padding-bottom: 26px; background: linear-gradient(180deg, #f5fbe7, #fff); border-color: #dcecbf; }
.podium-card .avatar { width: 48px; height: 48px; font-size: 14px; }
.podium-card strong { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-card em, .lb-row em { font-style: normal; color: #5d7f58; font: 700 12px "DM Sans", "Hind Siliguri", sans-serif; }
.rank-badge { position: absolute; top: -13px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font: 800 13px "DM Sans", sans-serif; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.rank-1 .rank-badge { background: #d4a72c; }
.rank-2 .rank-badge { background: #9aa6ad; }
.rank-3 .rank-badge { background: #c07a4a; }
.podium-card.me, .lb-row.me { border-color: #a9d07a; box-shadow: 0 0 0 3px #edf6e0; }
.lb-list { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 13px 18px; }
.lb-row + .lb-row { border-top: 1px solid #f0f2ed; }
.lb-row strong { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-rank { width: 22px; color: #95a397; font: 800 13px "DM Sans", sans-serif; text-align: center; }
.lb-row .avatar { width: 34px; height: 34px; }
.loading-panel.small { min-height: 180px; }

.wallet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.wallet-card { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.pending-notice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 13px 14px; border-radius: 12px; background: #fff6e8; color: #8c6a2f; }
.pending-notice .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.pending-notice p { margin: 0; font-size: 12px; line-height: 1.6; }
.field-title { display: block; margin-bottom: 8px; color: #5d6d61; font-size: 11px; font-weight: 700; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 9px; margin-bottom: 17px; }
.method-card { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 1px solid #e0e8dc; border-radius: 11px; background: #fbfcfa; color: var(--ink); font: 700 13px "DM Sans", sans-serif; transition: border-color .2s, box-shadow .2s, background .2s; }
.method-card.active { border-color: var(--forest); background: #f2f8ea; box-shadow: 0 0 0 3px #e4f0d6; }
.method-card:disabled { opacity: .6; }
.method-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #9aa89c; flex: none; }
.method-dot.bkash { background: #e2136e; }
.method-dot.nagad { background: #f6921e; }
.method-dot.rocket { background: #8c3494; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 12px; }
.chip { height: 30px; padding: 0 12px; border: 1px solid #dbe7d3; border-radius: 999px; background: #f6faf1; color: #3e6645; font: 700 11px "DM Sans", "Hind Siliguri", sans-serif; }
.chip:hover { background: #e9f4dc; }
.conversion { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #f4f8ed; color: #3f6b45; font-size: 13px; font-weight: 700; }
.form-hint.center { margin: 12px 0 0; text-align: center; }
.wallet-side { display: grid; gap: 16px; }
.balance-mini { display: grid; gap: 4px; padding: 22px; border-radius: 18px; background: var(--forest); color: #fff; }
.balance-mini span { color: #b9d1bf; font-size: 12px; }
.balance-mini strong { font: 800 30px "DM Sans", sans-serif; letter-spacing: -1px; }
.balance-mini strong small { font: 600 12px "Hind Siliguri", sans-serif; letter-spacing: 0; color: #c9ddcc; }
.balance-mini em { font-style: normal; color: var(--lime); font-weight: 700; font-size: 13px; }
.info-list { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.info-list div { display: flex; gap: 10px; align-items: flex-start; }
.info-list .icon { flex: none; width: 17px; height: 17px; color: #5d8a52; margin-top: 1px; }
.info-list p { margin: 0; color: #6c7c70; font-size: 12px; line-height: 1.6; }
.section-head.spaced { margin-top: 34px; }
.withdraw-row { flex-wrap: wrap; }
.withdraw-row .history-icon { background: #f5f7f2; }
.withdraw-amount { display: grid; justify-items: end; }
.withdraw-amount b { color: var(--ink) !important; font: 800 15px "DM Sans", sans-serif; }
.withdraw-amount small { color: var(--muted); font-size: 10px; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 7px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-pill.pending { background: #fff3dd; color: #a2742a; }
.status-pill.approved { background: #e6f3dc; color: #3e7a43; }
.status-pill.rejected { background: #fbe8e4; color: #a8493f; }
.history-icon.neg { background: #fbf0ec !important; color: #b0624f !important; }
.history-row b.neg { color: #b0584a; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1060px; }
.profile-grid .profile-card { max-width: none; }
.settings-card h3 { margin: 0 0 6px; font-size: 16px; }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; border-bottom: 1px solid #eef1ec; }
.pref-row strong { display: block; font-size: 13px; }
.pref-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: #eef3e9; }
.segmented button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #6f8171; font: 700 11px "DM Sans", "Hind Siliguri", sans-serif; }
.segmented button.active { background: #fff; color: var(--forest); box-shadow: 0 2px 6px rgba(20,50,30,.08); }
.apk-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; height: 42px; border-radius: 10px; background: var(--lime); color: #264a33; font-size: 12px; font-weight: 700; text-decoration: none; }
.apk-link .icon { width: 16px; height: 16px; }

.banned-panel { max-width: 560px; margin: 40px auto; padding: 38px 30px; border: 1px solid #f0d9d3; border-radius: 22px; background: #fff; text-align: center; box-shadow: var(--shadow); }
.banned-panel .empty-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; background: #fbeae6; color: #b35646; }
.banned-panel h1 { margin: 0 0 8px; font-size: 22px; }
.banned-panel p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.banned-panel .ban-reason { color: #a4503f; font-weight: 600; }
.banned-panel .outline-button { margin-top: 10px; }

.notif-item { padding: 14px 0; border-bottom: 1px solid #eef1ec; }
.notif-item strong { display: block; font-size: 13px; }
.notif-item p { margin: 4px 0; color: #66776a; font-size: 12px; line-height: 1.6; }
.notif-item small { color: #9aa79d; font-size: 10px; }
.outline-button.wide { width: 100%; margin-top: 16px; height: 42px; text-decoration: none; }
.link-button { display: block; margin: -6px 0 16px auto; padding: 0; border: 0; background: none; color: #4f7a52; font-size: 11px; font-weight: 700; }
.task-note { margin: 12px 0 0; color: #8a988c; font-size: 11px; line-height: 1.6; text-align: center; }
#task-stage .loader { display: block; margin: 8px auto 12px; }
#task-stage a.submit-button { text-decoration: none; }
.confirm-list { display: grid; gap: 1px; margin-bottom: 20px; overflow: hidden; border-radius: 12px; background: #e9eee5; }
.confirm-list div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: #fbfcf9; font-size: 12px; }
.confirm-list span { color: var(--muted); }
.confirm-list strong { display: inline-flex; align-items: center; gap: 6px; }
.confirm-list strong.big { color: #2f6139; font: 800 20px "DM Sans", sans-serif; }

@media (max-width: 1180px) { .rewards-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .wallet-grid { grid-template-columns: minmax(0, 1fr) 260px; } }
@media (max-width: 900px) { .rewards-grid, .wallet-grid, .profile-grid { grid-template-columns: 1fr; } .wallet-side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .lang-toggle { height: 30px; padding: 0 8px; }
  .lang-toggle .icon { display: none; }
  .bell-button { width: 32px; height: 32px; }
  .top-avatar { display: none; }
  .hero-actions { gap: 8px; }
  .hero-actions .hero-cta { padding: 0 12px; }
  .game-card, .wallet-card { padding: 20px 18px; }
  .wheel-hub { width: 70px; height: 70px; font-size: 14px; }
  .wallet-side { grid-template-columns: 1fr; }
  .podium { gap: 8px; }
  .podium-card { padding: 22px 6px 14px; }
  .podium-card.rank-1 { padding-top: 30px; }
  .podium-card .avatar { width: 40px; height: 40px; }
  .podium-card strong { font-size: 11px; }
  .podium-card em { font-size: 10px; }
  .prize-strip { align-items: flex-start; }
  .pref-row { flex-direction: column; align-items: flex-start; }
  .withdraw-row { gap: 10px; }
  .withdraw-row .history-info { flex-basis: calc(100% - 60px); }
  .withdraw-amount { justify-items: start; margin-left: 55px; }
  .notice-banner { margin-bottom: 18px; }
}

/* ---------- Referral steps (animated) ---------- */
.steps { --steps-gap: 20px; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--steps-gap); margin: 34px 0 0; padding: 0; list-style: none; }
.step { position: relative; padding: 22px 16px 20px; border-radius: 18px; text-align: center; transition: background .3s, box-shadow .3s; }
.step:hover { background: #fff; box-shadow: 0 16px 34px rgba(34,61,44,.07); }
.step-num { position: absolute; top: 14px; right: 16px; color: #b3c7ab; font: 800 12px "DM Sans", sans-serif; letter-spacing: .5px; }
.step-icon { position: relative; z-index: 3; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: var(--soft-green); color: #4f7d4a; }
.step-icon .icon { width: 24px; height: 24px; }
.step:hover .step-icon .icon { animation: step-wiggle .55s ease; }
.step-ring { position: absolute; inset: -7px; border: 2px solid #b5da80; border-radius: 22px; opacity: 0; pointer-events: none; }
.step-copy strong { display: block; font-size: 14px; }
.step-copy p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.step-link { position: absolute; z-index: 2; top: 49px; left: calc(50% + 38px); width: calc(100% + var(--steps-gap) - 76px); height: 2px; border-radius: 2px; background: #e2ebdb; }
.step-link i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #9fcf6a, #d5ef91); transform: scaleX(0); transform-origin: left center; }
.step-link::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #7fb450; box-shadow: 0 0 0 4px rgba(127,180,80,.2); opacity: 0; }

/* hidden until the steps scroll into view */
.steps.pending .step { opacity: 0; transform: translateY(22px); }

/* intro, played once */
.steps.play .step { animation: step-in .6s cubic-bezier(.2,.8,.2,1) calc(var(--i) * .35s) backwards; }
.steps.play .step-num { animation: step-num-in .5s ease calc(var(--i) * .35s + .25s) backwards; }
.steps.play .step-icon {
  animation: step-icon-pop .55s cubic-bezier(.2,1.2,.4,1) calc(var(--i) * .35s + .15s) backwards,
             step-glow 3.6s ease-in-out calc(var(--i) * 1.2s + 2s) infinite;
}
.steps.play .step-ring { animation: step-ring 1s ease-out calc(var(--i) * .35s + .4s) 1; }
.steps.play .step-link i { animation: step-draw .6s ease calc(var(--i) * .35s + .5s) forwards; }
.steps.play .step-link::after { animation: step-dot 3.6s ease-in-out calc(var(--i) * 1.2s + 2.6s) infinite; }

/* final state (after re-render): only the soft loop keeps running */
.steps.done .step-link i { transform: none; }
.steps.done .step-icon { animation: step-glow 3.6s ease-in-out calc(var(--i) * 1.2s) infinite; }
.steps.done .step-link::after { animation: step-dot 3.6s ease-in-out calc(var(--i) * 1.2s + .6s) infinite; }

@keyframes step-in { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes step-num-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes step-icon-pop { 0% { opacity: 0; transform: scale(.3) rotate(-18deg); } 70% { opacity: 1; transform: scale(1.12) rotate(4deg); } 100% { transform: none; } }
@keyframes step-ring { 0% { opacity: .9; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes step-glow {
  0%, 34%, 100% { background: var(--soft-green); color: #4f7d4a; box-shadow: none; }
  8%, 26% { background: var(--forest); color: var(--lime); box-shadow: 0 10px 22px rgba(23,62,50,.22); }
}
@keyframes step-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes step-draw-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes step-dot { 0% { left: 0; opacity: 0; } 3% { opacity: 1; } 25% { left: calc(100% - 8px); opacity: 1; } 28%, 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes step-dot-v { 0% { top: 0; opacity: 0; } 3% { opacity: 1; } 25% { top: calc(100% - 8px); opacity: 1; } 28%, 100% { top: calc(100% - 8px); opacity: 0; } }
@keyframes step-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 60% { transform: rotate(10deg); } }

/* phones: vertical timeline */
@media (max-width: 640px) {
  .steps { --steps-gap: 6px; grid-template-columns: 1fr; margin-top: 26px; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: start; padding: 14px 40px 14px 14px; text-align: left; background: #fff; border: 1px solid var(--line); }
  .step:hover { box-shadow: 0 10px 24px rgba(34,61,44,.06); }
  .step-icon { width: 52px; height: 52px; margin: 0; border-radius: 16px; }
  .step-num { top: 14px; right: 14px; }
  .step-copy { padding-top: 5px; }
  .step-link { top: 72px; bottom: calc(-1 * (var(--steps-gap) + 8px)); left: 39px; width: 2px; height: auto; }
  .step-link i { background: linear-gradient(180deg, #9fcf6a, #d5ef91); transform: scaleY(0); transform-origin: center top; }
  .steps.play .step-link i { animation-name: step-draw-v; }
  .steps.done .step-link i { transform: none; }
  .step-link::after { top: 0; left: -3px; }
  .steps.play .step-link::after, .steps.done .step-link::after { animation-name: step-dot-v; }
}

@media (prefers-reduced-motion: reduce) {
  .steps .step, .steps .step-num, .steps .step-icon, .steps .step-ring, .steps .step-link i, .steps .step-link::after, .step:hover .step-icon .icon { animation: none !important; }
  .steps .step { opacity: 1; transform: none; }
  .steps .step-link i { transform: none; }
}

/* ---------- live countdown (hh:mm:ss) + my referrals list ---------- */
.countdown { font-variant-numeric: tabular-nums; letter-spacing: .4px; }
.referral-people .ref-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.ref-head h3 { font-size: 16px; margin: 0 0 3px; }
.ref-head > div > p { margin: 0; }
.ref-total { display: grid; justify-items: end; gap: 1px; flex: none; text-align: right; }
.ref-total span { color: var(--muted); font-size: 10px; font-weight: 700; }
.ref-total strong { color: #31633d; font: 800 22px "DM Sans", sans-serif; letter-spacing: -.6px; line-height: 1.1; }
.ref-total em { color: var(--muted); font-size: 11px; font-style: normal; }
.ref-list { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.ref-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.ref-row + .ref-row { border-top: 1px solid #f0f2ed; }
.ref-row .avatar { width: 34px; height: 34px; font-size: 11px; }
.ref-who { flex: 1; min-width: 0; }
.ref-who strong { display: block; font-size: 13px; }
.ref-who small { display: block; margin-top: 2px; color: #94a297; font: 700 10px "DM Sans", ui-monospace, monospace; letter-spacing: .4px; overflow: hidden; text-overflow: ellipsis; }
.ref-date { color: var(--muted); font-size: 11px; white-space: nowrap; }
.ref-earn { display: grid; justify-items: end; gap: 1px; color: #477247; font: 800 14px "DM Sans", sans-serif; white-space: nowrap; }
.ref-earn small { font: 600 10px "Hind Siliguri", "DM Sans", sans-serif; color: #819383; }
.ref-earn em { color: var(--muted); font: 600 10px "DM Sans", sans-serif; font-style: normal; }
.ref-empty { padding: 24px 18px; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.ref-empty strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 14px; }
.ref-empty .text-link { margin-top: 6px; }
.ref-loading { display: grid; place-items: center; padding: 22px; }
@media (max-width: 640px) {
  .referral-people .ref-head { flex-direction: column; gap: 10px; }
  .ref-total { justify-items: start; text-align: left; }
  .ref-row { flex-wrap: wrap; gap: 8px 10px; padding: 12px 13px; }
  .ref-date { order: 4; font-size: 10px; }
  .ref-earn { order: 3; margin-left: auto; }
  .ref-row .status-pill { order: 5; }
}

/* ---------- Android app download banner (web only) ---------- */
.apk-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(100deg, #173e32, #245840); color: #fff; box-shadow: 0 14px 30px rgba(23,62,50,.16); animation: page-in .4s ease both; }
.apk-banner-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: rgba(213,239,145,.14); color: var(--lime); }
.apk-banner-icon .icon { width: 21px; height: 21px; }
.apk-banner-body { flex: 1; min-width: 0; }
.apk-banner-body strong { display: block; font-size: 14px; }
.apk-banner-body p { margin: 3px 0 0; color: #bdd4c2; font-size: 12px; line-height: 1.6; }
.apk-banner-cta { display: inline-flex; align-items: center; gap: 7px; height: 38px; flex: none; padding: 0 16px; border: 0; border-radius: 10px; background: var(--lime); color: #26472f; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s; }
.apk-banner-cta:hover { background: #e4f8a9; transform: translateY(-1px); }
.apk-banner-cta .icon { width: 15px; height: 15px; }
.apk-banner-close { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #b7cdbd; }
.apk-banner-close:hover { background: rgba(255,255,255,.16); color: #fff; }
.apk-banner-close .icon { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .apk-banner { flex-wrap: wrap; gap: 10px 12px; padding: 15px 16px; }
  .apk-banner-body { flex-basis: calc(100% - 54px); }
  .apk-banner-cta { order: 4; }
  .apk-banner-close { order: 3; margin-left: auto; }
}

/* Adsterra native banner slot */
.ad-slot { margin: 28px 0 8px; text-align: center; max-width: 100%; overflow: hidden; }
.ad-slot-label { margin: 0 0 6px; font-size: 10px; letter-spacing: .08em; color: #8b9a8d; }
.ad-slot.parked { position: absolute; left: -9999px; top: 0; width: 320px; }
