/* Extracted from token-info.html for CSP compliance */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #1f2937;
  --light: #f3f4f6;
}

body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: radial-gradient(
    ellipse at center,
    #0a0a0a 0,
    #1a1a2e 50%,
    #16213e 100%
  );
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, #fff, transparent),
    radial-gradient(1px 1px at 90px 40px, #eee, transparent),
    radial-gradient(1px 1px at 130px 80px, #fff, transparent),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent),
    radial-gradient(1px 1px at 200px 90px, #eee, transparent),
    radial-gradient(2px 2px at 240px 50px, #fff, transparent),
    radial-gradient(1px 1px at 280px 120px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 300px 200px;
  animation: twinkle 8s ease-in-out infinite alternate;
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(102, 126, 234, 0.15) 0,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(138, 43, 226, 0.15) 0,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(0, 212, 255, 0.1) 0,
      transparent 50%
    );
  animation: gradientFloat 15s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

@keyframes twinkle {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

@keyframes gradientFloat {
  0% {
    transform: translate(0, 0) rotate(0);
  }
  33% {
    transform: translate(30px, -50px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.8) 0,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
  will-change: opacity, transform;
}

.particle:first-child {
  width: 80px;
  height: 80px;
  left: 10%;
  top: 20%;
  animation-duration: 25s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 60px;
  height: 60px;
  left: 80%;
  top: 80%;
  animation-duration: 30s;
  animation-delay: 5s;
  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.6) 0,
    transparent 70%
  );
}

.particle:nth-child(3) {
  width: 100px;
  height: 100px;
  left: 50%;
  top: 50%;
  animation-duration: 20s;
  animation-delay: 10s;
  background: radial-gradient(
    circle,
    rgba(102, 126, 234, 0.5) 0,
    transparent 70%
  );
}

.particle:nth-child(4) {
  width: 70px;
  height: 70px;
  left: 20%;
  top: 70%;
  animation-duration: 28s;
  animation-delay: 3s;
}

.particle:nth-child(5) {
  width: 90px;
  height: 90px;
  left: 70%;
  top: 30%;
  animation-duration: 22s;
  animation-delay: 8s;
  background: radial-gradient(
    circle,
    rgba(138, 43, 226, 0.4) 0,
    transparent 70%
  );
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translate(100px, -100px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50px, -200px) scale(0.8);
    opacity: 0.6;
  }
  75% {
    transform: translate(-150px, -100px) scale(1.1);
    opacity: 0.7;
  }
}

.container,
.navbar {
  position: relative;
  z-index: 10;
}

.navbar {
  background: rgba(26, 26, 46, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  padding: 1rem 2rem;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5em;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.header h1 {
  font-size: 3em;
  margin-bottom: 0.5rem;
  color: #fff;
}

.header p {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.9);
}

.token-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.leaderboard-table {
  display: grid;
  gap: 0.75rem;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #f8f9fa;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border-left: 4px solid rgba(0, 212, 255, 0.6);
}

.leaderboard-rank {
  font-weight: 700;
  color: var(--primary);
}

.leaderboard-name {
  font-weight: 600;
  color: var(--dark);
}

.leaderboard-stats {
  text-align: right;
  color: var(--dark);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.15);
  color: var(--primary);
  margin-left: 0.5rem;
}

.token-card h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8em;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.info-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2em;
}

.info-item p {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 0.5rem;
  border-radius: 5px;
  display: inline-block;
  margin-top: 0.5rem;
}

.tax-breakdown {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.tax-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.tax-item:last-child {
  border-bottom: none;
}

.security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.security-item {
  background: var(--success);
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.security-item.danger {
  background: var(--danger);
}

.contract-info {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.contract-address {
  font-family: monospace;
  background: #fff;
  padding: 1rem;
  border-radius: 5px;
  border: 1px solid #e9ecef;
  word-break: break-all;
}

.btn {
  background: linear-gradient(135deg, var(--primary) 0, var(--secondary) 100%);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem;
  transition: transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: 0 0;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.margin-top-1rem {
  margin-top: 1rem;
}

.text-center {
  text-align: center;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .header h1 {
    font-size: 2em;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
}
