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

body {
  background: #0a0a1a;
  min-height: 100vh;
  overflow: hidden;
}

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

@keyframes glitch1 {
  0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, 0); }
  20% { clip-path: inset(30% 0 50% 0); transform: translate(2px, 0); }
  40% { clip-path: inset(60% 0 20% 0); transform: translate(-1px, 0); }
  60% { clip-path: inset(10% 0 70% 0); transform: translate(1px, 0); }
  80% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 0); }
}

@keyframes glitch2 {
  0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px, 0); }
  20% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 0); }
  40% { clip-path: inset(20% 0 60% 0); transform: translate(1px, 0); }
  60% { clip-path: inset(70% 0 10% 0); transform: translate(-1px, 0); }
  80% { clip-path: inset(5% 0 80% 0); transform: translate(2px, 0); }
}

@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

@keyframes pulse-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes materialize {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(8px); }
  60% { opacity: 1; filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes loading-bar {
  0% { width: 0%; }
  20% { width: 25%; }
  50% { width: 60%; }
  80% { width: 85%; }
  100% { width: 100%; }
}

@keyframes confetti-fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 40px currentColor; }
  20%, 24%, 55% { opacity: 0.6; text-shadow: none; }
}

@keyframes carousel-slide {
  0%, 30% { opacity: 1; transform: translateX(0); }
  33%, 63% { opacity: 0; transform: translateX(-20px); }
  66%, 96% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

.crt-overlay {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 9999;
  animation: scanlines 0.1s linear infinite;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-strong {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glitch-text {
  position: relative;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch-text::before {
  color: #ff2d78;
  animation: glitch1 3s infinite;
}
.glitch-text::after {
  color: #00d4ff;
  animation: glitch2 3s infinite;
}

.toast-enter {
  animation: materialize 0.4s ease-out;
}

.page-materialize {
  animation: materialize 0.6s ease-out;
}

.float-anim {
  animation: float 3s ease-in-out infinite;
}

.neon-text {
  animation: neon-flicker 4s ease-in-out infinite;
}

.history-item {
  transition: all 0.2s ease;
}
.history-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.confetti-piece {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  animation: confetti-fall 3s ease-in forwards;
  z-index: 10000;
}

.loading-progress {
  animation: loading-bar 2.5s ease-in-out forwards;
}

.address-input:focus {
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.1);
}

.btn-chrome {
  transition: all 0.15s ease;
}
.btn-chrome:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-chrome:active {
  transform: scale(0.92);
}

.generated-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}
.generated-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.generated-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .sidebar-desktop { display: none; }
}
@media (min-width: 769px) {
  .sidebar-mobile { display: none; }
}