@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

/* ==========================================
   RESET & SYSTEM VARIABLES
   ========================================== */
:root {
  --bg-deep: #020204;
  --bg-card: rgba(5, 5, 8, 0.97); /* Solid obsidian background fill for supreme text contrast */
  --bg-card-hover: rgba(10, 10, 15, 0.99);
  --bg-portal: #010102;
  
  --crimson: #ff1a40;
  --crimson-glow: rgba(255, 26, 64, 0.65);
  --crimson-dark: #660515;
  
  --cyber-blue: #00e5ff;
  --cyber-blue-glow: rgba(0, 229, 255, 0.65);
  --cyber-blue-dark: #005c66;
  
  --text-primary: #ffffff; /* Stark pure white for extreme layout visibility */
  --text-secondary: #f8fafc; /* Bright Slate for paragraph contrast */
  --text-muted: #cbd5e1; /* Clear silver-grey for stats, titles, and indexes */
  
  --border-glow: linear-gradient(135deg, var(--crimson), var(--cyber-blue));
  
  --font-cyber: 'Rajdhani', system-ui, -apple-system, sans-serif; /* High-end ultra-clean gaming HUD font */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif; /* Highly visible premium Web3 geometric body font */
  --font-wide: 'Outfit', sans-serif; /* Sleek futuristic luxury display font */
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--crimson) var(--bg-deep);
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem; /* slightly larger body size */
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

p {
  color: var(--text-secondary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 3px 12px rgba(0, 0, 0, 0.85); /* premium rich dark backing shadow */
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--crimson);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyber-blue);
}

/* ==========================================
   CINEMATIC CYBER PRELOADER
   ========================================== */
.cyber-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #020203;
  z-index: 9999999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
}

.preloader-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 450px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  font-family: var(--font-cyber);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  animation: logo-glow 1.5s infinite alternate;
}

.preloader-logo span span {
  color: var(--crimson);
}

@keyframes logo-glow {
  0% { filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.3)); }
  100% { filter: drop-shadow(0 0 20px rgba(255, 26, 64, 0.7)); }
}

.preloader-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.03);
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--cyber-blue));
  box-shadow: 0 0 10px var(--cyber-blue);
  transition: width 0.1s linear;
}

.preloader-status {
  font-family: var(--font-cyber);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
  height: 15px;
  font-weight: 600;
}

.preloader-percentage {
  font-family: var(--font-cyber);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyber-blue);
}

.preloader-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================
   VISUAL EFFECTS & OVERLAYS
   ========================================== */
#canvas-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.crt-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.45;
}

.ambient-auras {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aura-red {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--crimson-glow) 0%, rgba(255,26,64,0) 70%);
  top: -200px;
  left: -200px;
  filter: blur(90px);
  animation: float-aura 15s infinite alternate;
  opacity: 0.65;
}

.aura-blue {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--cyber-blue-glow) 0%, rgba(0,229,255,0) 70%);
  bottom: -200px;
  right: -200px;
  filter: blur(110px);
  animation: float-aura 18s infinite alternate-reverse;
  opacity: 0.65;
}

@keyframes float-aura {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(120px, 60px) scale(1.15); }
}

/* Spinning HUD backdrops */
.spinning-hud-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 650px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.spinning-hud-svg {
  width: 100%;
  height: 100%;
  animation: rotate-hud 30s linear infinite;
}

@keyframes rotate-hud {
  100% { transform: rotate(360deg); }
}

/* ==========================================
   GLASSMORPHISM & CYBER UTILITIES
   ========================================== */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.22); /* boosted boundary borders for maximum HUD definition */
  border-radius: 12px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-panel::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 35px;
  background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.08), transparent);
  animation: scan-line 7s linear infinite;
  pointer-events: none;
}

.glass-panel.red::after {
  background: linear-gradient(to bottom, transparent, rgba(255, 26, 64, 0.08), transparent);
}

@keyframes scan-line {
  0% { top: -100%; }
  100% { top: 250%; }
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.35);
}

.cyber-glow-blue {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3), inset 0 0 10px rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.6) !important;
}

.cyber-glow-red {
  box-shadow: 0 0 30px rgba(255, 26, 64, 0.3), inset 0 0 10px rgba(255, 26, 64, 0.15);
  border-color: rgba(255, 26, 64, 0.6) !important;
}

