/* ======================================================
   Inframundo Expansion — Dark Green / Sinister Theme
   ====================================================== */

/* --- Expansion Modal Overlay --- */
.infra-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s ease, visibility .6s ease, background .8s ease;
}

.infra-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(0, 0, 0, .85);
}

/* Green fog behind modal */
.infra-modal-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(34, 139, 34, .08) 0%, transparent 70%);
  pointer-events: none;
  animation: infra-fog-pulse 4s ease-in-out infinite;
}

@keyframes infra-fog-pulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

/* --- Modal Card --- */
.infra-modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(168deg, rgba(8, 12, 8, .97) 0%, rgba(4, 6, 4, .99) 100%);
  border: 1px solid rgba(34, 139, 34, .2);
  border-radius: 12px;
  box-shadow:
    0 0 60px rgba(34, 139, 34, .1),
    0 0 120px rgba(34, 139, 34, .05),
    0 4px 32px rgba(0, 0, 0, .6),
    inset 0 1px 0 rgba(34, 139, 34, .05);
  overflow: hidden;
  transform: translateY(30px) scale(.95);
  opacity: 0;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1) .2s, opacity .5s ease .2s;
}

.infra-modal-overlay.active .infra-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Flickering green lights on edges */
.infra-modal::before,
.infra-modal::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.infra-modal::before {
  top: -40px;
  left: -40px;
  background: radial-gradient(circle, rgba(34, 180, 34, .25) 0%, transparent 70%);
  animation: infra-light-flicker 2.5s ease-in-out infinite;
}

.infra-modal::after {
  bottom: -40px;
  right: -40px;
  background: radial-gradient(circle, rgba(34, 180, 34, .2) 0%, transparent 70%);
  animation: infra-light-flicker 3.2s ease-in-out infinite .8s;
}

@keyframes infra-light-flicker {
  0%, 100% { opacity: .3; transform: scale(1); }
  20% { opacity: 1; transform: scale(1.1); }
  25% { opacity: .2; transform: scale(.95); }
  40% { opacity: .8; transform: scale(1.05); }
  60% { opacity: .4; transform: scale(1); }
  80% { opacity: .9; transform: scale(1.08); }
  85% { opacity: .15; transform: scale(.9); }
}

/* --- Flyer Image --- */
.infra-modal-flyer {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid rgba(34, 139, 34, .15);
}

/* --- Modal Body --- */
.infra-modal-body {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.25rem 1rem;
  text-align: center;
}

.infra-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3bef3b;
  text-shadow: 0 0 20px rgba(34, 180, 34, .4);
  margin-bottom: .35rem;
  letter-spacing: .02em;
}

.infra-modal-sub {
  font-size: .75rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* --- Countdown --- */
.infra-countdown {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.infra-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  padding: .45rem .35rem;
  background: rgba(34, 139, 34, .06);
  border: 1px solid rgba(34, 139, 34, .15);
  border-radius: 8px;
}

.infra-countdown-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #3bef3b;
  line-height: 1;
  text-shadow: 0 0 12px rgba(34, 180, 34, .5);
  font-variant-numeric: tabular-nums;
}

.infra-countdown-label {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .35);
  margin-top: .3rem;
}

.infra-countdown-sep {
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(34, 139, 34, .4);
  align-self: flex-start;
  padding-top: .6rem;
  animation: infra-sep-blink 1s step-end infinite;
}

@keyframes infra-sep-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}

/* --- Buttons --- */
.infra-modal-actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.infra-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .6rem 1.25rem;
  font-size: .8rem;
  font-weight: 700;
  color: #0a0e0a;
  background: linear-gradient(135deg, #3bef3b 0%, #228b22 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
  font-family: inherit;
}

.infra-btn-primary:hover {
  box-shadow: 0 0 24px rgba(34, 180, 34, .3);
  transform: translateY(-1px);
}

.infra-btn-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .3);
  font-size: .72rem;
  cursor: pointer;
  padding: .4rem;
  transition: color .2s;
  font-family: inherit;
}

.infra-btn-dismiss:hover {
  color: rgba(255, 255, 255, .6);
}

/* --- Close button --- */
.infra-modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: all .2s;
}

.infra-modal-close:hover {
  color: #fff;
  border-color: rgba(34, 139, 34, .3);
  background: rgba(0, 0, 0, .7);
}

.infra-modal-close svg {
  width: 16px;
  height: 16px;
}


