/* assets/v18.css — halotypay v18 (loaded AFTER style.css; overrides only).
   Compact container, dropdown header, top news bar, bare ad slots,
   richer motion, new pages (home, payouts, social services, VIP, blog). */

:root {
  --w: 1080px;
  --r: 16px;
  --glow: 0 0 0 1px rgba(245, 197, 66, .35), 0 10px 40px rgba(245, 197, 66, .12);
}

/* ------------------------------------------------------------- layout */
.main-content, .header-inner, .footer-inner, .footer-base { max-width: var(--w); margin-left: auto; margin-right: auto; }
.main-content { margin-top: 1.4em; padding: 0 1.1em; }
.wrap.wide { max-width: var(--w); }
body { padding-bottom: 0; }
h2 { margin-top: 1.4em; }
.hero { padding: 2em 1em 1.4em; }
.hero h1 { font-size: clamp(1.6em, 3.6vw, 2.2em); }
.hide-xs { display: inline-flex; }
.small { font-size: .85em; }

/* ------------------------------------------------------------- top bar (prices + news) */
.topbar { position: relative; z-index: 910; background: #070A10; border-bottom: 1px solid var(--line); }
.topbar .crypto-ticker { position: static; height: 28px; border: 0; border-bottom: 1px solid rgba(255,255,255,.05); background: transparent; }
.topbar .news-ticker {
  position: static; height: 34px; border: 0; background: linear-gradient(90deg, rgba(212,160,23,.10), transparent 40%);
  display: flex; align-items: stretch; overflow: hidden;
}
.topbar .news-ticker-label { display: inline-flex; align-items: center; gap: .45em; padding: 0 .9em; font-weight: 800; font-size: .72em; letter-spacing: .12em; color: #111; background: var(--gold2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.65); } 70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.topbar .news-track { display: flex; align-items: center; gap: 1.6em; padding-left: 1.2em; white-space: nowrap; animation: tickerScroll 70s linear infinite; }
.topbar .news-ticker:hover .news-track { animation-play-state: paused; }
.topbar .ticker-item { font-size: .82em; color: #D1D5DB; }
.topbar .ticker-item b { color: var(--gold2); }
.topbar .ticker-item a { color: var(--gold2); font-weight: 700; }
.topbar .ticker-sep { color: var(--gold-dim); }
[data-theme="light"] .topbar { background: #111827; }

/* ------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(8, 11, 17, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-top: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
.header-inner { display: flex; align-items: center; gap: .8em; padding: .55em 1.1em; }
.brand { font-size: 1.2em; gap: .5em; flex: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: none; }
.main-nav { display: flex; align-items: center; gap: .15em; flex: 1; justify-content: flex-start; margin-left: .6em; }
.main-nav .nav-link, .main-nav > a {
  display: inline-flex; align-items: center; gap: .45em; padding: .5em .8em; border-radius: 10px; border: 1px solid transparent;
  color: var(--muted); font-weight: 600; font-size: .92em; background: none; cursor: pointer; font-family: inherit; transition: all .18s;
}
.main-nav .nav-link:hover, .main-nav > a:hover, .dd:hover > .dd-btn { color: #fff; background: rgba(255,255,255,.06); transform: none; }
.main-nav .nav-link.active, .main-nav > a.active { color: var(--gold2); background: var(--gold-bg); border-color: var(--gold-dim); box-shadow: none; }
.ic-nav { width: 16px; height: 16px; }
.user-box { display: flex; align-items: center; gap: .45em; margin-left: auto; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; position: relative; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold2); }
.nav-burger { display: none; }

/* dropdowns */
.dd { position: relative; }
.dd-caret { transition: transform .2s; opacity: .7; }
.dd.open .dd-caret, .dd:hover .dd-caret { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; padding: .45em; z-index: 950;
  background: rgba(13, 17, 26, .98); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s;
}
.dd:hover > .dd-menu, .dd.open > .dd-menu, .dd:focus-within > .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.dd-right .dd-menu { left: auto; right: 0; }
.dd-menu a { display: flex; align-items: center; gap: .7em; padding: .6em .7em; border-radius: 10px; color: var(--text); font-weight: 600; }
.dd-menu a:hover { background: var(--gold-bg); color: var(--gold2); }
.dd-menu a span { display: flex; flex-direction: column; line-height: 1.25; }
.dd-menu a b { font-size: .92em; }
.dd-menu a small { color: var(--muted); font-weight: 500; font-size: .76em; }
.dd-menu .ic-sm { color: var(--gold2); flex: none; }
.dd-danger .ic-sm, .dd-danger b { color: #f87171 !important; }
.dd-head { display: flex; flex-direction: column; gap: .15em; padding: .6em .7em .7em; border-bottom: 1px solid var(--line); margin-bottom: .35em; }
.dd-head strong { font-size: .9em; word-break: break-all; }
.points-btn { display: inline-flex; align-items: center; gap: .4em; height: 36px; padding: 0 .75em; border-radius: 10px; border: 1px solid var(--gold-dim); background: var(--gold-bg); color: var(--gold2); font-family: inherit; font-weight: 700; cursor: pointer; }
.points-btn b { font-weight: 800; color: #fff; }
.points-btn .pts-unit { font-size: .78em; opacity: .8; }
.level-chip { display: inline-flex; align-items: center; gap: .35em; font-size: .76em; font-weight: 700; color: var(--gold2); }
.notif-count { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .68em; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* mobile header + menu */
@media (max-width: 900px) {
  .nav-burger { display: inline-flex; }
  .main-nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 330px); margin: 0; z-index: 1000; flex-direction: column; align-items: stretch;
    gap: .2em; padding: 4.2em 1em 1em; background: #0A0E15; border-right: 1px solid var(--line2); transform: translateX(-102%); transition: transform .25s; overflow-y: auto;
  }
  .main-nav.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
  .main-nav .nav-link, .main-nav > a { padding: .8em .9em; font-size: 1em; }
  .dd { width: 100%; }
  .dd-btn.nav-link { width: 100%; justify-content: flex-start; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; background: transparent; border: 0; padding: 0 0 .3em 1.2em; min-width: 0; }
  .dd.open > .dd-menu { display: block; }
  .dd:hover > .dd-menu { opacity: 1; visibility: visible; }
  .wallet-dd .dd-menu { position: fixed; right: .7em; left: .7em; top: 62px; display: none; background: rgba(13,17,26,.99); border: 1px solid var(--line2); padding: .45em; }
  .wallet-dd.open .dd-menu { display: block; }
  .header-inner { padding: .5em .8em; flex-wrap: nowrap; }
  .hide-xs { display: none; }
  .user-box .pts-unit { display: none; }
  .topbar .crypto-ticker { display: none; }
  .topbar .news-ticker { display: flex !important; }
  .main-content { padding: 0 .85em; margin-top: 1em; }
  body { padding-bottom: 64px; }
}
.mobile-bottom-nav { background: rgba(8, 11, 17, .96); border-top: 1px solid var(--line2); backdrop-filter: blur(12px); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bottom-nav a.active { color: var(--gold2); }
.mobile-bottom-nav a.active i, .mobile-bottom-nav a.active svg { filter: drop-shadow(0 0 6px rgba(245,197,66,.6)); }

/* ------------------------------------------------------------- ads: bare, full size */
.ad-slot, .ad-slot.ad-bare { border: 0 !important; background: transparent !important; padding: 0 !important; margin: 1em auto !important; text-align: center; overflow: visible; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; line-height: 0; max-width: 100%; }
.ad-slot > *, .ad-slot iframe, .ad-slot ins, .ad-slot img { margin: 0 auto !important; max-width: 100%; }
.ad-slot .ad-label { display: none !important; }
.house-banner { border: 0; border-radius: 12px; display: block; margin: 0 auto; }

/* ------------------------------------------------------------- buttons, cards, motion */
.btn { border-radius: 12px; font-weight: 700; transition: transform .15s, box-shadow .2s, filter .2s; }
.btn:not(.ghost):hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(245,197,66,.28); filter: brightness(1.05); }
.btn.lg { padding: .85em 1.5em; font-size: 1.02em; }
.btn .ic-xs { margin-left: .25em; }
.glass-card, .card { border-radius: var(--r); transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover, .glass-card.hoverable:hover { transform: translateY(-3px); border-color: var(--gold-dim); box-shadow: var(--glow); }
.reveal { transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { transition-delay: calc(var(--i, 0) * 60ms); }
.brand-3d { display: block; width: 100%; height: auto; object-fit: contain; }
.brand-svg { display: block; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes shine { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.shine { background: linear-gradient(110deg, #fff 30%, var(--gold2) 45%, #fff 60%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; }
.type-social { background: rgba(37,244,238,.1); color: #67e8f9; border-color: rgba(103,232,249,.3); }
.card-type { display: inline-flex; align-items: center; gap: .4em; }
.card-type .brand-3d, .card-type .brand-svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------- HOME */
.hx { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5em; align-items: center; padding: 2.2em 0 1.4em; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: .5em; padding: .35em .85em; border-radius: 999px; background: var(--gold-bg); border: 1px solid var(--gold-dim); color: var(--gold2); font-weight: 700; font-size: .8em; }
.hx h1 { font-size: clamp(2em, 5vw, 3.2em); line-height: 1.08; margin: .35em 0 .3em; letter-spacing: -.03em; }
.hx .sub { color: var(--muted); font-size: 1.08em; max-width: 34em; }
.hx-cta { display: flex; gap: .7em; flex-wrap: wrap; margin: 1.3em 0 1em; }
.hx-proof { display: flex; gap: .6em; flex-wrap: wrap; }
.hx-proof .crypto-chip, .hx-proof .pill { display: inline-flex; align-items: center; gap: .45em; padding: .35em .8em; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: .82em; color: var(--text); }
.hx-stage { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin: 0 auto; }
.hx-stage .orb { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FDE68A, #D4A017 55%, #6b4a07 100%); box-shadow: 0 0 80px rgba(245,197,66,.35), inset 0 -20px 50px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; font: 900 clamp(2.5em, 9vw, 4.4em)/1 'Plus Jakarta Sans', sans-serif; color: #2b1d00; animation: floaty 7s ease-in-out infinite; }
.hx-stage .ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed var(--gold-dim); animation: spin 40s linear infinite; }
.hx-stage .ring.r2 { inset: -4%; border-style: dotted; animation-duration: 70s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hx-stage .float { position: absolute; width: 21%; filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)); animation: floaty 6s ease-in-out infinite; }
.hx-stage .f1 { top: 2%; left: 8%; animation-delay: -1s; }
.hx-stage .f2 { top: 6%; right: 4%; width: 18%; animation-delay: -3s; }
.hx-stage .f3 { bottom: 10%; left: 0; width: 19%; animation-delay: -2s; }
.hx-stage .f4 { bottom: 2%; right: 14%; animation-delay: -4s; }
.hx-stage .f5 { top: 44%; right: -4%; width: 17%; animation-delay: -5s; }
@media (max-width: 820px) { .hx { grid-template-columns: 1fr; text-align: center; padding-top: 1em; } .hx .sub { margin: 0 auto; } .hx-cta, .hx-proof { justify-content: center; } .hx-stage { max-width: 300px; order: -1; } }

.fomo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; margin: 1em 0 1.6em; }
.fomo { display: flex; align-items: center; gap: .8em; padding: .85em 1em; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.fomo .ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--gold-bg); color: var(--gold2); }
.fomo b { display: block; font-size: 1.15em; font-variant-numeric: tabular-nums; color: #fff; }
.fomo span { color: var(--muted); font-size: .82em; }
@media (max-width: 720px) { .fomo-strip { grid-template-columns: 1fr; } }

.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 1em; margin: 2.2em 0 .9em; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 1.5em; }
.sec-head p { margin: .2em 0 0; color: var(--muted); }

.lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9em; }
.lane { display: flex; flex-direction: column; gap: .5em; padding: 1.1em; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); color: var(--text); position: relative; overflow: hidden; }
.lane:hover { border-color: var(--gold-dim); transform: translateY(-4px); box-shadow: var(--glow); color: var(--text); }
.lane .lane-ico { width: 54px; height: 54px; }
.lane .lane-ico img { width: 100%; height: 100%; object-fit: contain; }
.lane .lane-ico .ic-lg { width: 40px; height: 40px; color: var(--gold2); }
.lane h3 { margin: .2em 0 0; font-size: 1.05em; }
.lane p { margin: 0; color: var(--muted); font-size: .86em; }
.lane .earn { margin-top: auto; font-weight: 800; color: var(--gold2); font-size: .9em; }
@media (max-width: 900px) { .lanes { grid-template-columns: repeat(2, 1fr); } }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9em; counter-reset: s; }
.step3 { padding: 1.2em; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); position: relative; }
.step3::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; left: 1em; width: 30px; height: 30px; border-radius: 50%; background: var(--gold2); color: #111; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.step3 h3 { margin: .4em 0 .2em; font-size: 1.02em; }
.step3 p { margin: 0; color: var(--muted); font-size: .9em; }
@media (max-width: 720px) { .steps3 { grid-template-columns: 1fr; gap: 1.3em; } }

.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6em; }
.rung { text-align: center; padding: .9em .5em; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.rung .lvl-ico { width: 44px; height: 44px; margin: 0 auto .3em; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold-bg); color: var(--gold2); border: 1px solid var(--gold-dim); }
.rung b { display: block; }
.rung small { color: var(--muted); display: block; font-size: .78em; }
.rung .bonus { margin-top: .35em; font-weight: 800; color: var(--green); font-size: .88em; }
.rung.on { border-color: var(--gold2); box-shadow: var(--glow); }
.rung:nth-child(2) .lvl-ico { color: #cd7f32; } .rung:nth-child(3) .lvl-ico { color: #cbd5e1; } .rung:nth-child(4) .lvl-ico { color: #F5C542; } .rung:nth-child(5) .lvl-ico { color: #67e8f9; }
@media (max-width: 720px) { .ladder { grid-template-columns: repeat(2, 1fr); } }

.payfeed { display: flex; flex-direction: column; gap: .5em; }
.payrow { display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: .8em; padding: .7em .9em; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); animation: slideIn .5s both; }
.payrow .coin { width: 34px; height: 34px; }
.payrow .who { font-weight: 700; } .payrow .when { color: var(--muted); font-size: .8em; }
.payrow .amt { font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; text-align: right; }
.payrow .st { font-size: .74em; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .payrow { grid-template-columns: 34px 1fr auto; } .payrow .st { display: none; } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; margin: 1em 0; }
.kpi { padding: .9em 1em; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.kpi span { display: block; color: var(--muted); font-size: .78em; }
.kpi b { font-size: 1.35em; font-variant-numeric: tabular-nums; color: #fff; }
.kpi.pos b { color: var(--green); } .kpi.neg b { color: var(--red); }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

.faq-lite details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: .2em 1em; margin-bottom: .55em; }
.faq-lite summary { cursor: pointer; font-weight: 700; padding: .8em 0; list-style: none; display: flex; justify-content: space-between; gap: 1em; }
.faq-lite summary::-webkit-details-marker { display: none; }
.faq-lite summary::after { content: "+"; color: var(--gold2); font-weight: 900; transition: transform .2s; }
.faq-lite details[open] summary::after { transform: rotate(45deg); }
.faq-lite p { color: var(--muted); margin: 0 0 .9em; }

.cta-band { margin: 2.4em 0 1em; padding: 1.6em; border-radius: 20px; text-align: center; background: radial-gradient(120% 140% at 50% 0%, rgba(245,197,66,.18), transparent 60%), var(--panel); border: 1px solid var(--gold-dim); }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { color: var(--muted); margin: 0 auto 1em; max-width: 36em; }

/* ------------------------------------------------------------- SOCIAL SERVICES + VIP */
.plat-row { display: flex; gap: .6em; flex-wrap: wrap; margin: .6em 0 1em; }
.plat-chip { display: inline-flex; align-items: center; gap: .5em; padding: .35em .8em .35em .4em; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: .84em; font-weight: 600; }
.plat-chip .brand-3d, .plat-chip .brand-svg { width: 26px; height: 26px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8em; }
.svc-card { padding: 1em; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; display: block; position: relative; }
.svc-card input { position: absolute; opacity: 0; }
.svc-card:has(input:checked) { border-color: var(--gold2); box-shadow: var(--glow); background: var(--gold-bg); }
.svc-card .ico { width: 38px; height: 38px; border-radius: 11px; background: var(--gold-bg); color: var(--gold2); display: flex; align-items: center; justify-content: center; margin-bottom: .5em; }
.svc-card b { display: block; } .svc-card .price { color: var(--gold2); font-weight: 800; }
.svc-card small { color: var(--muted); display: block; }
.calc { padding: 1em 1.1em; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px dashed var(--gold-dim); display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; margin: 1em 0; }
.calc b { font-size: 1.4em; color: var(--gold2); font-variant-numeric: tabular-nums; }
.field { display: flex; flex-direction: column; gap: .35em; margin-bottom: .9em; }
.field label { font-weight: 700; font-size: .88em; }
.field input, .field select, .field textarea { width: 100%; padding: .7em .85em; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(245,197,66,.15); }
.field .hint { color: var(--muted); font-size: .8em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .9em; } @media (max-width: 640px) { .two { grid-template-columns: 1fr; } }
.vip-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6em; }
.vip-slot { padding: .8em; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-align: center; cursor: pointer; display: block; position: relative; }
.vip-slot input { position: absolute; opacity: 0; }
.vip-slot:has(input:checked) { border-color: var(--gold2); background: var(--gold-bg); box-shadow: var(--glow); }
.vip-slot .mock { height: 54px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); position: relative; margin-bottom: .45em; }
.vip-slot .mock i { position: absolute; left: 6px; right: 6px; height: 12px; border-radius: 4px; background: var(--gold2); opacity: .85; }
.vip-slot .mock i.top { top: 6px; } .vip-slot .mock i.bot { bottom: 6px; }
.vip-slot b { display: block; font-size: .9em; } .vip-slot small { color: var(--gold2); font-weight: 700; }

/* ------------------------------------------------------------- BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1em; margin: 1.2em 0; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; color: var(--text); }
.post-card:hover { transform: translateY(-4px); border-color: var(--gold-dim); box-shadow: var(--glow); color: var(--text); }
.post-cover { aspect-ratio: 1200 / 630; background: linear-gradient(135deg, #1a2233, #0d111a); position: relative; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-cover .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 900 2.6em 'Plus Jakarta Sans'; color: rgba(245,197,66,.55); }
.post-cat { position: absolute; top: .6em; left: .6em; padding: .2em .65em; border-radius: 999px; background: rgba(6,8,13,.78); border: 1px solid var(--gold-dim); color: var(--gold2); font-size: .72em; font-weight: 800; backdrop-filter: blur(6px); }
.post-body { padding: 1em 1.1em 1.1em; display: flex; flex-direction: column; gap: .4em; flex: 1; }
.post-body h3 { margin: 0; font-size: 1.05em; line-height: 1.3; color: #fff; }
.post-body p { margin: 0; color: var(--muted); font-size: .88em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; padding-top: .5em; display: flex; gap: .8em; color: var(--faint); font-size: .78em; }
.post-feature { display: grid; grid-template-columns: 1.2fr 1fr; } .post-feature .post-cover { aspect-ratio: auto; min-height: 260px; } .post-feature h3 { font-size: 1.5em; }
@media (max-width: 760px) { .post-feature { grid-template-columns: 1fr; } .post-feature .post-cover { aspect-ratio: 1200/630; min-height: 0; } }
.post-hero { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 1.2em; }
.post-hero img { width: 100%; height: auto; display: block; aspect-ratio: 1200/630; object-fit: cover; }
.post-wrap { max-width: 760px; margin: 0 auto; }
.post-wrap h1 { font-size: clamp(1.7em, 4vw, 2.4em); line-height: 1.15; }
.post-by { display: flex; gap: 1em; flex-wrap: wrap; color: var(--muted); font-size: .86em; margin: .4em 0 1em; }
.article-body { font-size: 1.04em; line-height: 1.8; color: #E5E7EB; }
.article-body h2 { margin-top: 1.8em; font-size: 1.4em; scroll-margin-top: 90px; }
.article-body h3 { margin-top: 1.4em; scroll-margin-top: 90px; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1em 0; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.3em; } .article-body li { margin: .35em 0; }
.article-body blockquote { margin: 1.2em 0; padding: .6em 1.1em; border-left: 3px solid var(--gold2); background: var(--gold-bg); border-radius: 0 12px 12px 0; }
.toc { padding: .9em 1.1em; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin: 1em 0; }
.toc b { display: block; margin-bottom: .3em; } .toc a { display: block; color: var(--muted); padding: .15em 0; font-size: .92em; } .toc a:hover { color: var(--gold2); }
.share-row { display: flex; gap: .5em; flex-wrap: wrap; margin: 1.4em 0; align-items: center; }
.share-row a { display: inline-flex; align-items: center; gap: .4em; padding: .45em .9em; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; font-size: .85em; }
.earn-nudge { display: flex; gap: 1em; align-items: center; padding: 1em 1.2em; border-radius: 16px; background: linear-gradient(120deg, var(--gold-bg), transparent); border: 1px solid var(--gold-dim); margin: 1.6em 0; flex-wrap: wrap; }
.earn-nudge > div { flex: 1; min-width: 200px; }

/* ------------------------------------------------------------- FOOTER */
.site-footer { margin-top: 3em; border-top: 1px solid var(--line); background: rgba(6, 8, 13, .7); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.6em; padding: 2em 1.1em 1em; }
.footer-col { display: flex; flex-direction: column; gap: .45em; }
.footer-col strong { color: #fff; margin-bottom: .2em; }
.footer-col a { color: var(--muted); font-size: .92em; } .footer-col a:hover { color: var(--gold2); }
.footer-base { display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; padding: .8em 1.1em 1.4em; border-top: 1px solid var(--line); }
.social-marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: .7em 0; }
.social-marquee-track { display: flex; gap: 2.2em; width: max-content; animation: tickerScroll 38s linear infinite; }
.social-marquee-item { display: inline-flex; align-items: center; gap: .55em; color: var(--text); font-weight: 600; }
.social-marquee-icon { width: 30px; height: 30px; display: inline-flex; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand-col { grid-column: 1 / -1; } .site-footer { padding-bottom: 70px; } }

/* ------------------------------------------------------------- ADMIN polish */
.admin-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .35em; padding: .3em; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin: 1em 0; scrollbar-width: thin; position: sticky; top: 56px; z-index: 40; }
.admin-tabs a { white-space: nowrap; padding: .5em .9em; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .88em; }
.admin-tabs a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-tabs a.active { background: var(--gold-bg); color: var(--gold2); border: 1px solid var(--gold-dim); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1em; }
.panel-lite { padding: 1em 1.1em; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.panel-lite h3 { margin-top: 0; }
.pl-pos { color: var(--green) !important; } .pl-neg { color: var(--red) !important; }
table.tight td, table.tight th { padding: .45em .6em; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; } .bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); }

/* ------------------------------------------------------------- misc */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shine 1.4s linear infinite; border-radius: 10px; }
[data-theme="light"] .site-header { background: rgba(255,255,255,.9); }
[data-theme="light"] .dd-menu { background: #fff; }
[data-theme="light"] .main-nav { background: #fff; }
[data-theme="light"] .kpi b, [data-theme="light"] .fomo b, [data-theme="light"] .footer-col strong, [data-theme="light"] .post-body h3 { color: #111827; }
[data-theme="light"] .article-body { color: #1f2937; }
@media (prefers-reduced-motion: reduce) {
  .hx-stage .orb, .hx-stage .ring, .hx-stage .float, .live-dot, .topbar .news-track, .social-marquee-track, .shine { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================================================================
   FIX1 (2026-11-15) — user-reported bugs, verified against the
   overlay source. These rules are self-contained in v18.css on
   purpose: the v18 overlay ships NO style.css, so anything the panel
   / toggle needs must not depend on which base style.css is live.
   ================================================================ */

/* --- 1. Theme toggle: <img> sun/moon (v18.5 proven method) --- */
/* Show sun in dark mode, moon in light mode. Colours are baked into
   assets/icons/sun.svg (#D4A017) and moon.svg (#8a6d1b). */
.theme-toggle { position: relative; color: #D4A017; }
.theme-toggle .theme-icon-moon { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-sun { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-moon { display: inline-block; }
.theme-toggle .theme-icon-sun,
.theme-toggle .theme-icon-moon { width: 20px; height: 20px; flex: none; }

/* --- 2. Notification panel: full positioning + background --- */
/* Root cause: v18.css had NO .notif-wrap/.notif-panel rules at all
   (only .notif-count). The panel's styling lived only in the base
   style.css, which the v18 overlay never ships — so on live the panel
   rendered as an unstyled in-flow block (reported: at the bottom
   before the footer, no background, just the count) instead of a
   dropdown under the bell. The inline click handler in
   includes/layout.php (pageFoot) was verified correct and is unchanged.
   The [hidden] guard matters: without it, any display rule on
   .notif-panel would defeat the hidden attribute and the panel would
   show permanently. */
.notif-wrap { position: relative; }
.notif-panel[hidden] { display: none !important; }
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  width: min(340px, 86vw); max-height: 380px; overflow-y: auto;
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px;
  box-shadow: var(--shadow); padding: .6em; text-align: left;
}
.notif-panel-head { display: flex; justify-content: space-between; align-items: center; padding: .4em .5em .6em; font-size: .9em; }
.notif-panel-head a { font-size: .85em; }
.notif-item { display: block; padding: .6em .7em; border-radius: 10px; color: var(--text); }
.notif-item:hover { background: rgba(255, 255, 255, 0.05); }
.notif-item.unread { background: var(--gold-bg); border: 1px solid var(--gold-dim); }
.notif-item strong { display: block; font-size: .92em; }
.notif-item span { display: block; font-size: .85em; color: var(--muted); }
.notif-item time { font-size: .75em; color: var(--faint); }
.notif-empty { padding: .8em; color: var(--muted); font-size: .9em; margin: 0; }
.notif-all { display: block; text-align: center; padding: .6em; font-weight: 700; font-size: .9em; }
[data-theme="light"] .notif-item:hover { background: rgba(0, 0, 0, 0.05); }
@media (max-width: 768px) {
  .notif-panel { position: fixed; top: 64px; left: 8px; right: 8px; width: auto; max-height: 60vh; }
}

/* --- 3. Light-mode hero headings: readable dark gold --- */
/* Root cause: .shine is a WHITE (#fff) -> gold -> white gradient with
   transparent text. In dark mode that reads on the dark background; in
   light mode ([data-theme="light"] --bg #F4F6FA) the white part is
   invisible, so hero headings ("real crypto.", "Get paid.",
   "smarter.", "& profiles.") were white-on-pale. The plain h1 text
   already inherits dark var(--text) in light mode; only the shine
   span and the gold eyebrow needed fixing. */
[data-theme="light"] .shine {
  background: linear-gradient(110deg, #92400E 30%, #D4A017 45%, #92400E 60%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="light"] .hx h1, [data-theme="light"] .hero h1,
[data-theme="light"] .sec-head h2, [data-theme="light"] .cta-band h2 { color: #111827; }
[data-theme="light"] .hx-eyebrow, [data-theme="light"] .hero-eyebrow { color: #92400E; }

/* --- 4. Article thumbnails: show the whole image, no crop --- */
/* Root cause: every seeded featured image is a 728x90 house banner
   (ratio 8.09:1 — includes/articles-v18-seed.php lines 495-558, three
   campaigns; v17 seeds have NO image_url at all and show the letter
   placeholder). .post-cover was aspect-ratio 1200/630 (1.9:1) with
   object-fit: cover, so ~76% of the banner width was cropped away and
   only text fragments ("IN SECONDS", "LTC") showed. The fix matches
   the container to the real image ratio, so cover == no crop and no
   distortion. PHASE 4 NOTE: when real 1200x630 featured images are
   designed, revert these three rules to aspect-ratio 1200/630. */
.post-cover { aspect-ratio: 728 / 90; }
.post-feature .post-cover { aspect-ratio: 728 / 90; min-height: 0; }
.post-hero img { aspect-ratio: 728 / 90; object-fit: cover; }
@media (max-width: 760px) {
  .post-feature .post-cover { aspect-ratio: 728 / 90; min-height: 0; }
}

/* --- 5. YouTube icons are real links --- */
/* Hero float: the 3D YouTube icon is now a link to watch.php (the
   <a> carries the .float/.f1 positioning; the img fills it). */
.hx-stage a.float { display: block; }
.hx-stage a.float img { width: 100%; height: auto; display: block; }
/* Task cards: the platform brand icon links to the same task runner
   URL as the card's Start button (see includes/layout.php FIX1). */
.card-type-ico { display: inline-flex; align-items: center; line-height: 0; }
.card-type-ico img { display: block; }

/* --- FIX2 (2026-11-15) — user-reported, verified against live render --- */
/* 1. Theme toggle: text symbols (robust). Root cause: BOTH the Lucide <i>
   (Claude v18) and the <img> sun/moon (Fix Pack 1, v18.5 proven method)
   stayed invisible in the live browser render despite correct markup,
   correct CSS, valid SVG files and a working click handler (theme flips).
   app.js only toggles data-theme. Text glyphs render via the font path,
   which works everywhere on this site. Same show/hide classes as before. */
.theme-toggle .theme-icon-sun,
.theme-toggle .theme-icon-moon { font-size: 19px; line-height: 20px; text-align: center; color: #D4A017; }
[data-theme="light"] .theme-toggle .theme-icon-moon { color: #8a6d1b; }
/* 2. Category badge: move to top-right. Root cause CONFIRMED: the .post-cat
   badge sits at top-left over every cover, and the banner headline starts
   at x=92/728 ("WITHDRAW IN SECONDS" etc.). On a ~330px grid card the
   headline starts at ~42px while the badge covers x~7-62px, so it hides
   the first 1-2 letters ("WI"/"EA"/"WA"). The banner right side is
   empty (headline ends ~x=432/728), so top-right occludes nothing.
   Featured/hero cards were whole because at their larger width the
   headline starts past the badge. */
.post-cat { left: auto; right: .6em; }

/* --- FIX3 (2026-11-15, Phase 2) — task timer/counter UI + honest verification --- */
/* Step indicator (task.php + watch-bonus.php): 4 steps, done/active/todo. */
.task-steps { display: flex; gap: .5em; flex-wrap: wrap; list-style: none; margin: 0 0 1em; padding: 0; }
.task-steps li { display: inline-flex; align-items: center; gap: .45em; padding: .45em .9em; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .88em; background: rgba(255,255,255,.02); }
.task-steps .step-num { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--muted); font-size: .85em; font-weight: 800; }
.task-steps li.active { border-color: var(--gold-dim); color: var(--gold2); background: var(--gold-bg); box-shadow: 0 0 0 1px var(--gold-dim), 0 0 18px rgba(245,158,11,.18); }
.task-steps li.active .step-num { background: var(--gold2); color: #111; }
.task-steps li.done { color: var(--muted); border-color: var(--line); }
.task-steps li.done .step-num { background: #15803d; color: #fff; }
/* State banner (replaces the small muted status line): pill + text, colour follows data-task-state. */
.task-state-banner { display: flex; align-items: center; gap: .7em; flex-wrap: wrap; margin: .9em 0 .2em; padding: .7em .9em; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); }
.task-state-banner p { margin: 0; color: var(--text); font-size: .95em; }
.task-state-pill { display: inline-flex; align-items: center; gap: .35em; padding: .3em .8em; border-radius: 999px; font-size: .82em; font-weight: 800; white-space: nowrap; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); }
.task-runner[data-task-state="counting"] .task-state-pill { background: var(--gold-bg); color: var(--gold2); border-color: var(--gold-dim); }
.task-runner[data-task-state="paused"] .task-state-pill { background: rgba(248,113,113,.12); color: #f87171; border-color: rgba(248,113,113,.4); }
.task-runner[data-task-state="ready"] .task-state-pill { background: rgba(34,197,94,.14); color: #4ade80; border-color: rgba(34,197,94,.45); }
.task-runner[data-task-state="credited"] .task-state-pill { background: rgba(34,197,94,.2); color: #4ade80; border-color: #22c55e; }
/* Banked-seconds readout under the progress bar. */
.timer-banked { margin: .5em 0 0; text-align: center; font-size: .9em; font-weight: 700; color: var(--gold2); }
/* Credited confirmation panel (shown by JS after a successful claim). */
.credit-panel { margin-top: 1.1em; padding: 1.3em 1.1em; border: 1px solid var(--gold-dim); border-radius: 16px; background: linear-gradient(135deg, rgba(245,158,11,.16), rgba(245,158,11,.05)); text-align: center; }
.credit-amount { font-size: 2em; font-weight: 900; color: var(--gold2); line-height: 1.1; }
.credit-text { margin: .3em 0 0; color: var(--text); font-weight: 600; }
.credit-balance { margin: .4em 0 .9em; color: var(--muted); font-size: .92em; }
.credit-balance strong { color: var(--gold2); }
/* Honest verification: label + badge. data-verify="timer" = the only
   method live today (server-verified active time + claim check).
   data-verify="platform" is the Phase 3 hook (YouTube/Telegram checks):
   a task carrying it shows a green "Verified" badge instead. */
.task-verify-note { margin: 0 0 1.1em; font-size: .9em; color: var(--muted); }
.verify-badge { display: inline-flex; align-items: center; gap: .3em; padding: .25em .7em; border-radius: 999px; font-size: .8em; font-weight: 800; border: 1px solid var(--gold-dim); background: var(--gold-bg); color: var(--gold2); white-space: nowrap; }
.verify-badge[data-verify="platform"] { border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.14); color: #4ade80; }
.card-verify { margin: .5em 0 0; }
@media (max-width: 560px) {
  .task-steps li { font-size: .8em; padding: .4em .7em; }
  .credit-amount { font-size: 1.7em; }
}

/* --- Phase A (2026-11-15) — BRIDGE task system (bridge.php) ---
   The bridge reuses the Fix Pack 3 runner classes (.task-steps,
   .task-state-banner, .timer-banked, .credit-panel, .verify-panel,
   .visit-card) — do not duplicate them. This section only adds the
   bridge-specific pieces: the start-gate panel, the notification tip
   and the open-card accent. */
.bridge-gate { border-color: var(--gold-dim); background: linear-gradient(135deg, rgba(245,158,11,.10), rgba(245,158,11,.03)); margin-bottom: 1em; }
.bridge-gate h3 { color: var(--gold2); }
.bridge-notif-note { margin-top: .8em; padding: .6em .8em; border: 1px dashed var(--gold-dim); border-radius: 10px; background: rgba(245,158,11,.06); color: var(--muted); }
.bridge-open-card { border-left: 3px solid var(--gold-dim); }
@media (max-width: 560px) {
  .bridge-gate .btn, .bridge-open-card .btn { width: 100%; }
}

/* --- Phase B (2026-11-15) — bell + user features + blog --- */
/* 1. Light-mode wordmark: .brand is white in the base stylesheet
   (style.css:94), so on the light header (white background) the
   "haloty" part vanished and only the gold "pay" showed. The light
   theme redefines --text (dark) — the brand follows it here. */
[data-theme="light"] .brand { color: #111827; }

/* 2. Inline-SVG header icons (bell + burger). Lucide <i> tags can
   render invisible live (Fix Pack 2) — these two are icon-only
   buttons, so they are inline SVG now. The bell reads gold. */
.ic-svg { width: 20px; height: 20px; flex: none; }
.notif-bell .bell-ico { color: var(--gold2); }

/* 3. Notification rows: the item is now a flex row (link + ✓
   button). The older .notif-item strong/span/time rules still
   match (they target descendants inside the link). The mobile
   full-width sheet already existed (Fix Pack 1, max-width
   768px) and is unchanged. */
.notif-item { display: flex; align-items: flex-start; gap: .4em; }
.notif-item-link { flex: 1; min-width: 0; color: var(--text); }
.notif-read-btn { flex: none; width: 26px; height: 26px; margin-top: .1em; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: .9em; line-height: 1; padding: 0; }
.notif-read-btn:hover { color: var(--gold2); border-color: var(--gold-dim); }
.notif-read-btn:disabled { opacity: .5; cursor: default; }
.notif-row { display: flex; align-items: flex-start; gap: .6em; }
.notif-row-text { flex: 1; min-width: 0; }

/* 4. Author box (article pages). */
.author-box { display: flex; align-items: center; gap: .9em; margin: 1.4em 0; padding: 1em 1.1em; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.author-mark { flex: none; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #FDE68A, #D4A017); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.author-mark img { display: block; width: 34px; height: 34px; }
.author-box strong { display: block; }
.author-box .muted { display: block; margin-top: .15em; }

/* 5. Earnings chart (account page, last 14 days). */
.earn-chart { display: flex; align-items: flex-end; gap: 5px; height: 120px; padding: .6em .4em .2em; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.earn-bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.earn-bar { width: 100%; max-width: 26px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--gold2), var(--gold)); min-height: 3px; }
.earn-bar-day { font-size: .68em; color: var(--muted); margin-top: .35em; line-height: 1; }

/* 6. Profile settings form spacing. */
.settings-form label { display: block; font-weight: 700; font-size: .9em; margin: .9em 0 .3em; }
.settings-form input { width: 100%; max-width: 420px; padding: .65em .8em; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: inherit; }
.settings-form .btn { margin-top: .9em; }
#settings h3 { margin: 1.4em 0 .2em; }
#settings h3:first-of-type { margin-top: .6em; }

/* ================================================================== */
/* PHASE C — toast system + loading states (UX polish).                */
/* The admin tabs (risk badges, fraud layout, timeline) are styled in  */
/* admin.php's own inline <style> block — admin.php loads style.css,  */
/* not v18.css, so admin-only rules live there.                       */
/* ================================================================== */

/* 1. Single toast system (window.showToast in app.js): success green,
   error red, auto-dismiss ~4s, click to dismiss. Kept separate from
   .reward-toast (the +PTS animation), which is a reward, not a result. */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 9999; max-width: min(92vw, 520px); padding: .8em 1.1em; border-radius: 12px; font-weight: 700; font-size: .92em; line-height: 1.4; box-shadow: 0 10px 34px rgba(0,0,0,.45); cursor: pointer; }
.toast-success { background: #14532d; border: 1px solid #166534; color: #bbf7d0; }
.toast-error { background: #7f1d1d; border: 1px solid #991b1b; color: #fecaca; }

/* 2. Loading state for mutating buttons (window.setBtnLoading in
   app.js + the global submit listener): a spinner replaces the button
   label while the request is in flight, and the button is disabled so
   a double-click cannot double-submit. */
.btn.is-loading, button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after, button.is-loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: phasec-spin .7s linear infinite; }
@keyframes phasec-spin { to { transform: rotate(360deg); } }
button:disabled { opacity: .65; cursor: not-allowed; }

/* ================================================================== */
/* PHASE D (2026-11-16) — user dashboard + design + verification      */
/* overhaul, POLISH PASS. This section REPLACES the first Phase D     */
/* draft; it is organised as numbered blocks so the next person can   */
/* follow it:                                                          */
/*   0 tokens · 1 light theme · 2 buttons · 3 header · 4 focus        */
/*   5 dashboard · 6 task cards · 7 task runner (stepper, live timer, */
/*   verify, credited) · 8 video page · 9 account picker · 10 mobile  */
/* The base style.css is not part of this overlay, so every rule here */
/* either uses the variables it defines (--panel, --line, --muted,    */
/* --gold2 ...) or the --ui-* tokens declared in block 0.            */
/* Scoping: dashboard rules hang off .page-dash (set through         */
/* $GLOBALS['HT_MAIN_CLASS'], see pageNav in layout.php) and task     */
/* rules off .task-runner, so neither leaks into home, blog, faucet   */
/* or admin pages.                                                     */
/* ================================================================== */

/* --- 0. DESIGN TOKENS (dark default, light override) --- */
/* One place for every colour this section needs. Tints are WHITE on
   dark and SLATE on light — the old rgba(255,255,255,.04) surfaces
   were invisible on a light page. Gold TEXT uses --ui-gold-text (a
   bright gold on dark, a deep amber on white) so it always reads. */
:root {
  --ui-tint: rgba(255,255,255,.04);
  --ui-tint-hover: rgba(255,255,255,.07);
  --ui-track: rgba(255,255,255,.10);
  --ui-solid: #121826;                 /* opaque surface (stepper dots, sticky bars) */
  --ui-badge-ring: #080B11;            /* ring that separates the unread badge from the header */
  --ui-gold-text: #F5C542;
  --ui-gold-solid: #D4A017;
  --ui-gold-grad: linear-gradient(135deg, #F8D86A, #D4A017);
  --ui-gold-bar: linear-gradient(90deg, #F5C542, #D4A017);
  --ui-on-gold: #1A1204;
  --ui-focus: 0 0 0 3px rgba(245,197,66,.30);
  --ui-ok: #4ADE80;   --ui-ok-solid: #16A34A;   --ui-ok-bg: rgba(34,197,94,.14);   --ui-ok-line: rgba(34,197,94,.45);
  --ui-bad: #F87171;  --ui-bad-bg: rgba(248,113,113,.12);  --ui-bad-line: rgba(248,113,113,.40);
  --ui-yt: #FF5A5A;   --ui-tg: #38BDF8;
  --ui-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
  --ui-r-md: 14px;
  --ui-r-lg: 18px;
  --ui-ease: cubic-bezier(.2,.7,.2,1);
}
[data-theme="light"] {
  --gold2: #B45309;                    /* the base kept #F5C542 here: invisible on white */
  --gold: #92400E;
  --ui-tint: rgba(15,23,42,.04);
  --ui-tint-hover: rgba(15,23,42,.07);
  --ui-track: rgba(15,23,42,.11);
  --ui-solid: #FFFFFF;
  --ui-badge-ring: #FFFFFF;
  --ui-gold-text: #92400E;
  --ui-gold-solid: #B45309;
  --ui-gold-grad: linear-gradient(135deg, #FCD34D, #F59E0B);
  --ui-gold-bar: linear-gradient(90deg, #F59E0B, #B45309);
  --ui-on-gold: #1A1204;
  --ui-focus: 0 0 0 3px rgba(180,83,9,.25);
  --ui-ok: #15803D;   --ui-ok-solid: #15803D;   --ui-ok-bg: rgba(22,163,74,.10);   --ui-ok-line: rgba(22,163,74,.40);
  --ui-bad: #B91C1C;  --ui-bad-bg: rgba(220,38,38,.08);    --ui-bad-line: rgba(220,38,38,.35);
  --ui-yt: #DC2626;   --ui-tg: #0369A1;
  --ui-shadow: 0 1px 2px rgba(15,23,42,.06), 0 10px 28px -16px rgba(15,23,42,.18);
}
html { scroll-behavior: smooth; }

/* --- 1. LIGHT THEME (surfaces + text that the dark-first rules missed) --- */
/* Every rule below fixes a hard-coded dark-theme colour that went
   invisible or muddy on the light page. */
[data-theme="light"] .icon-btn { background: var(--ui-tint); }
[data-theme="light"] .main-nav .nav-link:hover,
[data-theme="light"] .main-nav > a:hover { background: var(--ui-tint-hover); color: #111827; }
[data-theme="light"] .dd-menu { border-color: rgba(15,23,42,.10); box-shadow: 0 18px 40px -14px rgba(15,23,42,.28); }
[data-theme="light"] .dd-menu a:hover { background: rgba(180,83,9,.08); }
[data-theme="light"] .site-footer { background: #fff; border-top-color: rgba(15,23,42,.10); }
[data-theme="light"] .mobile-bottom-nav { background: rgba(255,255,255,.96); border-top-color: rgba(15,23,42,.10); }
[data-theme="light"] .admin-tabs a:hover { background: var(--ui-tint-hover); color: #111827; }
[data-theme="light"] .calc { background: rgba(180,83,9,.06); }
/* The cyan "Social" chip (#67e8f9) was unreadable on a white card. */
[data-theme="light"] .type-social { color: #0E7490; background: rgba(14,116,144,.08); border-color: rgba(14,116,144,.35); }
[data-theme="light"] .vip-slot .mock { background: var(--ui-tint); }
[data-theme="light"] .bar { background: var(--ui-track); }
[data-theme="light"] .field input, [data-theme="light"] .field select, [data-theme="light"] .field textarea { background: #fff; }
[data-theme="light"] .gold { color: #B45309; }
[data-theme="light"] .level-chip, [data-theme="light"] .points-btn { color: #92400E; }
/* The balance number was a hard-coded #fff: white-on-pale-gold in light mode. */
.points-btn b { color: var(--text); }
.points-btn:hover { border-color: var(--ui-gold-solid); }
[data-theme="light"] .points-btn { background: rgba(180,83,9,.08); border-color: rgba(180,83,9,.35); }

/* --- 2. BUTTONS (one gold primary + one ghost, identical in both modes) --- */
/* The base .btn gradient followed --gold2, which the light theme turned
   brown. The primary is now an explicit gold with dark ink, readable and
   on-brand in dark AND light; the ghost is an outline. */
.btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .4em; border-radius: 12px; font-weight: 800; line-height: 1.2; text-align: center; }
.btn.small { min-height: 34px; border-radius: 10px; }
.btn:not(.ghost):not(.danger), .btn:not(.ghost):not(.danger):hover, .btn:not(.ghost):not(.danger):visited { background: var(--ui-gold-grad); color: var(--ui-on-gold); border: 1px solid rgba(180,83,9,.35); }
.btn:not(.ghost):hover { box-shadow: 0 8px 24px -8px rgba(212,160,23,.55); filter: brightness(1.04); }
.btn:not(.ghost):active { transform: translateY(0) scale(.99); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2, var(--line)); }
.btn.ghost:hover { background: var(--ui-tint-hover); border-color: var(--ui-gold-solid); color: var(--ui-gold-text); box-shadow: none; transform: none; }
/* The spinner was white: invisible on a gold button. */
.btn:not(.ghost).is-loading::after, button.btn:not(.ghost).is-loading::after { border-color: rgba(26,18,4,.25); border-top-color: var(--ui-on-gold); }
.btn.ghost.is-loading::after { border-color: var(--ui-track); border-top-color: var(--ui-gold-solid); }
.btn.full-btn { width: 100%; }

/* --- 3. HEADER: wordmark, balance pill, avatar, bell, mobile fit --- */
.brand-text { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; }
.brand-text .gold { color: var(--ui-gold-text); }
[data-theme="light"] .brand-text .gold { color: #B45309; }
.notif-bell { color: #D4A017; }
[data-theme="light"] .notif-bell { color: #92400E; }
.notif-bell:hover { border-color: #D4A017; color: #F5C542; }
[data-theme="light"] .notif-bell:hover { color: #B45309; }
.notif-count { top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 3px; box-sizing: border-box; border: 2px solid var(--ui-badge-ring); font-size: .62em; line-height: 1; }   /* small badge: it must not cover the bell */
/* Avatar: initial circle. Colour + readable ink come from userAvatarHtml(). */
.user-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ui-gold-grad); color: var(--ui-on-gold); font-weight: 800; font-size: 1.02em; line-height: 1; text-transform: uppercase; border: 2px solid rgba(212,160,23,.55); user-select: none; }
.user-avatar.lg { width: 64px; height: 64px; font-size: 1.7em; border-width: 3px; box-shadow: 0 0 0 5px var(--gold-bg); }
[data-theme="light"] .user-avatar { border-color: rgba(180,83,9,.45); }
.header-avatar { display: inline-flex; align-items: center; flex: none; border-radius: 50%; text-decoration: none; }
.header-avatar .user-avatar { transition: transform .18s var(--ui-ease), box-shadow .18s; }
.header-avatar:hover .user-avatar { transform: scale(1.07); box-shadow: 0 0 0 4px var(--gold-bg); }
/* Notification panel: type icon chip + unread marker. */
.notif-type-ico { flex: none; width: 30px; height: 30px; margin-top: .1em; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-bg); color: var(--ui-gold-text); font-size: .95em; line-height: 1; }
.notif-item { transition: background .15s; }
.notif-item.unread { position: relative; }
.notif-item.unread::after { content: ""; position: absolute; top: .85em; right: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--ui-gold-solid); }
.notif-item.unread .notif-read-btn { margin-right: 1em; }
.notif-read-btn { transition: color .15s, border-color .15s, background .15s; }
.notif-read-btn:hover { background: var(--gold-bg); }
.notif-row { padding: .7em .5em; border-bottom: 1px solid var(--line); }
.notif-row:last-child { border-bottom: 0; }
.notif-row.unread { background: var(--gold-bg); border-radius: 12px; border-bottom-color: transparent; }
.notif-row-text strong { font-size: .95em; }
/* Phones: the header carries wordmark + theme + avatar + bell + balance +
   burger. Measured at 360px it overflowed by ~60px, so it compacts in
   three steps instead of wrapping (a two-row sticky header looks cheap). */
@media (max-width: 480px) {
  .brand { font-size: 1.05em; gap: .4em; }
  .header-inner { gap: .5em; padding: .5em .65em; }
  .user-box { gap: .3em; }
  .icon-btn { width: 34px; height: 34px; border-radius: 9px; }
  .header-avatar .user-avatar { width: 34px; height: 34px; }
  .points-btn { height: 34px; padding: 0 .55em; gap: .25em; }
  .points-btn .ic-xs, .points-btn .dd-caret { display: none; }
}
@media (max-width: 380px) { .header-avatar { display: none; } }   /* Wallet is in the bottom bar + balance menu */
@media (max-width: 330px) { .brand-text { display: none; } }

/* --- 4. FOCUS + MOTION --- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--ui-gold-solid); outline-offset: 2px; }
.settings-form input:focus, .settings-form select:focus { outline: none; border-color: var(--ui-gold-solid); box-shadow: var(--ui-focus); }
.settings-form input { background: var(--ui-tint); transition: border-color .15s, box-shadow .15s; }
@media (max-width: 900px) { .toast { bottom: 76px; } }   /* clear the mobile bottom bar */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-timer-label::before, .credit-panel, .credit-panel::before, .live-timer-fill { animation: none !important; transition: none !important; }
  .header-avatar .user-avatar, .btn, .acct-option { transition: none !important; }
}

/* --- 5. USER DASHBOARD (account.php — scoped to .page-dash) --- */
/* One page, everything the user needs: identity, wallet, level,
   earnings, tasks, notifications, settings. The sticky jump nav
   was dropped for the tabbed dashboard: anchors cannot scroll to
   sections hidden inside an inactive tab. */
.page-dash [id] { scroll-margin-top: 118px; }
.dash-head { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.1em; flex-wrap: wrap; padding: 1.3em 1.4em; margin-bottom: 1em; border: 1px solid var(--line); border-radius: var(--ui-r-lg); background: radial-gradient(90% 170% at 0% 0%, var(--gold-bg), transparent 62%), var(--panel); box-shadow: var(--ui-shadow); }
.dash-id { flex: 1 1 160px; min-width: 0; }
.dash-head h1 { margin: 0; font-size: 1.4em; line-height: 1.2; letter-spacing: -.01em; }
.dash-email { margin-top: .15em; color: var(--muted); font-size: .92em; overflow-wrap: anywhere; }
.dash-since { margin-top: .2em; color: var(--muted); font-size: .82em; }
.dash-level { flex: 1 1 220px; max-width: 300px; min-width: 0; }
.dash-level-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .85em; margin-bottom: .15em; }
.dash-level-note { margin: .45em 0 0; font-size: .82em; color: var(--muted); }
.dash-level-bar, .page-dash .progress { height: 9px; border-radius: 999px; background: var(--ui-track); overflow: hidden; margin-top: .45em; }
.dash-level-fill, .page-dash .progress-bar { height: 100%; border-radius: 999px; background: var(--ui-gold-bar); transition: width .6s var(--ui-ease); }
/* Wallet card (VIP wallet) */
.page-dash .vip-card { position: relative; overflow: hidden; padding: 1.4em 1.5em 1.3em; margin-bottom: 1.1em; border-radius: var(--ui-r-lg); border: 1px solid var(--gold-dim); background: radial-gradient(120% 150% at 100% 0%, rgba(245,197,66,.17), transparent 55%), var(--panel); box-shadow: var(--ui-shadow); }
[data-theme="light"] .page-dash .vip-card { background: radial-gradient(120% 150% at 100% 0%, rgba(245,158,11,.20), transparent 55%), #fff; }
.vip-card-top { display: flex; justify-content: space-between; align-items: center; gap: .8em; margin-bottom: 1em; }
.vip-chip { display: inline-flex; align-items: center; gap: .4em; padding: .3em .8em; border-radius: 999px; background: var(--gold-bg); border: 1px solid var(--gold-dim); color: var(--ui-gold-text); font-weight: 800; font-size: .82em; }
.vip-balance-val { display: flex; align-items: baseline; gap: .35em; margin: .1em 0 .2em; font-size: clamp(2.3em, 9vw, 3.3em); font-weight: 900; line-height: 1.05; color: var(--ui-gold-text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vip-balance-val span { font-size: .38em; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.balance-actions-row { display: flex; gap: .6em; flex-wrap: wrap; margin-top: 1em; }
/* Earnings at a glance + today stats: one consistent tile. */
.page-dash .earnings-glance, .page-dash .stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8em; margin: .8em 0 1.1em; }
.page-dash .earn-cell, .page-dash .stat { display: flex; flex-direction: column; align-items: flex-start; gap: .2em; padding: 1em 1.1em; text-align: left; border: 1px solid var(--line); border-radius: var(--ui-r-md); background: var(--panel); box-shadow: var(--ui-shadow); }
.page-dash .earn-num, .page-dash .stat-num { font-size: 1.5em; font-weight: 900; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.page-dash .earn-num.gold { color: var(--ui-gold-text); }
.page-dash .earn-num small { font-size: .5em; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.page-dash .earn-label, .page-dash .stat-label { font-size: .8em; font-weight: 600; color: var(--muted); }
.page-dash .stat-icon-wrap { width: 32px; height: 32px; margin-bottom: .25em; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--gold-bg); color: var(--ui-gold-text); }
.page-dash .stat-icon-wrap:not(:has(svg)) { display: none; }   /* Lucide <i> that did not render: no empty square */
/* Level + daily bonus. The badge shows an emoji when the Lucide <i>
   inside it did not render (the known live issue) — :has(svg) is true
   only when the icon really drew, so there is never an empty square. */
.level-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; margin: 0 0 1.1em; }
.level-card, .bonus-card { display: flex; align-items: flex-start; gap: 1em; padding: 1.1em 1.2em; border: 1px solid var(--line); border-radius: var(--ui-r-lg); background: var(--panel); box-shadow: var(--ui-shadow); }
.level-badge { flex: none; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--gold-bg); border: 1px solid var(--gold-dim); color: var(--ui-gold-text); font-size: 1.5em; line-height: 1; }
.level-card .level-badge:not(:has(svg))::before { content: "\1F3C6"; }
.bonus-card .level-badge:not(:has(svg))::before { content: "\1F381"; }
.level-info { flex: 1; min-width: 0; }
/* Panels, claim boxes, collapsibles: one card language. */
.page-dash .panel, .page-dash .claim-box { padding: 1.25em 1.35em; margin-bottom: 1.1em; border: 1px solid var(--line); border-radius: var(--ui-r-lg); background: var(--panel); box-shadow: var(--ui-shadow); }
.page-dash .panel > h2:first-child, .page-dash .claim-box > h2:first-child { margin-top: 0; }
.page-dash details.collapse { margin-bottom: 1em; padding: 0 1.3em .4em; border: 1px solid var(--line); border-radius: var(--ui-r-lg); background: var(--panel); box-shadow: var(--ui-shadow); }
.page-dash details.collapse > summary { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 1em 0; cursor: pointer; list-style: none; font-weight: 800; }
.page-dash details.collapse > summary::-webkit-details-marker { display: none; }
.page-dash details.collapse > summary::after { content: "+"; flex: none; color: var(--ui-gold-text); font-weight: 900; font-size: 1.2em; line-height: 1; transition: transform .2s; }
.page-dash details.collapse[open] > summary::after { transform: rotate(45deg); }
/* Settings: sub-sections divided by a hairline, forms comfortable. */
#settings > h3 { margin: 1.6em 0 .3em; padding-top: 1.1em; border-top: 1px solid var(--line); font-size: 1.02em; }
#settings > h3:first-of-type { margin-top: .8em; padding-top: 0; border-top: 0; }
.settings-form label { display: block; margin: .9em 0 .3em; font-weight: 700; font-size: .9em; }
.settings-form input { width: 100%; max-width: 420px; padding: .7em .85em; border-radius: 11px; border: 1px solid var(--line); color: var(--text); font: inherit; }
.settings-form .btn { margin-top: 1em; }
/* Referral link row, deposit addresses, 14-day chart. */
.page-dash .copy-row { display: flex; flex-wrap: wrap; gap: .5em; }
.page-dash .copy-row input { flex: 1 1 200px; min-width: 0; }
.page-dash .deposit-addr-code { word-break: break-all; }
.earn-chart { gap: 4px; }
.earn-bar { transition: filter .15s; }
.earn-bar:hover { filter: brightness(1.15); }
@media (max-width: 720px) {
  .dash-head { padding: 1.1em; }
  .dash-level { max-width: none; flex-basis: 100%; }
  .level-row { grid-template-columns: 1fr; }
  .page-dash .panel, .page-dash .claim-box { padding: 1.1em; }
  .page-dash details.collapse { padding: 0 1.1em .3em; }
  /* Wide tables scroll inside themselves instead of widening the page. */
  .page-dash table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .page-dash table th, .page-dash table td { white-space: nowrap; }
}

/* --- 6. TASK CARDS (renderTaskCards in layout.php) --- */
/* The "verified" badge was nowrap: its longest label ("Platform-verified
   · credit after subscribe check") is wider than a 360px card, so it
   pushed the page sideways. It now wraps like text. */
.verify-badge { display: inline-block; max-width: 100%; padding: .3em .75em; border-radius: 12px; font-size: .8em; font-weight: 800; line-height: 1.35; white-space: normal; border: 1px solid var(--gold-dim); background: var(--gold-bg); color: var(--ui-gold-text); }
.verify-badge[data-verify="platform"] { border-color: var(--ui-ok-line); background: var(--ui-ok-bg); color: var(--ui-ok); }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: .6em; }
.card-open-hint { margin: .5em 0 0; font-size: .78em; color: var(--muted); }
.card-reward-badge { color: var(--ui-gold-text); }
.card-yt-account { margin: .6em 0 0; padding: .5em .7em; border: 1px solid var(--line); border-radius: 10px; background: var(--ui-tint); font-size: .84em; color: var(--muted); line-height: 1.45; }
.card-yt-account strong { color: var(--text); word-break: break-all; }
.card-yt-account a { color: var(--ui-gold-text); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.card-yt-account.is-linked { border-color: var(--ui-ok-line); background: var(--ui-ok-bg); }
.card-yt-account.is-missing { border-color: var(--ui-bad-line); background: var(--ui-bad-bg); }

/* --- 7. TASK RUNNER (bridge.php + watch-bonus.php) --- */
.task-header-bar { display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; margin: .6em 0 1em; }
.task-header-bar h1 { margin: .25em 0 .1em; font-size: clamp(1.35em, 4.6vw, 1.9em); line-height: 1.2; word-break: break-word; }
.task-header-bar .sub { margin: 0; color: var(--muted); font-size: .92em; }
.task-reward-pill { display: flex; flex-direction: column; align-items: center; gap: .05em; min-width: 124px; padding: .7em 1.2em; text-align: center; border: 1px solid var(--gold-dim); border-radius: var(--ui-r-md); background: var(--gold-bg); }
.task-reward-pill > span:first-child { font-size: .7em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.task-reward-pill strong { font-size: 1.5em; font-weight: 900; line-height: 1.1; color: var(--ui-gold-text); font-variant-numeric: tabular-nums; }
.task-reward-pill .usd-note { font-size: .78em; color: var(--muted); }
.task-runner-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.1em; align-items: start; }
.task-runner-grid > * { min-width: 0; }   /* a wide child (iframe, Turnstile) must never stretch the grid */
.task-media-col, .task-timer-col { display: flex; flex-direction: column; gap: .9em; }

/* Stepper: four dots on a connector line — a done step shows a tick,
   the active one a soft gold halo (no heavy glow). The JS only toggles
   .done / .active on each <li>, so this is pure CSS. */
.task-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 1.1em; padding: 0; list-style: none; }
.task-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .45em; padding: 0 .25em; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: center; font-size: .82em; font-weight: 700; color: var(--muted); }
.task-steps li::before { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--ui-track); transition: background .3s; }
.task-steps li:first-child::before { display: none; }
.task-steps .step-num { position: relative; z-index: 1; box-sizing: border-box; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--ui-track); background: var(--ui-solid); color: var(--muted); font-size: 1em; font-weight: 800; transition: background .25s, border-color .25s, color .25s, box-shadow .25s; }
/* The FIX3 pill look (border / tint / glow on li.active, li.done) is switched off here: the dot carries the state now. */
.task-steps li.done, .task-steps li.active { border: 0; background: none; box-shadow: none; }
.task-steps li.done { color: var(--text); }
.task-steps li.done::before, .task-steps li.active::before { background: var(--ui-gold-solid); }
.task-steps li.done .step-num { background: var(--ui-ok-solid); border-color: var(--ui-ok-solid); color: #fff; font-size: 0; }
.task-steps li.done .step-num::after { content: "\2713"; font-size: 13px; line-height: 1; }   /* px, not em: the digit is hidden with font-size:0 */
.task-steps li.active { color: var(--ui-gold-text); }
.task-steps li.active .step-num { background: var(--ui-gold-grad); border-color: var(--ui-gold-solid); color: var(--ui-on-gold); box-shadow: 0 0 0 4px var(--gold-bg); }
.task-verify-note { margin: 0 0 1.1em; font-size: .9em; line-height: 1.55; color: var(--muted); }
/* State pill (counting / paused / ready / credited). */
.task-state-banner { display: flex; justify-content: center; margin: 0; padding: 0; border: 0; background: none; }
.task-state-pill { display: inline-flex; align-items: center; gap: .35em; padding: .38em .95em; border: 1px solid var(--line); border-radius: 999px; background: var(--ui-tint); color: var(--muted); font-size: .82em; font-weight: 800; white-space: nowrap; }
.task-runner[data-task-state="counting"] .task-state-pill { background: var(--gold-bg); color: var(--ui-gold-text); border-color: var(--gold-dim); }
.task-runner[data-task-state="paused"] .task-state-pill { background: var(--ui-bad-bg); color: var(--ui-bad); border-color: var(--ui-bad-line); }
.task-runner[data-task-state="ready"] .task-state-pill, .task-runner[data-task-state="credited"] .task-state-pill { background: var(--ui-ok-bg); color: var(--ui-ok); border-color: var(--ui-ok-line); }
/* "Open the site" card + destination chip. */
.visit-card { padding: 1.1em 1.15em; border: 1px solid var(--line); border-radius: var(--ui-r-md); background: var(--ui-tint); }
.visit-card h3 { display: flex; align-items: center; gap: .45em; margin: 0 0 .4em; font-size: 1.02em; }
.bridge-open-card { border-left: 3px solid var(--ui-gold-solid); }
.visit-host { display: inline-flex; align-items: center; gap: .4em; max-width: 100%; margin: .2em 0 .8em; padding: .3em .75em; border: 1px solid var(--line); border-radius: 999px; background: var(--ui-tint); font-size: .85em; font-weight: 700; word-break: break-all; }
/* LIVE TIMER — big tabular MM:SS, thin bar, no heavy shadow. Digits
   use Inter (true tabular figures) so the width never jitters as
   they tick. The colour follows the runner state; a small pulsing
   dot next to the label shows it is live while counting. */
.live-timer { padding: 1.2em 1em 1.05em; text-align: center; border: 1px solid var(--line); border-radius: var(--ui-r-lg); background: var(--panel); box-shadow: var(--ui-shadow); }
.live-timer-digits { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; font-size: clamp(2.6em, 11vw, 3.5em); font-weight: 800; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; color: var(--text); transition: color .3s; }
.task-runner[data-task-state="counting"] .live-timer-digits { color: var(--ui-gold-text); }
.task-runner[data-task-state="ready"] .live-timer-digits, .task-runner[data-task-state="credited"] .live-timer-digits { color: var(--ui-ok); }
.task-runner[data-task-state="paused"] .live-timer-digits { color: var(--muted); }
.live-timer-label { margin-top: .5em; font-size: .76em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.live-timer-label::before { content: ""; display: none; width: 7px; height: 7px; margin-right: .55em; border-radius: 50%; background: var(--ui-gold-solid); vertical-align: .08em; animation: ui-pulse 1.4s ease-in-out infinite; }
.task-runner[data-task-state="counting"] .live-timer-label::before { display: inline-block; }
@keyframes ui-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.live-timer-bar { height: 6px; margin-top: 1em; border-radius: 999px; background: var(--ui-track); overflow: hidden; }
.live-timer-fill { height: 100%; border-radius: 999px; background: var(--ui-gold-bar); transition: width 1s linear; }
.task-runner[data-task-state="ready"] .live-timer-fill, .task-runner[data-task-state="credited"] .live-timer-fill { background: var(--ui-ok-solid); }
.task-runner[data-task-state="paused"] .live-timer-fill { background: var(--muted); }
.live-timer-banked { margin: .8em 0 0; font-size: .86em; font-weight: 700; color: var(--ui-gold-text); font-variant-numeric: tabular-nums; }
.live-timer-state { margin: .3em 0 0; font-size: .86em; color: var(--muted); }
/* "Wait for Timer…" is a status, not a broken button. */
#completeBtn:disabled, #claimBtn:disabled { opacity: 1; background: var(--ui-tint); color: var(--muted); border: 1px dashed var(--line2, var(--line)); box-shadow: none; filter: none; cursor: default; }
/* Claim check. The panel stays hidden until the timer is done; the
   [hidden] guard stops any display rule from defeating the attribute. */
.verify-panel { padding: 1.05em 1.1em; border: 1px solid var(--gold-dim); border-radius: var(--ui-r-md); background: linear-gradient(135deg, var(--gold-bg), transparent); }
.verify-panel[hidden], .credit-panel[hidden] { display: none !important; }
.verify-panel h3 { display: flex; align-items: center; gap: .45em; margin: 0 0 .2em; font-size: 1.02em; }
.verify-confirm { display: flex; align-items: flex-start; gap: .55em; margin: .6em 0; font-size: .92em; cursor: pointer; }
.verify-confirm input { margin-top: .2em; accent-color: var(--ui-gold-solid); }
.task-runner .cf-turnstile { display: flex; justify-content: center; max-width: 100%; margin: .7em 0 .4em; }
.verify-panel .btn { margin-top: .5em; }
.task-runner .result { margin: 0; font-size: .92em; font-weight: 600; text-align: center; }
.task-runner .result:empty { display: none; }
.task-runner .result.ok { color: var(--ui-ok); }
.task-runner .result.bad { color: var(--ui-bad); }
/* Credited: a calm success moment — green tick, gold amount, one soft entrance. */
.credit-panel { padding: 1.3em 1.1em 1.2em; text-align: center; border: 1px solid var(--ui-ok-line); border-radius: var(--ui-r-lg); background: radial-gradient(100% 130% at 50% 0%, var(--ui-ok-bg), transparent 70%), var(--panel); animation: ui-credit-in .45s var(--ui-ease) both; }
.credit-panel::before { content: "\2713"; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 auto .6em; border-radius: 50%; border: 1px solid var(--ui-ok-line); background: var(--ui-ok-bg); color: var(--ui-ok); font-size: 1.35em; font-weight: 900; line-height: 1; animation: ui-pop .5s .15s var(--ui-ease) both; }
.credit-amount { font-size: 2em; font-weight: 900; line-height: 1.1; color: var(--ui-gold-text); font-variant-numeric: tabular-nums; }
.credit-text { margin: .3em 0 0; font-weight: 700; color: var(--text); }
.credit-balance { margin: .4em 0 1em; font-size: .92em; color: var(--muted); }
.credit-balance strong { color: var(--ui-gold-text); }
@keyframes ui-credit-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ui-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
/* Old ring (task.php shim): flat, no glow. */
.progress-ring-fill.ring-glow { filter: none; }
.svg-ring-wrap { background: transparent; box-shadow: none; }
[data-theme="light"] .progress-ring-bg { stroke: var(--ui-track); }

/* --- 8. VIDEO PAGE (watch-bonus.php, Aviso-style) --- */
/* The video is the hero: a wide 16:9 stage, with the timer column
   beside it that stays in view while the page scrolls. The count
   strip shows views counted, profit and watch time. */
.video-player-wrap { min-width: 0; }
.video-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--ui-r-lg); background: #000; box-shadow: 0 18px 46px -22px rgba(0,0,0,.75); }
[data-theme="light"] .video-stage { box-shadow: 0 14px 34px -18px rgba(15,23,42,.5); }
.video-stage iframe, .video-stage #ytPlayer { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.task-runner:has(.video-stage) .task-runner-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, .9fr); }
.video-count-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7em; margin: 0; }   /* the column's own gap spaces it from the player */
.video-count-chip { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico main" "ico sub"; column-gap: .7em; align-items: center; padding: .75em .9em; text-align: left; border: 1px solid var(--line); border-radius: var(--ui-r-md); background: var(--panel); transition: border-color .25s, background .25s; }
.video-count-ico { grid-area: ico; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--gold-bg); font-size: 1.1em; line-height: 1; }
.video-count-main { grid-area: main; font-size: .8em; font-weight: 600; line-height: 1.25; color: var(--muted); }
.video-count-main strong { display: block; font-size: 1.45em; font-weight: 900; line-height: 1.1; color: var(--ui-gold-text); font-variant-numeric: tabular-nums; }
.video-count-sub { grid-area: sub; font-size: .72em; color: var(--muted); }
/* Once credited the "views counted" chip turns green — the view is visibly counted. */
.task-runner[data-task-state="credited"] .video-count-chip:first-child { border-color: var(--ui-ok-line); background: var(--ui-ok-bg); }
.task-runner[data-task-state="credited"] .video-count-chip:first-child .video-count-main strong { color: var(--ui-ok); }

/* --- 9. ACCOUNT PICKER (multi-account / multi-channel) --- */
/* Interactive option = <button> (bridge picker: radio-style, gold when
   selected). Read-only option = <div class="is-static"> (dashboard
   lists): neutral, no hover, no radio dot. */
.acct-picker { display: flex; flex-direction: column; gap: .5em; margin: .7em 0; }
.acct-picker-wrap { margin-bottom: 1em; padding: 1.05em 1.15em; }
.acct-picker-title { margin: 0 0 .2em; font-size: 1.02em; }
.acct-picker-lead { margin: 0 0 .7em; color: var(--muted); font-size: .86em; line-height: 1.5; }
.acct-picker-note { margin: .4em 0 0; font-size: .85em; color: var(--muted); }
.acct-option { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: .5em .8em; width: 100%; min-height: 58px; padding: .7em .9em; border: 1px solid var(--line); border-radius: var(--ui-r-md); background: var(--panel); color: var(--text); font: inherit; text-align: left; transition: border-color .15s, background .15s, box-shadow .15s, transform .12s; }
button.acct-option { cursor: pointer; }
button.acct-option:hover { border-color: var(--gold-dim); background: var(--ui-tint); }
button.acct-option:active { transform: scale(.99); }
.acct-option.selected, .acct-option.is-active { border-color: var(--ui-gold-solid); background: var(--gold-bg); box-shadow: 0 0 0 1px var(--ui-gold-solid); }
.acct-option.is-static { cursor: default; }
.acct-ico { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--ui-tint-hover); color: var(--ui-gold-text); font-size: 1.1em; line-height: 1; }
.acct-ico.yt { background: rgba(255,0,0,.13); color: var(--ui-yt); }
.acct-ico.tg { background: rgba(36,161,222,.14); color: var(--ui-tg); }
.acct-main { flex: 1 1 140px; min-width: 0; }
.acct-handle { display: block; font-weight: 800; overflow-wrap: anywhere; }
.acct-handle a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.acct-sub { display: block; margin-top: .1em; font-size: .8em; color: var(--muted); overflow-wrap: anywhere; }   /* long payout emails must wrap, not widen the page */
.acct-option form { margin: 0 0 0 auto; }
.acct-check { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ui-track); border-radius: 50%; color: transparent; font-size: .72em; font-weight: 900; transition: background .15s, border-color .15s, color .15s; }
.acct-option.selected .acct-check, .acct-option.is-active .acct-check { background: var(--ui-gold-solid); border-color: var(--ui-gold-solid); color: var(--ui-on-gold); }
.acct-option.is-static:not(.is-active) .acct-check { display: none; }

/* --- 10. MOBILE (360px target: no sideways scroll, no clipped buttons) --- */
@media (max-width: 720px) {
  .task-runner-grid, .task-runner:has(.video-stage) .task-runner-grid { grid-template-columns: 1fr; }
  .task-header-bar { flex-direction: column; align-items: stretch; gap: .6em; }
  .task-reward-pill { flex-direction: row; justify-content: space-between; align-items: center; gap: .6em; padding: .6em 1em; }
}
@media (min-width: 901px) and (min-height: 720px) {
  /* Desktop: the timer column follows the page so the countdown stays in
     view. Skipped on short windows, where a tall sticky column would
     hide its own bottom (claim button) behind the fold. */
  .task-timer-col { position: sticky; top: 76px; }
}
@media (max-width: 560px) {
  .task-steps li { font-size: .74em; }
  .task-steps .step-num { width: 24px; height: 24px; }
  .task-steps li::before { top: 11px; }
  .credit-amount { font-size: 1.7em; }
  .video-count-strip { gap: .5em; }
  .video-count-chip { grid-template-columns: 1fr; grid-template-areas: "ico" "main"; justify-items: center; row-gap: .4em; padding: .7em .4em; text-align: center; }
  .video-count-sub { display: none; }
  .task-runner .btn, .bridge-open-card .btn { width: 100%; }
  .acct-option.is-static form { margin-left: 0; width: 100%; }
  .acct-option.is-static form .btn { width: 100%; }
}
/* Cloudflare's widget is a fixed 300px wide: scale it down to fit a
   narrow card instead of letting it overflow (visual only — the
   widget, its token and the claim binding are untouched). */
@media (max-width: 400px) {
  .task-runner .cf-turnstile { transform: scale(.86); transform-origin: 50% 0; height: 56px; margin-bottom: .2em; }
}
@media (max-width: 340px) {
  .task-runner .cf-turnstile { transform: scale(.78); height: 51px; }
}

/* ==================================================================
   FIX PACK 5 — light-mode contrast (2026-11-16, owner-tested Phase D)
   Live verification of the Phase D deploy found 5 light-mode defects
   (dark mode was fine). Root causes, all in the base stylesheet:
   h1/h2/h3 are hardcoded #fff; .notice.good is light-green text;
   .btn.ghost takes dark --text; .points-btn b is hardcoded #fff;
   the bell glyph depended on currentColor inheritance. Every fix
   below is scoped to [data-theme="light"] (or to the dark .vip-card,
   which stays dark in both modes), so dark mode is untouched.
   ================================================================== */

/* --- 1. BELL: TEXT SYMBOL (Fix Pack 7 — the SVG approaches are
   DEAD, all three of them) --- */
/* History: Phase B stroked outline → Phase D path strokes → Phase E
   filled silhouette with fill as an ATTRIBUTE. All three FAILED live
   in BOTH modes even though the code on disk was correct, the served
   layout.php was proven fresh (avatar dropdown + tabs render from the
   same file), the served v18.css was proven fresh (Fix Pack 6's
   select fix, a v18.11-only rule, renders live), the CSS has NO
   hiding/fill:none rule anywhere, and app.js only ever touches the
   badge count, never the SVG. Root cause of the SVG not painting was
   never found — do NOT re-add an SVG bell. The bell is now a 🔔 text
   symbol (same as the tab row's "🔔 Notifications 3", which renders
   live): text provably paints inside this button (the red "3" badge
   is text and shows). If this ever fails, the problem is the button
   itself, not the glyph. */
.notif-bell .bell-ico { font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
[data-theme="light"] .notif-bell { background: rgba(180,83,9,.12); border-color: rgba(180,83,9,.4); }

/* --- 2. HEADINGS: base h2/h3 are #fff — dark in light mode --- */
/* Covers the dashboard "Earnings at a glance" / "Last 14 days" h2s
   and every other plain h2/h3 on a light panel (task groups, legal
   pages, article headings, post cards, FAQ, hub cards). Dark
   surfaces keep white headings. */
[data-theme="light"] h2,
[data-theme="light"] h3 { color: #111827; }
[data-theme="light"] .vip-card h2,
[data-theme="light"] .vip-card h3 { color: #fff; }
/* Collapsed-section summaries are also hardcoded #fff in the base. */
[data-theme="light"] .collapse > summary { color: #111827; }

/* --- 3. NOTICE BANNERS: readable on a light page --- */
/* .notice.good was #86efac (light green) on a pale-green tint. */
[data-theme="light"] .notice { color: #1f2937; background: rgba(15,23,42,.05); border-color: rgba(15,23,42,.18); }
[data-theme="light"] .notice.good { color: #15803d; background: rgba(21,128,61,.10); border-color: rgba(21,128,61,.35); }
[data-theme="light"] .notice.bad { color: #b91c1c; background: rgba(185,28,28,.08); border-color: rgba(185,28,28,.3); }

/* --- 4. VIP CARD (always dark): keep light text in light mode --- */
/* The card never goes light, but .btn.ghost and .muted/.gold follow
   the light theme — dark text on the dark card. Pin them light here. */
[data-theme="light"] .vip-card .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
[data-theme="light"] .vip-card .btn.ghost:hover { color: #FDE68A; border-color: #D4A017; }
[data-theme="light"] .vip-card .muted { color: #9CA3AF; }
[data-theme="light"] .vip-card .gold { color: #F5C542; }

/* --- 5. HEADER POINTS PILL: the number was hardcoded #fff --- */
/* .points-btn b { color: #fff } beat the light-mode pill colour, so
   the balance showed white on pale yellow. Dark number + a
   slightly stronger pill in light mode. */
[data-theme="light"] .points-btn { background: rgba(180,83,9,.14); border-color: rgba(180,83,9,.4); }
[data-theme="light"] .points-btn b { color: #92400E; }

/* ==========================================================================
   PHASE E — tabbed dashboard + avatar menu + animated counters +
   alive timer + sections polish (2026-11-16, owner order).
   Design/UI only. No logic, payout, timer or verification change.
   Fix Pack 5 light-mode rules above are untouched and still win
   where they are more specific; nothing here reverts them.
   ========================================================================== */

/* --- 1. DASHBOARD TABS: one section at a time --- */
.dash-tabs { display: flex; gap: .45em; flex-wrap: wrap; align-items: center; margin: .2em 0 1.1em; padding-bottom: .7em; border-bottom: 1px solid var(--line); }
.dash-tab { display: inline-flex; align-items: center; gap: .35em; padding: .5em .85em; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 700; font-size: .92em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.dash-tab:hover { color: var(--text); border-color: var(--gold-dim); }
.dash-tab.active { color: #111; background: var(--gold); border-color: var(--gold); }
.dash-tab .tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.3em; height: 1.3em; padding: 0 .3em; border-radius: 999px; background: #DC2626; color: #fff; font-size: .75em; font-weight: 800; line-height: 1; }
.dash-tab.active .tab-badge { background: #7F1D1D; }
.dash-panel[hidden] { display: none !important; }
.dash-panel .panel, .dash-panel .claim-box, .dash-panel .collapse { margin-bottom: 1em; }

/* --- 2. AVATAR MENU (header): the avatar IS the menu --- */
/* .avatar-menu wraps the button + dropdown; positioned like the
   bell (.notif-panel): absolute, right 0, same panel/shadow. */
.avatar-menu { position: relative; display: inline-flex; flex: none; }
button.header-avatar { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
button.header-avatar:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.avatar-dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 120; width: min(300px, 86vw); background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); padding: .5em; text-align: left; }
.avatar-dropdown[hidden] { display: none !important; }
.avatar-dropdown-head { padding: .5em .7em .7em; border-bottom: 1px solid var(--line); margin-bottom: .4em; }
.avatar-dropdown-head strong { display: block; font-size: .92em; word-break: break-all; }
.avatar-dropdown-head .small { font-size: .8em; }
.avatar-dropdown a { display: flex; align-items: flex-start; gap: .6em; padding: .55em .7em; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .92em; }
.avatar-dropdown a:hover { background: rgba(255, 255, 255, 0.05); }
[data-theme="light"] .avatar-dropdown a:hover { background: rgba(15, 23, 42, 0.05); }
.avatar-dropdown a span { display: flex; flex-direction: column; }
.avatar-dropdown a small { color: var(--muted); font-size: .8em; }
.avatar-dropdown a.dd-danger { color: #FCA5A5; }
.avatar-dropdown a.dd-danger small { color: #FCA5A5; }

/* --- 3. ANIMATED COUNTERS: tabular digits, no layout shift --- */
.stat-num, .vip-balance-val strong, .points-btn b, .earn-num [data-count], [data-count] { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .live-timer.tick .live-timer-digits { animation: none; }
}

/* --- 4. LIVE TIMER, alive: tick pulse + credited state --- */
/* The digits pulse once per second (class toggled by app.js);
   the bar fill is the thin progress that moves with it. No
   shadow, no heavy background — the timer stays flat. */
@keyframes liveTimerTick { 0% { transform: scale(1); } 35% { transform: scale(1.045); } 100% { transform: scale(1); } }
.live-timer.tick .live-timer-digits { animation: liveTimerTick .35s ease; }
.live-timer.is-credited { border-color: var(--gold); }
.live-timer.is-credited .live-timer-digits { color: var(--gold2); }
.live-timer.is-credited .live-timer-label { color: var(--gold2); }
.live-timer-bar > span, .live-timer-bar .fill { transition: width .3s linear; }

/* --- 5. SECTIONS POLISH (design/UI only) --- */
/* Tasks hub cards: even spacing, a calm hover lift, no shadow. */
.card { border-radius: var(--r); }
.card .task-title { line-height: 1.35; }
.card .task-meta { line-height: 1.5; }
.card .card-yt-account { margin: .5em 0 0; font-size: .88em; line-height: 1.5; }
.card .card-yt-account strong { word-break: break-all; }
/* Faucet / claim panels: the countdown line and claim button
   get a little more air; the panel stays flat. */
.claim-box { padding: 1.1em 1.2em; }
.claim-box h2 { margin-top: 0; }
.claim-box .muted { line-height: 1.55; }
/* Referrals: the copy row wraps cleanly on small screens. */
.copy-row { display: flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.copy-row input { flex: 1 1 220px; min-width: 0; }
/* Account picker options (bridge / dashboard): the Gmail line
   is the identity, the channel line is the label under it. */
.acct-option .acct-handle { word-break: break-all; }
.acct-option .acct-sub { word-break: break-all; }
/* Footer: even columns, calm links, no crowding. */
.site-footer { padding: 1.6em 0 2em; }
.site-footer .footer-col h3, .site-footer .footer-col h4 { margin: 0 0 .6em; }
.site-footer a { line-height: 1.7; }
/* Mobile: tabs scroll horizontally instead of wrapping into a
   tall stack; the timer digits stay big but fit. */
@media (max-width: 640px) {
  .dash-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .dash-tabs::-webkit-scrollbar { display: none; }
  .dash-tab { flex: none; }
  .live-timer-digits { font-size: 2.2em; }
  .claim-box { padding: 1em; }
  .card { padding: 1em; }
}

/* ==================================================================
   FIX PACK 6 — light-mode form-field contrast (2026-11-16)
   The base stylesheet gives inputs/selects a dark background
   (rgba(8,11,18,.85)) that never changes with the theme, while
   --text goes dark (#111827) in light mode: dark-on-dark. The
   "Platform" select (Link a social account form) and the text
   inputs next to it were unreadable in light mode. Light fields
   get a white background + dark text. Dark mode untouched.
   ================================================================== */
[data-theme="light"] input[type=text],
[data-theme="light"] input[type=password],
[data-theme="light"] input[type=number],
[data-theme="light"] input[type=email],
[data-theme="light"] input[type=url],
[data-theme="light"] textarea,
[data-theme="light"] select { background: #fff; color: #111827; border-color: rgba(10,20,40,.2); }
[data-theme="light"] select option { background: #fff; color: #111827; }
[data-theme="light"] .field select,
[data-theme="light"] .field input,
[data-theme="light"] .field textarea { background: #fff; color: #111827; }
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: #6B7280; }

/* ==================================================================
   PHASE F — SEO tasks + proof-of-work (2026-11-17)
   SproutGigs-style task page: copyable keyword box, numbered steps,
   proof-upload panel with previews; admin proof-review queue.
   The bell stays a TEXT symbol (Fix Pack 7) — nothing here touches it.
   ================================================================== */
/* Keyword box: the exact search text + a copy button. */
.seo-keyword-box { margin: 1em 0; padding: 1em 1.2em; }
.seo-keyword-box h3 { margin: 0 0 .6em; }
.seo-keyword-row { display: flex; gap: .6em; align-items: stretch; flex-wrap: wrap; }
.seo-keyword-row code { flex: 1; min-width: 220px; padding: .7em .9em; border-radius: .6em; background: rgba(245,197,66,.12); border: 1px dashed rgba(245,197,66,.55); color: var(--text); font-size: 1.05em; word-break: break-word; }
.seo-keyword-row .btn { flex: none; align-self: center; }
/* Numbered worker steps. */
.seo-steps { margin: 1em 0; padding: 1em 1.2em; }
.seo-steps h3 { margin: 0 0 .5em; }
.seo-steps ol { margin: 0; padding-left: 1.4em; }
.seo-steps li { margin: .45em 0; line-height: 1.55; }
/* Proof upload panel (replaces the verify panel on SEO tasks). */
.proof-panel { margin-top: 1em; }
.proof-slots { display: grid; gap: .8em; margin: .8em 0; }
.proof-slot { border: 1px solid rgba(255,255,255,.12); border-radius: .7em; padding: .8em; }
.proof-upload-btn { display: flex; flex-direction: column; gap: .15em; align-items: center; justify-content: center; min-height: 84px; border: 2px dashed rgba(245,197,66,.6); border-radius: .6em; background: rgba(245,197,66,.07); color: var(--text); font-weight: 600; text-align: center; cursor: pointer; padding: .8em; }
.proof-upload-btn small { font-weight: 400; opacity: .75; }
.proof-upload-btn:hover { background: rgba(245,197,66,.14); border-color: #F5C542; }
.proof-preview { margin-top: .6em; }
.proof-preview img { display: block; max-width: 100%; max-height: 220px; border-radius: .5em; border: 1px solid rgba(255,255,255,.15); }
.proof-preview .proof-file-name { display: block; margin-top: .3em; font-size: .85em; opacity: .8; word-break: break-all; }
/* SEO card type chips. */
.type-seo-yt { background: rgba(255,0,0,.14); color: #FF6B6B; }
.type-seo-web { background: rgba(96,165,250,.14); color: #7FB3FF; }
.type-seo-article { background: rgba(34,197,94,.14); color: #4ADE80; }
/* Admin proof review queue. */
.proof-review { margin: 1em 0; padding: 1em 1.2em; }
.proof-review-head { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
.proof-review.proof-old { border-color: rgba(239,68,68,.7); box-shadow: 0 0 0 1px rgba(239,68,68,.35); }
.proof-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8em; margin: .8em 0; }
.proof-thumb { margin: 0; }
.proof-thumb img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: .5em; border: 1px solid rgba(255,255,255,.15); }
.proof-thumb figcaption { font-size: .85em; opacity: .85; margin-top: .3em; line-height: 1.4; }
.proof-actions { margin-top: .8em; }
.proof-reason { display: block; margin-bottom: .6em; }
.proof-reason input { width: 100%; margin-top: .3em; }
.proof-btns { display: flex; gap: .6em; flex-wrap: wrap; }
/* Light mode: keyword code + upload button stay readable. */
[data-theme="light"] .seo-keyword-row code { background: rgba(212,160,23,.12); border-color: rgba(212,160,23,.6); color: #111827; }
[data-theme="light"] .proof-upload-btn { border-color: rgba(212,160,23,.7); background: rgba(212,160,23,.08); color: #111827; }
[data-theme="light"] .proof-slot { border-color: rgba(10,20,40,.15); }
[data-theme="light"] .proof-thumb img, [data-theme="light"] .proof-preview img { border-color: rgba(10,20,40,.2); }
@media (max-width: 640px) {
  .proof-thumbs { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   FIX PACK 8 — light-mode contrast + admin title (2026-11-17)
   Root cause: [data-theme="light"] never redefines --text/--muted,
   so anything inheriting them stays near-white on the light page.
   Phase F fixed the proof-slot borders; the panel TEXT, the
   glass-card background and the bridge/dash H1s were still white.
   Same per-selector override pattern as Fix 5/6/7.
   ================================================================ */
/* H1s: bridge task title (.task-header-bar), "Task not available"
   (.glass-card), dash head — the .hero/.hx h1 rule already existed;
   these were never covered. */
[data-theme="light"] h1 { color: #111827; }
/* Glass cards (bridge runner, proof-panel host, pickers): the base
   dark glass read as dark-grey in light mode. */
[data-theme="light"] .glass-card { background: #fff; border-color: rgba(15,23,42,.12); }
/* Proof panel: text inherits --text (white in light mode) — force dark. */
[data-theme="light"] .proof-panel, [data-theme="light"] .verify-panel { color: #111827; }
[data-theme="light"] .proof-panel .muted, [data-theme="light"] .verify-panel .muted { color: #475569; }
[data-theme="light"] .proof-upload-btn { color: #111827; }
[data-theme="light"] .proof-upload-btn small { color: #475569; }
/* Status badges (style.css): white text on a pale tint — dark text in
   light mode, using the light theme's own ok/bad tokens. */
[data-theme="light"] .badge-paid, [data-theme="light"] .badge-approved { background: var(--ui-ok-bg); color: var(--ui-ok); }
[data-theme="light"] .badge-rejected { background: var(--ui-bad-bg); color: var(--ui-bad); }
[data-theme="light"] .badge-pending { background: rgba(180,83,9,.14); color: #92400E; }

/* ================================================================
   FIX PACK 8b — proof-panel background in light mode (2026-11-17)
   Fix 8 fixed the panel TEXT but not its BACKGROUND: .verify-panel
   paints linear-gradient(135deg, var(--gold-bg), transparent) and
   --gold-bg is a dark olive from the base theme (style.css), so the
   panel stayed dark grey/olive in light mode even though the card
   behind it went white. Override the gradient with a pale gold tint.
   ================================================================ */
[data-theme="light"] .verify-panel { background: linear-gradient(135deg, rgba(245,197,66,.16), rgba(255,255,255,0)); border-color: rgba(180,83,9,.35); }

/* ================================================================
   FIX PACK 8c — proof panel background, FORCED (2026-11-17)
   Fix 8b's pale-gold override did NOT take effect live even though
   v18.16 is served and contains it, and the Phase F light rule for
   the upload button didn't either — while the Fix 8 color rules on
   the SAME elements DID apply (dark heading text, muted blue-grey
   description). The base theme (style.css, live-only, unreadable
   from here) outranks these backgrounds somehow, and the panel/slot
   backgrounds are translucent tints that show the dark runner
   through. Two specificity guesses have failed; this pack uses
   !important, scoped to light mode + the proof-panel subtree only,
   with OPAQUE light backgrounds so nothing dark can show through.
   No JS sets a background on the panel (only hidden=false).
   ================================================================ */
[data-theme="light"] .verify-panel { background: #fffdf5 !important; border-color: rgba(180,83,9,.35) !important; }
[data-theme="light"] .proof-slot { background: #fff !important; border-color: rgba(15,23,42,.2) !important; }
[data-theme="light"] .proof-upload-btn { background: rgba(212,160,23,.08) !important; border-color: rgba(212,160,23,.7) !important; color: #111827 !important; }
[data-theme="light"] .proof-upload-btn small { color: #475569 !important; }