.cyber-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Preserving 3D card tilt values */
.about-card, .reward-card, .pkg-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.about-card > *, .reward-card > *, .pkg-card > * {
  transform: translateZ(25px);
}

/* Scroll reveal items */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   TYPOGRAPHY & BUTTONS
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cyber);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: #ffffff;
}

.grad-text {
  background: linear-gradient(135deg, #ffffff 40%, #dcdfe8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-text-cyber {
  background: linear-gradient(90deg, #ff1a40 0%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.cyber-btn {
  font-family: var(--font-cyber);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  z-index: 5;
}

.btn-primary {
  background: linear-gradient(90deg, var(--crimson) 0%, #d60c2d 100%);
  color: #fff;
  box-shadow: 0 4px 25px rgba(255, 26, 64, 0.45);
  border: 1px solid rgba(255, 26, 64, 0.6);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 26, 64, 0.75);
  border-color: #fff;
}

.btn-secondary {
  background: rgba(0, 229, 255, 0.04);
  color: var(--cyber-blue);
  border: 1px solid var(--cyber-blue);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.btn-secondary:hover {
  background: var(--cyber-blue);
  color: #000;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px var(--cyber-blue-glow);
}

.cyber-btn .btn-clip {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--bg-deep);
  z-index: 6;
}
.btn-clip.tl { top: -4px; left: -4px; transform: rotate(45deg); }
.btn-clip.br { bottom: -4px; right: -4px; transform: rotate(45deg); }

/* ==========================================
   NAVIGATION
   ========================================== */
.cyber-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px 50px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.cyber-nav.scrolled {
  padding: 14px 50px;
  background: rgba(3, 3, 5, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-brand {
  font-family: var(--font-cyber);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand span {
  color: var(--crimson);
  text-shadow: 0 0 10px var(--crimson-glow);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-cyber);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 1.5px;
  transition: var(--transition-fast);
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--cyber-blue));
  transition: var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #fff;
}

.burger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger-menu div {
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: var(--transition-fast);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8%;
  overflow: hidden;
  z-index: 5;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: contrast(1.15) brightness(0.85) saturate(1.1);
  transform: scale(1.02);
  transition: transform 0.1s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 50%, rgba(3, 3, 5, 0.15) 0%, rgba(3, 3, 5, 0.96) 80%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 680px;
  margin-top: 50px;
}

.hero-tag {
  font-family: var(--font-cyber);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cyber-blue);
  letter-spacing: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: pulse-glow 2s infinite alternate;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--cyber-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyber-blue);
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 35px;
  max-width: 550px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* ==========================================
   COMMON SECTION STYLING
   ========================================== */
section {
  position: relative;
  padding: 120px 8%;
  z-index: 5;
  overflow: hidden;
}

.sec-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 70px;
  position: relative;
  z-index: 5;
}

.sec-tag {
  font-family: var(--font-cyber);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 3.5px;
  display: block;
  margin-bottom: 12px;
}

.sec-tag.blue {
  color: var(--cyber-blue);
}

.sec-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.sec-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ==========================================
   ABOUT ECOSYSTEM
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
}

.about-card {
  grid-column: span 4;
  padding: 45px 35px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.about-card.large {
  grid-column: span 6;
}

.card-hud-num {
  font-family: var(--font-cyber);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.02);
  position: absolute;
  top: 10px;
  right: 20px;
  user-select: none;
  transition: var(--transition-smooth);
}

.about-card:hover .card-hud-num {
  color: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px) scale(1.05);
}

.about-card.blue:hover {
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.25);
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-5px);
}

.about-card.red:hover {
  box-shadow: 0 0 35px rgba(255, 26, 64, 0.25);
  border-color: rgba(255, 26, 64, 0.35);
  transform: translateY(-5px);
}

.card-icon {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: var(--crimson);
  font-size: 1.6rem;
  transition: var(--transition-smooth);
}

.blue .card-icon {
  color: var(--cyber-blue);
}

.about-card:hover .card-icon {
  transform: scale(1.1) translateZ(10px);
  background: rgba(255, 255, 255, 0.08);
}

.about-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-card h3::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--crimson);
  border-radius: 50%;
}