/* ======================================================
   Landing Page — Inframundo Banner Section
   ====================================================== */
.infra-banner {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(7, 7, 12, 1) 0%, rgba(6, 14, 6, .95) 40%, rgba(6, 14, 6, .95) 60%, rgba(7, 7, 12, 1) 100%);
  border-top: 1px solid rgba(34, 139, 34, .1);
  border-bottom: 1px solid rgba(34, 139, 34, .1);
}

/* Animated fog */
.infra-banner::before {
  content: '';
  position: absolute;
  inset: -50% -20%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(34, 139, 34, .06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(34, 139, 34, .06) 0%, transparent 50%);
  animation: infra-banner-fog 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes infra-banner-fog {
  0% { transform: translateX(-5%); }
  100% { transform: translateX(5%); }
}

/* Banner particle canvas */
.infra-banner-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.infra-banner-fog-layer {
  display: none;
}

.infra-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.infra-banner-kicker {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #3bef3b;
  margin-bottom: .5rem;
  text-shadow: 0 0 12px rgba(34, 180, 34, .4);
}

.infra-banner-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .25rem;
}

.infra-banner-title span {
  color: #3bef3b;
  text-shadow: 0 0 20px rgba(34, 180, 34, .4);
}

.infra-banner-sub {
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Inline countdown for banner */
.infra-banner-countdown {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.infra-banner-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: .5rem .35rem;
  background: rgba(34, 139, 34, .06);
  border: 1px solid rgba(34, 139, 34, .12);
  border-radius: 8px;
}

.infra-banner-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #3bef3b;
  line-height: 1;
  text-shadow: 0 0 12px rgba(34, 180, 34, .5);
  font-variant-numeric: tabular-nums;
}

.infra-banner-label {
  font-size: .55rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .3);
  margin-top: .25rem;
}

.infra-banner-sep {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(34, 139, 34, .3);
  align-self: flex-start;
  padding-top: .5rem;
  animation: infra-sep-blink 1s step-end infinite;
}

.infra-banner-flyer {
  display: block;
  max-width: 280px;
  margin: 0 auto 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(34, 139, 34, .15);
  box-shadow: 0 0 40px rgba(34, 139, 34, .1), 0 8px 32px rgba(0, 0, 0, .4);
}


/* ======================================================
   Green Ambient Effects on Landing
   ====================================================== */

/* Subtle green glow on hero section bottom — only in corrupted mode */
.infra-hero-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(34, 139, 34, .08) 0%, transparent 70%);
  pointer-events: none;
  animation: infra-hero-glow-pulse 5s ease-in-out infinite;
  display: none;
}

.infra-corrupted .infra-hero-glow {
  display: block;
}

@keyframes infra-hero-glow-pulse {
  0%, 100% { opacity: .3; }
  50% { opacity: .7; }
}


/* ======================================================
   Green Particle Canvas (overlay on hero) — only in corrupted mode
   ====================================================== */
.infra-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: none;
}

.infra-corrupted .infra-particles {
  display: block;
}


/* ======================================================
   Responsive
   ====================================================== */
@media (max-width: 500px) {
  .infra-modal {
    max-width: 100%;
    border-radius: 10px;
  }

  .infra-modal-flyer {
    border-radius: 10px 10px 0 0;
  }

  .infra-modal-body {
    padding: 1.25rem 1rem 1rem;
  }

  .infra-countdown-unit {
    min-width: 48px;
    padding: .5rem .3rem;
  }

  .infra-countdown-val {
    font-size: 1.25rem;
  }

  .infra-banner-title {
    font-size: 1.4rem;
  }

  .infra-banner-flyer {
    max-width: 220px;
  }

  .infra-banner-unit {
    min-width: 44px;
  }

  .infra-banner-val {
    font-size: 1.15rem;
  }

  .infra-banner {
    padding: 2rem 1rem;
  }

  .infra-modal-close {
    width: 40px;
    height: 40px;
  }
}


/* ======================================================
   CORRUPTION TRANSITION — Dark underworld takeover
   ====================================================== */

/* Container */
.infra-corruption-fx {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
}

/* Slow darkness creeping from edges */
.infra-fx-darkness {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 10%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.97) 100%);
  opacity: 0;
  animation: infra-darkness 3s ease forwards;
}

@keyframes infra-darkness {
  0% { opacity: 0; }
  40% { opacity: 1; }
  60% { opacity: 1; }
  100% { opacity: 0; }
}

