/* Ecosystem cyber coin — borderless, blends into homepage */
.ecosystem-cyber-coin {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: clamp(220px, 24vw, 300px);
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.cyber-coin-cloud {
  pointer-events: none;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: cyberCloudDrift 14s ease-in-out infinite;
  z-index: 0;
}

.cyber-coin-cloud-a {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, transparent 70%);
  width: 55%;
  height: 140%;
  left: 10%;
  top: -20%;
}

.cyber-coin-cloud-b {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16) 0%, transparent 70%);
  width: 50%;
  height: 130%;
  right: 5%;
  top: -15%;
  animation-delay: -4s;
}

.cyber-coin-cloud-c {
  background: radial-gradient(circle, rgba(30, 64, 175, 0.12) 0%, transparent 72%);
  width: 70%;
  height: 120%;
  left: 15%;
  bottom: -30%;
  animation-delay: -8s;
}

.cyber-coin-edge-fade {
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(240, 249, 255, 0.7) 0%, transparent 10%, transparent 90%, rgba(248, 250, 252, 0.7) 100%),
    linear-gradient(180deg, rgba(240, 249, 255, 0.6) 0%, transparent 14%, transparent 86%, rgba(241, 245, 249, 0.65) 100%);
  mask-image: radial-gradient(ellipse 96% 82% at 50% 50%, black 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 96% 82% at 50% 50%, black 55%, transparent 100%);
}

.cyber-ecosystem-hub {
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 2;
}

.cyber-chip-field {
  pointer-events: none;
}

.cyber-chip-slot {
  position: absolute;
  z-index: 20;
  transform: translate(-50%, -50%);
}

.cyber-chip-slot-inner .cyber-orbit-chip-label {
  max-width: 6.5rem;
  font-size: 0.58rem;
  padding: 0.3rem 0.6rem;
}

.cyber-chip-slot-mid .cyber-orbit-chip-label {
  max-width: 7.5rem;
  font-size: 0.62rem;
  padding: 0.32rem 0.65rem;
}

.cyber-chip-slot-outer .cyber-orbit-chip-label {
  max-width: 8.5rem;
  font-size: 0.66rem;
  padding: 0.34rem 0.7rem;
}

.cyber-signal-layer {
  pointer-events: none;
  overflow: visible;
}

.cyber-orbit-track {
  fill: none;
  stroke: rgba(34, 211, 238, 0.12);
  stroke-width: 1;
  stroke-dasharray: 6 10;
  transform-origin: center;
}

.cyber-orbit-track-static {
  opacity: 0.55;
}

.cyber-signal-line {
  stroke: rgba(14, 165, 233, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
}

.cyber-signal-pulse {
  stroke: rgba(103, 232, 249, 0.95);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 22 110;
  animation: cyberSignalPulse 2s linear infinite;
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.85));
}

.cyber-signal-glow {
  stroke: rgba(167, 139, 250, 0.35);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 14 130;
  animation: cyberSignalPulse 2.8s linear infinite reverse;
  opacity: 0.55;
}

.cyber-signal-node {
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 1));
}

.cyber-orbit-chip {
  position: relative;
  pointer-events: none;
}

.cyber-orbit-chip-label {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.4rem 0.85rem;
  text-align: center;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.025em;
  color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 18px rgba(34, 211, 238, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  white-space: nowrap;
  animation: cyberChipFloat 4.5s ease-in-out infinite;
}

.cyber-orbit-chip-ping {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 0.65rem;
  height: 0.65rem;
  margin: -0.325rem 0 0 -0.325rem;
  border-radius: 50%;
  background: rgba(103, 232, 249, 0.9);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
  animation: cyberChipPing 2.8s ease-out infinite;
  animation-delay: var(--chip-delay);
}

@media (min-width: 640px) {
  .ecosystem-cyber-coin {
    height: clamp(240px, 22vw, 300px);
  }

  .cyber-chip-slot-inner .cyber-orbit-chip-label {
    max-width: 7rem;
    font-size: 0.6rem;
  }

  .cyber-chip-slot-mid .cyber-orbit-chip-label {
    max-width: 8rem;
    font-size: 0.64rem;
  }

  .cyber-chip-slot-outer .cyber-orbit-chip-label {
    max-width: 9rem;
    font-size: 0.68rem;
  }
}

@media (min-width: 1024px) {
  .ecosystem-cyber-coin {
    height: clamp(260px, 20vw, 300px);
  }

  .cyber-chip-slot-inner .cyber-orbit-chip-label {
    font-size: 0.62rem;
  }

  .cyber-chip-slot-mid .cyber-orbit-chip-label {
    font-size: 0.66rem;
  }

  .cyber-chip-slot-outer .cyber-orbit-chip-label {
    max-width: 9.5rem;
    font-size: 0.7rem;
  }
}

.cyber-coin-stage {
  --coin-size: clamp(190px, 22vw, 221px);
  --coin-half-thickness: calc(var(--coin-size) * 0.065);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 15;
  width: var(--coin-size);
  height: var(--coin-size);
  transform: translate(-50%, -50%);
  perspective: 1000px;
  perspective-origin: 50% 50%;
}

.cyber-coin-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(10deg);
}

.cyber-coin-logo-mark {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.cyber-coin-logo-enk {
  width: 78%;
}

.cyber-coin-particle {
  opacity: 0;
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.8);
  animation: cyberCoinParticle 5s ease-in-out infinite;
}

.cyber-coin-spinner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: cyberCoinSpin 11s linear infinite;
  will-change: transform;
}

