/* =========================================================
   app.css — ShareJob shared design system
   (dashboard.php, blog.php, promoter.php)
   ========================================================= */
:root {
    --ink: #0C2036;
    --ink-2: #16324F;
    --primary: #1268AD;
    --primary-dark: #0D5490;
    --primary-soft: #EAF3FB;
    --primary-line: #CFE3F4;
    --gold: #F5B942;
    --gold-deep: #B7791F;
    --canvas: #F1F5F9;
    --card: #FFFFFF;
    --line: #D9E1EA;
    --text: #0F2236;
    --muted: #566779;
    --ok: #067647;
    --ok-bg: #ECFDF3;
    --ok-line: #ABEFC6;
    --danger: #B42318;
    --danger-bg: #FEF3F2;
    --danger-line: #FECDCA;
    --warn: #6B4A00;
    --warn-bg: #FFF8E6;
    --warn-line: #F6DFA0;
    --font-display: "Bricolage Grotesque", "Hind Siliguri", system-ui, sans-serif;
    --font-body: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
    --side-w: 272px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--canvas); color: var(--text);
    font-family: var(--font-body); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; }
a { color: var(--primary); }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 26px; height: 26px; }
:focus-visible { outline: 3px solid #7DB8E8; outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Shell ---------- */
.side {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
    width: var(--side-w); max-width: 86vw;
    background: var(--ink); color: #fff;
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateX(-104%); transition: transform .25s ease;
}
.side.open { transform: none; box-shadow: 8px 0 32px rgba(6,16,28,.35); }
.side .ripples { position: absolute; right: -150px; bottom: -150px; width: 420px; height: 420px; color: rgba(255,255,255,.06); pointer-events: none; }
.side-brand {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 22px 20px 16px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em;
}
.side-brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--gold); color: var(--ink); display: grid; place-items: center; flex: none; }
.brand-mark .ico { stroke-width: 2; }
.side-user { position: relative; display: flex; align-items: center; gap: 12px; padding: 4px 20px 18px; }
.side-user .nm { font-weight: 600; line-height: 1.25; display: flex; align-items: center; gap: 6px; min-width: 0; }
.side-user .nm b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .sub { font-size: .8125rem; color: rgba(255,255,255,.62); }
.avatar {
    width: 42px; height: 42px; border-radius: 50%; flex: none;
    background: var(--gold); color: var(--ink);
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
}
.avatar-lg { width: 72px; height: 72px; font-size: 1.75rem; }
.avatar-sm { width: 38px; height: 38px; font-size: 1rem; }
.nav { position: relative; flex: 1; overflow-y: auto; padding: 6px 12px; display: grid; gap: 2px; align-content: start; }
.nav a, .nav button {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 12px; border-radius: 12px; border: 0; background: none; text-align: left;
    color: rgba(255,255,255,.78); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.nav a:hover, .nav button:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav .is-active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav .attn { color: var(--gold); }
.nav .sep { height: 1px; background: rgba(255,255,255,.1); margin: 8px 4px; }
.side-foot { position: relative; padding: 12px 12px 18px; border-top: 1px solid rgba(255,255,255,.1); }
.side-foot a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #FFB4AE; text-decoration: none; font-weight: 500; }
.side-foot a:hover { background: rgba(255,255,255,.07); }

.scrim { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; background: rgba(6,16,28,.55); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.scrim.open { opacity: 1; pointer-events: auto; }

.main { min-width: 0; }
.topbar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.top-title { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
    position: relative; width: 40px; height: 40px; border-radius: 12px; flex: none;
    border: 1px solid var(--line); background: #fff; color: var(--text);
    display: grid; place-items: center; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--canvas); }
.dot-badge { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #E5484D; border: 2px solid #fff; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    font-weight: 700; font-size: .9375rem; background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); white-space: nowrap;
}
.content { max-width: 1000px; margin: 0 auto; padding: 18px 14px 56px; display: grid; gap: 16px; }

@media (max-width: 479px) {
    .topbar .avatar-sm { display: none; }
    .topbar { gap: 8px; padding: 10px 12px; }
}
@media (min-width: 960px) {
    .side { transform: none; }
    .scrim { display: none; }
    .main { margin-left: var(--side-w); }
    .menu-btn { display: none; }
    .topbar { padding: 12px 32px; }
    .content { padding: 28px 32px 64px; gap: 20px; }
}

/* ---------- Cards, buttons, pills ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 1px 2px rgba(12,32,54,.04); }
.card + .card { margin-top: 0; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.card-sub { color: var(--muted); font-size: .9375rem; margin-top: 2px; }
.stack { display: grid; gap: 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.h-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
    font: inherit; font-weight: 600; font-size: .9375rem; text-decoration: none; cursor: pointer;
    transition: background .2s ease, transform .1s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(12,32,54,.2), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #F0AC24; }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--canvas); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-soft:hover { background: #DCEBF8; }
.btn-danger-ghost { background: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-bg); }
.btn-block { width: 100%; height: 52px; font-size: 1rem; }
.btn-sm { height: 36px; padding: 0 12px; border-radius: 10px; font-size: .875rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
form.is-busy .btn[type=submit] { cursor: progress; }
form.is-busy .btn[type=submit] .spin { display: inline-block; }
form.is-busy .btn[type=submit] .lbl { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.pill-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.pill-bad { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.pill-info { background: var(--primary-soft); color: var(--primary-dark); border-color: var(--primary-line); }
.pill-gold { background: var(--gold); color: var(--ink); }
.pill-muted { background: var(--canvas); color: var(--muted); border-color: var(--line); }

/* ---------- Alerts / notice ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid; font-size: .9375rem; font-weight: 500; }
.alert .ico { margin-top: 2px; }
.alert-err { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.alert-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.alert-info { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary-dark); }

.ticker { display: flex; align-items: center; gap: 10px; overflow: hidden; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 14px; color: var(--warn); padding-left: 14px; }
.ticker .ico { color: var(--gold-deep); }
.ticker-win { overflow: hidden; flex: 1; min-width: 0; }
.ticker-track { display: inline-block; white-space: nowrap; padding: 10px 0 10px 100%; font-weight: 500; animation: tick 26s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- Balance hero ---------- */
.hero-card { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 22px; padding: 22px 20px; }
.hero-card .ripples { position: absolute; right: -100px; bottom: -120px; width: 340px; height: 340px; color: rgba(255,255,255,.07); pointer-events: none; }
.hero-card > *:not(.ripples) { position: relative; }
.hero-label { color: rgba(255,255,255,.72); font-size: .9375rem; }
.hero-amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 9vw, 3.25rem); letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; }
.hero-amount .cur { color: var(--gold); margin-right: 6px; }
.hero-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.mini { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.mini .k { font-size: .8125rem; color: rgba(255,255,255,.7); }
.mini .v { font-weight: 700; font-size: 1.125rem; font-family: var(--font-display); }
.mini .v.gold { color: var(--gold); }
.hero-note { margin-top: 12px; font-size: .875rem; color: rgba(255,255,255,.62); }
.hero-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 960px) { .hero-card { padding: 28px 30px; } }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; min-width: 0; }
.stat .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 10px; }
.stat .ic.blue { background: var(--primary-soft); color: var(--primary); }
.stat .ic.green { background: var(--ok-bg); color: var(--ok); }
.stat .ic.red { background: var(--danger-bg); color: var(--danger); }
.stat .ic.gold { background: var(--warn-bg); color: var(--gold-deep); }

