/* =========================================================
   Global Styles & Variables
========================================================= */

body {
  font-family: 'Geist', sans-serif;
  background-color: #010409;
  color: rgba(255, 255, 255, 0.7);
  overflow-x: hidden;
}

.font-geist {
  font-family: 'Geist', sans-serif !important;
}

/* Scrollbar Hide */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* =========================================================
   Animations (Reveal on Scroll)
========================================================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Styles */
#exchange-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#exchange-modal.active {
  opacity: 1;
  pointer-events: auto;
}

#exchange-modal .modal-content {
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#exchange-modal.active .modal-content {
  transform: translateY(0) scale(1);
}

/* =========================================================
   Location Section Animations
========================================================= */
@keyframes pulse-blue {

  0%,
  100% {
    background-color: #0066FF;
    box-shadow: 0 0 15px #0066FF;
  }

  50% {
    background-color: #010409;
    box-shadow: none;
  }
}

.floor-6 {
  animation: pulse-blue 2s infinite;
  background-color: #0066FF !important;
  box-shadow: 0 0 15px #0066FF, 0 0 30px rgba(0, 102, 255, 0.5);
  height: 3px !important;
  /* Make it thicker */
  z-index: 50;
}

/* =========================================================
   Backgrounds
========================================================= */
.bg-grid-pattern {
  background-image: radial-gradient(circle, #ffffff10 1px, transparent 1px);
  background-size: 30px 30px;
}

.bg-checker {
  background-image: radial-gradient(#ffffff05 1px, transparent 1px);
  background-size: 20px 20px;
}

/* =========================================================
   Exchange Modal Transitions
========================================================= */
#exchange-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#exchange-modal.active {
  opacity: 1;
  pointer-events: auto;
}

#exchange-modal .modal-content {
  transform: scale(0.95) translateY(10px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#exchange-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

/* =========================================================
   Complex Animated Button (Neon Lime Version)
========================================================= */
.btn-complex-animate {
  display: inline-flex;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, rgb(26, 26, 26) 0%, rgb(10, 10, 10) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: rgba(0, 0, 0, 0.4) 0px 8px 32px, rgba(255, 255, 255, 0.1) 0px 1px 0px inset, rgba(0, 0, 0, 0.5) 0px -1px 0px inset;
  transform: translateY(0px);
  scale: 1;
}

.btn-complex-animate:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(0, 102, 255, 0.3);
  /* Blue shadow */
}

.btn-complex-animate .loader {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  background-color: transparent;
  mask: repeating-linear-gradient(90deg, transparent 0, transparent 6px, black 7px, black 8px);
  -webkit-mask: repeating-linear-gradient(90deg, transparent 0, transparent 6px, black 7px, black 8px);
}

.btn-complex-animate .loader-inner {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Replace lime gradient with electric blue gradient */
  background-image: radial-gradient(circle at 50% 50%, #0066FF 0%, transparent 50%), radial-gradient(circle at 45% 45%, #0052cc 0%, transparent 45%), radial-gradient(circle at 55% 55%, #3385ff 0%, transparent 45%), radial-gradient(circle at 45% 55%, #0047b3 0%, transparent 45%), radial-gradient(circle at 55% 45%, #003d99 0%, transparent 45%);
  mask: radial-gradient(circle at 50% 50%, transparent 0%, transparent 10%, black 25%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0%, transparent 10%, black 25%);
  animation: transform-animation 2s infinite alternate, opacity-animation 4s infinite;
  animation-timing-function: cubic-bezier(0.6, 0.8, 0.5, 1);
  filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.6));
}

.btn-complex-text {
  position: relative;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  user-select: none;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-letter {
  display: inline-block;
  opacity: 0;
  animation: loader-letter-anim 4s infinite linear;
}

@keyframes transform-animation {
  0% {
    transform: translate(-55%);
  }

  100% {
    transform: translate(55%);
  }
}

@keyframes opacity-animation {

  0%,
  100% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  65% {
    opacity: 0;
  }
}

@keyframes loader-letter-anim {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 1;
    text-shadow: 0 0 8px #0066FF, 0 0 12px #0066FF;
    /* Blue text shadow */
    transform: scale(1.1) translateY(-2px);
  }

  20% {
    opacity: 0.2;
  }

  100% {
    opacity: 0;
  }
}


/* =========================================================
   Telemetry Section Styles (Sci-Fi Dashboard)
========================================================= */

.cmd-panel {
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.92), rgba(10, 10, 12, 0.92));
  border: 1px solid rgba(63, 63, 70, 0.55);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -20px 40px rgba(0, 0, 0, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform-style: preserve-3d;
}

.cmd-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.9), rgba(10, 10, 12, 0.6));
  border-bottom: 1px solid rgba(63, 63, 70, 0.5);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.cmd-panel-body {
  padding: 16px;
  position: relative;
  flex: 1;
}

