/* ==========================================================================
   Universe Profit Mining - Corporate White Theme Design System
   "Mine the Future, Earn Today" — Apple.com meets Coinbase Pro
   ========================================================================== */

:root {
  /* Color System */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F9FC;
  --bg-card: #FFFFFF;
  --bg-dark: #0D1117; /* Dark hero section & footer ONLY */
  --bg-dark-card: #161B27;
  
  --blue-primary: #0057FF;
  --blue-light: #EEF3FF;
  --blue-dark: #003DB3;
  --blue-gradient: linear-gradient(135deg, #0057FF 0%, #003DB3 100%);
  
  --gold: #F5A623;
  --gold-light: #FFF8ED;
  --gold-badge: #FFF3D6;
  --gold-text: #B45309;
  
  --text-primary: #0D1117;
  --text-secondary: #5A6478;
  --text-muted: #9AA3B2;
  --text-dark-hero: #FFFFFF;
  --text-dark-muted: #9AA3B2;
  
  --border: #E4E9F0;
  --border-dark: #1F293D;
  
  --success: #12B76A;
  --success-bg: #ECFDF5;
  --danger: #F04438;
  --danger-bg: #FEF3F2;
  --warning: #F79009;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-blue: 0 8px 30px rgba(0,87,255,0.25);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-full: 100px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  min-width: 1280px;
  overflow-x: auto;
  -webkit-font-smoothing: antialiased;
}

.font-mono {
  font-family: var(--font-mono);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--blue-primary);
  border-radius: 10px;
}

/* Layout container */
.container {
  width: 1240px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BUTTONS, INPUTS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,87,255,0.35);
}

.btn-ghost-blue {
  background: transparent;
  border: 1.5px solid var(--blue-primary);
  color: var(--blue-primary);
}
.btn-ghost-blue:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

.btn-ghost-white {
  background: transparent;
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
}
.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-white {
  background: #FFFFFF;
  color: var(--blue-primary);
  font-weight: 700;
}
.btn-white:hover {
  background: #F0F4FF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: var(--danger);
  color: #FFFFFF;
}
.btn-danger:hover {
  background: #D92D20;
}

.btn-full {
  width: 100%;
}

/* Inputs */
.form-group {
  margin-bottom: 18px;
  text-align: left;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(0,87,255,0.1);
}
.form-control::placeholder {
  color: var(--text-muted);
}

