/* ============================================
   $WAIT Protocol — Design System & Styles
   The Beauty of Anticipation
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #09090b;
  --bg-secondary: #0f0f14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #f0f0f5;
  --text-secondary: #8b8b9e;
  --text-muted: #55556a;

  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-glow-strong: rgba(99, 102, 241, 0.35);

  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: white;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease-out);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent-light);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.brand-spinner.small {
  width: 14px;
  height: 14px;
  border-width: 1.5px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  background: var(--accent-glow);
  padding: 2px 6px;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 450;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: all 0.2s var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.nav-x {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  color: var(--text-muted);
}

.nav-x:hover {
  color: var(--text-primary);
}

.footer-x {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-x:hover {
  color: var(--text-primary);
}

/* --- Wallet Button --- */
.btn-wallet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: white;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-wallet:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.btn-wallet:active {
  transform: translateY(0);
}

/* --- Connected Wallet Pill --- */
.wallet-connected {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-size: 0.75rem;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.wallet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.wallet-addr {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-primary);
  font-weight: 500;
}

.btn-disconnect {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-disconnect:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--red);
  color: var(--red);
}

/* --- Wallet Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #111118;
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  width: 400px;
  max-width: 90vw;
  padding: 1.75rem;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
  font-family: var(--font-sans);
}

.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.wallet-providers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.provider-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  color: var(--text-primary);
}

.provider-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.provider-card.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.provider-card.unavailable:hover {
  transform: none;
}

.provider-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.provider-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.provider-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.provider-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.provider-status.detected {
  color: var(--green);
}

.provider-status.not-detected {
  color: var(--text-muted);
}

.provider-arrow {
  color: var(--text-muted);
  transition: color 0.2s;
}

.provider-card:hover .provider-arrow {
  color: var(--accent-light);
}

.modal-footer {
  margin-top: 1.25rem;
  text-align: center;
}

.modal-footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Reward Banner --- */
.reward-banner {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 1.25rem 1.5rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  overflow: hidden;
}

.reward-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 80px;
  background: radial-gradient(circle, rgba(196, 132, 252, 0.2), transparent);
  pointer-events: none;
}

.reward-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.reward-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  animation: reward-bounce 3s ease-in-out infinite;
}

@keyframes reward-bounce {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }
}

.reward-headline {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.reward-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Contract Address --- */
.ca-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.ca-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  text-transform: uppercase;
  white-space: nowrap;
}

.ca-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.ca-value:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.ca-value.copied {
  border-color: var(--green);
  color: var(--green);
}

.ca-copy-icon {
  color: var(--text-muted);
  transition: color 0.2s;
  flex-shrink: 0;
}

.ca-value:hover .ca-copy-icon {
  color: var(--accent-light);
}

.ca-value.copied .ca-copy-icon {
  color: var(--green);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 720px;
  width: 100%;
}

/* --- 3D Spinner --- */
.spinner-container {
  perspective: 600px;
  width: 200px;
  height: 200px;
  cursor: grab;
}

.spinner-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.ring-1 {
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  animation: spin 3s linear infinite;
  filter: drop-shadow(0 0 8px var(--accent-glow-strong));
}

