/* ============================================================
   CryptoVest HYIP — Premium Dark Investment Platform
   © 2026 CryptoVest. All rights reserved.
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0D1117;
  --bg-secondary: #161B22;
  --bg-card: #1C2128;
  --bg-card-hover: #21262D;
  --bg-input: #0D1117;
  --border: #30363D;
  --border-light: #21262D;
  --cyan: #06B6D4;
  --cyan-light: #22D3EE;
  --cyan-dark: #0891B2;
  --cyan-glow: rgba(6, 182, 212, 0.15);
  --gold: #D4AF37;
  --gold-light: #E5C76B;
  --gold-dark: #B8960C;
  --gold-glow: rgba(212, 175, 55, 0.15);
  --green: #10B981;
  --green-bg: rgba(16, 185, 129, 0.12);
  --red: #EF4444;
  --red-bg: rgba(239, 68, 68, 0.12);
  --yellow: #F59E0B;
  --yellow-bg: rgba(245, 158, 11, 0.12);
  --blue: #3B82F6;
  --blue-bg: rgba(59, 130, 246, 0.12);
  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --text-muted: #6E7681;
  --font-heading: 'Urbanist', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cyan-light); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: var(--font-body);
  border: none;
  outline: none;
  background: none;
  color: var(--text-primary);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

/* ---------- Demo Banner ---------- */
.demo-banner {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: #0D1117;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 10000;
}
.demo-banner a {
  color: #0D1117;
  text-decoration: underline;
  font-weight: 800;
}
.demo-banner a:hover { opacity: 0.8; }

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn i { font-size: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(6,182,212,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(6,182,212,0.45);
  color: #fff;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0D1117;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212,175,55,0.45);
  color: #0D1117;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-gold {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #0D1117;
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-gold { background: var(--gold-glow); color: var(--gold); }
.badge-cyan { background: var(--cyan-glow); color: var(--cyan); }

/* ---------- Section Titles ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-label i { font-size: 16px; }
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-title span { color: var(--cyan); }
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
}
.text-center { text-align: center; }

/* ============================================================
   LANDING PAGE — TOP NAVIGATION
   ============================================================ */

/* ---------- Top Navbar ---------- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  transition: var(--transition);
}
.demo-banner ~ .top-nav { top: 37px; }
.top-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}
.nav-logo:hover { color: var(--text-primary); }
.nav-logo i {
  font-size: 28px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(6,182,212,0.4));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-actions .btn { padding: 10px 22px; }

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links, .nav-actions {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
  }
  .nav-links.open, .nav-actions.open { display: flex; }
  .nav-actions.open { border-top: 1px solid var(--border); padding-top: 16px; }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0.6) 0%, var(--bg-primary) 100%);
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: 0;
}
.hero-glow-cyan {
  background: var(--cyan);
  top: -200px;
  right: -100px;
}
.hero-glow-gold {
  background: var(--gold);
  bottom: -200px;
  left: -100px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-glow);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  animation: pulse-gold 2s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.2); }
  50% { box-shadow: 0 0 0 12px rgba(212,175,55,0); }
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 20px;
}
.hero-profit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 48px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 32px;
  text-shadow: 0 0 40px rgba(212,175,55,0.3);
}
.hero-profit-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 100px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-secondary);
}
.section-border-top {
  border-top: 1px solid var(--border);
}

/* ---------- Investment Plan Cards ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.plan-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  overflow: hidden;
  transition: var(--transition);
}
.plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--gold), var(--cyan));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gradient-rotate 4s linear infinite;
  opacity: 0.5;
  transition: var(--transition);
}
.plan-card:hover::before { opacity: 1; }
.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.plan-card.featured {
  border: none;
}
.plan-card.featured::before {
  opacity: 1;
  animation: gradient-rotate 2s linear infinite;
}
.plan-popular {
  position: absolute;
  top: 16px;
  right: -28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0D1117;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 36px;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.plan-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.plan-icon-cyan { background: var(--cyan-glow); color: var(--cyan); }
.plan-icon-gold { background: var(--gold-glow); color: var(--gold); }
.plan-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.plan-rate {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin: 16px 0 4px;
}
.plan-rate span { font-size: 16px; color: var(--text-secondary); font-weight: 500; }
.plan-rate-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.plan-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.plan-detail {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.plan-detail-label { color: var(--text-secondary); }
.plan-detail-value { font-weight: 600; }
.plan-return {
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 20px;
}

/* ---------- How It Works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 8px, transparent 8px, transparent 16px);
}
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
  transition: var(--transition);
}
.step-card:hover .step-number {
  border-color: var(--cyan);
  background: var(--cyan-glow);
  transform: scale(1.1);
}
.step-number i { font-size: 32px; }
.step-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid::before { display: none; }
}

/* ---------- Stats Ticker Strip ---------- */
.stats-strip {
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(212,175,55,0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-strip-inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.stat-item {
  text-align: center;
}
.stat-item-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Recent Activity — Auto Scroll Tables ---------- */
.activity-section { overflow: hidden; }
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .activity-grid { grid-template-columns: 1fr; }
}
.activity-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.activity-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.activity-header h3 i { color: var(--cyan); font-size: 20px; }
.activity-header .live-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.activity-scroll {
  height: 320px;
  overflow: hidden;
  position: relative;
}
.activity-scroll-inner {
  animation: scroll-up 25s linear infinite;
}
.activity-scroll:hover .activity-scroll-inner {
  animation-play-state: paused;
}
@keyframes scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.activity-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
  align-items: center;
  padding: 14px 24px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.activity-row:hover { background: var(--bg-card-hover); }
.activity-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.activity-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--cyan);
}
.activity-amount { font-weight: 600; }
.activity-amount.deposit { color: var(--green); }
.activity-amount.withdraw { color: var(--cyan); }
.activity-crypto {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}
.activity-crypto .crypto-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.activity-time { color: var(--text-muted); font-size: 12px; text-align: right; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 2px;
}
.testimonial-quote {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.testimonial-name {
  font-weight: 600;
  font-size: 14px;
}
.testimonial-earned {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

/* ---------- Referral Teaser ---------- */
.referral-teaser {
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(212,175,55,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 48px;
}
.referral-teaser-content { flex: 1; }
.referral-teaser-content h3 {
  font-size: 28px;
  margin-bottom: 12px;
}
.referral-teaser-content h3 span { color: var(--gold); }
.referral-teaser-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.referral-teaser-stats {
  display: flex;
  gap: 32px;
  flex: 0 0 auto;
}
.referral-teaser-stat {
  text-align: center;
  padding: 20px 28px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.referral-teaser-stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
}
.referral-teaser-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .referral-teaser { flex-direction: column; padding: 36px; gap: 32px; }
  .referral-teaser-stats { flex-wrap: wrap; justify-content: center; }
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.active { border-color: var(--cyan); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  gap: 16px;
}
.faq-question:hover { color: var(--cyan); }
.faq-question i {
  font-size: 20px;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--cyan);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-payments {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-payment {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   DASHBOARD PAGES — SIDEBAR LAYOUT
   ============================================================ */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow-y: auto;
}
.demo-banner ~ .app-layout .sidebar { top: 37px; }
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo:hover { color: var(--text-primary); }
.sidebar-logo i {
  font-size: 24px;
  color: var(--cyan);
}
.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.sidebar-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.sidebar-link.active {
  background: var(--cyan-glow);
  color: var(--cyan);
  font-weight: 600;
}
.sidebar-link i { font-size: 20px; }
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
}
.sidebar-user-info { flex: 1; }
.sidebar-user-name {
  font-size: 14px;
  font-weight: 600;
}
.sidebar-user-email {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  color: var(--text-primary);
}
.demo-banner ~ .app-layout .sidebar-toggle { top: 53px; }

@media (max-width: 900px) {
  .sidebar-toggle { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    z-index: 1000;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; }
}

/* ---------- Main Content ---------- */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
  min-height: 100vh;
}
.demo-banner ~ .app-layout .main-content { padding-top: 69px; }
.page-header {
  margin-bottom: 32px;
}
.page-header h1 {
  font-size: 28px;
  margin-bottom: 4px;
}
.page-header p {
  color: var(--text-secondary);
  font-size: 14px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { color: var(--text-muted); }

/* ---------- Dashboard Cards ---------- */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.dash-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.dash-card-gold { border-left: 3px solid var(--gold); }
.dash-card-cyan { border-left: 3px solid var(--cyan); }
.dash-card-green { border-left: 3px solid var(--green); }
.dash-card-blue { border-left: 3px solid var(--blue); }
.dash-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.dash-card-icon-gold { background: var(--gold-glow); color: var(--gold); }
.dash-card-icon-cyan { background: var(--cyan-glow); color: var(--cyan); }
.dash-card-icon-green { background: var(--green-bg); color: var(--green); }
.dash-card-icon-blue { background: var(--blue-bg); color: var(--blue); }
.dash-card-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.dash-card-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
}
.dash-card-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}
.dash-card-change.up { color: var(--green); }
.dash-card-change.down { color: var(--red); }

/* ---------- Tables ---------- */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.table-header h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-header h3 i { color: var(--cyan); font-size: 20px; }
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  padding: 14px 24px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 14px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}
tbody tr { transition: var(--transition); }
tbody tr:hover { background: var(--bg-card-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Progress Bar ---------- */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-primary);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: width 1s ease;
}

/* ---------- Chart Container ---------- */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.chart-container h3 {
  font-size: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chart-container h3 i { color: var(--cyan); font-size: 20px; }
.chart-wrapper {
  position: relative;
  height: 300px;
}

/* ---------- Quick Actions ---------- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.quick-action {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.quick-action:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.quick-action i {
  font-size: 28px;
  color: var(--cyan);
  margin-bottom: 12px;
}
.quick-action h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.quick-action p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238B949E'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.input-group {
  display: flex;
  gap: 0;
}
.input-group .form-input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.input-group .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  white-space: nowrap;
}

/* ---------- Form Card ---------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.form-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-card h3 i { color: var(--cyan); font-size: 20px; }
.form-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ---------- Toggle Switch ---------- */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-info h4 { font-size: 14px; margin-bottom: 2px; }
.toggle-info p { font-size: 12px; color: var(--text-muted); }
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  cursor: pointer;
}
.toggle-switch input { opacity: 0; position: absolute; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 13px;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--cyan); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ---------- Invest Page — Plan Cards Detailed ---------- */
.plans-detailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.plan-card-detailed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.plan-card-detailed::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--cyan), var(--gold), var(--cyan));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gradient-rotate 4s linear infinite;
  opacity: 0;
  transition: var(--transition);
}
.plan-card-detailed:hover::before { opacity: 1; }
.plan-card-detailed:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Calculator ---------- */
.calculator {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}
.calculator h3 {
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.calculator h3 i { color: var(--gold); font-size: 22px; }
.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.calc-result {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}
.calc-result-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.calc-result-value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--cyan);
}
.calc-result-value.gold { color: var(--gold); }

