/* ===== TYPE & EARN - MAIN STYLESHEET ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary: #00C07A;
  --primary-dark: #00a066;
  --primary-light: #e1f5ee;
  --accent: #7C3AED;
  --accent-light: #ede9fe;
  --bg-dark: #0A0E1A;
  --bg-card: #111827;
  --bg-card2: #1a2234;
  --bg-nav: rgba(10,14,26,0.95);
  --text-white: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --border: rgba(255,255,255,0.08);
  --border-green: rgba(0,192,122,0.3);
  --gold: #F59E0B;
  --danger: #EF4444;
  --warning: #F59E0B;
  --success: #10B981;
  --info: #3B82F6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-green: 0 0 20px rgba(0,192,122,0.15);
  --font-main: 'Outfit', sans-serif;
  --font-alt: 'Space Grotesk', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar-brand .brand-tyep { color: var(--text-white); font-weight: 800; font-size: 1.4rem; }
.navbar-brand .brand-earn { color: var(--primary); font-weight: 800; font-size: 1.4rem; }
.navbar-main {
  background: var(--bg-nav) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-main .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  transition: color 0.2s;
  padding: 6px 14px !important;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--primary) !important; }
.btn-login {
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  border-radius: 8px;
  padding: 6px 18px !important;
  transition: all 0.2s;
}
.btn-login:hover { background: var(--primary); color: var(--bg-dark) !important; }
.btn-register {
  background: var(--primary);
  color: var(--bg-dark) !important;
  border-radius: 8px;
  padding: 6px 18px !important;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-register:hover { background: var(--primary-dark); }

/* ===== BUTTONS ===== */
.btn-green {
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-main);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-green:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline-green {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-family: var(--font-main);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-outline-green:hover { background: var(--primary); color: var(--bg-dark); }
.btn-purple {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-main);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-purple:hover { background: #6d28d9; }

/* ===== CARDS ===== */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.card-dark:hover { border-color: var(--border-green); transform: translateY(-2px); }
.card-dark2 {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ===== BADGE STATUS ===== */
.badge-live { background: rgba(16,185,129,0.15); color: #10B981; border: 1px solid rgba(16,185,129,0.3); border-radius: 20px; font-size: 0.7rem; font-weight: 600; padding: 3px 10px; }
.badge-upcoming { background: rgba(59,130,246,0.15); color: #3B82F6; border: 1px solid rgba(59,130,246,0.3); border-radius: 20px; font-size: 0.7rem; font-weight: 600; padding: 3px 10px; }
.badge-completed { background: rgba(156,163,175,0.15); color: #9CA3AF; border: 1px solid rgba(156,163,175,0.3); border-radius: 20px; font-size: 0.7rem; font-weight: 600; padding: 3px 10px; }
.badge-premium { background: rgba(245,158,11,0.15); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); border-radius: 20px; font-size: 0.7rem; font-weight: 600; padding: 3px 10px; }
.badge-free { background: rgba(0,192,122,0.15); color: var(--primary); border: 1px solid rgba(0,192,122,0.3); border-radius: 20px; font-size: 0.7rem; font-weight: 600; padding: 3px 10px; }

/* ===== FORM INPUTS ===== */
.input-dark {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-main);
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s;
  font-size: 0.95rem;
}
.input-dark:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,192,122,0.1);
}
.input-dark::placeholder { color: var(--text-dim); }

/* ===== PAGE HEADER ===== */
.page-hero {
  background: linear-gradient(135deg, #0d1b2e 0%, #0A0E1A 60%, #0d2018 100%);
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,192,122,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary);
  padding: 20px 0;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--bg-dark); }
.stat-lbl { font-size: 0.8rem; color: var(--bg-dark); opacity: 0.7; font-weight: 500; }

/* ===== FOOTER ===== */
.footer-main {
  background: #06080f;
  border-top: 1px solid var(--border);
  padding: 50px 0 20px;
}
.footer-brand { font-size: 1.3rem; font-weight: 800; }
.footer-brand span { color: var(--primary); }
.footer-text { color: var(--text-dim); font-size: 0.85rem; line-height: 1.8; }
.footer-heading { color: var(--text-white); font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 1px; text-transform: uppercase; }
.footer-link { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; display: block; margin-bottom: 8px; transition: color 0.2s; }
.footer-link:hover { color: var(--primary); }
.footer-divider { border-color: var(--border); margin: 30px 0 20px; }
.footer-bottom { color: var(--text-dim); font-size: 0.8rem; }

/* ===== MODAL ===== */
.modal-dark .modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-white);
}
.modal-dark .modal-header { border-bottom: 1px solid var(--border); }
.modal-dark .modal-footer { border-top: 1px solid var(--border); }
.modal-dark .btn-close { filter: invert(1); }