.tactile-glass {
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.75), rgba(10, 10, 12, 0.55));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 1) GREEN "PROGRESS" (Radar sweep) — animate on entry */
.radar-sweep {
  opacity: 0;
  border-radius: 999px;
  background:
    conic-gradient(from 0deg,
      rgba(0, 102, 255, 0.00),
      rgba(0, 102, 255, 0.00) 52%,
      rgba(0, 102, 255, 0.22) 62%,
      rgba(0, 102, 255, 0.00) 72%,
      rgba(0, 102, 255, 0.00));
  /* cut it into a ring */
  -webkit-mask: radial-gradient(circle, transparent 0 55%, #000 58% 100%);
  mask: radial-gradient(circle, transparent 0 55%, #000 58% 100%);
  will-change: transform, opacity;
}

@keyframes radar-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* only animate when section is in view */
#telemetry.telemetry-in .radar-sweep {
  opacity: 1;
  animation: radar-rotate 2.8s linear infinite;
}

/* 2) PROGRESS BAR (Deployment Tasks) */
@keyframes pb-deploy {
  0% {
    width: 0%;
  }

  100% {
    width: var(--pb, 80%);
  }
}

@keyframes pb-sweep {
  0% {
    left: -50%;
  }

  100% {
    left: 150%;
  }
}

.pb-fill {
  width: 0%;
}

.pb-sheen {
  left: -50%;
}

#telemetry.telemetry-in .pb-fill {
  animation: pb-deploy 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#telemetry.telemetry-in .pb-sheen {
  animation: pb-sweep 2s linear infinite;
}

/* 3) "LINE PROGRESS BAR" (Quantum Relay Uplink) */
@keyframes signal-flow {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes sweep-block {
  0% {
    left: 5%;
    right: 80%;
  }

  25% {
    box-shadow: inset 0 0 20px rgba(0, 102, 255, 0.5);
  }

  50% {
    left: 45%;
    right: 45%;
    box-shadow: inset 0 0 30px rgba(0, 102, 255, 0.8);
    background-color: rgba(0, 102, 255, 0.3);
    border-color: rgba(0, 102, 255, 1);
  }

  75% {
    box-shadow: inset 0 0 20px rgba(0, 102, 255, 0.5);
  }

  100% {
    left: 80%;
    right: 5%;
  }
}

.signal-texture {
  background: repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(0, 102, 255, 0.2) 10px, rgba(0, 102, 255, 0.2) 20px);
  background-size: 200% 100%;
  background-position: 200% 0;
}

.sweep-block {
  left: 5%;
  right: 80%;
}

#telemetry.telemetry-in .signal-texture {
  animation: signal-flow 20s linear infinite;
}

#telemetry.telemetry-in .sweep-block {
  animation: sweep-block 4s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

/* Base loop animations */
@keyframes thermal-fluctuation {

  0%,
  100% {
    stroke-dashoffset: 110;
  }

  50% {
    stroke-dashoffset: 60;
  }
}

@keyframes aura-compute-bar-1 {

  0%,
  100% {
    height: 4rem;
  }

  33% {
    height: 5.5rem;
  }

  66% {
    height: 2.5rem;
  }
}

@keyframes aura-compute-bar-2 {

  0%,
  100% {
    height: 6rem;
  }

  33% {
    height: 4.5rem;
  }

  66% {
    height: 7rem;
  }
}

@keyframes aura-compute-bar-3 {

  0%,
  100% {
    height: 3.5rem;
  }

  33% {
    height: 4.5rem;
  }

  66% {
    height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  #telemetry *,
  .reveal-on-scroll {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .pb-fill {
    width: var(--pb, 80%) !important;
  }

  .radar-sweep {
    opacity: 1 !important;
  }
}

/* =========================================================
   Custom Dropdown Styles
========================================================= */
.custom-dropdown {
  position: relative;
  width: 120px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .custom-dropdown {
    width: 160px;
  }
}


.dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}


.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: -2px;
  width: 240px;
  background: rgba(18, 18, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 8px;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}


.custom-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-dropdown.active {
  z-index: 200;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 0.5rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
  font-size: 0.75rem;
}


.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.dropdown-item.selected {
  background: rgba(0, 102, 255, 0.1);
  color: #0066FF;
}

.currency-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}


.icon-rub { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); color: white; }
.icon-usd { background: linear-gradient(135deg, #001f3f 0%, #0066FF 100%); color: white; }
.icon-eur { background: linear-gradient(135deg, #000080 0%, #0000FF 100%); color: white; }
.icon-usdt { background: linear-gradient(135deg, #004080 0%, #0066FF 100%); color: white; }

.dropdown-arrow {
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.3);
}

.custom-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  .dropdown-menu {
    width: 200px;
  }
}