/* ---------- Withdraw Page ---------- */
.balance-display {
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(212,175,55,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-bottom: 32px;
}
.balance-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.balance-amount {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.balance-eye {
  cursor: pointer;
  font-size: 24px;
  color: var(--text-muted);
  -webkit-text-fill-color: initial;
  transition: var(--transition);
}
.balance-eye:hover { color: var(--cyan); }
.withdraw-limits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.withdraw-limit {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.withdraw-limit-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.withdraw-limit-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Referral Page ---------- */
.referral-link-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}
.referral-link-box h3 {
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.referral-link-box h3 i { color: var(--gold); font-size: 22px; }
.referral-link-input {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
}
.referral-link-input input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 500;
}
.referral-link-input .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.qr-placeholder {
  width: 160px;
  height: 160px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  flex-direction: column;
  gap: 8px;
}
.qr-placeholder i { font-size: 40px; color: var(--border); }
.commission-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}
.commission-tiers::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  right: 20%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}
.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.tier-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.tier-level {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.tier-rate {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--cyan);
}
.tier-rate span { font-size: 18px; color: var(--text-secondary); }
.tier-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.marketing-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.banner-preview {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
}
.banner-preview:hover {
  border-color: var(--cyan);
}
.banner-preview h4 {
  font-size: 16px;
  margin-bottom: 8px;
}
.banner-preview h4 span { color: var(--cyan); }
.banner-preview p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.banner-preview .btn { padding: 6px 14px; font-size: 12px; }

