/* TeluguEarn — User-facing styles | mobile-first | prefix: vh- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #FF6B35;
  --primary-dark: #E55A25;
  --secondary: #1A1A2E;
  --accent: #FFD700;
  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --nav-h: 64px;
  --bottom-nav-h: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Noto Sans Telugu', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Layout ── */
.vh-page { min-height: 100vh; display: flex; flex-direction: column; }
.vh-main { flex: 1; padding: 16px 16px calc(var(--bottom-nav-h) + 16px); }
.vh-container { max-width: 480px; margin: 0 auto; width: 100%; }

/* ── Top bar ── */
.vh-topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--secondary);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.vh-topbar-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.vh-topbar-logo img { height: 32px; }
.vh-topbar-logo-text { color: var(--accent); font-size: 1.2rem; font-weight: 700; }
.vh-topbar-actions { display: flex; align-items: center; gap: 12px; }
.vh-coin-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,215,0,.15);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 4px 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.vh-coin-badge svg { width: 16px; height: 16px; fill: var(--accent); }
.vh-notif-btn {
  position: relative;
  background: none; border: none; cursor: pointer;
  color: #fff; padding: 4px;
}
.vh-notif-btn svg { width: 22px; height: 22px; }
.vh-notif-count {
  position: absolute; top: -2px; right: -2px;
  background: var(--danger); color: #fff;
  border-radius: 50%; width: 16px; height: 16px;
  font-size: 0.65rem; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ── Bottom Navigation ── */
.vh-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--secondary);
  height: var(--bottom-nav-h);
  display: flex; align-items: stretch;
  box-shadow: 0 -2px 12px rgba(0,0,0,.2);
}
.vh-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; text-decoration: none;
  color: rgba(255,255,255,.5);
  font-size: 0.62rem; font-weight: 500;
  transition: color .2s;
  padding: 8px 4px;
  border: none; background: none; cursor: pointer;
}
.vh-nav-item svg { width: 22px; height: 22px; }
.vh-nav-item.active, .vh-nav-item:hover { color: var(--accent); }
.vh-nav-item.active { position: relative; }
.vh-nav-item.active::after {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%;
  height: 3px; background: var(--accent); border-radius: 0 0 4px 4px;
}

/* ── Cards ── */
.vh-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.vh-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.vh-card-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.vh-card-subtitle { font-size: 0.8rem; color: var(--text-muted); }

/* ── Dashboard grid — single col mobile, 2-col desktop via explicit placement ── */
.vh-dashboard-grid { display: grid; grid-template-columns: 1fr; }

/* ── Hero / Balance Card ── */
.vh-balance-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.vh-balance-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.08); border-radius: 50%;
}
.vh-balance-card::after {
  content: ''; position: absolute; bottom: -30px; left: -20px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,.05); border-radius: 50%;
}
.vh-balance-label { font-size: 0.8rem; opacity: .8; margin-bottom: 4px; }
.vh-balance-coins { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.vh-balance-inr { font-size: 0.9rem; opacity: .85; margin-top: 4px; }
.vh-balance-row {
  display: flex; gap: 16px; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2);
}
.vh-balance-stat { flex: 1; }
.vh-balance-stat-label { font-size: 0.7rem; opacity: .7; }
.vh-balance-stat-val { font-size: 1rem; font-weight: 600; }

/* ── Quick Actions Grid ── */
.vh-earn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.vh-earn-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  border: 2px solid transparent;
}
.vh-earn-btn:active { transform: scale(.96); }
.vh-earn-btn.active-earn { border-color: var(--primary); }
.vh-earn-btn-icon { font-size: 1.8rem; line-height: 1; }
.vh-earn-btn-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.vh-earn-btn-coins { font-size: 0.65rem; color: var(--primary); font-weight: 600; }

