/* =============================================
   TASKEARNER — GLOBAL STYLES
   Clean dark theme, solid colors, Poppins font
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-base:       #0b0b10;
  --bg-card:       #13131c;
  --bg-card-alt:   #1a1a27;
  --bg-input:      #1e1e2e;
  --border:        #2a2a3e;
  --border-light:  #353550;
  --accent:        #00e676;
  --accent-dim:    #00b85c;
  --accent-muted:  rgba(0,230,118,0.12);
  --accent-red:    #ff4d6d;
  --accent-yellow: #ffd166;
  --accent-blue:   #4d9fff;
  --text-primary:  #f0f0f8;
  --text-secondary:#9898b8;
  --text-muted:    #5a5a7a;
  --white:         #ffffff;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.6);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --transition:    all 0.25s ease;
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dim); }

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: #000; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-accent   { color: var(--accent) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.text-secondary-custom { color: var(--text-secondary) !important; }
.bg-card       { background: var(--bg-card) !important; }
.bg-base       { background: var(--bg-base) !important; }
.border-custom { border: 1px solid var(--border) !important; }

.badge-accent {
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-red {
  background: rgba(255,77,109,0.12);
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-yellow {
  background: rgba(255,209,102,0.12);
  color: var(--accent-yellow);
  border: 1px solid var(--accent-yellow);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-blue {
  background: rgba(77,159,255,0.12);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Buttons ── */
.btn-accent {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 28px;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: var(--transition);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.btn-accent:hover {
  background: var(--accent-dim);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,230,118,0.3);
}

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-card-alt);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Cards ── */
.card-custom {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.card-custom:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

/* ── Form Controls ── */
.form-control-custom {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  transition: var(--transition);
  outline: none;
}
.form-control-custom:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
  background: var(--bg-input);
  color: var(--text-primary);
}
.form-control-custom::placeholder { color: var(--text-muted); }

.form-label-custom {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 280px;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}
.toast-msg.error { border-left-color: var(--accent-red); }
.toast-msg.warning { border-left-color: var(--accent-yellow); }
.toast-msg.info { border-left-color: var(--accent-blue); }
.toast-msg .toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-msg .toast-close {
  margin-left: auto;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
}
.toast-msg .toast-close:hover { color: var(--text-primary); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}
.toast-msg.hiding { animation: slideOut 0.3s ease forwards; }

