/* ============================================
   iCHEST — Web3 Premium Design System
   Style: Dark · Ethereum · Pixel-art-friendly
   ============================================ */

@font-face {
  font-family: 'Starborn';
  src: url('../fonts/Starborn.ttf') format('truetype'),
       url('../fonts/Starborn.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Backgrounds */
  --bg-primary: #07090F;
  --bg-secondary: #0C0F18;
  --bg-card: #11151F;
  --bg-card-hover: #161B28;
  --bg-elevated: #1A1F2E;

  /* Brand colors (from iChEST logo + Pudgy palette) */
  --pink: #FF4FB8;
  --pink-soft: #FFA7DC;
  --cyan: #4DD9FF;
  --cyan-soft: #B8EEFF;
  --violet: #A78BFA;
  --green: #00FF88;
  --green-eth: #62D993;
  --gold: #FFC93C;
  --red: #FF4D6D;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #9BA3B5;
  --text-muted: #5A6378;
  --text-dim: #3A4255;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-pink: rgba(255, 79, 184, 0.3);
  --border-cyan: rgba(77, 217, 255, 0.3);
  --border-green: rgba(98, 217, 147, 0.3);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  position: relative;
  margin: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.font-starborn {
  font-family: 'Starborn', 'Inter', sans-serif;
  letter-spacing: 0.02em;
  font-weight: normal;
}

.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================
   BACKGROUNDS / TEXTURES
   ============================================ */
.bg-grid {
  background-image:
    linear-gradient(rgba(77, 217, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 217, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
}

.bg-dotted {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Premium web3 ambient background */
.bg-ambient {
  position: relative;
  overflow: hidden;
}

.bg-ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255, 79, 184, 0.08), transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(77, 217, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(167, 139, 250, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.bg-ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 80%);
}

/* Wave SVG decoration */
.wave-deco {
  position: absolute;
  width: 120%;
  left: -10%;
  height: 200px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   UIBALL-STYLE LOADERS
   ============================================ */

/* Mirage loader (3 pulsing dots) */
.loader-mirage {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.loader-mirage .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  animation: mirage-pulse 1.4s ease-in-out infinite;
}

.loader-mirage .dot:nth-child(2) { animation-delay: 0.2s; }
.loader-mirage .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes mirage-pulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Atom loader (rotating ring) */
.loader-atom {
  width: 32px;
  height: 32px;
  position: relative;
  display: inline-block;
}

.loader-atom::before,
.loader-atom::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--pink);
  border-right-color: var(--cyan);
  animation: atom-spin 1s linear infinite;
}

.loader-atom::after {
  inset: 6px;
  border-top-color: var(--cyan);
  border-right-color: var(--pink);
  animation-duration: 0.7s;
  animation-direction: reverse;
}

@keyframes atom-spin {
  to { transform: rotate(360deg); }
}

/* Tunnel loader (orbital dots) */
.loader-tunnel {
  width: 40px;
  height: 40px;
  position: relative;
  display: inline-block;
}

.loader-tunnel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--pink) 50%, var(--cyan) 100%);
  animation: tunnel-spin 1.2s linear infinite;
  mask: radial-gradient(circle, transparent 60%, black 62%);
  -webkit-mask: radial-gradient(circle, transparent 60%, black 62%);
}

@keyframes tunnel-spin {
  to { transform: rotate(360deg); }
}

/* Skeleton shimmer (for loading NFT cards) */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: 12px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Click ripple (for buttons) */
.btn-primary, .btn-secondary, .btn-wallet {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transform: scale(0);
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* Page load fade-in */
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body { animation: page-fade-in 0.5s ease-out; }

/* Glitch effect on hero title (subtle) */
@keyframes title-glitch {
  0%, 100% { text-shadow: none; }
  92% { text-shadow: -1px 0 var(--pink), 1px 0 var(--cyan); }
  94% { text-shadow: 1px 0 var(--pink), -1px 0 var(--cyan); }
  96% { text-shadow: none; }
}

.hero-title.glitch {
  animation: title-glitch 5s infinite;
}

/* Smooth pulse for live indicators */
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(98, 217, 147, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(98, 217, 147, 0); }
}

.pulse-live {
  animation: live-pulse 2s ease-in-out infinite;
}

/* Flying Pudgy (decorative ambient layer) */
#flyingPudgy img {
  filter: blur(0.5px) saturate(0.85);
  transition: opacity 0.3s ease, filter 0.3s ease;
  will-change: transform, opacity;
}

#flyingPudgy img:hover {
  opacity: 1 !important;
  filter: blur(0) saturate(1);
}

/* Fade-out images near text area on desktop */
@media (min-width: 1024px) {
  #flyingPudgy::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 70%;
    background: radial-gradient(ellipse, var(--bg-primary) 0%, transparent 70%);
    pointer-events: none;
  }
}