.ring-2 {
  inset: 15px;
  border-bottom-color: var(--accent-light);
  border-left-color: var(--accent-light);
  animation: spin-reverse 2.5s linear infinite;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.ring-3 {
  inset: 35px;
  border-top-color: rgba(129, 140, 248, 0.5);
  border-right-color: rgba(129, 140, 248, 0.5);
  animation: spin 2s linear infinite;
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.ring-4 {
  inset: 55px;
  border-bottom-color: rgba(99, 102, 241, 0.3);
  animation: spin-reverse 4s linear infinite;
}

.spinner-core {
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.3;
  animation: pulse-core 2s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes pulse-core {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

/* --- Hero Text --- */
.hero-text {
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), #c084fc, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Progress --- */
.progress-section {
  width: 100%;
  max-width: 400px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.progress-value {
  font-family: var(--font-mono);
  color: var(--accent-light);
  font-weight: 500;
}

.progress-track {
  height: 4px;
  background: var(--bg-card);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 99.9%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 100px;
  position: relative;
  transition: width 60s linear;
}

.progress-glow {
  position: absolute;
  right: 0;
  top: -2px;
  width: 40px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 100px;
  filter: blur(6px);
  opacity: 0.6;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

.progress-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
  font-family: var(--font-mono);
}

/* --- Launch Button --- */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.btn-launch {
  position: relative;
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: white;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  min-width: 200px;
  min-height: 52px;
  transition: all 0.3s var(--ease-out);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.2),
    0 4px 16px rgba(99, 102, 241, 0.2),
    0 8px 32px rgba(99, 102, 241, 0.1);
}

.btn-launch:hover:not(.loading) {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.3),
    0 8px 24px rgba(99, 102, 241, 0.3),
    0 16px 48px rgba(99, 102, 241, 0.15);
}

.btn-launch:active:not(.loading) {
  transform: translateY(0);
}

.btn-launch.loading {
  cursor: wait;
  padding: 0.875rem 1.5rem;
  min-width: 280px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(124, 58, 237, 0.3));
  border: 1px solid var(--border);
}

.btn-spinner {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.btn-launch.loading .btn-text {
  display: none;
}

.btn-launch.loading .btn-spinner {
  display: flex;
}

.btn-spinner-ring {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.btn-spinner-text {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.9;
  white-space: nowrap;
}

.btn-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

  0%,
  100% {
    opacity: 0.3;
    height: 30px;
  }

  50% {
    opacity: 1;
    height: 50px;
  }
}

/* --- Sections --- */
.section {
  padding: 8rem 2rem;
  position: relative;
}

.section-container {
  max-width: 900px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 3.5rem;
}

/* --- Stats --- */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 1rem;
  color: var(--accent-light);
  position: relative;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  position: relative;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-unit {
  font-size: 1.25rem;
  opacity: 0.7;
  -webkit-text-fill-color: var(--text-secondary);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
  position: relative;
}

.stat-detail {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  position: relative;
}

/* --- Roadmap / Timeline --- */
.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-primary);
  z-index: 1;
}

.timeline-dot.completed {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.timeline-dot.loading {
  border-color: var(--accent);
  background: var(--bg-primary);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow-strong);
  }

  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.timeline-dot.pending {
  border-color: var(--text-muted);
}

.timeline-dot.locked {
  border-color: var(--text-muted);
  background: var(--bg-secondary);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s var(--ease-out);
}

.timeline-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.timeline-phase {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.timeline-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 100px;
  transition: width 1s var(--ease-out);
}

.loading-bar {
  width: 45%;
  animation: loading-crawl 8s ease-in-out infinite;
}

@keyframes loading-crawl {
  0% {
    width: 42%;
  }

  50% {
    width: 48%;
  }

  100% {
    width: 42%;
  }
}

.timeline-status {
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
}

.status-completed {
  color: var(--green);
}

.status-loading {
  color: var(--accent-light);
}

.status-pending {
  color: var(--text-muted);
}

.status-locked {
  color: var(--text-muted);
}

.loading-dots span {
  animation: blink 1.4s infinite both;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {

  0%,
  20% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* --- Waiting Room --- */
.waiting-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.waiting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.waiting-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* --- Chat --- */
.chat-messages {
  flex: 1;
  min-height: 220px;
  max-height: 260px;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.chat-empty-icon {
  width: 32px;
  height: 32px;
  opacity: 0.3;
}

.chat-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  animation: msg-in 0.3s var(--ease-spring);
}

.chat-msg.fading {
  animation: msg-out 0.5s var(--ease-out) forwards;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes msg-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    height: 0;
    padding: 0;
    margin: 0;
  }
}

.chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.chat-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  border-top-left-radius: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  max-width: 280px;
  word-break: break-word;
}

.chat-bubble .chat-wallet-name {
  font-size: 0.6rem;
  color: var(--accent-light);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 0.15rem;
}

.chat-system {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.15rem 0;
}

/* --- Chat Input Area --- */
.chat-input-area {
  border-top: 1px solid var(--border);
}

.chat-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-locked:hover {
  color: var(--accent-light);
  background: var(--accent-glow);
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.btn-send {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-send:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.btn-send:active {
  transform: scale(0.95);
}

.chat-quick-actions {
  display: flex;
  gap: 0.35rem;
  padding: 0 1rem 0.75rem;
}

.btn-quick {
  flex: 1;
  padding: 0.4rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.btn-quick:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.btn-quick-devs {
  color: var(--accent-light);
  border-color: rgba(99, 102, 241, 0.12);
}

.btn-quick-devs:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

/* --- Leaderboard --- */
.leaderboard-card .card-header .trophy-icon {
  font-size: 1.2rem;
}

.leaderboard-list {
  padding: 0.5rem 0;
  max-height: 260px;
  overflow-y: auto;
}

.leaderboard-entry {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.78rem;
  transition: background 0.2s;
}

.leaderboard-entry:hover {
  background: rgba(255, 255, 255, 0.02);
}

.lb-rank {
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.leaderboard-entry:nth-child(1) .lb-rank {
  color: #fbbf24;
}

.leaderboard-entry:nth-child(2) .lb-rank {
  color: #9ca3af;
}

.leaderboard-entry:nth-child(3) .lb-rank {
  color: #b45309;
}

.lb-wallet {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.lb-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-light);
  font-weight: 500;
}

.leaderboard-you {
  border-top: 1px solid var(--border);
  padding: 0.5rem 0;
}

.your-entry {
  background: var(--accent-glow);
  border-radius: 8px;
  margin: 0 0.75rem;
  padding: 0.55rem 0.5rem;
}

.your-entry .lb-wallet {
  color: var(--text-primary);
  font-weight: 500;
}

.leaderboard-hint {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.375rem;
  font-style: italic;
}

.leaderboard-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* --- Toast --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  min-width: 300px;
  max-width: 380px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.4s var(--ease-spring);
}

.toast.leaving {
  animation: toast-out 0.3s var(--ease-out) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
}

.toast-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.toast-icon {
  font-size: 1rem;
}

.toast-title {
  font-size: 0.8rem;
  font-weight: 600;
}

.toast-body {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  line-height: 1.5;
}

/* --- Silence Overlay --- */
.silence-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.silence-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.silence-content {
  text-align: center;
  animation: silence-breathe 2s ease-in-out infinite;
}

.silence-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.silence-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.1em;
}

@keyframes silence-breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-disclaimer {
  font-size: 0.65rem;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

/* --- Fade-in animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 0;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .spinner-container {
    width: 150px;
    height: 150px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .waiting-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .toast {
    min-width: 260px;
  }

  .toast-container {
    right: 1rem;
    left: 1rem;
  }

  .modal-card {
    margin: 1rem;
  }

  .reward-banner {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}