/* ── Loading Spinner ── */
.spinner-overlay {
  position: fixed; inset: 0;
  background: rgba(11,11,16,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
}
.spinner-ring {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Progress Bar ── */
.progress-custom {
  background: var(--bg-card-alt);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
}
.progress-bar-custom {
  height: 100%;
  background: var(--accent);
  border-radius: 20px;
  transition: width 0.5s ease;
}

/* =============================================
   LANDING PAGE STYLES
   ============================================= */

/* Navbar */
#landing-page .landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11,11,16,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transition: var(--transition);
}

.landing-nav .nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.landing-nav .nav-logo span { color: var(--accent); }

.landing-nav .nav-links { list-style: none; display: flex; gap: 32px; margin: 0; }
.landing-nav .nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.landing-nav .nav-links a:hover { color: var(--accent); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border: none; }

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-base);
  background-image:
    radial-gradient(ellipse 600px 400px at 70% 50%, rgba(0,230,118,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(77,159,255,0.04) 0%, transparent 60%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.18;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-muted);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.hero-title .highlight { color: var(--accent); }

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat-item {}
.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  font-family: 'Space Mono', monospace;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-stack {
  position: relative;
  width: 340px;
  height: 400px;
}

.hero-card-back {
  position: absolute;
  top: 30px;
  left: 20px;
  width: 300px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transform: rotate(-4deg);
}

.hero-card-front {
  position: absolute;
  top: 0; left: 0;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.hero-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hero-card-amount {
  font-size: 38px;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  margin-bottom: 20px;
}
.hero-card-task {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hero-card-task-name { font-size: 13px; font-weight: 600; }
.hero-card-task-earn {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
}

.floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.floating-badge-1 {
  top: -10px; right: -30px;
  animation: float1 3s ease-in-out infinite;
}
.floating-badge-2 {
  bottom: 20px; right: -40px;
  animation: float2 3.5s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ── Section Common ── */
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

/* ── Features Section ── */
.features-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px; height: 52px;
  background: var(--accent-muted);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── How It Works ── */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.step-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.step-number {
  width: 56px; height: 56px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 900;
  font-family: 'Space Mono', monospace;
  margin: 0 auto 20px;
}

.step-connector {
  position: absolute;
  top: 56px; right: -30px;
  width: 60px;
  height: 2px;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.step-connector::after {
  content: '›';
  color: var(--accent);
  font-size: 20px;
  position: absolute;
  right: -5px;
}

.step-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--text-secondary); }

/* ── Task Categories ── */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.category-card:hover {
  background: var(--accent-muted);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.category-card:hover .category-icon { background: var(--accent); }
.category-card:hover .category-icon span { filter: invert(1); }

.category-icon {
  width: 60px; height: 60px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
  transition: var(--transition);
}
.category-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.category-count { font-size: 12px; color: var(--text-muted); }

/* ── Testimonials ── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.testimonial-name { font-size: 14px; font-weight: 700; }
.testimonial-role { font-size: 12px; color: var(--text-muted); }
.testimonial-stars { color: var(--accent-yellow); font-size: 14px; }

/* ── FAQ ── */
.faq-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  width: 28px; height: 28px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--accent);
  font-weight: 700;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #000; }

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-logo { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; max-width: 260px; }

.footer-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { font-size: 14px; color: var(--text-secondary); }
.footer-links li a:hover { color: var(--accent); }

.social-icons { display: flex; gap: 12px; }
.social-icon {
  width: 38px; height: 38px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.social-icon:hover { border-color: var(--accent); color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* =============================================
   AUTH PAGES STYLES
   ============================================= */
.auth-page {
  display: none;
  min-height: 100vh;
  background: var(--bg-base);
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}
.auth-page.active { display: flex; }

.auth-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 500px 400px at 20% 50%, rgba(0,230,118,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 80% 20%, rgba(77,159,255,0.03) 0%, transparent 60%);
}
.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.12;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.auth-logo {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}
.auth-logo span { color: var(--accent); }
.auth-tagline {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.auth-title { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }

.input-group-custom { position: relative; margin-bottom: 18px; }
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  z-index: 1;
}
.input-with-icon { padding-left: 44px !important; }

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  z-index: 1;
  transition: var(--transition);
  background: none;
  border: none;
}
.toggle-password:hover { color: var(--accent); }

.form-error {
  color: var(--accent-red);
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.auth-footer-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 24px;
}

/* =============================================
   DASHBOARD STYLES
   ============================================= */
#app-page {
  min-height: 100vh;
  background: var(--bg-base);
}
#app-page.active { display: flex; }

/* ── Sidebar ── */
.sidebar {
  width: 250px;
  min-height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 500;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo { font-size: 20px; font-weight: 800; }
.sidebar-logo span { color: var(--accent); }

.sidebar-user {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent-muted);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}
.sidebar-username { font-size: 14px; font-weight: 700; }
.sidebar-status {
  font-size: 11px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
}
.sidebar-status::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 12px 10px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 2px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.sidebar-link:hover {
  background: var(--bg-card-alt);
  color: var(--text-primary);
}
.sidebar-link.active {
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid rgba(0,230,118,0.2);
}
.sidebar-link .nav-icon { font-size: 17px; flex-shrink: 0; width: 20px; text-align: center; }
.sidebar-link .nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

.sidebar-bottom {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

/* ── Main Content ── */
.main-content {
  margin-left: 250px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Top Navbar ── */
.top-navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 400;
}

.navbar-left { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle {
  display: none;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 18px;
  transition: var(--transition);
}
.sidebar-toggle:hover { border-color: var(--accent); color: var(--accent); }

.page-breadcrumb { font-size: 13px; color: var(--text-muted); }
.page-breadcrumb strong { color: var(--text-primary); font-weight: 600; }

.navbar-right { display: flex; align-items: center; gap: 16px; }

.balance-chip {
  background: var(--accent-muted);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.balance-chip-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.balance-chip-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
}

.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.notif-btn:hover { border-color: var(--accent); color: var(--accent); }
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  transition: var(--transition);
}
.user-chip:hover { border-color: var(--accent); }
.user-chip-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-muted);
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}
.user-chip-name { font-size: 13px; font-weight: 600; }

/* ── Dashboard Pages ── */
.app-inner { padding: 28px; flex: 1; }
/* .dash-section { display: none; } */
.dash-section.active { display: block; }

/* ── Dashboard Home ── */
.welcome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.welcome-title { font-size: 24px; font-weight: 800; }
.welcome-title span { color: var(--accent); }
.welcome-date { font-size: 13px; color: var(--text-muted); }

.balance-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 28px; }

