/* ═══════════════════════════════════════════════════════════
   HyveBreak — Shared Site Styles
   Hyve brand theme with glow & neon accents
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:         #0D1117;
  --bg-surface: #111827;
  --bg-card:    rgba(255, 255, 255, 0.04);
  --bg-card2:   rgba(255, 255, 255, 0.07);
  --border:     rgba(255, 255, 255, 0.08);
  --border2:    rgba(255, 255, 255, 0.14);
  --text:       rgba(255, 255, 255, 0.92);
  --muted:      rgba(255, 255, 255, 0.55);
  --cyan:       #00D4FF;
  --pink:       #A855F7;
  --gold:       #FFD700;
  --red:        #FF4757;
  --green:      #10B981;
  --orange:     #FFA500;
  --purple:     #A855F7;
  --cyan-glow:  rgba(0, 212, 255, 0.35);
  --pink-glow:  rgba(168, 85, 247, 0.30);
  --gold-glow:  rgba(255, 215, 0, 0.30);
  --red-glow:   rgba(255, 71, 87, 0.25);
  --font-display: 'Orbitron', 'Inter', system-ui, sans-serif;
  --font-pixel:   'Press Start 2P', monospace;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius:     12px;
  --radius-lg:  20px;
  --max-width:  1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1400px 1000px at 50% 10%, rgba(0, 212, 255, 0.07), transparent 60%),
    radial-gradient(1000px 800px at 80% 50%, rgba(26, 75, 218, 0.05), transparent 50%),
    radial-gradient(800px 600px at 20% 70%, rgba(168, 85, 247, 0.04), transparent 50%);
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: #66e0ff; text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── CRT Scanline overlay (subtle) ──────────────────── */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ═══ NAVIGATION ═══════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-brand:hover { text-decoration: none; }

.nav-brand .brand-icon {
  font-size: 28px;
  line-height: 1;
}

.nav-brand .brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-link.active {
  color: var(--text);
  background: rgba(120, 210, 255, 0.10);
  border: 1px solid rgba(120, 210, 255, 0.15);
}

.nav-link .nav-emoji {
  font-size: 16px;
}

.nav-cta {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(255, 60, 80, 0.25);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 60, 80, 0.35);
  text-decoration: none;
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(4, 6, 12, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: var(--radius); width: 100%; }
}

/* ═══ LAYOUT CONTAINERS ════════════════════════════════ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 80px 0;
}

.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

/* ═══ TYPOGRAPHY ═══════════════════════════════════════ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: 2px; }
h2 { font-size: clamp(24px, 3vw, 40px); letter-spacing: 1px; }
h3 { font-size: clamp(18px, 2vw, 24px); }
h4 { font-size: 16px; }

.pixel-text {
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--pink), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title .label {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(120, 210, 255, 0.15);
  border-radius: 999px;
}

.section-title h2 { margin-bottom: 12px; }

.section-title p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 15px;
}

/* ═══ CARDS ════════════════════════════════════════════ */
.card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card2), var(--bg-card));
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-glow-cyan {
  box-shadow: 0 0 0 1px rgba(120, 210, 255, 0.1), 0 4px 24px rgba(120, 210, 255, 0.06);
}

.card-glow-pink {
  box-shadow: 0 0 0 1px rgba(255, 140, 220, 0.1), 0 4px 24px rgba(255, 140, 220, 0.06);
}

.card-glow-gold {
  box-shadow: 0 0 0 1px rgba(255, 220, 120, 0.1), 0 4px 24px rgba(255, 220, 120, 0.06);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.card h3 { margin-bottom: 8px; }

.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ═══ GRID LAYOUTS ═════════════════════════════════════ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ═══ BUTTONS ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 2px 12px rgba(255, 60, 80, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 60, 80, 0.4);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
  color: var(--text);
  text-decoration: none;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 8px;
}

