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

:root {
  --bg: #0d0208;
  --teal: #00ffcc;
  --pink: #ff0055;
  --amber: #ffcc00;
  --purple: #7b2fff;
  --panel-bg: #1a1a2e;
  --panel-bg-alpha: rgba(26, 26, 46, 0.85);
  --font-mono: 'Share Tech Mono', monospace;
  --font-display: 'Orbitron', sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--teal);
  font-family: var(--font-mono);
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 204, 0.03) 2px,
    rgba(0, 255, 204, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 255, 204, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 0, 85, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

#root { min-height: 100vh; position: relative; }

.neon-text-teal {
  color: var(--teal);
  text-shadow: 0 0 7px var(--teal), 0 0 20px rgba(0,255,204,0.5), 0 0 40px rgba(0,255,204,0.2);
}

.neon-text-pink {
  color: var(--pink);
  text-shadow: 0 0 7px var(--pink), 0 0 20px rgba(255,0,85,0.5), 0 0 40px rgba(255,0,85,0.2);
}

.neon-text-amber {
  color: var(--amber);
  text-shadow: 0 0 7px var(--amber), 0 0 20px rgba(255,204,0,0.4);
}

.neon-text-purple {
  color: var(--purple);
  text-shadow: 0 0 7px var(--purple), 0 0 20px rgba(123,47,255,0.5);
}

.panel {
  background: var(--panel-bg-alpha);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,255,204,0.2);
  border-radius: 4px;
  position: relative;
}

.panel::before, .panel::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--teal);
  border-style: solid;
}
.panel::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}
.panel::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

.panel-pink { border-color: rgba(255,0,85,0.3); }
.panel-pink::before, .panel-pink::after { border-color: var(--pink); }

.panel-purple { border-color: rgba(123,47,255,0.3); }
.panel-purple::before, .panel-purple::after { border-color: var(--purple); }

.btn-cyber {
  font-family: var(--font-mono);
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.btn-cyber:hover:not(:disabled) {
  background: rgba(0,255,204,0.1);
  box-shadow: 0 0 15px rgba(0,255,204,0.3), inset 0 0 15px rgba(0,255,204,0.1);
  text-shadow: 0 0 5px var(--teal);
}

.btn-cyber:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(0,255,204,0.2);
}

.btn-cyber-pink {
  border-color: var(--pink);
  color: var(--pink);
}
.btn-cyber-pink:hover:not(:disabled) {
  background: rgba(255,0,85,0.1);
  box-shadow: 0 0 15px rgba(255,0,85,0.3), inset 0 0 15px rgba(255,0,85,0.1);
  text-shadow: 0 0 5px var(--pink);
}

.btn-buy {
  font-family: var(--font-mono);
  background: rgba(0,255,204,0.1);
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 60px;
}

.btn-buy:hover:not(:disabled) {
  background: rgba(0,255,204,0.25);
  box-shadow: 0 0 10px rgba(0,255,204,0.4);
}
.btn-buy:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  background: transparent;
}

.tab-btn {
  font-family: var(--font-display);
  background: transparent;
  border: 1px solid rgba(0,255,204,0.2);
  border-bottom: none;
  color: rgba(0,255,204,0.5);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.tab-btn:hover { color: var(--teal); background: rgba(0,255,204,0.05); }
.tab-btn.active {
  color: var(--teal);
  background: var(--panel-bg-alpha);
  border-color: var(--teal);
  text-shadow: 0 0 10px var(--teal);
}

@keyframes glitch {
  0% { transform: translate(0); filter: none; }
  20% { transform: translate(-2px, 2px); filter: hue-rotate(90deg); }
  40% { transform: translate(2px, -2px); filter: hue-rotate(-90deg) saturate(2); }
  60% { transform: translate(-1px, -1px); filter: none; }
  80% { transform: translate(1px, 1px); filter: hue-rotate(180deg); }
  100% { transform: translate(0); filter: none; }
}

.glitch-trigger {
  animation: glitch 0.3s ease-in-out;
}

@keyframes fadeFloat {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-80px) scale(0.8); }
}

.click-popup {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  animation: fadeFloat 1s ease-out forwards;
  z-index: 100;
}

@keyframes neuralSurge {
  0% { opacity: 1; transform: scale(0.5) rotate(-3deg); filter: blur(2px); }
  30% { opacity: 1; transform: scale(1.2) rotate(1deg); filter: blur(0); }
  60% { opacity: 1; transform: scale(1) rotate(-0.5deg); }
  100% { opacity: 0; transform: scale(1.5) rotate(0deg); filter: blur(4px); }
}

.neural-surge-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--pink);
  text-shadow: 0 0 20px var(--pink), 0 0 60px rgba(255,0,85,0.5);
  animation: neuralSurge 1.2s ease-out forwards;
  pointer-events: none;
  z-index: 10000;
  white-space: nowrap;
}

@keyframes borderTrace {
  0% { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%; }
  25% { background-position: 100% 0%, 100% 100%, 0% 100%, 0% 0%; }
  50% { background-position: 100% 100%, 0% 100%, 0% 0%, 100% 0%; }
  75% { background-position: 0% 100%, 0% 0%, 100% 0%, 100% 100%; }
  100% { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%; }
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.pulse-slow { animation: pulse 2s ease-in-out infinite; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast-enter { animation: slideInRight 0.4s ease-out; }

@keyframes screenFlash {
  0% { box-shadow: inset 0 0 100px rgba(255,0,85,0.4); }
  100% { box-shadow: inset 0 0 0px transparent; }
}

.screen-flash { animation: screenFlash 0.5s ease-out; }

@keyframes shake {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-3px, 2px); }
  30% { transform: translate(3px, -2px); }
  50% { transform: translate(-2px, 1px); }
  70% { transform: translate(2px, -1px); }
  90% { transform: translate(-1px, 1px); }
}
.screen-shake { animation: shake 0.3s ease-in-out; }

.matrix-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.scrollbar-cyber::-webkit-scrollbar { width: 6px; }
.scrollbar-cyber::-webkit-scrollbar-track { background: rgba(0,255,204,0.05); }
.scrollbar-cyber::-webkit-scrollbar-thumb { background: rgba(0,255,204,0.3); border-radius: 3px; }
.scrollbar-cyber::-webkit-scrollbar-thumb:hover { background: rgba(0,255,204,0.5); }

@keyframes loadBar {
  0% { width: 0%; }
  30% { width: 30%; }
  50% { width: 55%; }
  70% { width: 72%; }
  90% { width: 93%; }
  100% { width: 100%; }
}

.load-bar { animation: loadBar 2.5s ease-in-out forwards; }

@media (max-width: 768px) {
  .tab-btn { padding: 8px 12px; font-size: 9px; letter-spacing: 1px; }
  .neural-surge-text { font-size: 28px; }
}