.blue h3::after {
  background: var(--cyber-blue);
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.98rem; 
  font-weight: 500;
  letter-spacing: 0.1px;
}

/* ==========================================
   REWARD SYSTEM SECTION (3-COLUMN MATRIX)
   ========================================== */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Clean three columns */
  gap: 30px;
  margin-bottom: 20px;
}

.reward-card {
  padding: 45px 30px;
  text-align: center;
  position: relative;
  border-radius: 12px;
}

.reward-header {
  margin-bottom: 25px;
}

.reward-badge {
  font-family: var(--font-cyber);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyber-blue);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.reward-card.crimson-style .reward-badge {
  color: var(--crimson);
  background: rgba(255, 26, 64, 0.08);
  border: 1px solid rgba(255, 26, 64, 0.2);
}

.reward-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 18px;
}

.reward-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  min-height: 40px;
  font-weight: 500;
}

.reward-levels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reward-level-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.reward-level-row span {
  font-family: var(--font-cyber);
  font-weight: 700;
  color: var(--cyber-blue);
}

.crimson-style .reward-level-row span {
  color: var(--crimson);
}

.reward-card:hover {
  transform: translateY(-5px);
}

/* ==========================================
   PACKAGE SECTION (DRAGON POWER STATIONS)
   ========================================== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.pkg-card {
  padding: 0;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 200px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15); /* boosted boundaries visibility */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: var(--transition-smooth);
}

.pkg-card:nth-child(odd) {
  border-left: 5px solid var(--crimson);
  box-shadow: 0 4px 20px rgba(255, 26, 64, 0.15);
}

.pkg-card:nth-child(even) {
  border-left: 5px solid var(--cyber-blue);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.15);
}

.pkg-card-inner {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  position: relative;
  z-index: 2;
}

.pkg-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.35);
}

.pkg-card:nth-child(odd):hover {
  box-shadow: 0 12px 35px rgba(255, 26, 64, 0.4);
}

.pkg-card:nth-child(even):hover {
  box-shadow: 0 12px 35px rgba(0, 229, 255, 0.4);
}

.pkg-value {
  font-family: var(--font-cyber);
  font-size: 2.5rem; /* slightly larger values */
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
  background: #ffffff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
}

.pkg-tier {
  font-family: var(--font-cyber);
  font-size: 0.85rem; 
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pkg-card:nth-child(odd) .pkg-tier {
  color: var(--crimson);
}

.pkg-card:nth-child(even) .pkg-tier {
  color: var(--cyber-blue);
}

.pkg-details {
  list-style: none;
  font-size: 0.85rem;
  color: #ffffff; 
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0;
  width: 100%;
  font-weight: 600;
}

.pkg-details li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 3px;
}

.pkg-details li span {
  font-family: var(--font-cyber);
  color: #ffffff;
  font-weight: 800;
}

/* ==========================================
   TOKEN countdown widget styling
   ========================================== */
#countdown-widget {
  display: flex;
  gap: 15px;
  margin: 25px 0;
  justify-content: center;
}

#countdown-widget > div {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  border-radius: 8px;
  min-width: 75px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

#countdown-widget > div span {
  font-weight: 800;
}

/* ==========================================
   COMMUNITY SECTION
   ========================================== */
.community {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.comm-card {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
}

.comm-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--cyber-blue);
  transition: var(--transition-smooth);
  box-shadow: 0 0 0 rgba(0,229,255,0);
}

.comm-card:hover .comm-icon {
  transform: translateY(-8px) scale(1.08);
  background: rgba(255, 255, 255, 0.06);
}

.comm-card:nth-child(odd):hover .comm-icon {
  color: #fff;
  border-color: var(--cyber-blue);
  box-shadow: 0 5px 25px var(--cyber-blue-glow);
}

.comm-card:nth-child(even):hover .comm-icon {
  color: #fff;
  border-color: var(--crimson);
  box-shadow: 0 5px 25px var(--crimson-glow);
}

.comm-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.comm-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   PORTAL ACCESS SECTION
   ========================================== */
.portal-cta {
  text-align: center;
  padding: 150px 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.portal-cta-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.portal-cta-img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(1) contrast(1.25) brightness(0.9);
}

.portal-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(3, 3, 5, 0.3) 0%, rgba(3, 3, 5, 0.98) 90%);
  z-index: 2;
}