/* Faint green mist seeping from bottom */
.infra-fx-mist {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20,80,20,.25) 0%, transparent 40%),
    radial-gradient(ellipse at 30% 90%, rgba(34,139,34,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 85%, rgba(34,139,34,.12) 0%, transparent 45%);
  opacity: 0;
  animation: infra-mist 3.5s ease forwards;
}

@keyframes infra-mist {
  0% { opacity: 0; transform: translateY(30px); }
  30% { opacity: 1; transform: translateY(0); }
  60% { opacity: .8; }
  100% { opacity: 0; }
}

/* Blackout at the peak — covers everything for the color swap */
.infra-fx-blackout {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000 0%, #040a04 100%);
  opacity: 0;
  animation: infra-blackout 3s ease forwards;
}

@keyframes infra-blackout {
  0% { opacity: 0; }
  38% { opacity: 0; }
  48% { opacity: 1; }
  58% { opacity: 1; }
  75% { opacity: 0; }
  100% { opacity: 0; }
}

/* Single subtle green glow after reveal */
.infra-fx-reveal {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(34,139,34,.12) 0%, transparent 70%);
  opacity: 0;
  animation: infra-reveal 3s ease forwards;
}

@keyframes infra-reveal {
  0% { opacity: 0; }
  55% { opacity: 0; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}


/* ======================================================
   CORRUPTED STATE — Replaces all gold with green
   Activated after dismissing the Inframundo modal
   ====================================================== */


/* ======================================================
   Toggle Theme Button (header)
   ====================================================== */
.infra-toggle-btn,
.infra-toggle-mobile {
  display: none;
}

/* Show button only after user has dismissed modal (infra_dismissed exists) */
.infra-dismissed .infra-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(34,139,34,.2);
  background: rgba(34,139,34,.06);
  color: #3bef3b;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
}

.infra-dismissed .infra-toggle-btn svg {
  width: 16px;
  height: 16px;
}

.infra-dismissed .infra-toggle-btn:hover {
  border-color: rgba(34,139,34,.4);
  background: rgba(34,139,34,.12);
  color: #3bef3b;
}

/* When corrupted, show restore icon (gold) — switch to original */
.infra-corrupted .infra-toggle-btn {
  border-color: rgba(201,168,76,.15);
  background: rgba(201,168,76,.06);
  color: #c9a84c;
}

.infra-corrupted .infra-toggle-btn:hover {
  border-color: rgba(201,168,76,.35);
  background: rgba(201,168,76,.12);
  color: #dfc06a;
}

/* Icon visibility toggle */
.infra-toggle-icon-restore { display: none; }
.infra-toggle-icon-infra { display: block; }

.infra-corrupted .infra-toggle-icon-restore { display: block; }
.infra-corrupted .infra-toggle-icon-infra { display: none; }

/* Mobile link */
.infra-dismissed .infra-toggle-mobile {
  display: block;
  color: #3bef3b !important;
}

.infra-corrupted .infra-toggle-mobile {
  color: #c9a84c !important;
}

/* Override CSS custom properties */
.infra-corrupted {
  --primary: #2eaa2e;
  --primary-foreground: #040a04;
  --ring: #2eaa2e;
  --gold: #2eaa2e;
  --gold-light: #3bef3b;
  --gold-dark: #1a7a1a;
  --border: #0f2a0f;
}

/* Navbar gold line → green */
.infra-corrupted .site-nav::after {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(34, 139, 34, .15) 20%,
    rgba(59, 239, 59, .35) 50%,
    rgba(34, 139, 34, .15) 80%,
    transparent 100%) !important;
}

/* Navbar scrolled bg tint */
.infra-corrupted .site-nav.scrolled {
  background: rgba(4, 8, 4, .92);
  border-bottom-color: rgba(34, 139, 34, .1);
}