.balance-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.balance-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); }
.balance-card-accent { border-left: 3px solid var(--accent); }
.balance-card-red { border-left: 3px solid var(--accent-red); }
.balance-card-yellow { border-left: 3px solid var(--accent-yellow); }
.balance-card-blue { border-left: 3px solid var(--accent-blue); }

.balance-card-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.balance-card-value {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Space Mono', monospace;
  margin-bottom: 4px;
}
.balance-card-accent .balance-card-value { color: var(--accent); }
.balance-card-red .balance-card-value { color: var(--accent-red); }
.balance-card-yellow .balance-card-value { color: var(--accent-yellow); }
.balance-card-blue .balance-card-value { color: var(--accent-blue); }

.balance-card-change { font-size: 12px; color: var(--text-muted); }
.balance-card-icon {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 28px;
  opacity: 0.15;
}

.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  border: none;
}
.qa-deposit { background: var(--accent); color: #000; }
.qa-deposit:hover { background: var(--accent-dim); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,230,118,0.25); }
.qa-withdraw { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); }
.qa-withdraw:hover { border-color: var(--accent-red); color: var(--accent-red); transform: translateY(-2px); }
.qa-tasks { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); }
.qa-tasks:hover { border-color: var(--accent-blue); color: var(--accent-blue); transform: translateY(-2px); }

.dash-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }

.recent-activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header-custom {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header-custom h5 { font-size: 15px; font-weight: 700; margin: 0; }
.card-header-custom a { font-size: 13px; color: var(--accent); }

.activity-item {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg-card-alt); }

.activity-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.activity-icon-green { background: var(--accent-muted); }
.activity-icon-red { background: rgba(255,77,109,0.12); }
.activity-icon-blue { background: rgba(77,159,255,0.12); }
.activity-icon-yellow { background: rgba(255,209,102,0.12); }

.activity-title { font-size: 14px; font-weight: 600; }
.activity-time { font-size: 12px; color: var(--text-muted); }
.activity-amount { margin-left: auto; font-size: 15px; font-weight: 700; font-family: 'Space Mono', monospace; white-space: nowrap; }
.activity-amount.positive { color: var(--accent); }
.activity-amount.negative { color: var(--accent-red); }
.activity-amount.pending { color: var(--accent-yellow); }

.progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.progress-item { margin-bottom: 20px; }
.progress-item:last-child { margin-bottom: 0; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.progress-label { font-size: 13px; font-weight: 600; }
.progress-val { font-size: 13px; color: var(--text-muted); font-family: 'Space Mono', monospace; }

/* ── Task Page ── */
.task-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.task-filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}
.task-filter-btn.active, .task-filter-btn:hover {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
}