.portal-cta-content {
  position: relative;
  z-index: 5;
  max-width: 680px;
}

.portal-cta h2 {
  font-size: 3rem;
  margin-bottom: 25px;
}

.portal-cta p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* ==========================================
   PORTAL DASHBOARD OVERLAY
   ========================================== */
.portal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-portal);
  z-index: 99999;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

.portal-overlay.active {
  display: flex;
  opacity: 1;
}

.portal-sidebar {
  width: 260px;
  height: 100%;
  background: #06060a;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 20px;
  position: relative;
  z-index: 10;
}

.portal-logo {
  font-family: var(--font-cyber);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 50px;
}

.portal-logo span {
  color: var(--crimson);
}

.portal-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-menu-item {
  font-family: var(--font-cyber);
  font-size: 0.8rem;
  padding: 12px 18px;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 1px;
}

.portal-menu-item:hover, .portal-menu-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.portal-menu-item.active {
  border-left: 3px solid var(--cyber-blue);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0%, transparent 100%);
}

.portal-menu-item.btn-logout {
  color: var(--crimson);
  margin-top: auto;
}

.portal-menu-item.btn-logout:hover {
  background: rgba(255, 26, 64, 0.05);
}

.portal-user-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cyber);
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.user-status {
  font-size: 0.65rem;
  color: var(--cyber-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Portal Content Area */
.portal-main {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
}

.portal-header {
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-header h2 {
  font-size: 1.4rem;
}

.portal-wallet-pill {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wallet-pill-data {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-cyber);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-pill-data span {
  color: var(--cyber-blue);
  font-weight: 700;
}

.portal-body {
  padding: 40px;
  flex: 1;
}

.portal-section-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.portal-section-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Summary Cards */
.db-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.db-card {
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 12px;
}

.db-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--cyber-blue);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.db-card.red .db-icon {
  color: var(--crimson);
}

.db-info {
  display: flex;
  flex-direction: column;
}

.db-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.db-val {
  font-family: var(--font-cyber);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

/* Dashboard Layout */
.db-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 25px;
}

.panel-title {
  font-size: 1rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
}

.panel-title span {
  font-size: 0.7rem;
  color: var(--cyber-blue);
}



/* Wallet Page */
.wallet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.wallet-panel {
  padding: 30px;
  border-radius: 12px;
}

.wallet-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.form-input, .form-select {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--cyber-blue);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.mock-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  margin-top: 10px;
}

.mock-qr {
  width: 140px;
  height: 140px;
  background: #fff;
  padding: 8px;
  border-radius: 6px;
}

.mock-qr img {
  width: 100%;
  height: 100%;
}

.wallet-address-copy {
  display: flex;
  width: 100%;
  gap: 10px;
}

.wallet-address-copy input {
  flex: 1;
  font-family: monospace;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--text-secondary);
  outline: none;
}

/* Network Tree Node UI */
.network-tree-container {
  width: 100%;
  height: 400px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}

.tree-svg {
  width: 100%;
  height: 100%;
}

.tree-node-info-panel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 15px 20px;
  background: rgba(6, 6, 10, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.node-info-details {
  display: flex;
  gap: 30px;
}

.node-info-item {
  display: flex;
  flex-direction: column;
}

.node-info-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.node-info-val {
  font-family: var(--font-cyber);
  font-size: 0.85rem;
  color: #fff;
  font-weight: 700;
}

/* Notification banner */
.noti-banner {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 25px;
  border-radius: 6px;
  font-size: 0.85rem;
  z-index: 999999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.noti-banner.active {
  transform: translateY(0);
  opacity: 1;
}

.noti-banner.success {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--cyber-blue);
  color: #fff;
  box-shadow: 0 5px 20px rgba(0, 229, 255, 0.2);
}

/* Footer Section */
footer {
  padding: 40px 8%;
  background: #020203;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 5;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

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

/* ---- 1200px: Large Tablets & Small Laptops ---- */
@media (max-width: 1200px) {
  .about-card {
    grid-column: span 6;
  }
  .about-card.large {
    grid-column: span 12;
  }
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- 992px: Tablets ---- */
@media (max-width: 992px) {
  section {
    padding: 80px 6%;
  }

  .hero {
    padding: 110px 6% 80px;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
  }
  .hero-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero h1 {
    font-size: 2.6rem;
    line-height: 1.2;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-img-bg {
    object-position: center center !important;
    opacity: 0.4 !important;
  }

  .rewards-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .coin-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .portal-packages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  /* Portal Mobile Drawer Sidebar */
  .portal-overlay {
    flex-direction: column !important;
  }
  .portal-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    background: rgba(6, 6, 10, 0.99) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: none !important;
    z-index: 100000 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 30px 20px !important;
  }
  .portal-sidebar.open {
    transform: translateX(0) !important;
  }
  .portal-logo {
    display: flex !important;
    margin-bottom: 40px !important;
  }
  .portal-menu {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .portal-menu-item {
    padding: 12px 18px !important;
    font-size: 0.8rem !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: center !important;
    border-left: 3px solid transparent !important;
    border-bottom: none !important;
    text-align: left !important;
    flex: none !important;
  }
  .portal-menu-item.active {
    border-left: 3px solid var(--cyber-blue) !important;
    border-bottom: none !important;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.05) 0%, transparent 100%) !important;
  }
  .portal-user-tag {
    display: flex !important;
    margin-top: 20px !important;
  }
  .portal-menu-item.btn-logout {
    display: flex !important;
    color: var(--crimson) !important;
    margin-top: auto !important;
  }
  .portal-mobile-exit {
    display: block !important;
  }
  .portal-mobile-menu-trigger {
    display: inline-flex !important;
  }
  .portal-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .portal-sidebar-backdrop.active {
    display: block;
  }
  .portal-main {
    padding-bottom: 30px !important;
  }
  .portal-body {
    padding: 25px 20px !important;
  }
  .wallet-layout {
    grid-template-columns: 1fr;
  }
}

/* ---- 768px: Mobile Landscape / Small Tablets ---- */
@media (max-width: 768px) {
  /* Navigation */
  .cyber-nav {
    padding: 14px 20px;
  }
  .cyber-nav.scrolled {
    padding: 10px 20px;
  }
  .cyber-nav .btn-portal-trigger {
    display: none !important;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(3, 3, 5, 0.97);
    flex-direction: column;
    padding: 20px 24px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: flex-start;
    gap: 4px;
    backdrop-filter: blur(20px);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    width: 100%;
  }
  .burger-menu {
    display: flex;
  }
  .burger-menu.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .burger-menu.active div:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Hero */
  section {
    padding: 70px 5%;
  }
  .hero {
    padding: 100px 5% 70px;
  }
  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.15;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .hero-tag {
    font-size: 0.75rem;
    letter-spacing: 2.5px;
  }

  /* Sections */
  .sec-title {
    font-size: 2rem;
  }
  .sec-desc {
    font-size: 0.95rem;
  }
  .about-card {
    grid-column: span 12;
  }

  /* Packages */
  .packages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .pkg-card {
    height: auto !important;
    min-height: 190px !important;
  }
  .pkg-value {
    font-size: 1.8rem !important;
  }
  .pkg-card-inner {
    padding: 20px 16px !important;
  }
  .pkg-details {
    gap: 6px !important;
  }

  /* How it Works inline styles override */
  #how-it-works {
    margin: 0 5% !important;
    padding: 40px 20px !important;
  }

  /* Coin / Token section */
  .coin-grid > div {
    padding: 0 !important;
  }

  /* Dashboard */
  .db-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .db-card {
    padding: 18px 20px;
  }
  .db-val {
    font-size: 1.2rem;
  }
  .db-layout {
    grid-template-columns: 1fr;
  }

  /* Portal header */
  .portal-header {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 15px 20px !important;
    gap: 12px !important;
  }
  .portal-header > div {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  .portal-header h2 {
    font-size: 1.1rem;
  }
  .portal-wallet-pill {
    flex-direction: row !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .wallet-pill-data {
    font-size: 0.68rem !important;
    padding: 6px 10px !important;
    flex: 1 !important;
    justify-content: center !important;
  }

  /* Network Tree */
  .network-tree-container {
    height: 320px;
  }
  .node-info-details {
    flex-wrap: wrap;
    gap: 14px;
  }
  .tree-node-info-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Notification banner */
  .noti-banner {
    bottom: 16px;
    right: 12px;
    left: 12px;
    font-size: 0.8rem;
    padding: 12px 18px;
    text-align: center;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 30px 5%;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-copy {
    font-size: 0.7rem;
    line-height: 1.6;
  }

  /* Portal body padding */
  .portal-body {
    padding: 20px 16px !important;
  }

  /* Preloader */
  .preloader-logo {
    font-size: 1.8rem;
  }

  /* Sec header */
  .sec-header {
    margin-bottom: 50px;
  }
}

/* ---- 480px: Mobile Portrait ---- */
@media (max-width: 480px) {
  section {
    padding: 60px 4%;
  }

  .hero {
    padding: 90px 4% 60px;
  }
  .hero h1 {
    font-size: 1.75rem;
    letter-spacing: 1px;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .cyber-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .sec-title {
    font-size: 1.7rem;
  }

  /* One-column packages on tiny screens */
  .packages-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .pkg-card {
    min-height: 160px !important;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }
  .portal-packages-grid {
    grid-template-columns: 1fr !important;
  }

  /* Portal node rows */
  .portal-node-row {
    padding: 12px 10px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .portal-node-row > div:last-child {
    text-align: left !important;
  }

  /* Coin section timer */
  #countdown-widget {
    gap: 8px !important;
  }
  #countdown-widget > div span:first-child {
    font-size: 1.4rem !important;
  }

  /* How-it-works section */
  #how-it-works {
    margin: 0 4% !important;
    padding: 30px 16px !important;
  }

  /* About cards */
  .about-card {
    padding: 30px 22px !important;
  }

  /* Wallet form */
  .wallet-panel {
    padding: 20px 16px !important;
  }
  .wallet-address-copy {
    flex-direction: column !important;
  }
  .wallet-address-copy button {
    width: 100% !important;
  }

  /* Network tree */
  .network-tree-container {
    height: 260px;
  }

  /* Preloader */
  .preloader-logo {
    font-size: 1.5rem;
    gap: 8px;
  }
  .preloader-percentage {
    font-size: 1.1rem;
  }

  /* Portal sidebar narrower touch-friendly */
  .portal-sidebar {
    width: 260px !important;
  }

  /* Noti banner full-width */
  .noti-banner {
    bottom: 12px;
    right: 8px;
    left: 8px;
    font-size: 0.78rem;
    padding: 10px 14px;
  }

  /* Scrollbar smaller on mobile */
  ::-webkit-scrollbar {
    width: 3px;
  }
}

/* ---- 360px: Very small phones ---- */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .sec-title {
    font-size: 1.5rem;
  }
  .nav-brand {
    font-size: 1.35rem;
  }
  .cyber-btn {
    font-size: 0.78rem;
    padding: 12px 18px;
    letter-spacing: 1.5px;
  }
  .portal-sidebar {
    width: 240px !important;
  }
  #countdown-widget > div span:first-child {
    font-size: 1.2rem !important;
  }
}

/* ==========================================
   INTERACTIVE CYBER ANIMATIONS
   ========================================== */
.pkg-card::before, .reward-card::before, .about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}
.pkg-card:hover::before, .reward-card:hover::before, .about-card:hover::before {
  opacity: 0.8;
  animation: horizontal-laser 2s linear infinite;
}
.pkg-card:nth-child(odd):hover::before, .reward-card.crimson-style:hover::before, .about-card.red:hover::before {
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
}
@keyframes horizontal-laser {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.nav-links a:hover, .nav-brand:hover, .preloader-logo:hover {
  animation: text-glitch-micro 0.3s ease;
}
@keyframes text-glitch-micro {
  0% { transform: skew(0deg); }
  20% { transform: skew(-3deg); text-shadow: -2px 0 var(--cyber-blue), 2px 0 var(--crimson); }
  40% { transform: skew(3deg); text-shadow: 2px 0 var(--cyber-blue), -2px 0 var(--crimson); }
  60% { transform: skew(-1deg); }
  100% { transform: skew(0deg); }
}

/* ==========================================
   MOBILE ALIGNMENT & EXTRA RESPONSIVE FIXES
   ========================================== */
.how-it-works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 5;
}

.coin-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.portal-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portal-node-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 15px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}