.bg-mesh {
  background:
    radial-gradient(ellipse 60% 40% at 30% 0%, rgba(255, 79, 184, 0.12), transparent),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(77, 217, 255, 0.10), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(98, 217, 147, 0.08), transparent);
}

.glow-pink {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 79, 184, 0.18), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-cyan {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(77, 217, 255, 0.15), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-green {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(98, 217, 147, 0.12), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   GRADIENT TEXT
   ============================================ */
.gradient-pink-cyan {
  background: linear-gradient(135deg, #FF4FB8 0%, #4DD9FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-cyan-green {
  background: linear-gradient(135deg, #4DD9FF 0%, #62D993 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-pink-violet {
  background: linear-gradient(135deg, #FF4FB8 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-gold {
  background: linear-gradient(135deg, #FFC93C 0%, #FF4FB8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAVBAR (style OpenSea pro)
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(7, 9, 15, 0.96);
  border-bottom-color: var(--border-pink);
}

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  border-radius: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  position: relative;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  box-shadow:
    0 4px 16px rgba(255, 79, 184, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(255, 79, 184, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3), transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

/* Wallet Connect button (OpenSea style — white button) */
.btn-wallet {
  background: white;
  color: var(--bg-primary);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-wallet:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.btn-wallet .wallet-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 14px;
  font-weight: 500;
  font-size: 13px;
  transition: color 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(77, 217, 255, 0.08);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  font-family: 'Inter', sans-serif;
}

.badge-pink {
  background: rgba(255, 79, 184, 0.08);
  border-color: var(--border-pink);
  color: var(--pink);
}

.badge-green {
  background: rgba(98, 217, 147, 0.08);
  border-color: var(--border-green);
  color: var(--green-eth);
}

.badge-violet {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--violet);
}

.badge-gold {
  background: rgba(255, 201, 60, 0.08);
  border-color: rgba(255, 201, 60, 0.3);
  color: var(--gold);
}

.badge-red {
  background: rgba(255, 77, 109, 0.08);
  border-color: rgba(255, 77, 109, 0.3);
  color: var(--red);
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  background: var(--green-eth);
  border-radius: 50%;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--green-eth);
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.6); opacity: 0; }
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.card-glass {
  background: rgba(17, 21, 31, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.card-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.card-stat:hover::before {
  opacity: 1;
}

.card-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
}

.card-feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-pink);
  box-shadow: 0 16px 40px rgba(255, 79, 184, 0.12);
}

.card-feature .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 79, 184, 0.12), rgba(77, 217, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* ============================================
   PIXEL FRAME (style web3 / pixel art border)
   ============================================ */
.pixel-frame {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--pink);
  border-radius: 4px;
  padding: 16px;
  box-shadow:
    inset 0 0 0 4px var(--bg-primary),
    inset 0 0 0 6px var(--pink),
    0 0 24px rgba(255, 79, 184, 0.2);
}

.pixel-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--pink);
}
.pixel-corner.tl { top: -2px; left: -2px; }
.pixel-corner.tr { top: -2px; right: -2px; }
.pixel-corner.bl { bottom: -2px; left: -2px; }
.pixel-corner.br { bottom: -2px; right: -2px; }

/* ============================================
   STATS BAR (style Milady/OpenSea)
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.stats-bar > div {
  padding: 14px 20px;
  border-right: 1px solid var(--border);
}

.stats-bar > div:last-child {
  border-right: none;
}

.stats-bar .stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.stats-bar .stat-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stats-bar .stat-change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.stats-bar .stat-change.up { color: var(--green-eth); }
.stats-bar .stat-change.down { color: var(--red); }

/* ============================================
   MARQUEE (Pudgy Penguins infinite scroll)
   ============================================ */
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee-track.reverse {
  animation: marquee-reverse 60s linear infinite;
}