.tasks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.task-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.task-card-header {
  padding: 18px 18px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.task-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.task-card-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.task-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.task-card-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.task-reward {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
}
.task-reward small { font-size: 12px; color: var(--text-muted); font-family: 'Poppins', sans-serif; font-weight: 400; }

.btn-start-task {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}
.btn-start-task:hover { background: var(--accent-dim); transform: scale(1.03); }
.btn-start-task:disabled { background: var(--bg-card-alt); color: var(--text-muted); cursor: default; transform: none; }
.btn-start-task.completed {
  background: var(--bg-card-alt);
  color: var(--accent);
  border: 1px solid var(--accent);
  cursor: default;
}

/* Task Modal */
.task-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11,11,16,0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.task-modal-overlay.open { display: flex; }

.task-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh; /* Prevent modal from exceeding viewport */
  overflow-y: auto; /* Enable scrolling */
}

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  transition: var(--transition);
}
.modal-close-btn:hover { border-color: var(--accent-red); color: var(--accent-red); }

.task-timer {
  background: var(--bg-base);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}
.task-timer-value {
  font-size: 52px;
  font-weight: 900;
  font-family: 'Space Mono', monospace;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.task-timer-label { font-size: 13px; color: var(--text-muted); }

/* ── Deposit Page ── */
.deposit-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
}
.deposit-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  text-align: center;
}
.deposit-tab.active {
  background: var(--accent);
  color: #000;
}

.deposit-content { display: none; }
.deposit-content.active { display: block; }

.wallet-address-box {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  word-break: break-all;
}
.wallet-address-text {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
}

.copy-btn {
  background: var(--accent-muted);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--accent); color: #000; }

.instruction-list { list-style: none; }
.instruction-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}
.instruction-list li:last-child { border-bottom: none; }
.instruction-list .step-num {
  width: 24px; height: 24px;
  background: var(--accent-muted);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-base);
}
.upload-area:hover { border-color: var(--accent); background: var(--accent-muted); }
.upload-icon { font-size: 36px; margin-bottom: 10px; color: var(--text-muted); }

/* ── Withdrawal Page ── */
.withdrawal-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.method-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.method-card.selected, .method-card:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}
.method-card .method-icon { font-size: 28px; margin-bottom: 8px; }
.method-card .method-name { font-size: 14px; font-weight: 600; }
.method-card .method-fee { font-size: 11px; color: var(--text-muted); }

/* ── Transaction History ── */
.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}
.filter-tab.active { background: var(--accent); border-color: var(--accent); color: #000; }
.filter-tab:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

.table-custom {
  width: 100%;
  border-collapse: collapse;
}
.table-custom th {
  padding: 12px 16px;
  background: var(--bg-base);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table-custom td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}
.table-custom tr:last-child td { border-bottom: none; }
.table-custom tr:hover td { background: var(--bg-card-alt); }
.table-custom .amount-positive { color: var(--accent); font-weight: 700; font-family: 'Space Mono', monospace; }
.table-custom .amount-negative { color: var(--accent-red); font-weight: 700; font-family: 'Space Mono', monospace; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.status-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-success { background: var(--accent-muted); color: var(--accent); }
.status-pending { background: rgba(255,209,102,0.12); color: var(--accent-yellow); }
.status-failed { background: rgba(255,77,109,0.12); color: var(--accent-red); }

/* ── Referral Page ── */
.referral-link-box {
  background: var(--bg-base);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.referral-link-text {
  flex: 1;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  word-break: break-all;
}

.referral-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 28px; }
.referral-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
}
.referral-stat-val { font-size: 30px; font-weight: 800; color: var(--accent); font-family: 'Space Mono', monospace; }
.referral-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Profile Page ── */
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.profile-avatar-large {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent-muted);
  border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 52px; margin-bottom: 16px; opacity: 0.5; }
.empty-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-secondary); }
.empty-desc { font-size: 14px; }





/* =============================================
   VIP LEVELS PAGE
   ============================================= */