/* ── Stats Row ── */
.vh-stats-row { display: flex; gap: 10px; margin-bottom: 12px; }
.vh-stat-box {
  flex: 1; background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.vh-stat-val { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.vh-stat-lbl { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }

/* ── Section Header ── */
.vh-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.vh-section-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.vh-section-link { font-size: 0.8rem; color: var(--primary); text-decoration: none; font-weight: 500; }

/* ── Transaction List ── */
.vh-txn-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.vh-txn-item:last-child { border-bottom: none; }
.vh-txn-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.vh-txn-icon.credit { background: rgba(34,197,94,.12); }
.vh-txn-icon.debit  { background: rgba(239,68,68,.12); }
.vh-txn-info { flex: 1; min-width: 0; }
.vh-txn-desc { font-size: 0.82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-txn-time { font-size: 0.7rem; color: var(--text-muted); }
.vh-txn-amount { font-size: 0.95rem; font-weight: 700; flex-shrink: 0; }
.vh-txn-amount.credit { color: var(--success); }
.vh-txn-amount.debit  { color: var(--danger); }

/* ── Ads / PTC ── */
.vh-ad-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
}
.vh-ad-thumb {
  width: 100%; height: 160px;
  object-fit: cover; display: block;
  background: var(--border);
}
.vh-ad-body { padding: 12px; }
.vh-ad-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.vh-ad-meta { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }
.vh-ad-meta-tag {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--bg); border-radius: 20px; padding: 2px 8px;
}
.vh-ad-footer { display: flex; align-items: center; justify-content: space-between; }
.vh-ad-reward { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.vh-ad-limit { font-size: 0.72rem; color: var(--text-muted); }
.vh-watch-progress {
  width: 100%; height: 4px;
  background: var(--border); border-radius: 2px;
  margin: 8px 0; overflow: hidden;
}
.vh-watch-progress-bar {
  height: 100%; background: var(--primary);
  border-radius: 2px; width: 0%; transition: width .5s linear;
}

/* ── Tasks ── */
.vh-task-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.vh-task-header { display: flex; align-items: flex-start; gap: 10px; }
.vh-task-type-badge {
  font-size: 0.65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  background: rgba(255,107,53,.12); color: var(--primary);
  flex-shrink: 0;
}
.vh-task-title { font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.vh-task-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.vh-task-footer { display: flex; align-items: center; justify-content: space-between; }
.vh-task-reward { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.vh-task-status {
  font-size: 0.7rem; font-weight: 600; padding: 3px 10px;
  border-radius: 20px;
}
.vh-task-status.pending  { background: rgba(245,158,11,.12); color: var(--warning); }
.vh-task-status.approved { background: rgba(34,197,94,.12);  color: var(--success); }
.vh-task-status.rejected { background: rgba(239,68,68,.12);  color: var(--danger); }

/* ── Quiz ── */
.vh-quiz-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vh-quiz-cat {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
  text-align: center; text-decoration: none; color: var(--text);
  transition: transform .15s;
}
.vh-quiz-cat:active { transform: scale(.97); }
.vh-quiz-cat-icon { font-size: 2rem; margin-bottom: 6px; }
.vh-quiz-cat-name { font-size: 0.85rem; font-weight: 600; }
.vh-quiz-cat-count { font-size: 0.7rem; color: var(--text-muted); }

.vh-quiz-question-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 12px;
}
.vh-quiz-q-num { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.vh-quiz-q-text { font-size: 1rem; font-weight: 600; line-height: 1.5; margin-bottom: 16px; }
.vh-quiz-option {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 8px;
  cursor: pointer; transition: border-color .2s, background .2s;
  background: none; width: 100%; text-align: left;
}
.vh-quiz-option:hover  { border-color: var(--primary); background: rgba(255,107,53,.04); }
.vh-quiz-option.correct { border-color: var(--success); background: rgba(34,197,94,.08); }
.vh-quiz-option.wrong   { border-color: var(--danger);  background: rgba(239,68,68,.08); }
.vh-quiz-opt-key {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); font-weight: 700; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vh-quiz-opt-text { font-size: 0.85rem; }
.vh-quiz-reward-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,215,0,.15); border: 1px solid var(--accent);
  border-radius: 20px; padding: 4px 12px;
  color: #b8900a; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 12px;
}

/* ── Videos ── */
.vh-video-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 12px;
}
.vh-video-thumb {
  width: 100%; height: 180px; position: relative;
  overflow: hidden; background: #000;
}
.vh-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vh-video-thumb-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4);
}
.vh-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
}
.vh-play-btn svg { width: 24px; height: 24px; fill: var(--primary); margin-left: 3px; }
.vh-video-body { padding: 12px; }
.vh-video-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }

