/* ── REMO-TASK Global Stylesheet ─────────────────────────── */
:root {
  --bg:          #09090f;
  --bg-card:     #111119;
  --bg-card2:    #17172280;
  --border:      rgba(255,255,255,0.07);
  --border-green:rgba(34,197,94,0.4);
  --text:        #e8e8f0;
  --text-muted:  #9090a8;
  --text-dim:    #6060708c;
  --green:       #22c55e;
  --green-dark:  #16a34a;
  --green-glow:  rgba(34,197,94,0.12);
  --purple:      #8b5cf6;
  --purple-glow: rgba(139,92,246,0.12);
  --gold:        #f59e0b;
  --gold-glow:   rgba(245,158,11,0.15);
  --red:         #ef4444;
  --red-glow:    rgba(239,68,68,0.12);
  --nav-h:       62px;
  --r:           12px;
  --r-sm:        8px;
  --r-lg:        16px;
  --transition:  0.2s ease;
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(9,9,15,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 1.5rem; gap: 2rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.55rem;
  flex-shrink: 0;
}
.nav-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.nav-title {
  font-weight: 800; font-size: 0.9rem;
  letter-spacing: 0.06em; color: var(--text);
}
.nav-links {
  display: flex; gap: 0.15rem; flex: 1;
}
.nav-link {
  padding: 0.45rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.88rem; font-weight: 500;
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--green); }
.nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 0.6rem;
}
.nav-bell {
  background: none; border: none;
  color: var(--text-muted); font-size: 1rem;
  padding: 0.35rem; border-radius: 6px;
  transition: color var(--transition);
}
.nav-bell:hover { color: var(--text); }
.nav-avatar {
  width: 34px; height: 34px;
  background: var(--purple);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: #fff;
  user-select: none;
}

/* ── Page layout ─────────────────────────────────────────── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.page-head { margin-bottom: 1.75rem; }
.page-title { font-size: 1.45rem; font-weight: 700; }
.page-sub { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.2rem; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
}
.card-sm { padding: 1rem 1.25rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-sm);
  font-size: 0.88rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-green  { background: var(--green); color: #000; }
.btn-green:hover  { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 16px var(--green-glow); }
.btn-gold   { background: var(--gold); color: #000; }
.btn-gold:hover   { filter: brightness(0.9); }
.btn-outline{ background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover{ background: rgba(255,255,255,0.05); }
.btn-ghost  { background: transparent; color: var(--text-muted); }
.btn-ghost:hover  { color: var(--text); }
.btn-red    { background: var(--red-glow); color: var(--red); border: 1px solid var(--red); }
.btn-block  { width: 100%; }
.btn-lg     { padding: 0.8rem 1.75rem; font-size: 0.95rem; border-radius: var(--r-sm); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group  { margin-bottom: 1rem; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label  {
  display: block; font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 0.4rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 0.7rem 1rem;
  font-size: 0.9rem; font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: #1a1a28; }
.form-textarea { resize: vertical; min-height: 140px; }

/* ── Flash alerts ────────────────────────────────────────── */
.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.25rem;
  font-size: 0.88rem; font-weight: 500;
}
.flash-success { background: var(--green-glow); border: 1px solid var(--border-green); color: var(--green); }
.flash-error   { background: var(--red-glow);   border: 1px solid var(--red);          color: var(--red); }
.flash-info    { background: var(--purple-glow); border: 1px solid var(--purple);       color: var(--purple); }

/* ── Balance display ─────────────────────────────────────── */
.balance-usd {
  font-size: 2.6rem; font-weight: 800;
  color: var(--text); line-height: 1.1;
}
.balance-usd span.dollar { color: var(--green); }
.balance-kes {
  font-size: 0.82rem; color: var(--green);
  margin-top: 0.3rem; letter-spacing: 0.02em;
}

/* ── Live Withdrawals ────────────────────────────────────── */
.live-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.live-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--green-glow); border: 1px solid var(--border-green);
  color: var(--green); font-size: 0.72rem; font-weight: 600;
  padding: 0.15rem 0.6rem; border-radius: 100px;
  letter-spacing: 0.05em;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.3} }