/* VIP colour tokens */
:root {
  --vip-d1:      #8b9dc3;   /* silver-blue  – Starter   */
  --vip-d2:      #6aa3e0;   /* blue         – Bronze    */
  --vip-d3:      #4d9fff;   /* bright blue  – Silver    */
  --vip-x1:      #b47aff;   /* purple       – Gold      */
  --vip-x2:      #e05fff;   /* violet       – Platinum  */
  --vip-x3:      #ff6fcf;   /* pink         – Diamond   */
  --vip-t1:      #ffd166;   /* yellow-gold  – Elite     */
  --vip-t2:      #ffab40;   /* orange-gold  – Master    */
  --vip-t3:      #ff6b35;   /* deep orange  – Legend    */
  --vip-gold:    #ffd166;
}

/* ── Page Header ── */
.vip-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.vip-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vip-crown-icon {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255,209,102,0.5));
}
.vip-current-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--vip-gold);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  box-shadow: 0 0 16px rgba(255,209,102,0.1);
}
.vip-current-tier-icon { font-size: 22px; }
.vip-current-tier-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--vip-gold);
}

/* ── Level Track ── */
.vip-track-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px 22px;
  margin-bottom: 28px;
  overflow: hidden;
}

.vip-track-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.vip-track-label-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 4px 2px;
  border-radius: var(--radius-sm);
}
.vip-track-label-item:hover { color: var(--text-primary); }
.vip-track-label-item.active { color: var(--text-primary); }
.vip-track-label-item.owned { opacity: 0.55; }
.vip-track-label-item.selected .vip-label-text {
  background: white;
  color: var(--bg-base);
  border-radius: 4px;
  padding: 1px 5px;
}

.vip-track-bar {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.vip-track-line {
  position: absolute;
  left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  z-index: 0;
}
.vip-track-progress {
  position: absolute;
  left: 0;
  top: 50%; transform: translateY(-50%);
  height: 4px;
  background: var(--vip-gold);
  border-radius: 2px;
  z-index: 1;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(255,209,102,0.4);
}
.vip-track-dots {
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.vip-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
}
.vip-dot.owned {
  border-color: var(--vip-gold);
}
.vip-dot.selected {
  width: 26px; height: 26px;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 3px currentColor, 0 0 16px currentColor;
  transform: scale(1.15);
}
.vip-dot:hover:not(.owned) {
  transform: scale(1.2);
}
.vip-dot-tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%; transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.vip-dot:hover .vip-dot-tooltip { opacity: 1; }

.vip-track-price {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}

/* ── Benefits Panel ── */
.vip-benefits-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vip-benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Header strip with level colour */
.vip-benefit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.vip-benefit-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tables inside benefit cards */
.vip-table {
  width: 100%;
  border-collapse: collapse;
}
.vip-table th {
  padding: 10px 16px;
  background: var(--bg-base);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.vip-table th:first-child { text-align: left; }
.vip-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
.vip-table td:first-child { text-align: left; font-weight: 500; color: var(--text-primary); }
.vip-table tr:last-child td { border-bottom: none; }
.vip-table .td-accent { font-weight: 700; font-family: 'Space Mono', monospace; }
.vip-table .td-rate {
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  color: var(--accent);
}

/* Upgrade CTA card */
.vip-upgrade-cta-card {
  background: var(--bg-card);
  border: 2px solid currentColor;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.vip-upgrade-cta-left { display: flex; align-items: center; gap: 16px; }
.vip-upgrade-cta-icon {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255,209,102,0.4));
}
.vip-upgrade-cta-title { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.vip-upgrade-cta-desc { font-size: 13px; color: var(--text-secondary); }
.btn-vip-upgrade {
  padding: 13px 32px;
  border-radius: var(--radius-md);
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  background: var(--vip-gold);
  color: #000;
}
.btn-vip-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,209,102,0.3);
}
.btn-vip-owned {
  background: var(--bg-card-alt);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: default;
}

/* Perks row */
.vip-perks-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.vip-perk-chip {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vip-perk-chip span { font-size: 14px; }

/* ── Upgrade Confirmation Box ── */
.vip-upgrade-box {
  position: fixed;
  inset: 0;
  background: rgba(11,11,16,0.88);
  backdrop-filter: blur(6px);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.vip-upgrade-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.vip-upgrade-icon {
  font-size: 52px;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(255,209,102,0.5));
}
.vip-upgrade-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.vip-upgrade-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--vip-gold);
  font-family: 'Space Mono', monospace;
}