/* ============ Earn tab (Monetag ads / click-timer tasks) ============ */
.btn.is-loading .spin { display: inline-block; }
.earn-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 4px; }
.earn-summary .es-item { background: linear-gradient(155deg, #12233B 0%, #0C2036 100%); color: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 6px 18px rgba(12,32,54,.18); }
.earn-summary .es-n { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -.01em; }
.earn-summary .es-n span { font-size: .8125rem; font-weight: 500; color: rgba(255,255,255,.55); margin-left: 2px; }
.earn-summary .es-l { font-size: .8125rem; color: rgba(255,255,255,.65); margin-top: 2px; }
.earn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.task-earn { border: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #FCFBF7 100%); }
.task-earn::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold), #F0AC24); }
.earn-ic-gold { background: var(--warn-bg); color: var(--gold-deep); }
.earn-ic-red { background: #FDECEC; color: #C0392B; }
.earn-ic-blue { background: var(--primary-soft); color: var(--primary); }
.earn-status { margin-top: 8px; font-size: .8125rem; color: var(--muted); text-align: center; }

/* ============ ভিডিও-বক্স (Monetag অ্যাড) — ইউটিউব থাম্বনেইলের ধাঁচে, ইউনিক ============ */
.video-box {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; height: 128px; border: none; border-radius: 14px; cursor: pointer; overflow: hidden;
    background: linear-gradient(155deg, #1B2A4A 0%, #0C2036 55%, #2B1B4A 100%);
    box-shadow: 0 10px 24px -12px rgba(12,32,54,.4), inset 0 1px 0 rgba(255,255,255,.08);
    transition: transform .15s ease, box-shadow .2s ease;
}
.video-box::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(220px 120px at 15% 0%, rgba(245,185,66,.22), transparent 60%),
                radial-gradient(200px 140px at 100% 100%, rgba(139,92,246,.28), transparent 60%);
}
.video-box:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(12,32,54,.5); }
.video-box:active { transform: translateY(0); }
.video-box-shine { position: absolute; top: 0; left: -60%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent); animation: vbshine 3.2s ease-in-out infinite; }
@keyframes vbshine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
.video-box-play { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(155deg, #FBCB6B, var(--gold) 60%, #E5A62E); box-shadow: 0 6px 18px -4px rgba(245,185,66,.6), 0 0 0 6px rgba(255,255,255,.08); margin-bottom: 8px; }
.video-box-play .ico { width: 24px; height: 24px; color: #1a202c; margin-left: 3px; }
.video-box-label { position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: .875rem; letter-spacing: -.005em; }
.video-box-spin { display: none; position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--gold); animation: spin .7s linear infinite; }
.video-box.is-loading .video-box-play, .video-box.is-loading .video-box-label { display: none; }
.video-box.is-loading .video-box-spin { display: block; }
.video-box:disabled { cursor: default; opacity: .55; }
.video-box:disabled .video-box-shine { display: none; }

/* প্রতিটা টাস্ক-টাইপের নিজস্ব রঙিন আইকন বক্স */
.earn-ic-youtube { background: #FDECEC; color: #E62117; }
.earn-ic-purple { background: #F1EBFD; color: #6D3FD1; }

/* ============ 🎡 Spin Wheel ============ */
.spin-card { text-align: center; }
.spin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; text-align: left; margin-bottom: 14px; }
.spin-wrap { position: relative; width: 240px; max-width: 78vw; aspect-ratio: 1/1; margin: 0 auto; }
.spin-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 20px solid var(--danger); z-index: 3; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.spin-wheel { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 3px var(--ink), 0 14px 30px -10px rgba(12,32,54,.4); transition: transform 4s cubic-bezier(.17,.67,.16,.99); }
.spin-label { position: absolute; top: 50%; left: 50%; width: 50%; height: 0; transform-origin: 0 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; pointer-events: none; }
.spin-label span { display: inline-block; transform: rotate(90deg); font-size: .6875rem; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); white-space: nowrap; }
.spin-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 62px; height: 62px; border-radius: 50%; border: 4px solid #fff; background: linear-gradient(155deg, #FBCB6B, var(--gold) 55%, #E5A62E); color: #1a202c; font-weight: 800; font-size: .8125rem; cursor: pointer; z-index: 2; box-shadow: 0 6px 16px -4px rgba(245,185,66,.6); transition: transform .1s ease; }
.spin-btn:active { transform: translate(-50%,-50%) scale(.94); }
.spin-btn:disabled { opacity: .55; cursor: default; }
.spin-btn.claim-mode { background: linear-gradient(155deg, #34D399, var(--ok) 55%, #067647); box-shadow: 0 6px 16px -4px rgba(6,118,71,.5); color: #fff; }
.spin-btn-loading { display: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(26,32,44,.25); border-top-color: #1a202c; margin: 0 auto; animation: spin .7s linear infinite; }
.spin-btn.is-loading .spin-btn-label { display: none; }
.spin-btn.is-loading .spin-btn-loading { display: block; }
.spin-result { margin-top: 14px; padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: .9375rem; }
.spin-result.win { background: var(--ok-bg); color: var(--ok); }
.spin-result.lose { background: var(--canvas); color: var(--muted); }

/* ============ প্রমোটার পোর্টাল — মোবাইল-ফ্রেন্ডলি পালিশ ============ */
/* ক্যাম্পেইন-টাইপ সিলেক্টর (৫টা অপশন) — সরু স্ক্রিনে সমান-চাপা কলামের বদলে পাশাপাশি স্ক্রল হবে */
#campTypeSeg { display: flex; grid-auto-flow: initial; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; scroll-snap-type: x proximity; }
#campTypeSeg::-webkit-scrollbar { display: none; }
#campTypeSeg button { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; padding: 9px 16px; }
@media (min-width: 720px) { #campTypeSeg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow-x: visible; } #campTypeSeg button { white-space: normal; } }

/* ক্যাম্পেইন কার্ডের হেডার — লম্বা নাম/টাইপ ব্যাজ থাকলে সরু স্ক্রিনে সুন্দরভাবে ভাঙবে */
.camp .h-row { flex-wrap: wrap; row-gap: 8px; }
.camp .h-row > div:first-child { flex: 1 1 200px; min-width: 0; }
.camp .card-sub { line-height: 1.6; }
.camp .card-sub .pill { vertical-align: middle; margin-bottom: 3px; }

/* মেট্রিক নাম্বার সরু স্ক্রিনে যেন গাদাগাদি না লাগে */
@media (max-width: 380px) {
    .metrics { gap: 6px; }
    .metrics .n { font-size: 1.0625rem; }
    .metrics .l { font-size: .75rem; }
}

/* টার্গেট-প্রিভিউ বক্সের সংখ্যা বড় স্ক্রিনে আরেকটু প্রিমিয়াম দেখাবে (base স্টাইল আগে থেকেই আছে) */
@media (min-width: 640px) { .target-box .n { font-size: 2.125rem; } }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.01em; }
.stat .l { color: var(--muted); font-size: .875rem; margin-top: 2px; }

/* ---------- Referral ---------- */
.ref { background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: 18px; padding: 16px; }
.ref-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ref-figs { display: flex; gap: 8px; }
.ref-fig { background: #fff; border: 1px solid var(--primary-line); border-radius: 12px; padding: 8px 14px; text-align: center; min-width: 88px; }
.ref-fig .n { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.ref-fig .l { font-size: .8125rem; color: var(--muted); }
.linkbox { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 5px 5px 5px 12px; }
.linkbox input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .9375rem; color: var(--text); outline: none; text-overflow: ellipsis; }
.ref .linkbox { margin-top: 14px; border-color: var(--primary-line); }

/* ---------- Tasks ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.tasks { display: grid; gap: 14px; }
.task { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; overflow: hidden; }
.task-head { display: flex; align-items: center; gap: 12px; }
.task-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.task-ic-img { padding: 0; overflow: hidden; background: var(--canvas); }
.task-ic-img img { width: 100%; height: 100%; object-fit: cover; }
.sponsor-tag { color: var(--muted); font-size: .8125rem; }
.sponsor-tag b { color: var(--ink); font-weight: 600; }
.task-name { flex: 1; min-width: 0; }
.task-name h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-name .meta { font-size: .8125rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.task-name .meta.live { color: var(--danger); font-weight: 600; }
.task-meter { margin: 14px 0; }
.bar { height: 8px; border-radius: 999px; background: #E6ECF2; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .4s ease; }
.meter-row { display: flex; justify-content: space-between; margin-top: 8px; font-size: .875rem; color: var(--muted); gap: 8px; }
.meter-row b { color: var(--text); font-weight: 600; }
.task-actions { display: grid; gap: 8px; }
.task-actions .revoke { justify-self: end; }
.lock { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 3; background: rgba(255,255,255,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; cursor: pointer; border: 0; width: 100%; font: inherit; color: var(--text); }
.lock .lock-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--warn-bg); color: var(--gold-deep); display: grid; place-items: center; border: 1px solid var(--warn-line); }
.lock b { font-weight: 600; }
@media (min-width: 1100px) { .tasks { grid-template-columns: 1fr 1fr; } }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .ico { width: 34px; height: 34px; opacity: .55; margin-bottom: 8px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; margin-top: 18px; }
.field > label, .field > .lab { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; }
.control { position: relative; }
.control > .ico { position: absolute; left: 14px; top: 50%; margin-top: -10px; color: #7A8B9C; pointer-events: none; }
.control input, .control select, .control textarea, .plain {
    width: 100%; height: 52px; padding: 0 14px; font: inherit; font-size: 1rem; color: var(--text);
    background: #fff; border: 1.5px solid var(--line); border-radius: 12px; outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.control textarea { height: auto; padding: 12px 14px; min-height: 84px; resize: vertical; }
.control.has-ico input { padding-left: 44px; }
.control input.has-reveal { padding-right: 48px; }
.control input::placeholder, .control textarea::placeholder { color: #8C9BAA; }
.control input:hover, .control textarea:hover { border-color: #B9C6D4; }
.control input:focus, .control select:focus, .control textarea:focus, .plain:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(18,104,173,.15); }
.reveal { position: absolute; right: 6px; top: 50%; margin-top: -20px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #6B7C8D; cursor: pointer; display: grid; place-items: center; }
.reveal:hover { color: var(--text); background: var(--canvas); }
.reveal .eye-off { display: none; }
.reveal[aria-pressed="true"] .eye-on { display: none; }
.reveal[aria-pressed="true"] .eye-off { display: block; }
.hint { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; padding: 12px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; text-align: center; font-weight: 600; color: var(--muted); cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.choice img { height: 30px; max-width: 100%; object-fit: contain; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: #B9C6D4; }
.choice.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); box-shadow: 0 0 0 3px rgba(18,104,173,.12); }
.choice:focus-within { outline: 3px solid #7DB8E8; outline-offset: 2px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--canvas); border-radius: 12px; }
.seg button { font: inherit; font-weight: 600; font-size: .9375rem; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s ease, color .2s ease; }
.seg button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(12,32,54,.12), 0 0 0 1px rgba(12,32,54,.04); }

.paybox { background: var(--canvas); border: 1.5px dashed #B9C6D4; border-radius: 14px; padding: 16px; text-align: center; }
.paybox .num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; margin: 2px 0 8px; word-break: break-all; }
.fee { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); font-weight: 600; }

/* ---------- Lists / history ---------- */
.list { display: grid; }
.li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; padding-bottom: 0; }
.li:first-child { padding-top: 0; }
.li .a { font-weight: 700; font-family: var(--font-display); }
.li .b { font-size: .875rem; color: var(--muted); }
.li code { background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-size: .875rem; word-break: break-all; }
.li > div { min-width: 0; }

/* ---------- Profile ---------- */
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.profile-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; }

/* ---------- Modal & toast ---------- */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(6,16,28,.55); }
.modal.open { display: flex; }
.modal-card { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 26px 22px 22px; text-align: center; box-shadow: 0 24px 60px rgba(6,16,28,.35); }
.modal-x { position: absolute; top: 10px; right: 10px; }
.modal-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--warn-bg); color: var(--gold-deep); border: 1px solid var(--warn-line); display: grid; place-items: center; margin: 0 auto 12px; }
.modal-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.modal-card p { color: var(--muted); margin-top: 8px; }

.toasts { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 90; display: grid; justify-items: center; gap: 8px; padding: 0 14px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 460px; width: max-content; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 500; box-shadow: 0 12px 32px rgba(6,16,28,.3); animation: toast-in .25s ease; pointer-events: auto; }
.toast.ok .ico { color: #6EE7A8; }
.toast.err .ico { color: #FFB4AE; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Blog / rules ---------- */
.community { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 22px; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.community .ripples { position: absolute; right: -100px; bottom: -120px; width: 340px; height: 340px; color: rgba(255,255,255,.07); pointer-events: none; }
.community > *:not(.ripples) { position: relative; }
.community h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; }
.community p { color: rgba(255,255,255,.75); max-width: 46ch; }
.rule { border-left: 4px solid var(--primary); }
.rule.green { border-left-color: #12B76A; }
.rule.red { border-left-color: #F04438; }
.rule-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin-bottom: 12px; }
.rule-body { color: #33465A; line-height: 1.75; }

/* ---------- Advertiser extras ---------- */
.camp { border-left: 4px solid var(--warn-line); }
.camp.approved { border-left-color: #12B76A; }
.camp.rejected { border-left-color: #F04438; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.metric { text-align: center; background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; }
.metric .n { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.metric .l { font-size: .8125rem; color: var(--muted); }
.target-box { text-align: center; background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: 14px; padding: 14px; }
.target-box .n { font-family: var(--font-display); font-weight: 700; font-size: 1.875rem; letter-spacing: -.02em; }
.cols { display: grid; gap: 16px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; align-items: start; } }

.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -.01em; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .ticker-track { animation: none; padding: 10px 14px 10px 0; white-space: normal; }
}

/* ---------- v2 additions (live blocks, verify modal, AJAX) ---------- */
.side-nav-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.side-nav-wrap .nav { flex: 1; }
.modal-card { max-height: 92vh; overflow-y: auto; }
.modal-card .fee { text-align: left; }
.modal-card .choices, .modal-card .paybox, .modal-card .form { text-align: left; }
.ticker[hidden], .dot-badge[hidden] { display: none !important; }
[data-block] { min-width: 0; }
.btn-gold .spin { border-color: rgba(12,32,54,.25); border-top-color: var(--ink); }
.live-pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
/* ============================================================
   প্রিমিয়াম ডিজাইন পাস — হিরো কার্ড, সাইডবার, স্ট্যাট/টাস্ক কার্ড, বাটন
   (শুধু ভিজ্যুয়াল enhancement — কোনো ক্লাস/আইডি/লজিক বদলায়নি, তাই নিরাপদ)
   ============================================================ */

/* ---------- হিরো (ব্যালেন্স) কার্ড — গভীরতা ও গ্লো ---------- */
.hero-card {
    background: linear-gradient(155deg, #14283F 0%, #0C2036 55%, #081524 100%);
    box-shadow: 0 20px 44px -18px rgba(6,16,28,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: radial-gradient(480px 220px at 88% -10%, rgba(245,185,66,.16), transparent 60%),
                radial-gradient(360px 200px at -10% 110%, rgba(18,104,173,.28), transparent 60%);
}
.hero-amount .cur { text-shadow: 0 0 24px rgba(245,185,66,.35); }
.mini { transition: background .2s ease, border-color .2s ease; }
.mini:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.18); }

/* ---------- সাইডবার — একই ডার্ক-গ্র্যাডিয়েন্ট ভাষা ---------- */
.side { background: linear-gradient(180deg, #14283F 0%, #0C2036 60%, #081524 100%); }
.side-brand { position: relative; }
.nav .is-active { background: linear-gradient(90deg, rgba(245,185,66,.16), rgba(245,185,66,.02)); box-shadow: inset 3px 0 0 var(--gold); }
.nav a, .nav button { transition: background .2s ease, color .2s ease, padding-left .2s ease; }
.nav a:hover, .nav button:hover { padding-left: 16px; }

/* ---------- কার্ড — একটু বেশি গভীরতা, হালকা হোভার লিফট ---------- */
.card { box-shadow: 0 2px 10px -4px rgba(12,32,54,.08); transition: box-shadow .2s ease, transform .2s ease; }
.task, .camp, .metric, .stat { transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease; }
@media (hover: hover) {
    .task:hover, .camp:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(12,32,54,.22); border-color: var(--primary-line); }
    .stat:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(12,32,54,.18); }
}

/* ---------- স্ট্যাট কার্ডের আইকন বক্স — সামান্য গ্লো ---------- */
.stat .ic { box-shadow: 0 0 0 4px rgba(255,255,255,.6) inset; }
.stat .n { letter-spacing: -.015em; }

/* ---------- বাটন — প্রিমিয়াম গ্র্যাডিয়েন্ট + হোভার লিফট ---------- */
.btn-primary { background: linear-gradient(155deg, #1B7BC7 0%, var(--primary) 55%, var(--primary-dark) 100%); }
.btn-primary:hover { background: linear-gradient(155deg, #2288D6 0%, #1268AD 55%, #0D5490 100%); box-shadow: 0 6px 16px -6px rgba(18,104,173,.5); }
.btn-gold { background: linear-gradient(155deg, #FBCB6B 0%, var(--gold) 55%, #E5A62E 100%); box-shadow: 0 1px 2px rgba(12,32,54,.15), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-gold:hover { box-shadow: 0 6px 16px -6px rgba(245,185,66,.55); }
.btn:not(:disabled) { transition: background .2s ease, transform .1s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:not(:disabled):hover { transform: translateY(-1px); }

/* ---------- টাস্ক কার্ডের আইকন বক্স — সামান্য প্রিমিয়াম টাচ ---------- */
.task-ic, .earn-ic-gold, .earn-ic-red, .earn-ic-blue { box-shadow: 0 0 0 4px rgba(255,255,255,.55) inset; }

/* ---------- পিল ব্যাজ — একটু বেশি স্পষ্ট কনট্রাস্ট ---------- */
.pill-gold { box-shadow: 0 1px 2px rgba(180,120,10,.15); }

/* ---------- পেজ ব্যাকগ্রাউন্ড — হালকা টেক্সচার, খুব সূক্ষ্ম ---------- */
body { background: var(--canvas) radial-gradient(1200px 500px at 50% -10%, rgba(18,104,173,.05), transparent 60%) fixed; }

/* ============ "Continue with Google" বাটন (promoter.php-এর জন্য, index.php-এর ডিজাইনের সাথে মিলিয়ে) ============ */
.or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: .8125rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 52px;
    font: inherit; font-size: .9375rem; font-weight: 600; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
    text-decoration: none; box-shadow: 0 1px 2px rgba(12,32,54,.06);
    transition: background .2s ease, border-color .2s ease, transform .1s ease;
}
.btn-google:hover { background: #F8FAFC; border-color: #C7D2E0; text-decoration: none; color: var(--ink); }
.btn-google:active { transform: translateY(1px); }

/* ============ History পেজ — Earnings ট্যাবের সাব-হেডিং ============ */
.hist-subhead { font-size: .8125rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 4px 2px 2px; }