/* =============================================================
   TronDrop – TRX Faucet · style.css
   Premium Dark Theme with TRON Red Aesthetics
   ============================================================= */

/* ========== CSS VARIABLES ========== */
:root {
  --red-primary:    #ff3333;
  --red-secondary:  #cc0000;
  --red-glow:       rgba(255, 50, 50, 0.35);
  --red-soft:       rgba(255, 50, 50, 0.12);

  --bg-void:        #050507;
  --bg-dark:        #0a0a0f;
  --bg-card:        rgba(14, 14, 22, 0.85);
  --bg-card2:       rgba(20, 20, 32, 0.7);

  --glass-border:   rgba(255, 70, 70, 0.15);
  --glass-shadow:   0 8px 40px rgba(0, 0, 0, 0.6);

  --text-primary:   #f0f0f8;
  --text-secondary: #a0a0c0;
  --text-muted:     #5c5c7a;

  --green:          #4ade80;
  --gold:           #fbbf24;
  --blue-accent:    #60a5fa;

  --font-main:      'Outfit', sans-serif;
  --font-alt:       'Space Grotesk', sans-serif;

  --nav-h:          72px;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-xl:      32px;

  --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--bg-void) url('./assets/trx-bg.jpg') center/cover no-repeat fixed;
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-main); border: none; background: none; }
input { font-family: var(--font-main); }

/* ========== PARTICLE CANVAS ========== */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ========== GLASS CARDS ========== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,50,50,0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 50, 50, 0.1);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 5, 8, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(255, 50, 50, 0.6));
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.logo-accent { color: var(--red-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 50, 50, 0.1);
}
.nav-link.active { color: var(--red-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.trx-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 999px;
}
.price-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 1.5s infinite;
}
.price-change { color: var(--green); font-size: 0.75rem; }
.price-change.negative { color: #f87171; }

.btn-connect {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 16px var(--red-glow);
}
.btn-connect:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 50, 50, 0.55);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}
.hero-bg-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(220, 0, 0, 0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: slowPulse 4s ease-in-out infinite;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,50,50,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,50,50,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; gap: 28px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 50, 50, 0.1);
  border: 1px solid rgba(255, 50, 50, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #ff8888;
  width: fit-content;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-primary);
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-primary);
}
.gradient-text {
  background: linear-gradient(135deg, #ff6666 0%, #ff0000 50%, #cc0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 50, 50, 0.4));
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  width: fit-content;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { padding-right: 0; }
.hero-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red-primary);
  font-family: var(--font-alt);
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.08);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  transition: var(--transition);
  cursor: pointer;
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 30px var(--red-glow), 0 4px 16px rgba(0,0,0,0.3);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  border-radius: 999px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(255, 50, 50, 0.6), 0 6px 20px rgba(0,0,0,0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-large { padding: 18px 40px; font-size: 1.05rem; }

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
}

/* ========== TRX ORB ========== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.trx-orb-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trx-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 50, 50, 0.2);
  animation: orbRotate linear infinite;
}
.ring-1 { width: 100%; height: 100%; animation-duration: 12s; border-color: rgba(255,50,50,0.25); }
.ring-2 { width: 78%; height: 78%; animation-duration: 8s; animation-direction: reverse; border-style: dashed; }
.ring-3 { width: 56%; height: 56%; animation-duration: 5s; border-color: rgba(255,100,100,0.3); }

.trx-orb {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 40% 35%, rgba(255,80,80,0.15), rgba(180,0,0,0.08));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 60px rgba(220, 0, 0, 0.4),
    0 0 120px rgba(200, 0, 0, 0.2),
    inset 0 0 40px rgba(255, 50, 50, 0.15);
  animation: orbFloat 3s ease-in-out infinite;
}
.trx-svg { width: 140px; height: 140px; filter: drop-shadow(0 0 16px rgba(255, 50, 50, 0.7)); }

/* Particles */
.trx-particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 6px var(--red-primary);
}
.p1 { width: 6px; height: 6px; top: 10%; left: 20%; animation: particleDrift 4s ease-in-out infinite; }
.p2 { width: 4px; height: 4px; top: 25%; right: 15%; animation: particleDrift 5s ease-in-out infinite 1s; }
.p3 { width: 8px; height: 8px; bottom: 20%; left: 10%; animation: particleDrift 3.5s ease-in-out infinite 0.5s; }
.p4 { width: 4px; height: 4px; bottom: 15%; right: 20%; animation: particleDrift 6s ease-in-out infinite 2s; }
.p5 { width: 5px; height: 5px; top: 50%; left: 5%; animation: particleDrift 4.5s ease-in-out infinite 1.5s; }
.p6 { width: 3px; height: 3px; top: 70%; right: 8%; animation: particleDrift 5.5s ease-in-out infinite 0.8s; }