/* ═══ BADGES / PILLS ══════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-cyan { background: rgba(120, 210, 255, 0.12); color: var(--cyan); border: 1px solid rgba(120, 210, 255, 0.2); }
.badge-pink { background: rgba(255, 140, 220, 0.12); color: var(--pink); border: 1px solid rgba(255, 140, 220, 0.2); }
.badge-gold { background: rgba(255, 220, 120, 0.12); color: var(--gold); border: 1px solid rgba(255, 220, 120, 0.2); }
.badge-red { background: rgba(255, 60, 80, 0.12); color: var(--red); border: 1px solid rgba(255, 60, 80, 0.2); }
.badge-green { background: rgba(74, 222, 128, 0.12); color: var(--green); border: 1px solid rgba(74, 222, 128, 0.2); }

/* ═══ STAT NUMBER DISPLAYS ═════════════════════════════ */
.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══ TABLES ═══════════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  border-bottom: 1px solid var(--border2);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table .rank {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
}

.data-table .rank-1 { color: #ffd700; }
.data-table .rank-2 { color: #c0c0c0; }
.data-table .rank-3 { color: #cd7f32; }

.data-table .addr {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  color: var(--cyan);
}

/* ═══ FOOTER ═══════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .brand-icon { font-size: 20px; }

.footer-brand .brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══ ANIMATED GLOW BORDER (for hero/featured cards) ═══ */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(120, 210, 255, 0.2); }
  33% { border-color: rgba(255, 140, 220, 0.2); }
  66% { border-color: rgba(255, 220, 120, 0.2); }
}

.glow-border {
  animation: borderGlow 6s ease-in-out infinite;
}

/* ═══ FADE-IN ANIMATION ════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }
.fade-in-delay-5 { animation-delay: 0.5s; }

/* ═══ PULSE GLOW ═══════════════════════════════════════ */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(120, 210, 255, 0.15); }
  50%      { box-shadow: 0 0 40px rgba(120, 210, 255, 0.30); }
}

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

/* ═══ LOADING SPINNER ══════════════════════════════════ */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* ═══ EMPTY STATE ══════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text);
  margin-bottom: 8px;
}

/* ═══ HERO SECTION ═════════════════════════════════════ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  margin-bottom: 20px;
  position: relative;
}

.hero .subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ═══ FEATURE ICON BOX ═════════════════════════════════ */
.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-icon-cyan  { background: rgba(120, 210, 255, 0.10); border: 1px solid rgba(120, 210, 255, 0.15); }
.feature-icon-pink  { background: rgba(255, 140, 220, 0.10); border: 1px solid rgba(255, 140, 220, 0.15); }
.feature-icon-gold  { background: rgba(255, 220, 120, 0.10); border: 1px solid rgba(255, 220, 120, 0.15); }
.feature-icon-red   { background: rgba(255, 60, 80, 0.10); border: 1px solid rgba(255, 60, 80, 0.15); }
.feature-icon-green { background: rgba(74, 222, 128, 0.10); border: 1px solid rgba(74, 222, 128, 0.15); }

/* ═══ WALLET CONNECTION BAR ════════════════════════════ */
.wallet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  font-size: 13px;
  flex-wrap: wrap;
}

.wallet-bar .wallet-addr {
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--cyan);
  font-weight: 600;
}

.wallet-bar .wallet-bal {
  color: var(--gold);
  font-weight: 600;
}

/* ═══ CONTRACT INFO BOX ════════════════════════════════ */
.contract-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.contract-info code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--cyan);
  font-size: 11px;
}

/* ═══ TAB SYSTEM ═══════════════════════════════════════ */
.tab-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.20);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font-body);
}

.tab-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.tab-btn.active {
  color: var(--text);
  background: rgba(120, 210, 255, 0.10);
  border-color: rgba(120, 210, 255, 0.15);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ═══ DIVIDER ══════════════════════════════════════════ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 48px 0;
}