.withdrawal-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.withdrawal-item:last-child { border-bottom: none; }
.w-avatar {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--green-glow); border: 1px solid var(--border-green);
  color: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.w-info { flex: 1; min-width: 0; }
.w-phone { font-size: 0.88rem; font-weight: 500; }
.w-status { font-size: 0.78rem; color: var(--green); }
.w-right { text-align: right; }
.w-amount { font-weight: 700; color: var(--green); font-size: 0.9rem; }
.w-time { font-size: 0.75rem; color: var(--text-muted); }

/* ── Task cards ──────────────────────────────────────────── */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  transition: border-color var(--transition);
}
.task-card:hover { border-color: rgba(255,255,255,0.12); }
.task-title  { font-weight: 600; font-size: 0.95rem; }
.task-desc   { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.task-payout { font-size: 0.8rem; color: var(--text-muted); }
.task-payout strong { color: var(--green); font-weight: 600; }
.task-tags   { display: flex; gap: 0.4rem; }
.tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.15rem 0.55rem; border-radius: 100px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted); text-transform: lowercase;
}

/* ── Stats grid ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem; margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
}
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.stat-icon { font-size: 0.9rem; color: var(--text-muted); }
.stat-value { font-size: 1.6rem; font-weight: 800; margin-top: 0.4rem; }
.stat-desc  { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── Weekly bar chart ────────────────────────────────────── */
.chart-wrap { padding: 1rem 0; }
.chart-bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 100px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.bar { width: 100%; background: var(--green-glow); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.4s; }
.bar.has-data { background: var(--green); }
.bar-label { font-size: 0.7rem; color: var(--text-muted); }
.bar-val { font-size: 0.68rem; color: var(--text-muted); }

/* ── Transaction history ─────────────────────────────────── */
.tx-list { display: flex; flex-direction: column; gap: 0; }
.tx-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.tx-icon.earn { background: var(--green-glow); }
.tx-icon.debit { background: var(--red-glow); }
.tx-info { flex: 1; }
.tx-desc { font-size: 0.88rem; font-weight: 500; }
.tx-date { font-size: 0.75rem; color: var(--text-muted); }
.tx-amount { font-weight: 700; font-size: 0.9rem; }
.tx-amount.earn  { color: var(--green); }
.tx-amount.debit { color: var(--red); }
.tx-status { font-size: 0.72rem; color: var(--text-muted); }

/* ── Plans ───────────────────────────────────────────────── */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1.25rem; }
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color var(--transition), transform var(--transition);
}
.plan-card:hover { transform: translateY(-2px); }
.plan-card.popular {
  border-color: var(--green);
  box-shadow: 0 0 24px var(--green-glow);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #000;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 0.2rem 0.85rem; border-radius: 100px; white-space: nowrap;
}
.plan-name { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; }
.plan-price { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.plan-tagline { font-size: 0.82rem; color: var(--text-muted); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.plan-features li { font-size: 0.84rem; display: flex; align-items: center; gap: 0.5rem; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  width: 100%; max-width: 420px;
  position: relative;
}
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.2rem; padding: 0.2rem; border-radius: 4px;
}
.modal-close:hover { color: var(--text); }
.method-option {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 0.6rem; cursor: pointer;
  transition: border-color var(--transition);
}
.method-option.active { border-color: var(--green); }
.method-option.disabled { opacity: 0.45; cursor: not-allowed; }
.method-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.method-info { flex: 1; }
.method-name { font-weight: 600; font-size: 0.9rem; }
.method-sub  { font-size: 0.78rem; color: var(--text-muted); }
.soon-badge {
  background: var(--gold-glow); color: var(--gold);
  font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: 100px; letter-spacing: 0.05em;
}

/* ── Quiz ────────────────────────────────────────────────── */
.quiz-wrap { max-width: 600px; margin: 0 auto; }
.quiz-progress-bar {
  background: rgba(255,255,255,0.08);
  border-radius: 100px; height: 5px;
  margin-bottom: 2rem; overflow: hidden;
}
.quiz-progress-fill { height: 100%; background: var(--green); border-radius: 100px; transition: width 0.4s; }
.question-card { display: none; }
.question-card.active { display: block; }
.q-num {
  width: 36px; height: 36px;
  background: var(--purple); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  margin-bottom: 1rem;
}
.q-text { font-size: 1.05rem; font-weight: 600; margin-bottom: 1.25rem; }
.q-options { display: flex; flex-direction: column; gap: 0.65rem; }
.q-opt {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm); cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  font-size: 0.9rem;
}
.q-opt:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.03); }
.q-opt input[type=radio] { accent-color: var(--green); width: 16px; height: 16px; }
.q-opt.selected { border-color: var(--green); background: var(--green-glow); }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
.quiz-step { font-size: 0.82rem; color: var(--text-muted); }