.input-prefix-group {
  display: flex;
  gap: 0;
  width: 100%;
}
.input-prefix-badge {
  background: var(--blue-light);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 12px 16px;
  color: var(--blue-primary);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
}
.input-prefix-group .form-control {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.input-with-icon {
  position: relative;
  width: 100%;
}
.input-with-icon .form-control {
  padding-right: 44px;
}
.input-icon-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.input-icon-btn:hover {
  color: var(--blue-primary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}
.badge-blue {
  background: var(--blue-light);
  color: var(--blue-primary);
}
.badge-gold {
  background: var(--gold-badge);
  color: var(--gold-text);
}
.badge-green {
  background: var(--success-bg);
  color: var(--success);
}
.badge-red {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Green pulse dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(18, 183, 106, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ==========================================================================
   LANDING PAGE COMPONENTS
   ========================================================================== */

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--blue-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0,87,255,0.3);
}
.brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.brand-text span {
  color: var(--blue-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--blue-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: right 0.3s ease;
}
.mobile-drawer.open {
  right: 0;
}
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

/* Hero Section (Dark #0D1117 ONLY) */
.hero-section {
  background-color: var(--bg-dark);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

/* Grid & Particles */
.hero-circuit-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(26, 34, 53, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 34, 53, 0.4) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-glow-orb {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 87, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  margin: 20px 0;
  letter-spacing: -1.5px;
}
.hero-content p {
  font-size: 18px;
  color: var(--text-dark-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 40px;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
}
.hero-stat-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
}
.hero-stat-lbl {
  font-size: 13px;
  color: var(--text-dark-muted);
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-cta-row .btn {
  height: 54px;
  font-size: 16px;
}

/* Floating Dashboard Card Mockup */
.hero-dashboard-mockup {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  animation: floatCard 4s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(0,87,255,0.15);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
}
.mockup-title {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
}

.mockup-hashrate {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.mockup-hashrate-lbl {
  font-size: 13px;
  color: var(--text-dark-muted);
  margin-bottom: 20px;
}

.mockup-chart-wrap {
  height: 90px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-dark);
}
.mockup-chart-bar {
  flex: 1;
  background: rgba(0, 87, 255, 0.2);
  border-radius: 4px;
  transition: height 0.5s ease;
  position: relative;
}
.mockup-chart-bar.active {
  background: var(--blue-primary);
  box-shadow: 0 0 12px rgba(0,87,255,0.6);
}

.mockup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mockup-foot-col {
  display: flex;
  flex-direction: column;
}
.mockup-foot-lbl {
  font-size: 12px;
  color: var(--text-dark-muted);
}
.mockup-foot-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--success);
}

/* Floating Notification Badge */
.hero-notif-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #FFFFFF;
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  animation: notifPop 4s ease infinite;
}

@keyframes notifPop {
  0%, 90% { opacity: 1; transform: translateY(0); }
  95% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Live Ticker Bar */
.ticker-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: marquee 35s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 40px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section Common Styling */
.section {
  padding: 100px 0;
}
.section-bg {
  background-color: var(--bg-secondary);
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}
.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Mining Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card-lg {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
}
.stat-card-lg:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 800;
  color: var(--blue-primary);
  margin-bottom: 8px;
  line-height: 1;
}
.stat-lbl {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* How It Works Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 70px;
  left: 15%;
  right: 15%;
  height: 2px;
  border-top: 2px dashed var(--border);
  z-index: 1;
}

.step-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 40px 30px;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.step-icon-circle {
  width: 72px;
  height: 72px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  margin: 0 auto 24px;
}
.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Mining Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan-col-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.plan-col-card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.plan-header {
  background: var(--blue-light);
  padding: 24px;
  text-align: center;
  position: relative;
}
.plan-header.header-pro {
  background: var(--blue-gradient);
  color: #FFFFFF;
}
.plan-header.header-vip {
  background: var(--gold-light);
  border-bottom: 1px solid rgba(245,166,35,0.2);
}

.plan-header.header-pro .plan-title,
.plan-header.header-pro .plan-price {
  color: #FFFFFF;
}

.plan-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.plan-price {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--blue-primary);
}

.plan-body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.plan-meta {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.plan-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}
.plan-meta-lbl {
  color: var(--text-secondary);
}
.plan-meta-val {
  font-weight: 600;
  color: var(--text-primary);
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.plan-features li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-features li svg {
  color: var(--success);
  flex-shrink: 0;
}

.plan-col-card.highlighted {
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
  border: 2px solid var(--blue-primary);
}

/* Live Earnings Activity Feed */
.live-feed-wrap {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.live-feed-header {
  padding: 20px 28px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.feed-table {
  width: 100%;
  border-collapse: collapse;
}
.feed-table th {
  text-align: left;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.feed-table td {
  padding: 18px 28px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.feed-table tr:nth-child(even) {
  background-color: var(--bg-secondary);
}
.feed-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--success);
}
.feed-row-new {
  animation: feedFadeIn 0.8s ease;
}

@keyframes feedFadeIn {
  0% { opacity: 0; transform: translateY(-10px); background-color: var(--blue-light); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Why Universe Profit Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
}
.feature-icon-box {
  width: 56px;
  height: 56px;
  background: var(--blue-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Referral Program Split Layout */
.referral-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ref-stats-list {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}
.ref-stat-box {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}
.ref-stat-pct {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--blue-primary);
}

/* Interactive SVG Referral Tree */
.tree-visual-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stars-row {
  color: #F59E0B;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.testi-quote {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testi-name {
  font-weight: 600;
  font-size: 14px;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--blue-primary);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

/* CTA Banner */
.cta-banner {
  background: var(--blue-gradient);
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  color: #FFFFFF;
  font-size: 44px;
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  max-width: 580px;
  margin: 0 auto 36px;
}
.cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Footer (Dark #0D1117) */
.footer {
  background: var(--bg-dark);
  color: var(--text-dark-muted);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand p {
  color: var(--text-dark-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  color: #FFFFFF;
  font-size: 16px;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--text-dark-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.footer-badges {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   AUTH MODAL & POPUP OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}
.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.modal-close:hover {
  color: var(--text-primary);
}

.auth-nav-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.auth-tab-btn {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.auth-tab-btn.active {
  color: var(--blue-primary);
  border-bottom-color: var(--blue-primary);
}

.captcha-box {
  background: var(--blue-light);
  border: 1.5px dashed var(--blue-primary);
  border-radius: var(--radius-sm);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--blue-primary);
}

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  transform: translateX(0);
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--blue-primary); }

/* ==========================================================================
   MOBILE APP STYLE (FOR LOGGED-IN PAGES)
   ========================================================================== */
.app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-secondary);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.08);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.user-id-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.page-content {
  padding: 16px 16px 100px;
}

.balance-card {
  background: var(--blue-gradient);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #FFFFFF;
  box-shadow: var(--shadow-blue);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.balance-card .balance-label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 6px;
}
.balance-card .balance-amount {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 800;
  color: #FFFFFF;
}
.balance-card .balance-sub {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}
.balance-card .balance-btns {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 8px 0 10px;
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-item.active {
  color: var(--blue-primary);
}
.nav-item svg {
  width: 22px;
  height: 22px;
}
.nav-item span {
  font-size: 11px;
  font-weight: 600;
}

/* ==========================================================================
   DESKTOP UNIFIED VIEW ACROSS DEVICES
   ========================================================================== */
.nav-links, .nav-actions {
  display: flex !important;
}
.hamburger {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