/* ── Spin Wheel ── */
.vh-spin-wrap { text-align: center; padding: 20px 0; }
.vh-wheel-container {
  position: relative; width: 280px; height: 280px;
  margin: 0 auto 20px;
}
.vh-wheel-canvas { width: 100%; height: 100%; }
.vh-wheel-arrow {
  position: absolute; top: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 2rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.vh-spin-btn {
  background: var(--primary); color: #fff;
  border: none; border-radius: 28px;
  padding: 14px 40px; font-size: 1rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 12px rgba(255,107,53,.4);
  transition: opacity .2s, transform .1s;
}
.vh-spin-btn:active { transform: scale(.97); }
.vh-spin-btn:disabled { opacity: .5; cursor: not-allowed; }
.vh-spin-cooldown { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }
.vh-spin-items { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.vh-spin-item-pill {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; color: #fff;
}

/* ── Checkin ── */
.vh-checkin-card {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  border-radius: var(--radius); padding: 20px; color: #fff; margin-bottom: 12px;
}
.vh-checkin-streak { font-size: 0.8rem; opacity: .7; margin-bottom: 4px; }
.vh-checkin-day { font-size: 2rem; font-weight: 700; color: var(--accent); }
.vh-checkin-row { display: flex; gap: 6px; margin-top: 12px; }
.vh-checkin-dot {
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.2);
}
.vh-checkin-dot.done { background: var(--accent); }
.vh-checkin-btn {
  width: 100%; margin-top: 14px;
  background: var(--accent); color: #000;
  border: none; border-radius: 28px;
  padding: 12px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s;
}
.vh-checkin-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Referral ── */
.vh-referral-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #FF8C5A 100%);
  border-radius: var(--radius); padding: 20px; color: #fff;
  text-align: center; margin-bottom: 16px;
}
.vh-ref-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.vh-ref-sub { font-size: 0.82rem; opacity: .85; }
.vh-ref-code-box {
  background: rgba(255,255,255,.2); border-radius: var(--radius-sm);
  padding: 12px 16px; margin: 12px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.vh-ref-code { font-size: 1.4rem; font-weight: 700; letter-spacing: 2px; }
.vh-copy-btn {
  background: rgba(255,255,255,.25); border: none; border-radius: var(--radius-sm);
  color: #fff; padding: 6px 14px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
}
.vh-ref-link-row { display: flex; gap: 8px; }
.vh-ref-share-btn {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; font-size: 0.82rem; font-weight: 600;
  background: rgba(255,255,255,.2); color: #fff;
}

/* ── Referral List ── */
.vh-ref-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.vh-ref-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}
.vh-ref-info { flex: 1; }
.vh-ref-name { font-size: 0.85rem; font-weight: 600; }
.vh-ref-date { font-size: 0.7rem; color: var(--text-muted); }

/* ── Withdraw ── */
.vh-withdraw-form { display: flex; flex-direction: column; gap: 14px; }
.vh-method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vh-method-option { display: none; }
.vh-method-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 8px; cursor: pointer; text-align: center;
  transition: border-color .2s, background .2s; font-size: 0.78rem; font-weight: 600;
}
.vh-method-label:hover { border-color: var(--primary); }
.vh-method-label-icon { font-size: 1.5rem; }
.vh-method-option:checked + .vh-method-label {
  border-color: var(--primary); background: rgba(255,107,53,.06);
  color: var(--primary);
}
.vh-withdraw-history-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.vh-withdraw-amount { font-size: 0.95rem; font-weight: 700; }
.vh-withdraw-method { font-size: 0.72rem; color: var(--text-muted); }