/* ── Auth pages ──────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.auth-card { width: 100%; max-width: 460px; }
.auth-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 2rem; }
.auth-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.25rem; }
.auth-sub { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-muted); }
.auth-footer a { color: var(--green); font-weight: 500; }

/* ── Bonus page ──────────────────────────────────────────── */
.bonus-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem; background: var(--bg);
}
.bonus-card { width: 100%; max-width: 400px; text-align: center; }
.bonus-trophy { font-size: 4rem; margin-bottom: 1rem; }
.bonus-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--purple-glow); border: 1px solid var(--purple);
  color: var(--purple); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; padding: 0.2rem 0.85rem; border-radius: 100px;
  margin-bottom: 0.75rem; text-transform: uppercase;
}
.bonus-amount {
  font-size: 3rem; font-weight: 800; color: var(--green); line-height: 1;
  margin: 0.5rem 0;
}
.bonus-checklist { list-style: none; text-align: left; margin: 1rem 0; }
.bonus-checklist li {
  font-size: 0.88rem; color: var(--text-muted);
  padding: 0.3rem 0;
  display: flex; align-items: center; gap: 0.6rem;
}
.bonus-checklist li::before { content: '✓'; color: var(--green); font-weight: 700; }
.bonus-lock { font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; }

/* ── Landing page ────────────────────────────────────────── */
.landing-hero {
  text-align: center; padding: 4rem 1rem 2rem;
}
.landing-logo {
  display: flex; align-items: center; gap: 0.6rem;
  justify-content: center; margin-bottom: 2.5rem;
}
.landing-title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.75rem; }
.landing-sub { font-size: 1rem; color: var(--text-muted); max-width: 400px; margin: 0 auto 2rem; }
.landing-cols {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
  padding: 2rem 1rem;
}
.landing-login-card { width: 100%; }

/* ── Deposit page ────────────────────────────────────────── */
.deposit-card { max-width: 460px; }

/* ── Withdrawal page ─────────────────────────────────────── */
.withdraw-card { max-width: 560px; }

/* ── Button loading state ────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  vertical-align: middle;
  margin-right: 0.3rem;
  flex-shrink: 0;
}
.btn[disabled] {
  opacity: 0.72;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* ── Utils ───────────────────────────────────────────────── */
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.text-green  { color: var(--green); }
.text-muted  { color: var(--text-muted); }
.text-gold   { color: var(--gold); }
.text-red    { color: var(--red); }
.text-sm     { font-size: 0.82rem; }
.text-xs     { font-size: 0.72rem; }
.fw-700 { font-weight: 700; }
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); font-size: 0.9rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── Scrolling ticker ────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden; height: 52px;
  position: relative;
}
.ticker-inner {
  display: flex; flex-direction: column;
  animation: tickUp 30s linear infinite;
}
@keyframes tickUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .landing-cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page { padding: 1.25rem 1rem; }
  .task-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .balance-usd { font-size: 2rem; }
  .landing-title { font-size: 1.8rem; }
  .modal { padding: 1.25rem; }
}

/* ── Mobile nav bar (bottom) ─────────────────────────────── */
.mob-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 0.5rem;
}
.mob-nav-links { display: flex; justify-content: space-around; }
.mob-nav-link {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.4rem 1rem; border-radius: var(--r-sm);
  color: var(--text-muted); font-size: 0.65rem; font-weight: 600;
  transition: color var(--transition);
}
.mob-nav-link.active { color: var(--green); }
.mob-nav-icon { font-size: 1.1rem; }
@media (max-width: 900px) {
  .mob-nav { display: block; }
  .page { padding-bottom: 5rem; }
}