/* Floating Cards */
.floating-cards { position: absolute; inset: 0; pointer-events: none; }
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 10, 18, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.fc1 { top: 5%; right: -10%; animation: floatCard 4s ease-in-out infinite; }
.fc2 { bottom: 30%; left: -15%; animation: floatCard 5s ease-in-out infinite 1s; }
.fc3 { bottom: 5%; right: -5%; animation: floatCard 4.5s ease-in-out infinite 2s; }
.float-card span { font-size: 1rem; }

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 2;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ========== TICKER BAR ========== */
.ticker-bar {
  position: relative;
  z-index: 2;
  background: rgba(255, 30, 30, 0.07);
  border-top: 1px solid rgba(255, 50, 50, 0.15);
  border-bottom: 1px solid rgba(255, 50, 50, 0.15);
  padding: 10px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ticker-label {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red-primary);
  letter-spacing: 1px;
  background: rgba(255,30,30,0.1);
  padding: 4px 14px;
  margin-left: 16px;
  border-radius: 4px;
  white-space: nowrap;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  gap: 48px;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.ticker-item .ti-wallet { color: var(--text-muted); font-family: monospace; }
.ticker-item .ti-amount { color: var(--green); font-weight: 600; }
.ticker-item .ti-sep { color: var(--text-muted); }

/* ========== SECTION HEADER ========== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: rgba(255,50,50,0.1);
  border: 1px solid rgba(255,50,50,0.25);
  color: #ff8888;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== FAUCET SECTION ========== */
.faucet-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}
.faucet-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

/* Faucet Card */
.faucet-card {
  padding: 40px;
}
.faucet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
}
.faucet-reward-display {
  display: flex;
  align-items: center;
  gap: 16px;
}
.reward-coin-anim {
  animation: coinSpin 3s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255,50,50,0.5));
}
.reward-info { display: flex; flex-direction: column; }
.reward-amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red-primary);
  font-family: var(--font-alt);
  line-height: 1;
}
.reward-unit { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.cooldown-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Form */
.faucet-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 14px 100px 14px 18px;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: rgba(255, 50, 50, 0.5);
  background: rgba(255,50,50,0.04);
  box-shadow: 0 0 0 3px rgba(255, 50, 50, 0.1);
}
.form-input.valid { border-color: rgba(74, 222, 128, 0.5); }
.form-input.invalid { border-color: rgba(248, 113, 113, 0.5); }

.input-paste-btn {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: rgba(255,50,50,0.12);
  color: var(--red-primary);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,50,50,0.2);
  cursor: pointer;
  transition: var(--transition);
}
.input-paste-btn:hover { background: rgba(255,50,50,0.2); }

.form-hint { font-size: 0.75rem; color: var(--text-muted); }
.form-error { font-size: 0.78rem; color: #f87171; display: none; }
.form-error.visible { display: block; }

/* Captcha */
.captcha-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.captcha-box:hover { border-color: rgba(255,255,255,0.2); }
.captcha-box.checked { border-color: rgba(74, 222, 128, 0.4); background: rgba(74,222,128,0.03); }
.captcha-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.captcha-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  transition: var(--transition);
  flex-shrink: 0;
}
.captcha-checkbox.checked {
  background: var(--green);
  border-color: var(--green);
}
.check-icon { display: none; }
.check-icon.visible { display: block; }
.captcha-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.captcha-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.captcha-logo-icon { opacity: 0.7; }
.captcha-brand { display: flex; flex-direction: column; }
.captcha-brand-name { font-size: 0.7rem; font-weight: 700; color: #4285f4; letter-spacing: 0.5px; }
.captcha-brand-sub { font-size: 0.6rem; color: var(--text-muted); }

/* Claim Button */
.btn-claim {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 60%, #990000 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(200, 0, 0, 0.4), 0 4px 16px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}
.btn-claim::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
}
.btn-claim:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(255, 50, 50, 0.55), 0 8px 24px rgba(0,0,0,0.4);
}
.btn-claim:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#claimBtn > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* Countdown */
.countdown-area {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.07);
}
.countdown-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.countdown-display { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cd-block { display: flex; flex-direction: column; align-items: center; }
.cd-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-alt);
  color: var(--red-primary);
  line-height: 1;
  min-width: 56px;
  text-align: center;
  background: rgba(255,50,50,0.08);
  border-radius: var(--radius-sm);
  padding: 8px 0;
}
.cd-unit { font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.cd-sep { font-size: 1.8rem; font-weight: 800; color: var(--red-primary); margin-bottom: 20px; }

/* Success Banner */
.success-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-md);
  margin-top: 20px;
  animation: slideUp 0.4s ease;
}
.success-icon { font-size: 1.5rem; }
.success-text strong { display: block; color: var(--green); font-weight: 700; }
.success-text { font-size: 0.88rem; color: var(--text-secondary); }