/* ---------- Profile Page ---------- */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-email {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.profile-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.profile-meta-item {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-meta-item i { color: var(--cyan); }
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .settings-grid { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; text-align: center; }
  .profile-meta { justify-content: center; }
}

/* ---------- KYC Section ---------- */
.kyc-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.kyc-status i { font-size: 24px; }
.kyc-status.pending i { color: var(--yellow); }
.kyc-status.verified i { color: var(--green); }
.kyc-status.not-submitted i { color: var(--text-muted); }
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.upload-area:hover {
  border-color: var(--cyan);
  background: var(--cyan-glow);
}
.upload-area i {
  font-size: 40px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.upload-area p {
  font-size: 14px;
  color: var(--text-secondary);
}
.upload-area span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Wallet Addresses ---------- */
.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wallet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.wallet-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wallet-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.wallet-item-icon.btc { background: rgba(247,147,26,0.15); color: #F7931A; }
.wallet-item-icon.eth { background: rgba(98,126,234,0.15); color: #627EEA; }
.wallet-item-icon.usdt { background: rgba(38,161,123,0.15); color: #26A17B; }
.wallet-item-name {
  font-size: 14px;
  font-weight: 600;
}
.wallet-item-address {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}
.wallet-item-actions {
  display: flex;
  gap: 8px;
}
.wallet-item-actions button {
  padding: 6px 10px;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}
.wallet-item-actions button:hover { color: var(--cyan); background: var(--cyan-glow); }
.wallet-item-actions button.delete:hover { color: var(--red); background: var(--red-bg); }

/* ---------- Notification Preferences ---------- */
.notification-prefs {
  display: flex;
  flex-direction: column;
}

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); }
.modal h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.modal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.two-fa-code {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.two-fa-code input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}
.two-fa-code input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

/* ---------- Payment Method Selector ---------- */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.payment-method {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.payment-method:hover { border-color: var(--cyan); }
.payment-method.selected {
  border-color: var(--cyan);
  background: var(--cyan-glow);
}
.payment-method i {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.payment-method.selected i { color: var(--cyan); }
.payment-method span {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.wallet-address-display {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
  display: none;
}
.wallet-address-display.visible { display: block; }
.wallet-address-display label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}
.wallet-address-display code {
  font-size: 13px;
  color: var(--cyan);
  word-break: break-all;
}

/* ---------- Two-column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .withdraw-limits { grid-template-columns: 1fr; }
  .commission-tiers { grid-template-columns: 1fr; }
  .commission-tiers::before { display: none; }
  .payment-methods { grid-template-columns: repeat(2, 1fr); }
  .marketing-banners { grid-template-columns: 1fr; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-animation { animation: float 3s ease-in-out infinite; }

/* Shimmer effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---------- Transaction Hash ---------- */
.tx-hash {
  font-family: monospace;
  font-size: 12px;
  color: var(--cyan);
  cursor: pointer;
}
.tx-hash:hover { text-decoration: underline; }

/* ---------- Status dots for tables ---------- */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.status-dot.green { background: var(--green); }
.status-dot.yellow { background: var(--yellow); }
.status-dot.blue { background: var(--blue); }
.status-dot.red { background: var(--red); }

/* ---------- Responsive Utilities ---------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 28px; }
  .hero-profit { font-size: 32px; }
  .section { padding: 60px 0; }
  .plans-grid { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .main-content { padding: 16px; }
  .dash-cards { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .profile-card { padding: 24px; }
}