/* ── Forms ── */
.vh-form-group { display: flex; flex-direction: column; gap: 6px; }
.vh-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.vh-input, .vh-select, .vh-textarea {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  font-size: 0.9rem; color: var(--text);
  background: var(--surface); outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.vh-input:focus, .vh-select:focus, .vh-textarea:focus { border-color: var(--primary); }
.vh-input.error, .vh-select.error { border-color: var(--danger); }
.vh-input-hint { font-size: 0.72rem; color: var(--text-muted); }
.vh-input-error { font-size: 0.72rem; color: var(--danger); }

/* ── Buttons ── */
.vh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: none; border-radius: 28px;
  padding: 12px 24px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: opacity .2s, transform .1s;
  font-family: inherit;
}
.vh-btn:active { transform: scale(.97); }
.vh-btn-primary   { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(255,107,53,.3); }
.vh-btn-secondary { background: var(--secondary); color: #fff; }
.vh-btn-outline   { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.vh-btn-success   { background: var(--success); color: #fff; }
.vh-btn-danger    { background: var(--danger); color: #fff; }
.vh-btn-full { width: 100%; }
.vh-btn-sm { padding: 7px 16px; font-size: 0.78rem; border-radius: 20px; }
.vh-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Badges / Status ── */
.vh-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700;
}
.vh-badge-success { background: rgba(34,197,94,.12);  color: var(--success); }
.vh-badge-danger  { background: rgba(239,68,68,.12);  color: var(--danger); }
.vh-badge-warning { background: rgba(245,158,11,.12); color: var(--warning); }
.vh-badge-info    { background: rgba(59,130,246,.12); color: var(--info); }
.vh-badge-primary { background: rgba(255,107,53,.12); color: var(--primary); }

/* ── Alerts ── */
.vh-alert {
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 0.82rem; margin-bottom: 12px;
  display: flex; align-items: flex-start; gap: 8px;
}
.vh-alert-success { background: rgba(34,197,94,.1);  color: #16a34a; border-left: 3px solid var(--success); }
.vh-alert-danger  { background: rgba(239,68,68,.1);  color: #dc2626; border-left: 3px solid var(--danger); }
.vh-alert-info    { background: rgba(59,130,246,.1); color: #2563eb; border-left: 3px solid var(--info); }
.vh-alert-warning { background: rgba(245,158,11,.1); color: #d97706; border-left: 3px solid var(--warning); }

/* ── Auth pages ── */
.vh-auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--secondary) 0%, #0F3460 100%);
}
/* transparent on mobile — children are direct flex items of .vh-auth-page */
.vh-auth-wrap { display: contents; }
.vh-auth-hero {
  padding: 48px 24px 32px;
  text-align: center; color: #fff;
}
.vh-auth-logo { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.vh-auth-tagline { font-size: 0.9rem; opacity: .75; }
.vh-auth-card {
  background: var(--surface); border-radius: 24px 24px 0 0;
  flex: 1; padding: 28px 20px;
}
.vh-auth-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.vh-auth-sub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; }
.vh-auth-form { display: flex; flex-direction: column; gap: 14px; }
.vh-auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 0; color: var(--text-muted); font-size: 0.78rem;
}
.vh-auth-divider::before, .vh-auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.vh-auth-link { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; }
.vh-auth-link a { color: var(--primary); font-weight: 600; text-decoration: none; }

@media (min-width: 640px) {
  .vh-auth-page {
    justify-content: center; align-items: center;
    padding: 24px;
  }
  /* becomes a compact centered card on desktop */
  .vh-auth-wrap {
    display: block;
    width: 100%; max-width: 440px;
    background: var(--surface); border-radius: 20px;
    overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  }
  .vh-auth-hero {
    background: var(--secondary);
    padding: 28px 36px 20px;
  }
  .vh-auth-card {
    flex: none; border-radius: 0;
    padding: 28px 36px; box-shadow: none;
  }
  .vh-auth-title { font-size: 1.5rem; }
}

/* ── Leaderboard ── */
.vh-leaderboard-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; background: var(--surface);
  border-radius: var(--radius-sm); margin-bottom: 6px;
  box-shadow: var(--shadow);
}
.vh-rank {
  width: 28px; text-align: center; font-weight: 700;
  font-size: 0.9rem; color: var(--text-muted); flex-shrink: 0;
}
.vh-rank.top-1 { color: #FFD700; }
.vh-rank.top-2 { color: #C0C0C0; }
.vh-rank.top-3 { color: #CD7F32; }

/* ── Empty State ── */
.vh-empty {
  text-align: center; padding: 40px 20px;
  color: var(--text-muted);
}
.vh-empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: .5; }
.vh-empty-text { font-size: 0.9rem; }

/* ── Toast ── */
.vh-toast-container {
  position: fixed; bottom: calc(var(--bottom-nav-h) + 16px); left: 16px; right: 16px;
  z-index: 9999; pointer-events: none;
}
.vh-toast {
  background: var(--secondary); color: #fff;
  border-radius: var(--radius-sm); padding: 12px 16px;
  margin-bottom: 8px; font-size: 0.85rem;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md);
  animation: toastIn .3s ease;
  pointer-events: all;
}
.vh-toast.success { border-left: 3px solid var(--success); }
.vh-toast.error   { border-left: 3px solid var(--danger); }
.vh-toast.info    { border-left: 3px solid var(--info); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Language Toggle ── */
.vh-lang-toggle {
  display: flex; border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 20px; overflow: hidden;
}
.vh-lang-btn {
  padding: 3px 10px; font-size: 0.72rem; font-weight: 600;
  border: none; cursor: pointer; color: rgba(255,255,255,.6);
  background: transparent;
}
.vh-lang-btn.active { background: var(--accent); color: #000; }

/* ── Pagination ── */
.vh-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.vh-page-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--surface); box-shadow: var(--shadow);
  border: none; cursor: pointer;
}
.vh-page-btn.active { background: var(--primary); color: #fff; }
.vh-page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Tab Nav ── */
.vh-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 14px; }
.vh-tab {
  flex: 1; padding: 8px; border-radius: 6px;
  font-size: 0.78rem; font-weight: 600; text-align: center;
  border: none; background: transparent; cursor: pointer; color: var(--text-muted);
}
.vh-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }

/* ── Utility ── */
.vh-text-center { text-align: center; }
.vh-mt-8  { margin-top: 8px; }
.vh-mt-12 { margin-top: 12px; }
.vh-mt-16 { margin-top: 16px; }
.vh-mb-8  { margin-bottom: 8px; }
.vh-mb-16 { margin-bottom: 16px; }
.vh-gap-8 { gap: 8px; }
.vh-fw-700 { font-weight: 700; }
.vh-text-primary { color: var(--primary); }
.vh-text-muted   { color: var(--text-muted); }
.vh-text-success { color: var(--success); }
.vh-text-danger  { color: var(--danger); }
.vh-fs-sm { font-size: 0.8rem; }
.vh-fs-xs { font-size: 0.72rem; }
.vh-hidden { display: none !important; }
.vh-form-inline { display: contents; }
.vh-d-flex { display: flex; }
.vh-align-center { align-items: center; }
.vh-justify-between { justify-content: space-between; }

/* ── Tablet / Desktop ── */
@media (min-width: 640px) {
  .vh-main { padding: 24px 24px calc(var(--bottom-nav-h) + 24px); }
  .vh-container { max-width: 600px; }
  .vh-earn-grid { grid-template-columns: repeat(6, 1fr); }
  .vh-balance-coins { font-size: 3rem; }
  .vh-wheel-container { width: 320px; height: 320px; }
}

@media (min-width: 1024px) {
  :root { --bottom-nav-h: 0px; }
  .vh-bottom-nav { display: none; }
  .vh-page { flex-direction: row; }
  .vh-sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--secondary);
    min-height: 100vh; position: sticky; top: 0;
    padding: 20px 0;
    display: flex; flex-direction: column;
  }
  .vh-sidebar-logo {
    color: var(--accent); font-size: 1.4rem; font-weight: 800;
    padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 12px;
  }
  .vh-sidebar-nav { flex: 1; }
  .vh-sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 20px; color: rgba(255,255,255,.6);
    text-decoration: none; font-size: 0.95rem; font-weight: 500;
    transition: color .2s, background .2s;
  }
  .vh-sidebar-link svg { width: 20px; height: 20px; }
  .vh-sidebar-link:hover { color: #fff; background: rgba(255,255,255,.05); }
  .vh-sidebar-link.active { color: var(--accent); background: rgba(255,215,0,.08); border-right: 3px solid var(--accent); }
  .vh-main-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .vh-topbar { position: sticky; }
  .vh-main { padding: 28px; }
  .vh-container { max-width: 1000px; }

  /* ── Dashboard 2-column grid via explicit placement ── */
  .vh-dashboard-grid {
    grid-template-columns: 1fr 300px;
    gap: 0 28px;
    align-items: start;
  }
  .vh-db-balance { grid-column: 1; grid-row: 1; }
  .vh-db-earn    { grid-column: 1; grid-row: 2; }
  .vh-db-txn     { grid-column: 1; grid-row: 3; }
  .vh-db-checkin { grid-column: 2; grid-row: 1; margin-bottom: 16px; }
  .vh-db-stats   { grid-column: 2; grid-row: 2; flex-direction: column; }
  .vh-db-stats .vh-stat-box { text-align: left; }

  /* ── Larger text sizes on desktop ── */
  .vh-balance-label      { font-size: 0.95rem; }
  .vh-balance-coins      { font-size: 3.2rem; }
  .vh-balance-inr        { font-size: 1.05rem; }
  .vh-balance-stat-label { font-size: 0.85rem; }
  .vh-balance-stat-val   { font-size: 1.15rem; }

  .vh-earn-btn           { padding: 18px 12px; }
  .vh-earn-btn-icon      { font-size: 2.2rem; }
  .vh-earn-btn-label     { font-size: 0.88rem; }
  .vh-earn-btn-coins     { font-size: 0.8rem; }

  .vh-section-title      { font-size: 1.1rem; }
  .vh-section-link       { font-size: 0.9rem; }

  .vh-stat-val           { font-size: 1.6rem; }
  .vh-stat-lbl           { font-size: 0.82rem; }

  .vh-txn-desc           { font-size: 0.95rem; }
  .vh-txn-time           { font-size: 0.82rem; }
  .vh-txn-amount         { font-size: 1.05rem; }

  .vh-checkin-streak     { font-size: 0.9rem; }
  .vh-checkin-day        { font-size: 2.4rem; }
  .vh-checkin-btn        { font-size: 1rem; padding: 14px; }

  .vh-card-title         { font-size: 1.1rem; }
  .vh-card-subtitle      { font-size: 0.9rem; }
}
