/* ═══════════════════════════════════════════════════════════════════════════
   GGROTTO BY WRATHTANK - UNIFIED DESIGN SYSTEM
   The Grotto L1 Tool Suite | enterthegrotto.xyz
   ═══════════════════════════════════════════════════════════════════════════ */

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

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

:root {
  /* ═══════════════════════════════════════════════
     GGROTTO CORE PALETTE - Cyber Horror Fusion
     ═══════════════════════════════════════════════ */

  /* Primary Accent - Cyber Teal */
  --cyan: #00ffff;
  --teal: #00d4d4;
  --dark-teal: #008888;
  --deep-teal: #004d4d;

  /* Secondary Accent - Neon Pink */
  --pink: #ff69b4;
  --hot-pink: #ff1493;
  --dark-pink: #8b1458;

  /* Tertiary - Blood Red (Horror) */
  --blood: #8b0000;
  --crimson: #dc143c;
  --blood-glow: rgba(139, 0, 0, 0.4);

  /* Gold Accents (Premium) */
  --gold: #d4af37;
  --gold-bright: #ffd700;
  --gold-dark: #b8860b;
  --gold-glow: rgba(212, 175, 55, 0.3);

  /* Background/Neutral - Deep Space */
  --darker: #050508;
  --dark: #0a0a12;
  --gray: #12121a;
  --light-gray: #1a1a24;
  --panel: rgba(12, 12, 18, 0.95);
  --white: #e8e8f0;
  --black: #020204;

  /* Status Colors */
  --green: #00ff88;
  --yellow: #ffcc00;
  --red-warn: #ff4444;
  --purple: #9370db;

  /* Shadows & Glows */
  --glow-cyan: 0 0 10px var(--cyan), 0 0 20px var(--teal), 0 0 30px var(--dark-teal);
  --glow-pink: 0 0 10px var(--pink), 0 0 20px var(--hot-pink), 0 0 30px var(--dark-pink);
  --glow-gold: 0 0 10px var(--gold), 0 0 20px var(--gold-dark);
  --glow-blood: 0 0 10px var(--crimson), 0 0 20px var(--blood);

  /* Premium Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(0, 212, 212, 0.2);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ============================================ */
/* GLOBAL STYLES                               */
/* ============================================ */

body {
  background: var(--darker);
  color: var(--white);
  font-family: 'Press Start 2P', monospace;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Vignette overlay for depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================ */
/* GGROTTO BRANDING                            */
/* ============================================ */

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(90deg, rgba(0, 212, 212, 0.1), rgba(255, 105, 180, 0.1));
  border: 1px solid rgba(0, 212, 212, 0.3);
  border-radius: 20px;
  font-family: 'Teko', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-badge::before {
  content: '◈';
  color: var(--pink);
}

.brand-badge::after {
  content: '◈';
  color: var(--pink);
}

.brand-tagline {
  font-family: 'Teko', sans-serif;
  font-size: 0.5rem;
  color: var(--pink);
  letter-spacing: 3px;
  opacity: 0.8;
}

/* Site footer branding */
.site-footer {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Teko', sans-serif;
  font-size: 0.45rem;
  color: #444;
  letter-spacing: 2px;
  z-index: 50;
}

.site-footer a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--cyan);
}

/* ============================================ */
/* TYPOGRAPHY                                  */
/* ============================================ */

/* Premium Title Text */
.glitch-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: transparent;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--teal) 50%, var(--dark-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(0, 212, 212, 0.5))
          drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
  animation: title-glow 3s ease-in-out infinite;
}

.glitch-text::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: var(--cyan);
  z-index: -1;
  filter: blur(20px);
  opacity: 0.4;
  animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

/* Subtle glitch effect on hover */
.glitch-text:hover::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--pink);
  opacity: 0.8;
  animation: glitch-hover 0.3s ease-out;
}

@keyframes glitch-hover {
  0% { transform: translate(0); clip-path: inset(0 0 60% 0); }
  25% { transform: translate(-2px, 1px); clip-path: inset(40% 0 30% 0); }
  50% { transform: translate(2px, -1px); clip-path: inset(20% 0 50% 0); }
  75% { transform: translate(-1px, 2px); clip-path: inset(60% 0 10% 0); }
  100% { transform: translate(0); clip-path: inset(0 0 0 0); }
}

