/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background:
        radial-gradient(140px 90px at 130px 60%, rgba(99,102,241,0.20), rgba(99,102,241,0) 70%),
        radial-gradient(170px 110px at 180px 75%, rgba(6,182,212,0.18), rgba(6,182,212,0) 70%),
        linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    backdrop-filter: blur(9px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    z-index: 1000;
}
.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.0), rgba(99, 102, 241, 0.6), rgba(99, 102, 241, 0.0));
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}
.header .nav-link {
    color: #cbd5e1;
}
.header .nav-link:hover,
.header .nav-link.active {
    color: #a78bfa;
}
.header .tagline {
    color: #94a3b8;
}

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

.nav-brand { 
    display: flex; 
    align-items: center; 
    gap: 0.3rem; 
}
.brand-logo { 
    width: 64px; 
    height: 64px; 
    filter: drop-shadow(0 0 10px rgba(139,92,246,0.45)) drop-shadow(0 0 8px rgba(6,182,212,0.40));
    transition: transform 180ms ease, filter 300ms ease;
}
.brand-text { display: flex; flex-direction: column; }
.nav-brand h1 {
    font-family: 'Exo 2', 'Poppins', 'Montserrat', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.05;
    margin: 0;
    background: linear-gradient(90deg, #8E00FF 0%, #C800FF 35%, #00D1FF 100%);
    background-size: 200% 100%;
    animation: titleGradient 9s ease-in-out infinite;
    will-change: background-position;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55),
                 0 0 10px rgba(200, 0, 255, 0.16),
                 0 0 8px rgba(0, 209, 255, 0.16);
}

.nav-brand .tagline {
    font-family: 'Exo 2', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: #94a3b8;
    display: block;
    margin-top: -0.20rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.header .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 4px;
    background:
        radial-gradient(closest-side at 50% 50%, rgba(6,182,212,0.9), rgba(6,182,212,0) 70%),
        linear-gradient(90deg, #8b5cf6 0%, #6366f1 60%, #06b6d4 80%, #6366f1 100%);
    background-blend-mode: screen;
    border-radius: 3px;
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 250ms ease, transform 250ms ease;
    box-shadow: 0 0 12px rgba(99,102,241,0.35);
}
.header .nav-link:hover::after,
.header .nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    /* Background dengan overlay yang lebih presisi dan sedikit tegas */
    background-image:
        radial-gradient(1200px circle at 50% 18%, rgba(15,23,42,0.10) 0%, rgba(15,23,42,0.22) 65%, rgba(15,23,42,0.30) 100%),
        linear-gradient(135deg, rgba(248,250,252,0.64) 0%, rgba(226,232,240,0.64) 100%),
        url('https://ik.imagekit.io/1vhal7wfq/Wansnodee-logo.png?updatedAt=1761536404982');
    /* Ukuran logo dikontrol agar presisi di berbagai layar */
    background-size: 100% 100%, 100% 100%, clamp(420px, 40vw, 820px);
    /* Posisi sedikit lebih tinggi agar tidak tertutup teks */
    background-position: center, center, center 18%;
    background-repeat: no-repeat;
    box-shadow: inset 0 -1px 0 rgba(15,23,42,0.08);
    /* Efek zoom in/out lebih kuat untuk logo background */
    animation: heroZoom 9s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}

/* Glow lembut pada logo W di background */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: clamp(540px, 58vw, 1120px);
  height: clamp(320px, 38vw, 660px);
  pointer-events: none;
  /* Kombinasi glow putih & warna aksen agar natural */
  background:
    radial-gradient(ellipse at 50% 36%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.00) 70%),
    radial-gradient(ellipse at 50% 50%, rgba(139,92,246,0.20) 0%, rgba(139,92,246,0.00) 75%),
    radial-gradient(ellipse at 50% 44%, rgba(6,182,212,0.18) 0%, rgba(6,182,212,0.00) 72%);
  background-blend-mode: screen;
  mix-blend-mode: color-dodge;
  opacity: 0.42;
  filter: blur(10px) saturate(1.30) contrast(1.06);
  /* Batasi glow ke bentuk W menggunakan mask dari logo */
  -webkit-mask-image: url('https://ik.imagekit.io/1vhal7wfq/Wansnodee-logo.png?updatedAt=1761536404982');
          mask-image: url('https://ik.imagekit.io/1vhal7wfq/Wansnodee-logo.png?updatedAt=1761536404982');
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center 18%; mask-position: center 18%;
  -webkit-mask-size: clamp(420px, 40vw, 820px); mask-size: clamp(420px, 40vw, 820px);
}