.marquee-track.fast {
  animation-duration: 40s;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.nft-card {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.nft-card:hover {
  transform: scale(1.05);
  border-color: var(--pink);
  box-shadow: 0 8px 24px rgba(255, 79, 184, 0.3);
  z-index: 10;
}

.nft-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.nft-card .nft-id {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
}

.nft-card .nft-rarity {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Larger NFT card for vault */
.nft-card-lg {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
}

/* ============================================
   TIMELINE (Roadmap)
   ============================================ */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--pink), var(--cyan), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.timeline-item.completed .timeline-dot {
  background: var(--green-eth);
  border-color: var(--green-eth);
}

.timeline-item.active .timeline-dot {
  border-color: var(--pink);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 79, 184, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(255, 79, 184, 0); }
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.open {
  border-color: var(--border-pink);
}

.faq-trigger {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  background: transparent;
  border: none;
  color: white;
  font-size: 15px;
  transition: color 0.2s ease;
}

.faq-trigger:hover {
  color: var(--pink);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--pink);
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-content {
  max-height: 600px;
}

.faq-content-inner {
  padding: 0 22px 20px 22px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14px;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   DONUT CHART (CSS pure)
   ============================================ */
.donut {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    var(--pink) 0% 60%,
    var(--cyan) 60% 75%,
    var(--gold) 75% 87%,
    var(--green-eth) 87% 95%,
    var(--violet) 95% 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  filter: drop-shadow(0 0 30px rgba(255, 79, 184, 0.2));
}

.donut::before {
  content: '';
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: var(--bg-primary);
}

.donut-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ============================================
   CODE BLOCK (terminal style)
   ============================================ */
.code-block {
  background: #04060B;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 22px 20px 22px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--green-eth);
  overflow-x: auto;
  position: relative;
}

.code-block::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #FF5F56;
  box-shadow:
    18px 0 0 #FFBD2E,
    36px 0 0 #27C93F;
}

.code-block pre {
  margin: 0;
}

.code-block .keyword { color: var(--pink); }
.code-block .type { color: var(--cyan); }
.code-block .comment { color: var(--text-muted); font-style: italic; }
.code-block .string { color: var(--gold); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

.float-slow { animation: float-slow 8s ease-in-out infinite; }

@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--pink)); }
  50% { filter: drop-shadow(0 0 24px var(--pink)) drop-shadow(0 0 12px var(--cyan)); }
}

.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink), var(--cyan));
  border-radius: 100px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--cyan), var(--pink));
}

/* ============================================
   UTILITIES
   ============================================ */
.text-pink { color: var(--pink); }
.text-cyan { color: var(--cyan); }
.text-violet { color: var(--violet); }
.text-green { color: var(--green-eth); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-card { background: var(--bg-card); }
.bg-elevated { background: var(--bg-elevated); }

.border-pink { border-color: var(--border-pink); }
.border-cyan { border-color: var(--border-cyan); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  margin: 32px 0;
}

/* Hide scrollbars on touchpad horizontal scrollers */
.scroll-x {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* ============================================
   WALLET MODAL (real connect)
   ============================================ */
.wallet-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.wallet-modal-overlay.open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wallet-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.wallet-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.wallet-modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.wallet-option:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(2px);
}

.wallet-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wallet-option-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-option-info {
  flex: 1;
}

.wallet-option-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.wallet-option-status {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.wallet-option-status.installed {
  color: var(--green-eth);
}

/* ============================================
   OS COLLECTIONS LEADERBOARD (OpenSea-style)
   ============================================ */
.os-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

@media (min-width: 640px) {
  .os-row {
    grid-template-columns: 40px 1fr 120px 100px;
    padding: 14px 20px;
  }
}

.os-row:last-child { border-bottom: none; }

.os-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.os-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  display: none;
}

@media (min-width: 640px) {
  .os-rank { display: block; }
}

.os-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.os-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-from, #4DD9FF), var(--c-to, #FF4FB8));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.os-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.os-avatar span {
  font-family: 'Starborn', sans-serif;
  font-size: 14px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.os-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.os-verified {
  flex-shrink: 0;
}

.os-slug {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-floor {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  display: none;
}

@media (min-width: 640px) {
  .os-floor { display: block; }
}

.os-change {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.os-change.up { color: var(--green-eth); }
.os-change.down { color: var(--red); }

.os-row-more {
  background: linear-gradient(90deg, rgba(255, 79, 184, 0.04), rgba(77, 217, 255, 0.04));
}

.os-row-more:hover {
  background: linear-gradient(90deg, rgba(255, 79, 184, 0.08), rgba(77, 217, 255, 0.08));
}

/* ============================================
   COLLECTION CARDS (top NFT collections)
   ============================================ */
.collection-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.collection-card.live {
  border-color: rgba(98, 217, 147, 0.3);
}

.collection-card.live:hover {
  box-shadow: 0 12px 40px rgba(98, 217, 147, 0.15);
}

.collection-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.collection-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.collection-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.collection-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

/* ============================================
   ETH BADGE
   ============================================ */
.eth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(98, 217, 147, 0.08);
  border: 1px solid var(--border-green);
  border-radius: 8px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--green-eth);
  font-weight: 600;
}

.eth-badge::before {
  content: '◆';
  color: var(--green-eth);
  font-size: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nft-card { width: 130px; height: 130px; }
  .donut { width: 200px; height: 200px; }
  .donut::before { inset: 22px; }
  .stats-bar > div { padding: 12px 14px; }
  .stats-bar .stat-value { font-size: 16px; }
  .timeline { padding-left: 30px; }
}

/* ============================================
   HERO TITLE (Starborn)
   ============================================ */
.hero-title {
  font-family: 'Starborn', sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: normal;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Sparkle decorations */
.sparkle {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
  animation: sparkle-twinkle 3s ease-in-out infinite;
}

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