/* Level tier colour helpers applied via JS inline style */
.vip-tier-D { color: var(--vip-d3); }
.vip-tier-X { color: var(--vip-x2); }
.vip-tier-T { color: var(--vip-t1); }

/* responsive */
@media (max-width: 900px) {
  .vip-benefits-panel { grid-template-columns: 1fr; }
  .vip-track-wrap { padding: 22px 16px 16px; }
}
@media (max-width: 600px) {
  .vip-track-labels { display: none; }  /* labels too tight – rely on dots only */
  .vip-page-header { flex-direction: column; align-items: flex-start; }
}



/* =============================================
   BOTTOM MOBILE NAV
   ============================================= */

.bottom-nav {
  display: none; /* shown only on mobile via media query */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 600;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  /* safe area for notched phones */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
}

.bottom-nav-inner {
  display: flex;
  align-items: stretch;
  height: 62px;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Poppins', sans-serif;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.bottom-nav-item:hover {
  color: var(--text-secondary);
}

/* Active state */
.bottom-nav-item.active {
  color: var(--accent);
}

/* The pill indicator above the active item */
.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}

/* Icon wrapper — highlights on active */
.bottom-nav-icon {
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 20px;
  transition: var(--transition);
  position: relative;
}

.bottom-nav-item.active .bottom-nav-icon {
  background: var(--accent-muted);
}

.bottom-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
}

/* Badge on bottom nav icon */
.bottom-nav-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 16px; height: 16px;
  background: var(--accent);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  color: #000;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* "More" sheet that slides up for extra nav items */
.bottom-nav-more-sheet {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 700;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px 20px calc(70px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
  animation: slideUp 0.25s ease;
}
.bottom-nav-more-sheet.open { display: block; }

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.more-sheet-handle {
  width: 36px; height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.more-sheet-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.more-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.more-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  color: var(--text-secondary);
  -webkit-tap-highlight-color: transparent;
}
.more-sheet-item:hover,
.more-sheet-item.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}
.more-sheet-item.active { color: var(--accent); }

.more-sheet-item-icon { font-size: 24px; }
.more-sheet-item-label { font-size: 12px; font-weight: 600; }

.more-sheet-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11,11,16,0.6);
  z-index: 699;
}
.more-sheet-overlay.open { display: block; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* Tablet: slide-in sidebar still (no bottom nav yet) */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  /* sidebar-toggle hidden — bottom nav used instead on mobile */

  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(11,11,16,0.7);
    z-index: 499;
  }
  .sidebar-overlay.open { display: block; }
}

@media (max-width: 768px) {
  .landing-nav .nav-links { display: none; }
  .landing-nav .nav-auth-btns { display: none; }
  .nav-hamburger { display: flex; }

  .hero-section { padding-top: 100px; }
  .hero-visual { display: none; }
  .section-pad { padding: 70px 0; }
  .auth-card { padding: 32px 24px; }

  /* Dashboard adjustments for bottom nav */
  .app-inner {
    padding: 16px 14px;
    /* extra bottom padding so content doesn't hide behind bottom nav */
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px) + 16px);
  }
  .top-navbar { padding: 11px 14px; }
  .balance-chip-label { display: none; }
  .user-chip-name { display: none; }

  /* Hide desktop sidebar toggle — bottom nav replaces it */
  .sidebar-toggle { display: none !important; }

  /* Show bottom nav */
  .bottom-nav { display: block; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -1px; }
  .balance-cards { grid-template-columns: 1fr 1fr; }
  .tasks-grid { grid-template-columns: 1fr; }
  .quick-actions { flex-direction: row; }
  .quick-action-btn { flex: 1; justify-content: center; }
  .bottom-nav-label { font-size: 9px; }
}