/* Responsif: sesuaikan ukuran/posisi logo di tablet & mobile */
@media (max-width: 768px) {
  .hero {
    background-size: 100% 100%, 100% 100%, clamp(320px, 64vw, 520px);
    background-position: center, center, center 12%;
    animation: heroZoomSm 9s ease-in-out infinite alternate;
  }
  .hero::before {
    width: clamp(420px, 72vw, 820px);
    height: clamp(260px, 44vw, 520px);
    opacity: 0.36;
    filter: blur(10px) saturate(1.25) contrast(1.05);
    -webkit-mask-size: clamp(320px, 64vw, 520px); mask-size: clamp(320px, 64vw, 520px);
    -webkit-mask-position: center 12%; mask-position: center 12%;
  }
}

/* (Efek pencahayaan dihapus sesuai permintaan) */
/* (Efek pencahayaan tegas dihapus sesuai permintaan) */

@media (max-width: 768px) {
  /* (Override pencahayaan dihapus) */
}

/* (Efek cincin warna dihapus sesuai permintaan) */

/* Animasi zoom untuk desktop */
@keyframes heroZoom {
  0% {
    background-size: 100% 100%, 100% 100%, clamp(420px, 40vw, 820px);
  }
  50% {
    background-size: 100% 100%, 100% 100%, clamp(600px, 52vw, 1080px);
  }
  100% {
    background-size: 100% 100%, 100% 100%, clamp(420px, 40vw, 820px);
  }
}