/* Buttons — btn-primary gold → green */
.infra-corrupted .btn-primary {
  background: linear-gradient(135deg, #3bef3b 0%, #1a7a1a 100%) !important;
  color: #040a04 !important;
  border-color: rgba(34, 139, 34, .3) !important;
}

.infra-corrupted .btn-primary:hover {
  box-shadow: 0 0 20px rgba(34, 180, 34, .25) !important;
}

/* btn-outline */
.infra-corrupted .btn-outline {
  border-color: rgba(34, 139, 34, .3) !important;
  color: #3bef3b !important;
}

.infra-corrupted .btn-outline:hover {
  background: rgba(34, 139, 34, .08) !important;
  border-color: rgba(59, 239, 59, .4) !important;
}

/* btn-ghost */
.infra-corrupted .btn-ghost {
  color: #3bef3b !important;
}

/* btn-logout */
.infra-corrupted .btn-logout {
  border-color: rgba(34, 139, 34, .3) !important;
  color: #3bef3b !important;
}

/* Hero subtitle and descriptions */
.infra-corrupted .hero-subtitle {
  color: rgba(59, 239, 59, .6) !important;
}

/* Diamond rule */
.infra-corrupted .diamond-rule .diamond {
  background: #2eaa2e !important;
  box-shadow: 0 0 12px rgba(34, 180, 34, .4) !important;
}

.infra-corrupted .diamond-rule::before,
.infra-corrupted .diamond-rule::after {
  background: linear-gradient(90deg, transparent, rgba(34, 139, 34, .3)) !important;
}

/* Section kickers */
.infra-corrupted .section-kicker {
  color: #3bef3b !important;
}

/* Section headings — gold gradient text → green */
.infra-corrupted .section-heading {
  color: #3bef3b !important;
  background: linear-gradient(135deg, #3bef3b 0%, #2eaa2e 40%, #1a7a1a 70%, #3bef3b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Feature cards */
.infra-corrupted .feature-card {
  border-color: rgba(34, 139, 34, .08) !important;
}

.infra-corrupted .feature-card:hover {
  border-color: rgba(34, 139, 34, .2) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 32px rgba(0,0,0,.4), 0 0 48px rgba(34, 139, 34, .06) !important;
}

.infra-corrupted .feature-title {
  color: #3bef3b !important;
}

.infra-corrupted .icon-box {
  background: rgba(34, 139, 34, .08) !important;
  border-color: rgba(34, 139, 34, .15) !important;
  color: #3bef3b !important;
}

/* Card premium borders */
.infra-corrupted .card-premium {
  border-color: rgba(34, 139, 34, .08) !important;
}

.infra-corrupted .card-premium:hover {
  border-color: rgba(34, 139, 34, .2) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 32px rgba(0,0,0,.4), 0 0 48px rgba(34, 139, 34, .06) !important;
}

/* Pillar cards */
.infra-corrupted .pillar-icon {
  color: #3bef3b !important;
}

.infra-corrupted .pillar-title {
  color: #3bef3b !important;
}

/* Play modal titles */
.infra-corrupted .play-modal-title {
  color: #3bef3b !important;
  background: linear-gradient(135deg, #3bef3b 0%, #2eaa2e 40%, #1a7a1a 70%, #3bef3b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.infra-corrupted .play-modal-card-title {
  color: #3bef3b !important;
}

/* Server status dot */
.infra-corrupted .server-status {
  overflow: visible;
}

.infra-corrupted .server-status-dot::before {
  background: #3bef3b !important;
}

.infra-corrupted .server-status-dot::after {
  background: #3bef3b !important;
}

/* Changelog */
.infra-corrupted .changelog-version {
  background: rgba(34, 139, 34, .1) !important;
  color: #3bef3b !important;
}

/* Section dividers — fully green */
.infra-corrupted .section-divider::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(34, 139, 34, .2) 30%,
    rgba(59, 239, 59, .35) 50%,
    rgba(34, 139, 34, .2) 70%,
    transparent 100%) !important;
}

/* Hero particles + nav particles canvas → hue shift */
.infra-corrupted #hero-particles,
.infra-corrupted #nav-particles,
.infra-corrupted #discord-particles,
.infra-corrupted #shop-particles,
.infra-corrupted #logout-particles,
.infra-corrupted #header-logout-particles,
.infra-corrupted #postulaciones-particles {
  filter: hue-rotate(85deg) saturate(1.5);
}

/* Login modal gold accents */
.infra-corrupted .login-modal {
  border-color: rgba(34, 139, 34, .15) !important;
}

.infra-corrupted .login-modal-icon {
  background: rgba(34, 139, 34, .08) !important;
  border-color: rgba(34, 139, 34, .15) !important;
}

.infra-corrupted .login-modal-icon svg {
  color: #3bef3b !important;
}

.infra-corrupted .login-modal h2 {
  color: #3bef3b !important;
  background: linear-gradient(135deg, #3bef3b 0%, #2eaa2e 40%, #1a7a1a 70%, #3bef3b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.infra-corrupted .login-modal-close:hover {
  border-color: rgba(34, 139, 34, .2) !important;
  background: rgba(34, 139, 34, .05) !important;
}

.infra-corrupted .login-modal-recovery:hover {
  color: #3bef3b !important;
}

.infra-corrupted .login-modal-loader .panel-loader-spinner {
  border-top-color: #3bef3b !important;
}

/* Scrollbar */
.infra-corrupted::-webkit-scrollbar-thumb {
  background: #1a7a1a !important;
}

.infra-corrupted::-webkit-scrollbar-thumb:hover {
  background: #2eaa2e !important;
}

/* Download modal */
.infra-corrupted .download-modal-icon {
  background: rgba(34, 139, 34, .08) !important;
  border-color: rgba(34, 139, 34, .15) !important;
}

.infra-corrupted .download-modal-icon svg {
  color: #3bef3b !important;
}

.infra-corrupted .download-modal-title {
  color: #3bef3b !important;
  background: linear-gradient(135deg, #3bef3b 0%, #2eaa2e 40%, #1a7a1a 70%, #3bef3b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.infra-corrupted .download-modal-spinner {
  border-color: rgba(34, 139, 34, .15) !important;
  border-top-color: #3bef3b !important;
}

.infra-corrupted .download-modal {
  border-color: rgba(34, 139, 34, .15) !important;
}

/* Discord pillar — tint green */
.infra-corrupted .pillar-card--discord .pillar-icon {
  color: #3bef3b !important;
}

/* Transparency cards */
.infra-corrupted .transparency-card-icon {
  color: #3bef3b !important;
}

/* Footer links */
.infra-corrupted a:hover {
  color: #3bef3b;
}

/* Hero background — swap to Inframundo version */
.infra-corrupted .hero-bg {
  background-image: url('/assets/img/hero-bg-inframundo.jpg') !important;
}

/* Account-control panel background */
.infra-corrupted #account-control {
  background-image: url('/assets/img/hero-bg-inframundo.jpg') !important;
}

/* Hero logo — keep original colors, green glow only */
.infra-corrupted .hero-logo {
  animation: infra-logo-breathe 4s ease-in-out infinite !important;
}

@keyframes infra-logo-breathe {
  0%, 100% {
    filter:
      drop-shadow(0 0 12px rgba(34, 180, 34, .3))
      drop-shadow(0 0 40px rgba(34, 180, 34, .1));
    transform: scale(1);
  }
  50% {
    filter:
      drop-shadow(0 0 24px rgba(34, 180, 34, .5))
      drop-shadow(0 0 64px rgba(34, 180, 34, .2))
      drop-shadow(0 0 100px rgba(34, 180, 34, .08));
    transform: scale(1.015);
  }
}

/* Focus ring */
.infra-corrupted *:focus-visible {
  outline-color: #2eaa2e !important;
}

/* ======================================================
   GLOBAL GOLD → GREEN OVERRIDES
   Catches all hardcoded rgba(201,168,76) and #c9a84c
   ====================================================== */

/* All input/textarea focus states */
.infra-corrupted input:focus,
.infra-corrupted textarea:focus,
.infra-corrupted select:focus {
  border-color: rgba(34, 139, 34, .4) !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 34, .08) !important;
}

/* Nav links & general link hover */
.infra-corrupted .nav-link:hover,
.infra-corrupted .nav-link.active {
  color: #3bef3b !important;
}

.infra-corrupted .nav-link::after {
  background: #3bef3b !important;
}

/* Nav mobile active */
.infra-corrupted .nav-mobile-link:hover,
.infra-corrupted .nav-mobile-link.active {
  color: #3bef3b !important;
  background: rgba(34, 139, 34, .06) !important;
}

/* Hamburger active */
.infra-corrupted .hamburger.active span {
  background: #3bef3b !important;
}

/* All card borders on hover */
.infra-corrupted .transparency-card:hover,
.infra-corrupted .changelog-card:hover,
.infra-corrupted .pillar-card:hover {
  border-color: rgba(34, 139, 34, .2) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 32px rgba(0,0,0,.4), 0 0 48px rgba(34, 139, 34, .06) !important;
}

/* Registration form field focus */
.infra-corrupted .login-field input:focus,
.infra-corrupted .form-field input:focus,
.infra-corrupted .register-field input:focus {
  border-color: rgba(34, 139, 34, .4) !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 34, .08) !important;
}