/* ========== SIDEBAR ========== */
.faucet-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { padding: 24px; }
.sidebar-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Live Stats */
.live-stats-list { display: flex; flex-direction: column; gap: 0; }
.live-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.live-stat-item:last-child { border-bottom: none; }
.lsi-label { font-size: 0.78rem; color: var(--text-muted); }
.lsi-value { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); font-family: var(--font-alt); }
.trx-green { color: var(--green) !important; }
.trx-gold { color: var(--gold) !important; }
.net-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  margin-right: 5px;
  animation: blink 1.5s infinite;
}

/* How Steps */
.how-steps { display: flex; flex-direction: column; gap: 14px; }
.how-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.step-num {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255,50,50,0.4);
}
.how-step div { flex: 1; }
.how-step strong { font-size: 0.85rem; color: var(--text-primary); }
.how-step p { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* Referral */
.referral-card { border: 1px solid rgba(255, 180, 0, 0.2) !important; }
.referral-desc { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 12px; }
.referral-link-box { display: flex; gap: 8px; }
.referral-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  outline: none;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-copy {
  padding: 9px 14px;
  background: rgba(251,191,36,0.12);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251,191,36,0.25);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-copy:hover { background: rgba(251,191,36,0.22); }

/* ========== HOW IT WORKS ========== */
.how-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  background: rgba(255,255,255,0.01);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.how-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}
.how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5), 0 0 30px rgba(255,50,50,0.1);
  border-color: rgba(255,50,50,0.3);
}
.how-card-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(255,50,50,0.08);
  font-family: var(--font-alt);
  line-height: 1;
  letter-spacing: -2px;
}
.how-card-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,50,50,0.08);
  border: 1px solid rgba(255,50,50,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
}
.how-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.how-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========== STATS SECTION ========== */
.stats-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  overflow: hidden;
}
.stats-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 0, 0, 0.12), transparent 70%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,50,50,0.3);
}
.stat-icon { font-size: 2.2rem; margin-bottom: 12px; }
.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-alt);
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== PAYOUTS SECTION ========== */
.payouts-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}
.payouts-table-wrapper { overflow: hidden; }
.payouts-table-header,
.payouts-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr 1fr;
  gap: 16px;
  padding: 14px 24px;
  align-items: center;
}
.payouts-table-header {
  background: rgba(255,50,50,0.05);
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.payouts-table-row {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
  transition: var(--transition);
}
.payouts-table-row:last-child { border-bottom: none; }
.payouts-table-row:hover { background: rgba(255,255,255,0.02); }
.payouts-table-row.new-row {
  animation: rowSlideIn 0.4s ease;
}
.pt-wallet { font-family: monospace; color: var(--text-secondary); font-size: 0.75rem; }
.pt-amount { color: var(--green); font-weight: 700; font-family: var(--font-alt); }
.pt-time { color: var(--text-muted); }
.pt-hash { font-family: monospace; font-size: 0.72rem; color: var(--blue-accent); }
.pt-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(74,222,128,0.2);
}
.pt-status::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}

/* ========== FAQ ========== */
.faq-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(14,14,22,0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: rgba(255,50,50,0.3); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  gap: 16px;
}
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--red-primary);
  transition: transform var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-sidebar { display: flex; flex-direction: column; gap: 16px; }
.faq-note {
  padding: 22px;
  border-radius: var(--radius-md);
}
.faq-note h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.faq-note p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