/* Animasi zoom untuk tablet/mobile */
@keyframes heroZoomSm {
  0% {
    background-size: 100% 100%, 100% 100%, clamp(320px, 64vw, 520px);
  }
  50% {
    background-size: 100% 100%, 100% 100%, clamp(460px, 78vw, 660px);
  }
  100% {
    background-size: 100% 100%, 100% 100%, clamp(320px, 64vw, 520px);
  }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(15,23,42,0.12);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(15,23,42,0.08);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Ripple effect for buttons */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 600ms linear;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Services Section */
.services {
    background: var(--bg-secondary);
    scroll-margin-top: 100px; /* Offset untuk fixed header */
    padding-top: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

/* Networks Section */
.networks {
    padding: 4rem 2rem;
}

.networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.network-item {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.network-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* About Section */
.about {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
    scroll-margin-top: 100px; /* Offset untuk fixed header */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    scroll-margin-top: 100px; /* Offset untuk fixed header */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-item {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 3rem 2rem 1rem;
    position: relative;
    /* full-bleed to viewport edges */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.footer-content {
    display: grid;
    /* Three columns: left brand, middle space, right social */
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand { grid-column: 1; }

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-light);
}

.footer-links h4,
.footer-social h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links a,
.social-links a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.social-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start; /* align links to the left */
}

/* Align the social panel to the right side */
.footer-social { 
    grid-column: 3; /* place on right column */
    justify-self: end; 
    text-align: left; 
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    color: var(--text-light);
    position: relative;
    background: #000000; /* full black panel */
    /* full-bleed: stretch beyond container to edges */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.footer-bottom::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 100vw;
    height: 1px;
    background: #000000; /* keep top edge seam invisible (same black) */
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        /* hilangkan padding samping agar benar-benar simetris */
        padding: 1rem 0;
        align-items: center; /* pastikan konten header rata tengah */
        justify-content: center; /* ratakan konten secara vertikal saat column */
    }
    /* Pusatkan blok brand secara absolut di sumbu horizontal */
    .nav-brand {
        justify-content: center;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    .brand-text { align-items: center; text-align: center; }
    /* Pastikan garis bawah gradasi di brand sejajar dan tampak center */
    .brand-text::after { width: 72%; margin-left: auto; margin-right: auto; }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-link { font-size: 0.95rem; }
    
    .hero {
        padding: 9.5rem 1rem 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* Tambahkan offset scroll lebih besar di mobile untuk menghindari header fixed */
    .services,
    .about,
    .contact { scroll-margin-top: 140px; }
    
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .networks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Footer: stack into single column on small screens */
    .footer-content { grid-template-columns: 1fr; }
    .footer-brand, .footer-social { grid-column: auto; }
    .footer-social { justify-self: start; text-align: left; }
    .social-links { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .hero { padding: 10.5rem 1rem 3rem; }
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .networks-grid {
        grid-template-columns: 1fr;
    }
}
/* Validator Cards (TinToNode-style) */
.validator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.validator-card {
  position: relative;
  padding: 1.5rem 1.5rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0f6ff 0%, #eaf1ff 100%);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99,102,241,0.25);
  text-align: center;
}

.status-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9CA3AF;
  box-shadow: 0 0 10px rgba(16,185,129,0.5);
}
.status-dot.live { background: #10B981; }

.validator-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 35%, #ffffff, #dbe8ff);
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.06), 0 8px 30px rgba(0,0,0,0.08);
}
.validator-logo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

.validator-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
  color: #1f2937;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 9999px;
  background: #e8f8ef;
  color: #0f766e;
  border: 1px solid #b6e3cf;
}

.stake-button {
  display: block;
  margin: 1rem auto 0.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: #1E3A8A;
  background: linear-gradient(180deg, #2563EB 0%, #1E3A8A 100%);
  box-shadow: 0 10px 25px rgba(37,99,235,0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.stake-button:hover { filter: brightness(1.05); }
.stake-button:active { transform: scale(0.98); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
/* Ripple effect for stake buttons */
.stake-button .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms linear;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
/* --- Networks header styles (onenov-like) --- */
.networks-header { text-align: center; margin-top: 12px; margin-bottom: 24px; }
.header-badge .badge { display: inline-flex; align-items: center; gap: 8px; background: #eef2f7; color: #0f172a; border: 1px solid #e2e8f0; border-radius: 20px; padding: 6px 12px; font-weight: 600; font-size: 14px; box-shadow: 0 1px 2px rgba(15,23,42,0.06); }
.header-badge .badge:empty { display: none; }
.header-badge::before { content: ""; font-size: 16px; line-height: 1; }
.section-title { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 32px; font-weight: 700; color: #0f172a; margin: 12px 0 8px; }
.section-subtitle { max-width: 820px; margin: 0 auto 18px; color: #64748b; font-size: 16px; line-height: 1.6; }
.tabbar { display: flex; justify-content: center; gap: 12px; background: #f3f4f6; padding: 8px; border-radius: 12px; border: 1px solid #e5e7eb; max-width: 880px; margin: 10px auto 20px; }
.tabbar .tab { appearance: none; background: transparent; border: none; color: #334155; font-weight: 600; padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.tabbar .tab.active { background: #ffffff; color: #0f172a; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15,23,42,0.06); }
/* Space before grid */
.section-title + .networks-header, .networks-header + .validator-grid { margin-top: 8px; }

/* --- Badge color variants --- */
.badge-blue { background: #e6f0ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-gray { background: #eef2f7; color: #475569; border: 1px solid #e2e8f0; }

/* --- Tab hover refinements --- */
.tabbar .tab:hover { background: rgba(255,255,255,0.7); color: #0f172a; }
/* Archive: red gradient for Stake button */
.validator-card[data-category="archive"] .stake-button {
  background: linear-gradient(180deg, #EF4444 0%, #7F1D1D 100%);
  box-shadow: 0 10px 25px rgba(239,68,68,0.35);
}
.validator-card[data-category="archive"] .stake-button:hover {
  filter: brightness(1.06);
}
/* Archive theme: red gradient for badge, card, and active tab */
/* Badge Archive -> red */
.validator-card[data-category="archive"] .badge {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
/* Card Archive -> subtle red background + shadow */
.validator-card[data-category="archive"] {
  background: linear-gradient(180deg, #fff5f5 0%, #fee2e2 100%);
  border-color: #fecaca;
  box-shadow: 0 12px 30px rgba(239,68,68,0.18);
}
/* Tab Archive active -> red gradient */
.tabbar .tab[data-tab="archive"].active {
  background: linear-gradient(180deg, #EF4444 0%, #7F1D1D 100%);
  color: #ffffff;
}
.tabbar .tab[data-tab="archive"].active:hover { filter: brightness(1.06); }
/* Stake button Archive already overridden earlier, keep for completeness */
.validator-card[data-category="archive"] .stake-button {
  background: linear-gradient(180deg, #EF4444 0%, #7F1D1D 100%);
  box-shadow: 0 10px 25px rgba(239,68,68,0.35);
}
.validator-card[data-category="archive"] .stake-button:hover { filter: brightness(1.06); }
/* Stronger override: Archive badge span in red */
.validator-card[data-category="archive"] .badge,
.validator-card[data-category="archive"] .badge.badge-gray {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}
/* Archive: set all span text to red */
.validator-card[data-category="archive"] span { color: #b91c1c; }
/* Archive: force status-dot to red */
.validator-card[data-category="archive"] .status-dot,
.validator-card[data-category="archive"] .status-dot.live {
  background-color: #EF4444;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .nav-brand h1 { animation: none; background-position: 50% 50%; }
  .brand-text::after { animation: none; }
}
.nav-brand:hover .brand-logo {
  transform: translateY(-0.5px) scale(1.02);
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.55)) drop-shadow(0 0 10px rgba(6, 182, 212, 0.48));
}
.brand-text::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(200, 0, 255, 0.00) 0%, rgba(200, 0, 255, 0.70) 20%, rgba(0, 209, 255, 0.85) 80%, rgba(0, 209, 255, 0.00) 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.30);
  opacity: 0.9;
  animation: underlineFlow 8s ease-in-out infinite;
}

/* Global H3: style mirip H1 dengan gradasi dan ikon logo */
h3 {
  font-family: 'Exo 2', 'Poppins', 'Montserrat', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  background: linear-gradient(90deg, #8E00FF 0%, #C800FF 35%, #00D1FF 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGradient 10s ease-in-out infinite;
}

h3::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.4rem;
  background-image: url('https://ik.imagekit.io/1vhal7wfq/Wansnodee-logo.png?updatedAt=1761536404982');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.35)) drop-shadow(0 0 5px rgba(6, 182, 212, 0.30));
}

@media (prefers-reduced-motion: reduce) {
  h3 { animation: none; background-position: 50% 50%; }
}

/* Global image interaction hardening */
img {
  -webkit-user-drag: none;
  user-select: none;
}
.validator-logo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

.validator-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
  color: #1f2937;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 9999px;
  background: #e8f8ef;
  color: #0f766e;
  border: 1px solid #b6e3cf;
}

.stake-button {
  display: block;
  margin: 1rem auto 0.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: #1E3A8A;
  background: linear-gradient(180deg, #2563EB 0%, #1E3A8A 100%);
  box-shadow: 0 10px 25px rgba(37,99,235,0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.stake-button:hover { filter: brightness(1.05); }
.stake-button:active { transform: scale(0.98); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
/* Ripple effect for stake buttons */
.stake-button .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms linear;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
/* --- Networks header styles (onenov-like) --- */
.networks-header { text-align: center; margin-top: 12px; margin-bottom: 24px; }
.header-badge .badge { display: inline-flex; align-items: center; gap: 8px; background: #eef2f7; color: #0f172a; border: 1px solid #e2e8f0; border-radius: 20px; padding: 6px 12px; font-weight: 600; font-size: 14px; box-shadow: 0 1px 2px rgba(15,23,42,0.06); }
.header-badge .badge:empty { display: none; }
.header-badge::before { content: ""; font-size: 16px; line-height: 1; }
.section-title { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 32px; font-weight: 700; color: #0f172a; margin: 12px 0 8px; }
.section-subtitle { max-width: 820px; margin: 0 auto 18px; color: #64748b; font-size: 16px; line-height: 1.6; }
.tabbar { display: flex; justify-content: center; gap: 12px; background: #f3f4f6; padding: 8px; border-radius: 12px; border: 1px solid #e5e7eb; max-width: 880px; margin: 10px auto 20px; }
.tabbar .tab { appearance: none; background: transparent; border: none; color: #334155; font-weight: 600; padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.tabbar .tab.active { background: #ffffff; color: #0f172a; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15,23,42,0.06); }
/* Space before grid */
.section-title + .networks-header, .networks-header + .validator-grid { margin-top: 8px; }

/* --- Badge color variants --- */
.badge-blue { background: #e6f0ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-gray { background: #eef2f7; color: #475569; border: 1px solid #e2e8f0; }

/* --- Tab hover refinements --- */
.tabbar .tab:hover { background: rgba(255,255,255,0.7); color: #0f172a; }
/* Archive: red gradient for Stake button */
.validator-card[data-category="archive"] .stake-button {
  background: linear-gradient(180deg, #EF4444 0%, #7F1D1D 100%);
  box-shadow: 0 10px 25px rgba(239,68,68,0.35);
}
.validator-card[data-category="archive"] .stake-button:hover {
  filter: brightness(1.06);
}
/* Archive theme: red gradient for badge, card, and active tab */
/* Badge Archive -> red */
.validator-card[data-category="archive"] .badge {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
/* Card Archive -> subtle red background + shadow */
.validator-card[data-category="archive"] {
  background: linear-gradient(180deg, #fff5f5 0%, #fee2e2 100%);
  border-color: #fecaca;
  box-shadow: 0 12px 30px rgba(239,68,68,0.18);
}
/* Tab Archive active -> red gradient */
.tabbar .tab[data-tab="archive"].active {
  background: linear-gradient(180deg, #EF4444 0%, #7F1D1D 100%);
  color: #ffffff;
}
.tabbar .tab[data-tab="archive"].active:hover {
  filter: brightness(1.06);
}
/* Stake button Archive already overridden earlier, keep for completeness */
.validator-card[data-category="archive"] .stake-button {
  background: linear-gradient(180deg, #EF4444 0%, #7F1D1D 100%);
  box-shadow: 0 10px 25px rgba(239,68,68,0.35);
}
.validator-card[data-category="archive"] .stake-button:hover { filter: brightness(1.06); }
/* Stronger override: Archive badge span in red */
.validator-card[data-category="archive"] .badge,
.validator-card[data-category="archive"] .badge.badge-gray {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}
/* Archive: set all span text to red */
.validator-card[data-category="archive"] span { color: #b91c1c; }
/* Archive: force status-dot to red */
.validator-card[data-category="archive"] .status-dot,
.validator-card[data-category="archive"] .status-dot.live {
  background-color: #EF4444;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .nav-brand h1 { animation: none; background-position: 50% 50%; }
  .brand-text::after { animation: none; }
}
.nav-brand:hover .brand-logo {
  transform: translateY(-0.5px) scale(1.02);
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.55)) drop-shadow(0 0 10px rgba(6, 182, 212, 0.48));
}
.brand-text::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(200, 0, 255, 0.00) 0%, rgba(200, 0, 255, 0.70) 20%, rgba(0, 209, 255, 0.85) 80%, rgba(0, 209, 255, 0.00) 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.30);
  opacity: 0.9;
  animation: underlineFlow 8s ease-in-out infinite;
}

/* Global H3: style mirip H1 dengan gradasi dan ikon logo */
h3 {
  font-family: 'Exo 2', 'Poppins', 'Montserrat', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  background: linear-gradient(90deg, #8E00FF 0%, #C800FF 35%, #00D1FF 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGradient 10s ease-in-out infinite;
}

h3::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.4rem;
  background-image: url('https://ik.imagekit.io/1vhal7wfq/Wansnodee-logo.png?updatedAt=1761536404982');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.35)) drop-shadow(0 0 5px rgba(6, 182, 212, 0.30));
}

@media (prefers-reduced-motion: reduce) {
  h3 { animation: none; background-position: 50% 50%; }
}

/* Global image interaction hardening */
img {
  -webkit-user-drag: none;
  user-select: none;
}
.validator-logo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

.validator-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
  color: #1f2937;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 9999px;
  background: #e8f8ef;
  color: #0f766e;
  border: 1px solid #b6e3cf;
}

.stake-button {
  display: block;
  margin: 1rem auto 0.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: #1E3A8A;
  background: linear-gradient(180deg, #2563EB 0%, #1E3A8A 100%);
  box-shadow: 0 10px 25px rgba(37,99,235,0.35);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.stake-button:hover { filter: brightness(1.05); }
.stake-button:active { transform: scale(0.98); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
/* Ripple effect for stake buttons */
.stake-button .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms linear;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
/* --- Networks header styles (onenov-like) --- */
.networks-header { text-align: center; margin-top: 12px; margin-bottom: 24px; }
.header-badge .badge { display: inline-flex; align-items: center; gap: 8px; background: #eef2f7; color: #0f172a; border: 1px solid #e2e8f0; border-radius: 20px; padding: 6px 12px; font-weight: 600; font-size: 14px; box-shadow: 0 1px 2px rgba(15,23,42,0.06); }
.header-badge::before { content: ""; font-size: 16px; line-height: 1; }
.section-title { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 32px; font-weight: 700; color: #0f172a; margin: 12px 0 8px; }
.section-subtitle { max-width: 820px; margin: 0 auto 18px; color: #64748b; font-size: 16px; line-height: 1.6; }
.tabbar { display: flex; justify-content: center; gap: 12px; background: #f3f4f6; padding: 8px; border-radius: 12px; border: 1px solid #e5e7eb; max-width: 880px; margin: 10px auto 20px; }
.tabbar .tab { appearance: none; background: transparent; border: none; color: #334155; font-weight: 600; padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.tabbar .tab.active { background: #ffffff; color: #0f172a; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15,23,42,0.06); }
/* Space before grid */
.section-title + .networks-header, .networks-header + .validator-grid { margin-top: 8px; }

/* --- Badge color variants --- */
.badge-blue { background: #e6f0ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-gray { background: #eef2f7; color: #475569; border: 1px solid #e2e8f0; }

/* --- Tab hover refinements --- */
.tabbar .tab:hover { background: rgba(255,255,255,0.7); color: #0f172a; }
/* Mobile: wrap tab buttons for better fit */
@media (max-width: 768px) {
  .tabbar { flex-wrap: wrap; gap: 8px; padding: 8px; justify-content: center; }
  .tabbar .tab { flex: 1 1 calc(50% - 8px); min-width: 140px; text-align: center; }
}
@media (max-width: 420px) {
  .tabbar .tab { flex: 1 1 100%; }
}
/* Uptime tab active -> green gradient */
.tabbar .tab[data-tab="uptime"].active {
  background: linear-gradient(180deg, #10B981 0%, #064E3B 100%);
  color: #ffffff;
}
.tabbar .tab[data-tab="uptime"].active:hover { filter: brightness(1.06); }

/* Uptime panel styles */
.uptime-panel { max-width: 980px; margin: 12px auto 20px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,0.06); padding: 16px; }
.uptime-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.uptime-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; align-items: center; }
.uptime-note { text-align: center; color: #64748b; margin-top: 10px; font-size: 14px; }

/* ===== Uptime Panel (detailed cards) ===== */
.uptime-list { display: flex; flex-direction: column; gap: 16px; }
.uptime-card-detailed { background: linear-gradient(180deg, #e6f0ff 0%, #eef6ff 100%); border: 1px solid #cfe3ff; border-radius: 14px; box-shadow: 0 12px 28px rgba(29,78,216,0.18); padding: 16px; }
.uptime-header { display: flex; align-items: center; gap: 12px; }
.uptime-logo { width: 44px; height: 44px; border-radius: 50%; background: transparent; border: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.uptime-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uptime-title { display: flex; align-items: baseline; gap: 10px; font-weight: 700; color: #0f172a; }
.uptime-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; background: #1e40af; color: #fff; border-radius: 999px; padding: 6px 10px; box-shadow: 0 6px 14px rgba(30,64,175,0.35); }
.uptime-meta { color: #64748b; font-size: 14px; margin-left: 6px; }
.uptime-actions { margin-left: auto; color: #64748b; font-weight: 600; }
.block-dots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.dot { width: 16px; height: 16px; border-radius: 6px; border: 1px solid rgba(2,6,23,0.08); box-shadow: 0 2px 4px rgba(2,6,23,0.06); }
.dot.green { background: #10B981; }
.dot.yellow { background: #F59E0B; }
.dot.red { background: #EF4444; }
.uptime-legend { display: flex; gap: 14px; align-items: center; justify-content: flex-start; color: #64748b; font-size: 13px; margin-top: 10px; }
.uptime-legend .legend-item { display: inline-flex; align-items: center; gap: 6px; }
.uptime-legend .legend-item.right { margin-left: auto; }
/* Compact separators */
.uptime-card-detailed + .uptime-card-detailed { margin-top: 8px; }
/* Badge OFFLINE variant */
.uptime-badge.offline { background: #ef4444; box-shadow: 0 6px 14px rgba(239,68,68,0.35); }

/* ===== Uptime extra metadata ===== */
.uptime-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: #475569; font-size: 13px; }
.uptime-extra .meta-item { background: rgba(255,255,255,0.7); border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 6px; }
.uptime-extra a { color: #1e40af; text-decoration: none; }
.uptime-extra a:hover { text-decoration: underline; }

/* ===== Uptime Tools (RPC endpoints) ===== */
.uptime-actions .tools-toggle { appearance: none; border: 1px solid #cfe3ff; background: #ffffff; color: #1e40af; font-weight: 600; border-radius: 8px; padding: 6px 10px; margin-left: 8px; cursor: pointer; box-shadow: 0 3px 8px rgba(29,78,216,0.18); }
.uptime-actions .tools-toggle:hover { filter: brightness(1.02); }
.uptime-card-detailed .uptime-tools { display: none; margin-top: 12px; }
.uptime-card-detailed.show-tools .uptime-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.tool-link { background: rgba(255,255,255,0.85); border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; color: #1e40af; text-decoration: none; box-shadow: 0 2px 6px rgba(15,23,42,0.08); }
.tool-link:hover { text-decoration: underline; filter: brightness(1.03); }