/* Register page heading */
.infra-corrupted .register-title,
.infra-corrupted .login-title {
  color: #3bef3b !important;
  background: linear-gradient(135deg, #3bef3b 0%, #2eaa2e 40%, #1a7a1a 70%, #3bef3b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Recaptcha branding link */
.infra-corrupted .recaptcha-branding a:hover {
  color: #3bef3b !important;
}

/* Scrollbar track */
.infra-corrupted::-webkit-scrollbar-track {
  background: #040804 !important;
}

/* Footer gold accents */
.infra-corrupted .footer-link:hover {
  color: #3bef3b !important;
}

/* Tooltip / popover borders */
.infra-corrupted [data-tooltip]:hover::after {
  border-color: rgba(34, 139, 34, .2) !important;
}

/* Play modal card borders */
.infra-corrupted .play-modal-card {
  border-color: rgba(34, 139, 34, .08) !important;
}

.infra-corrupted .play-modal-card:hover {
  border-color: rgba(34, 139, 34, .25) !important;
}

/* Download modal spinner */
.infra-corrupted .download-modal-spinner,
.infra-corrupted .panel-loader-spinner {
  border-color: rgba(34, 139, 34, .15) !important;
  border-top-color: #3bef3b !important;
}

/* Generic gold text gradient override (h2, h3 with gold gradients) */
.infra-corrupted .play-modal h2,
.infra-corrupted .download-modal h2 {
  color: #3bef3b !important;
  background: linear-gradient(135deg, #3bef3b 0%, #2eaa2e 40%, #1a7a1a 70%, #3bef3b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Hero subtitle glow */
.infra-corrupted .hero-desc {
  color: rgba(59, 239, 59, .4) !important;
}

/* Community section / discord */
.infra-corrupted .discord-btn:hover {
  border-color: rgba(34, 139, 34, .35) !important;
  background: rgba(34, 139, 34, .06) !important;
}

/* ======================================================
   ACCOUNT-CONTROL PANEL — Gold → Green overrides
   ====================================================== */

/* Panel nav buttons */
.infra-corrupted .panel-nav-btn {
  border-color: rgba(34, 139, 34, .08) !important;
}

.infra-corrupted .panel-nav-btn svg {
  color: #3bef3b !important;
}

.infra-corrupted .panel-nav-btn:hover {
  border-color: rgba(34, 139, 34, .25) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 32px rgba(0,0,0,.4), 0 0 48px rgba(34, 139, 34, .06), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.infra-corrupted .panel-nav-btn.active {
  border-color: rgba(34, 139, 34, .3) !important;
  background: linear-gradient(168deg, rgba(34, 139, 34, .08) 0%, rgba(7,7,12,.98) 100%) !important;
}

/* Shop button */
.infra-corrupted .panel-nav-btn--shop {
  border-color: rgba(34, 139, 34, .3) !important;
  background: linear-gradient(135deg, rgba(34, 139, 34, .1) 0%, rgba(7,7,12,.98) 50%, rgba(34, 139, 34, .06) 100%) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.3), 0 0 20px rgba(34, 139, 34, .08), inset 0 1px 0 rgba(34, 139, 34, .1) !important;
}

.infra-corrupted .panel-nav-btn--shop::before {
  background: linear-gradient(105deg, transparent 20%, rgba(34, 139, 34, .08) 40%, rgba(59, 239, 59, .15) 50%, rgba(34, 139, 34, .08) 60%, transparent 80%) !important;
  background-size: 200% 100% !important;
}

.infra-corrupted .panel-nav-btn--shop svg {
  color: #3bef3b !important;
  filter: drop-shadow(0 0 6px rgba(34, 139, 34, .5)) !important;
}

.infra-corrupted .panel-nav-btn--shop span {
  color: #3bef3b !important;
}

.infra-corrupted .panel-nav-btn--shop:hover {
  border-color: rgba(34, 139, 34, .5) !important;
  background: linear-gradient(135deg, rgba(34, 139, 34, .15) 0%, rgba(7,7,12,.95) 50%, rgba(34, 139, 34, .1) 100%) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 32px rgba(0,0,0,.4), 0 0 30px rgba(34, 139, 34, .15), 0 0 60px rgba(34, 139, 34, .06), inset 0 1px 0 rgba(34, 139, 34, .15) !important;
}

.infra-corrupted .panel-nav-btn--shop.active {
  border-color: rgba(34, 139, 34, .45) !important;
  background: linear-gradient(135deg, rgba(34, 139, 34, .14) 0%, rgba(7,7,12,.95) 50%, rgba(34, 139, 34, .08) 100%) !important;
}

/* Panel cards */
.infra-corrupted .panel-card {
  border-color: rgba(34, 139, 34, .12) !important;
}

.infra-corrupted .panel-card:hover {
  border-color: rgba(34, 139, 34, .25) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 32px rgba(0,0,0,.4), 0 0 32px rgba(34, 139, 34, .06), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

/* Panel card headers / icons */
.infra-corrupted .panel-card-icon {
  background: rgba(34, 139, 34, .08) !important;
  border-color: rgba(34, 139, 34, .15) !important;
}

.infra-corrupted .panel-card-icon svg {
  color: #3bef3b !important;
}

.infra-corrupted .panel-card-title {
  color: #3bef3b !important;
}

/* Badge OK */
.infra-corrupted .badge-ok {
  background: rgba(34, 139, 34, .15) !important;
  border-color: rgba(34, 139, 34, .3) !important;
  color: #3bef3b !important;
}

/* Panel tabs */
.infra-corrupted .panel-tab.active,
.infra-corrupted .panel-tab:hover {
  border-color: rgba(34, 139, 34, .4) !important;
  background: rgba(34, 139, 34, .06) !important;
  color: #3bef3b !important;
}

/* Panel info rows */
.infra-corrupted .panel-info-label {
  color: #3bef3b !important;
}

/* Panel spinners */
.infra-corrupted .panel-loader-spinner {
  border-color: rgba(34, 139, 34, .15) !important;
  border-top-color: #3bef3b !important;
}

/* Panel transaction status */
.infra-corrupted .panel-transactions .badge-ok {
  background: rgba(34, 139, 34, .1) !important;
  color: #3bef3b !important;
}

/* Panel links hover */
.infra-corrupted .panel-card a:hover {
  color: #3bef3b !important;
}

/* Download card in panel */
.infra-corrupted .panel-download-card {
  border-color: rgba(34, 139, 34, .15) !important;
}

.infra-corrupted .panel-download-card:hover {
  border-color: rgba(34, 139, 34, .3) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 32px rgba(0,0,0,.4), 0 0 40px rgba(34, 139, 34, .05) !important;
}

.infra-corrupted .panel-download-card svg {
  color: #3bef3b !important;
}

/* Panel select/checkbox accent */
.infra-corrupted select,
.infra-corrupted input[type="checkbox"] {
  accent-color: #2eaa2e !important;
}

/* Panel form inputs focus */
.infra-corrupted .panel-card input:focus,
.infra-corrupted .panel-card select:focus,
.infra-corrupted .panel-card textarea:focus {
  border-color: rgba(34, 139, 34, .4) !important;
  box-shadow: 0 0 0 3px rgba(34, 139, 34, .08) !important;
}

/* Vault modal / change password */
.infra-corrupted .panel-modal {
  border-color: rgba(34, 139, 34, .15) !important;
}

.infra-corrupted .panel-modal h2,
.infra-corrupted .panel-modal-title {
  color: #3bef3b !important;
}

/* Postulaciones card */
.infra-corrupted .panel-nav-btn--postulaciones {
  border-color: rgba(34, 139, 34, .3) !important;
}

.infra-corrupted .panel-nav-btn--postulaciones.active {
  border-color: rgba(34, 139, 34, .45) !important;
  background: linear-gradient(135deg, rgba(34, 139, 34, .14) 0%, rgba(7,7,12,.95) 50%, rgba(34, 139, 34, .08) 100%) !important;
}

/* Birthday calendar shimmer → green */
.infra-corrupted .bday-shimmer-bar {
  background: linear-gradient(90deg, #3bef3b, #2eaa2e, #fff, #2eaa2e, #3bef3b) !important;
}

/* Referral code card */
.infra-corrupted .referral-code {
  border-color: rgba(34, 139, 34, .3) !important;
  background: rgba(34, 139, 34, .06) !important;
}

.infra-corrupted .referral-code:hover {
  background: rgba(34, 139, 34, .1) !important;
  border-color: rgba(34, 139, 34, .4) !important;
}