.subtitle {
  font-family: 'Teko', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--pink);
  letter-spacing: 10px;
  margin-bottom: 40px;
  text-shadow: 0 0 15px var(--pink);
  text-transform: uppercase;
}

/* ============================================ */
/* PINK ESOTERIC GLITCHY CURSOR                */
/* Cross-browser compatible (Chrome, Firefox, Safari, Brave, Edge) */
/* ============================================ */

/* Hide default cursor on desktop - use custom cursor instead */
* {
  cursor: none;
}

/* Ensure interactive elements also hide cursor */
a, button, input, select, textarea, [role="button"], [onclick] {
  cursor: none !important;
}

/* Show default cursor on touch-only devices (mobile/tablet) */
@media (pointer: coarse), (hover: none) {
  * {
    cursor: auto !important;
  }

  a, button, input, select, textarea, [role="button"], [onclick] {
    cursor: pointer !important;
  }

  #cursor,
  #cursor-aura {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* Also hide custom cursor on small screens (likely mobile) */
@media (max-width: 768px) {
  * {
    cursor: auto !important;
  }

  a, button, input, select, textarea, [role="button"], [onclick] {
    cursor: pointer !important;
  }

  #cursor,
  #cursor-aura {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* Main cursor - esoteric pink triangle with glitch animation */
#cursor {
  position: fixed;
  width: 0;
  height: 0;
  /* Asymmetric sharp triangle - esoteric occult pointer */
  border-left: 5px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 22px solid var(--hot-pink, #ff1493);
  pointer-events: none;
  z-index: 99999;
  /* Angled rotation for aggressive futuristic look */
  transform: translate(-30%, -15%) rotate(-35deg);
  filter: drop-shadow(0 0 6px var(--pink, #ff69b4))
          drop-shadow(0 0 12px var(--hot-pink, #ff1493))
          drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
  transition: transform 0.05s ease-out, filter 0.1s ease;
  /* Continuous glitch animation */
  animation: cursor-glitch 3s infinite, cursor-flicker 0.15s infinite;
  /* Ensure GPU acceleration for smooth animation */
  will-change: transform, filter, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Inner triangle accent */
#cursor::after {
  content: '';
  position: absolute;
  top: 6px;
  left: -2px;
  width: 0;
  height: 0;
  border-left: 2px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid var(--cyan, #00ffff);
  opacity: 0.6;
  filter: drop-shadow(0 0 3px var(--cyan, #00ffff));
  animation: inner-glitch 2s infinite ease-in-out;
}

/* Esoteric glyph that appears on hover over interactive elements */
#cursor::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -12px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--pink, #ff69b4);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5) rotate(0deg);
  transition: opacity 0.2s, transform 0.3s;
  animation: glyph-rotate 4s linear infinite;
}

#cursor.hovering::before {
  opacity: 0.6;
  transform: scale(1) rotate(0deg);
}

/* Click state */
#cursor.clicking {
  transform: translate(-30%, -15%) rotate(-35deg) scale(0.85);
  filter: drop-shadow(0 0 10px var(--pink, #ff69b4))
          drop-shadow(0 0 20px var(--hot-pink, #ff1493))
          drop-shadow(0 0 30px var(--cyan, #00ffff));
  animation: cursor-glitch 3s infinite, click-flash 0.1s ease-out;
}

/* Cursor aura - pulsing ethereal glow */
#cursor-aura {
  position: fixed;
  width: 40px;
  height: 40px;
  background: radial-gradient(ellipse at 30% 30%, rgba(255, 20, 147, 0.3) 0%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  animation: aura-pulse 1.5s ease-in-out infinite, aura-glitch 4s infinite;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Glitch animation keyframes */
@keyframes cursor-glitch {
  0%, 100% {
    transform: translate(-30%, -15%) rotate(-35deg);
    filter: drop-shadow(0 0 6px var(--pink, #ff69b4))
            drop-shadow(0 0 12px var(--hot-pink, #ff1493))
            drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
  }
  7% {
    transform: translate(-32%, -15%) rotate(-35deg) skewX(5deg);
    filter: drop-shadow(0 0 8px var(--cyan, #00ffff))
            drop-shadow(0 0 15px var(--hot-pink, #ff1493));
  }
  8% {
    transform: translate(-28%, -15%) rotate(-33deg) skewX(-3deg);
  }
  9% {
    transform: translate(-30%, -15%) rotate(-35deg);
  }
  45% {
    transform: translate(-30%, -15%) rotate(-35deg);
  }
  47% {
    transform: translate(-30%, -17%) rotate(-37deg) skewY(2deg);
    filter: drop-shadow(-2px 0 8px var(--pink, #ff69b4))
            drop-shadow(2px 0 8px var(--cyan, #00ffff));
  }
  48% {
    transform: translate(-30%, -13%) rotate(-33deg);
  }
  49% {
    transform: translate(-30%, -15%) rotate(-35deg);
  }
  82% {
    transform: translate(-30%, -15%) rotate(-35deg);
  }
  84% {
    transform: translate(-31%, -15%) rotate(-35deg) scaleY(1.05);
    filter: drop-shadow(0 0 10px var(--hot-pink, #ff1493))
            drop-shadow(0 0 20px rgba(255, 105, 180, 0.5));
  }
  85% {
    transform: translate(-29%, -15%) rotate(-35deg) scaleY(0.98);
  }
  86% {
    transform: translate(-30%, -15%) rotate(-35deg);
  }
}

/* Subtle flicker effect */
@keyframes cursor-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.97; }
  75% { opacity: 1; }
  87% { opacity: 0.94; }
}

/* Inner triangle glitch */
@keyframes inner-glitch {
  0%, 100% { opacity: 0.6; transform: none; }
  25% { opacity: 0.8; }
  50% { opacity: 0.4; transform: translateX(1px); }
  75% { opacity: 0.7; transform: translateX(-1px); }
}

/* Glyph rotation */
@keyframes glyph-rotate {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1) rotate(360deg); }
}

/* Click flash */
@keyframes click-flash {
  0% {
    filter: drop-shadow(0 0 20px #fff)
            drop-shadow(0 0 40px var(--hot-pink, #ff1493));
  }
  100% {
    filter: drop-shadow(0 0 10px var(--pink, #ff69b4))
            drop-shadow(0 0 20px var(--hot-pink, #ff1493))
            drop-shadow(0 0 30px var(--cyan, #00ffff));
  }
}

/* Aura pulse */
@keyframes aura-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1) skewX(-5deg);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.4) skewX(5deg);
    opacity: 0.2;
  }
}

/* Aura glitch effect */
@keyframes aura-glitch {
  0%, 100% {
    background: radial-gradient(ellipse at 30% 30%, rgba(255, 20, 147, 0.3) 0%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
  }
  33% {
    background: radial-gradient(ellipse at 35% 25%, rgba(255, 20, 147, 0.35) 0%, rgba(0, 255, 255, 0.15) 50%, transparent 70%);
  }
  66% {
    background: radial-gradient(ellipse at 25% 35%, rgba(0, 255, 255, 0.3) 0%, rgba(255, 20, 147, 0.1) 50%, transparent 70%);
  }
}

/* Click Effect */
.click-effect {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 2px solid var(--pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%) scale(0);
  animation: click-expand 0.6s ease-out forwards;
}

@keyframes click-expand {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    box-shadow: 0 0 20px var(--pink), 0 0 40px var(--hot-pink);
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
    box-shadow: 0 0 0px var(--pink);
  }
}

/* Click triangles */
.click-triangle {
  position: fixed;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid var(--pink);
  pointer-events: none;
  z-index: 99996;
  opacity: 0.8;
}

/* ============================================ */
/* PARTICLES                                   */
/* ============================================ */

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--cyan);
  border-radius: 50%;
  animation: particle-float linear infinite;
  box-shadow: 0 0 6px var(--cyan);
}

.particle:nth-child(odd) {
  background: var(--pink);
  box-shadow: 0 0 6px var(--pink);
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================ */
/* BUTTONS                                     */
/* ============================================ */

.btn-fire {
  position: relative;
  padding: 15px 40px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: var(--white);
  background: linear-gradient(to bottom, var(--teal), var(--dark-teal));
  border: none;
  border-radius: 5px;
  cursor: none;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-fire::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.btn-fire:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--cyan), 0 0 60px var(--teal);
}

.btn-fire:hover::before {
  transform: scale(1);
}

.btn-fire:active {
  transform: scale(0.95);
}

.btn-fire.pink {
  background: linear-gradient(to bottom, var(--pink), var(--dark-pink));
}

.btn-fire.pink:hover {
  box-shadow: 0 0 30px var(--pink), 0 0 60px var(--hot-pink);
}

.btn-secondary {
  padding: 10px 20px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--white);
  background: var(--gray);
  border: 1px solid var(--teal);
  border-radius: 5px;
  cursor: none;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--dark-teal);
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* ============================================ */
/* CARDS                                       */
/* ============================================ */

.card {
  background: linear-gradient(145deg, var(--gray), var(--darker));
  border: 2px solid var(--teal);
  border-radius: 10px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 30px rgba(0, 139, 139, 0.3), inset 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    transparent 40%,
    rgba(0, 255, 255, 0.1) 50%,
    transparent 60%
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.card.hidden {
  display: none;
}

/* ============================================ */
/* INPUTS                                      */
/* ============================================ */

input, select, textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--white);
  background: var(--darker);
  border: 1px solid var(--teal);
  border-radius: 5px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

input::placeholder {
  color: #555;
}

select {
  cursor: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300ffff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

select option {
  background: var(--darker);
  color: var(--white);
}

/* ============================================ */
/* MODALS                                      */
/* ============================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-box, .modal-content {
  position: relative;
  background: linear-gradient(145deg, var(--gray), var(--darker));
  border: 2px solid var(--cyan);
  border-radius: 15px;
  padding: 30px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 50px var(--cyan), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #666;
  background: none;
  border: none;
  cursor: none;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  color: var(--pink);
  text-shadow: 0 0 10px var(--pink);
  transform: scale(1.1);
}

/* ============================================ */
/* SCROLLBARS                                  */
/* ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--darker);
}

::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* ============================================ */
/* LOADING                                     */
/* ============================================ */

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--dark-teal);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================ */
/* SCANLINE OVERLAY                            */
/* ============================================ */

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ============================================ */
/* TOOLS LINKS                                 */
/* ============================================ */

.tools-link {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  overflow: visible;
  background: linear-gradient(transparent, rgba(5, 5, 10, 0.9) 30%);
}

.tools-link a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: #555;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 10px 15px;
  background: rgba(10, 10, 18, 0.8);
  border: 1px solid var(--dark-teal);
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: none;
}

.tools-link a:hover {
  color: var(--cyan);
  border-color: var(--teal);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  text-shadow: 0 0 5px var(--cyan);
}

/* Nav Dropdown (GAMES menu) */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.nav-dropdown-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: #555;
  letter-spacing: 1px;
  padding: 10px 15px;
  background: rgba(10, 10, 18, 0.8);
  border: 1px solid var(--dark-teal);
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: none;
  white-space: nowrap;
}

.nav-dropdown-btn:hover,
.nav-dropdown:hover .nav-dropdown-btn {
  color: var(--cyan);
  border-color: var(--teal);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  text-shadow: 0 0 5px var(--cyan);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: rgba(10, 10, 18, 0.95);
  border: 1px solid var(--dark-teal);
  border-radius: 8px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  z-index: 200;
  min-width: 120px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: #555;
  text-decoration: none;
  letter-spacing: 1px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: none;
  white-space: nowrap;
  text-align: center;
}

.nav-dropdown-menu a:hover {
  color: var(--cyan);
  background: rgba(0, 255, 255, 0.05);
  text-shadow: 0 0 5px var(--cyan);
}

/* ============================================ */
/* UTILITY CLASSES                             */
/* ============================================ */

.hidden {
  display: none !important;
}

.text-cyan {
  color: var(--cyan);
}

.text-pink {
  color: var(--pink);
}

.text-green {
  color: var(--green);
}

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

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .glitch-text {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 0.7rem;
    letter-spacing: 4px;
  }

  .card {
    padding: 25px;
  }

  .tools-link {
    gap: 5px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 8px 10px;
  }

  .tools-link a {
    font-size: 0.4rem;
    padding: 8px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-dropdown-btn {
    font-size: 0.4rem;
    padding: 8px 10px;
  }

  .nav-dropdown-menu a {
    font-size: 0.35rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .glitch-text {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.6rem;
    letter-spacing: 2px;
  }
}

/* ============================================ */
/* ADD GROTTO NETWORK BUTTON                   */
/* ============================================ */

.btn-add-network {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--darker);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-add-network:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--cyan), 0 5px 20px rgba(0, 255, 255, 0.4);
}

.btn-add-network:active {
  transform: translateY(0);
}

.btn-add-network .wallet-icon {
  font-size: 1rem;
}