.cyber-coin-body {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--coin-size);
  height: var(--coin-size);
  margin: calc(var(--coin-size) / -2) 0 0 calc(var(--coin-size) / -2);
  transform-style: preserve-3d;
}

.cyber-coin-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.42) 0%, transparent 42%),
    radial-gradient(circle at 70% 78%, rgba(15, 23, 42, 0.45) 0%, transparent 45%),
    linear-gradient(145deg, #1e3a8a 0%, #0e7490 38%, #312e81 72%, #1e1b4b 100%);
  border: 2px solid rgba(103, 232, 249, 0.5);
  box-shadow:
    0 0 40px rgba(34, 211, 238, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    inset 0 -10px 20px rgba(15, 23, 42, 0.3);
}

.cyber-coin-face-front {
  transform: rotateY(0deg) translateZ(var(--coin-half-thickness));
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.72) 0%, transparent 46%),
    radial-gradient(circle at 68% 78%, rgba(186, 230, 253, 0.45) 0%, transparent 48%),
    linear-gradient(145deg, #f0f9ff 0%, #dbeafe 32%, #bae6fd 62%, #7dd3fc 100%);
  border-color: rgba(56, 189, 248, 0.62);
  box-shadow:
    0 0 36px rgba(56, 189, 248, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    inset 0 -8px 18px rgba(14, 116, 144, 0.12);
}

.cyber-coin-face-back {
  transform: rotateY(180deg) translateZ(var(--coin-half-thickness));
  background: #0b1524;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    0 0 36px rgba(30, 64, 175, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    inset 0 -8px 18px rgba(0, 0, 0, 0.25);
}

.cyber-coin-face-back .cyber-coin-face-plate {
  display: none;
}

.cyber-coin-face-inner-tvk {
  width: 92%;
  height: 92%;
  border-radius: 50%;
  overflow: hidden;
  transform: rotateY(180deg);
}

.cyber-coin-logo-tvk {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #0b1524;
}

.cyber-coin-face-plate {
  position: absolute;
  inset: 10%;
  z-index: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a3478 0%, #0c6678 50%, #2a2570 100%);
}

.cyber-coin-face-front .cyber-coin-face-plate {
  background: linear-gradient(145deg, #ffffff 0%, #e0f2fe 42%, #bae6fd 100%);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.55);
}

.cyber-coin-face-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74%;
  height: 74%;
}

.cyber-coin-face-back .cyber-coin-face-inner:not(.cyber-coin-face-inner-tvk) {
  display: none;
}

.cyber-coin-shine-back {
  opacity: 0.35;
  mix-blend-mode: screen;
}

.cyber-coin-shine {
  position: absolute;
  inset: -15%;
  z-index: 2;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.18) 48%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.14) 52%,
    transparent 62%
  );
  animation: cyberCoinShine 3.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.cyber-coin-edge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--coin-size) * 0.044);
  height: calc(var(--coin-size) * 0.13);
  margin: calc(var(--coin-size) * -0.065) 0 0 calc(var(--coin-size) * -0.022);
  transform-origin: center center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: rotateY(var(--edge-angle, 0deg)) translateZ(calc(var(--coin-size) / 2));
  background: linear-gradient(
    to bottom,
    #164e63 0%,
    #0891b2 22%,
    #1e3a8a 50%,
    #0891b2 78%,
    #164e63 100%
  );
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.15);
}

.cyber-coin-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 130%;
  height: 130%;
  margin: -65% 0 0 -65%;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.15);
  box-shadow:
    0 0 40px rgba(34, 211, 238, 0.18),
    0 0 80px rgba(124, 58, 237, 0.1);
  animation: cyberCoinHalo 5s ease-in-out infinite;
  pointer-events: none;
  transform: translateZ(0);
}

.cyber-coin-reflection {
  position: absolute;
  left: 50%;
  bottom: -8%;
  z-index: 0;
  width: 55%;
  height: 12%;
  margin-left: -27.5%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
  filter: blur(8px);
  opacity: 0.55;
  transform: translateZ(0);
}

@keyframes cyberCoinSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@keyframes cyberCloudDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  33% { transform: translate(2%, -3%) scale(1.04); opacity: 0.62; }
  66% { transform: translate(-2%, 2%) scale(0.98); opacity: 0.55; }
}

@keyframes cyberCoinShine {
  0%, 100% { transform: translateX(-120%) rotate(12deg); opacity: 0; }
  15% { opacity: 1; }
  45% { transform: translateX(120%) rotate(12deg); opacity: 0; }
}

@keyframes cyberCoinHalo {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes cyberCoinParticle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 0.85; }
  50% { opacity: 0.4; transform: translateY(-24px) scale(1); }
  80% { opacity: 0; }
}

@keyframes cyberOrbitTrackSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cyberSignalPulse {
  from { stroke-dashoffset: 132; opacity: 0.35; }
  50% { opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 0.35; }
}

@keyframes cyberRingRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cyberChipFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 14px rgba(34, 211, 238, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.65) inset; }
  50% { transform: translateY(-2px); box-shadow: 0 0 20px rgba(34, 211, 238, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.75) inset; }
}

@keyframes cyberChipPing {
  0% { transform: scale(0.6); opacity: 0.9; }


@media (prefers-reduced-motion: reduce) {
  .cyber-coin-spinner,
  .cyber-coin-shine,
  .cyber-coin-halo,
  .cyber-coin-particle,
  .cyber-signal-pulse,
  .cyber-orbit-chip-label,
  .cyber-orbit-chip-ping,
  .cyber-coin-cloud {
    animation: none !important;
  }
}