/* ===== TYPING COLORS ===== */
.char-correct { color: var(--primary); }
.char-wrong { color: var(--danger); background: rgba(239,68,68,0.15); border-radius: 2px; }
.char-current { border-bottom: 2px solid var(--primary); animation: blink 1s infinite; }
.char-pending { color: var(--text-dim); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ===== RANK COLORS ===== */
.rank-1 { color: #FFD700; }
.rank-2 { color: #C0C0C0; }
.rank-3 { color: #CD7F32; }

/* ===== TOAST ===== */
.toast-container-fixed {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}

/* ===== SCROLLABLE TABLE ===== */
.table-dark-custom { color: var(--text-white); }
.table-dark-custom th { background: var(--bg-card2); color: var(--text-muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border-color: var(--border); }
.table-dark-custom td { border-color: var(--border); vertical-align: middle; }
.table-dark-custom tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ===== PROGRESS BAR ===== */
.progress-dark { background: var(--bg-card2); border-radius: 10px; height: 8px; }
.progress-dark .progress-bar { background: var(--primary); border-radius: 10px; }

/* ===== WALLET CARD ===== */
.wallet-card {
  background: linear-gradient(135deg, #0d2a1e 0%, #0a1f16 100%);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.wallet-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0,192,122,0.12) 0%, transparent 70%);
}

/* ===== DASHBOARD SIDEBAR ===== */
.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  min-height: calc(100vh - 60px);
  padding: 24px 0;
  width: 240px;
  position: fixed;
  top: 60px;
  left: 0;
  overflow-y: auto;
  transition: transform 0.3s;
  z-index: 100;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover { color: var(--text-white); background: rgba(255,255,255,0.04); }
.sidebar-link.active { color: var(--primary); background: rgba(0,192,122,0.06); border-left-color: var(--primary); }
.sidebar-link i { width: 20px; font-size: 1rem; }
.sidebar-section { padding: 14px 20px 6px; font-size: 0.7rem; color: var(--text-dim); letter-spacing: 1.5px; text-transform: uppercase; }
.main-content { margin-left: 240px; padding: 30px; min-height: calc(100vh - 60px); }

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 16px; }
}

/* ===== TYPING ENGINE ===== */
.typing-area-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.typing-paragraph {
  font-size: 1.1rem;
  line-height: 2;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  padding: 16px;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  min-height: 120px;
  user-select: none;
}
.typing-input {
  background: rgba(0,192,122,0.04);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  padding: 14px 16px;
  width: 100%;
  resize: none;
  transition: border-color 0.2s;
  line-height: 1.8;
}
.typing-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,192,122,0.1); }
.stat-box {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
}
.stat-box .val { font-size: 1.6rem; font-weight: 700; color: var(--primary); font-family: var(--font-alt); }
.stat-box .lbl { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; }

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, #060912 0%, #0a0e1a 50%, #071a10 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,192,122,0.06) 0%, transparent 70%);
  top: -150px;
  left: -100px;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.05) 0%, transparent 70%);
  bottom: -100px;
  right: -50px;
  pointer-events: none;
}
.hero-title { font-size: 3rem; font-weight: 800; line-height: 1.2; }
.hero-title .highlight { color: var(--primary); }
.hero-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 480px; }

/* ===== FEATURE CARDS ===== */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* ===== CONTEST CARD ===== */
.contest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.25s;
  cursor: pointer;
}
.contest-card:hover { border-color: var(--border-green); transform: translateY(-3px); box-shadow: var(--shadow-green); }
.prize-amount { font-size: 1.4rem; font-weight: 800; color: var(--gold); font-family: var(--font-alt); }
.entry-fee { font-size: 0.85rem; color: var(--text-muted); }
.entry-fee span { color: var(--primary); font-weight: 600; }

/* ===== LEADERBOARD ===== */
.lb-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.lb-row:hover { background: rgba(255,255,255,0.02); }
.lb-rank { font-weight: 700; font-size: 1rem; min-width: 28px; font-family: var(--font-alt); }
.lb-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: var(--bg-dark); flex-shrink: 0; }
.lb-name { font-weight: 500; font-size: 0.9rem; flex: 1; }
.lb-wpm { color: var(--primary); font-weight: 700; font-family: var(--font-alt); }

/* ===== RESULT SCREEN ===== */
.result-metric {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.result-metric .big-val { font-size: 2.2rem; font-weight: 800; font-family: var(--font-alt); color: var(--primary); }
.result-metric .big-lbl { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* ===== PRICING ===== */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.pricing-card.popular { border-color: var(--primary); }
.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: 14px;
  right: -22px;
  background: var(--primary);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 32px;
  transform: rotate(45deg);
  transform-origin: center;
}
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--text-white); font-family: var(--font-alt); }
.pricing-price sup { font-size: 1.2rem; color: var(--primary); vertical-align: super; }
.pricing-feature { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 8px; }
.pricing-feature i { color: var(--primary); font-size: 0.9rem; }

/* ===== EXAM CARD ===== */
.exam-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
}
.exam-card:hover { border-color: var(--border-green); transform: translateY(-2px); }
.exam-logo { width: 56px; height: 56px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; overflow: hidden; }
.exam-logo img { width: 44px; height: 44px; object-fit: contain; }
.exam-name { font-size: 0.82rem; font-weight: 600; color: var(--text-white); margin-bottom: 10px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }
@keyframes pulse-green { 0%,100% { box-shadow: 0 0 0 0 rgba(0,192,122,0.4); } 70% { box-shadow: 0 0 0 8px rgba(0,192,122,0); } }
.fade-up { animation: fadeUp 0.5s ease both; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse-green 1.5s infinite; margin-right: 5px; }

/* ===== OTP INPUT ===== */
.otp-input { width: 48px !important; height: 52px; text-align: center; font-size: 1.3rem; font-weight: 700; background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-white); }
.otp-input:focus { border-color: var(--primary); outline: none; }

/* ===== TRANSACTION HISTORY ===== */
.txn-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.txn-row:last-child { border-bottom: none; }
.txn-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.txn-credit { background: rgba(0,192,122,0.12); color: var(--primary); }
.txn-debit { background: rgba(239,68,68,0.12); color: var(--danger); }
.txn-amount-credit { color: var(--primary); font-weight: 700; font-family: var(--font-alt); }
.txn-amount-debit { color: var(--danger); font-weight: 700; font-family: var(--font-alt); }

/* ===== TIMER ===== */
.timer-display {
  font-family: var(--font-alt);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-card2);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  letter-spacing: 2px;
}
.timer-display.warning { color: var(--warning); border-color: rgba(245,158,11,0.3); }
.timer-display.danger { color: var(--danger); border-color: rgba(239,68,68,0.3); animation: blink 0.5s infinite; }