/* ═══ SCROLLBAR ════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.20); }

/* ═══ FOCUS / ACCESSIBILITY ════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(120, 210, 255, 0.15);
}

/* ═══ TOOLTIP ══════════════════════════════════════════ */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(10, 14, 26, 0.95);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 200;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ═══ GLASS CARD VARIANT ═══════════════════════════════ */
.card-glass {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.card-glass:hover {
  border-color: var(--border2);
  background: rgba(255, 255, 255, 0.05);
}

/* ═══ GRADIENT BORDER (animated) ═══════════════════════ */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--pink), var(--gold), var(--cyan));
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ═══ PROGRESS BAR ═════════════════════════════════════ */
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ SELECTION STYLE ══════════════════════════════════ */
::selection {
  background: rgba(120, 210, 255, 0.25);
  color: #fff;
}

/* ═══ CHAIN SELECTOR & WALLET BUTTON ══════════════════ */
.chain-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.chain-toggle {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(120, 210, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.chain-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chain-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 212, 255, 0.08);
}

.chain-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(120, 210, 255, 0.2), rgba(200, 100, 255, 0.2));
  text-shadow: 0 0 6px rgba(120, 210, 255, 0.5);
}

.chain-btn.active[data-mode="evm"] {
  background: linear-gradient(135deg, rgba(120, 210, 255, 0.2), rgba(100, 150, 255, 0.2));
}

.chain-btn.active[data-mode="cosmos"] {
  background: linear-gradient(135deg, rgba(160, 100, 255, 0.2), rgba(200, 100, 255, 0.2));
}

.chain-icon {
  font-size: 0.85rem;
}

.wallet-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  cursor: pointer;
  color: var(--cyan);
  background: rgba(120, 210, 255, 0.06);
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.wallet-btn:hover {
  background: rgba(120, 210, 255, 0.15);
  box-shadow: 0 0 12px rgba(120, 210, 255, 0.2);
  transform: translateY(-1px);
}

.wallet-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.wallet-btn.connected {
  border-color: #00e676;
  color: #00e676;
  background: rgba(0, 230, 118, 0.06);
}

.wallet-btn.connected:hover {
  background: rgba(0, 230, 118, 0.15);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}

.wallet-icon {
  font-size: 0.9rem;
}

/* Chain selector responsive */
@media (max-width: 900px) {
  .chain-selector {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    justify-content: center;
  }
}

/* ═══ COSMOS DATA CARDS ═══════════════════════════════ */
.cosmos-section {
  display: none;
}

.cosmos-section.show {
  display: block;
}

.evm-section {
  display: none;
}

.evm-section.show {
  display: block;
}

.staking-card {
  background: rgba(160, 100, 255, 0.06);
  border: 1px solid rgba(160, 100, 255, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.staking-card:hover {
  border-color: rgba(160, 100, 255, 0.3);
}

.staking-card h4 {
  margin: 0 0 0.5rem;
  color: #c864ff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.staking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

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

.staking-stat .value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.staking-stat .label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.validator-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.validator-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

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

.validator-moniker {
  font-weight: 600;
  color: var(--cyan);
}

.validator-stake {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Courier New', monospace;
}

.proposal-card {
  background: rgba(120, 210, 255, 0.04);
  border: 1px solid rgba(120, 210, 255, 0.12);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.proposal-card .proposal-id {
  font-size: 0.7rem;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
}

.proposal-card .proposal-title {
  font-size: 0.95rem;
  color: #fff;
  margin: 0.25rem 0;
}

.proposal-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.proposal-status.passed {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
}

.proposal-status.rejected {
  background: rgba(255, 60, 60, 0.15);
  color: #ff3c3c;
}

.proposal-status.voting {
  background: rgba(255, 200, 0, 0.15);
  color: #ffc800;
}

.proposal-status.deposit {
  background: rgba(120, 210, 255, 0.15);
  color: var(--cyan);
}