/* ========== CTA SECTION ========== */
.cta-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,0,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* ========== FOOTER ========== */
.footer {
  position: relative;
  z-index: 2;
  background: rgba(5,5,8,0.98);
  border-top: 1px solid rgba(255,50,50,0.1);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-btn:hover {
  background: rgba(255,50,50,0.1);
  border-color: rgba(255,50,50,0.3);
  color: var(--red-primary);
}
.footer-links-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--red-primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-disclaimer { font-size: 0.72rem !important; opacity: 0.6; }

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: rgba(14,14,22,0.97);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--text-primary);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  max-width: 320px;
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast.success { border-color: rgba(74,222,128,0.4); }
.toast.error { border-color: rgba(248,113,113,0.4); }

/* ========== UTILITY ========== */
.hidden { display: none !important; }
.spin { animation: spinAnim 0.8s linear infinite; }

/* ========== ANIMATIONS ========== */
@keyframes slowPulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}
@keyframes orbRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes particleDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  33% { transform: translate(8px, -12px) scale(1.3); opacity: 1; }
  66% { transform: translate(-6px, 8px) scale(0.8); opacity: 0.5; }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}
@keyframes coinSpin {
  0%, 80%, 100% { transform: rotateY(0deg); }
  40% { transform: rotateY(360deg); }
}
@keyframes spinAnim {
  to { transform: rotate(360deg); }
}
@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes rowSlideIn {
  from { transform: translateX(-10px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px var(--red-primary); }
  50% { box-shadow: 0 0 14px var(--red-primary), 0 0 24px var(--red-primary); }
}

/* ========== RESPONSIVE – TABLET ========== */
@media (max-width: 1024px) {
  .faucet-layout { grid-template-columns: 1fr; }
  .faucet-sidebar { grid-row: 1; display: grid; grid-template-columns: repeat(2, 1fr); }
  .faucet-sidebar .sidebar-card:last-child { grid-column: 1 / -1; }

  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-sidebar { display: grid; grid-template-columns: repeat(3, 1fr); }

  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .trx-orb-wrapper { width: 260px; height: 260px; }
  .hero-content { text-align: center; align-items: center; }
  .hero-stats-row { justify-content: center; }
  .hero-cta-group { justify-content: center; }
  .hero-subtitle { text-align: center; }
  .floating-cards { display: none; }
}

/* ========== RESPONSIVE – MOBILE ========== */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Navbar */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(5,5,8,0.98);
    border-bottom: 1px solid rgba(255,50,50,0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(20px);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); }
  .hamburger { display: flex; }
  .trx-price { display: none; }
  .btn-connect { display: none; }

  /* Hero */
  .hero { padding: calc(var(--nav-h) + 48px) 0 60px; }
  .hero-title { font-size: 2.4rem; letter-spacing: -1px; }
  .hero-stats-row { flex-direction: column; gap: 0; width: 100%; padding: 16px; }
  .hero-stat { padding: 12px 24px; width: 100%; flex-direction: row; justify-content: space-between; }
  .hero-stat-divider { width: 100%; height: 1px; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .btn-primary.hero-cta,
  .btn-secondary.hero-cta { width: 100%; justify-content: center; }
  .trx-orb-wrapper { width: 200px; height: 200px; }

  /* Sections */
  .how-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .faucet-card { padding: 24px 20px; }
  .faucet-card-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .faucet-sidebar { display: flex; flex-direction: column; }

  /* Payouts table */
  .payouts-table-header { display: none; }
  .payouts-table-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }
  .payouts-table-row > span::before {
    color: var(--text-muted);
    font-size: 0.68rem;
    margin-right: 6px;
    text-transform: uppercase;
  }
  .pt-wallet::before { content: 'Wallet: '; }
  .pt-amount::before { content: 'Amount: '; }
  .pt-time::before { content: 'Time: '; }
  .pt-hash::before { content: 'TX: '; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-sidebar { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  /* Toast */
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }

  /* Ticker */
  .ticker-label { display: none; }

  /* Section padding */
  .faucet-section,
  .how-section,
  .stats-section,
  .payouts-section,
  .faq-section,
  .cta-section { padding: 64px 0; }

  .section-header { margin-bottom: 36px; }
  .btn-primary.btn-large { padding: 16px 28px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .hero-stat { padding: 10px 16px; }
  .cd-num { font-size: 1.5rem; min-width: 44px; }
  .how-card { padding: 24px 20px; }
  .faq-question { font-size: 0.88rem; }
}
