/* Base & Variables */
:root {
    --bg-dark: #07090e;
    --bg-panel: #0d121c;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-gold: #d4af37;
    --accent-gold-glow: rgba(212, 175, 55, 0.4);
    --accent-cyan: #00f0ff;
    --accent-cyan-glow: rgba(0, 240, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.05);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #aa8b2c 100%);
    color: #000;
    border: none;
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-gold-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow) inset;
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background-color: #0d121c;
    background-image: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, #0d121c 100%);
    color: var(--text-main); /* Brighter for readability */
    text-align: center;
    padding: 0.6rem;
    font-size: 0.85rem;
    font-family: var(--font-body);
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent-gold);
}

.disclaimer-banner strong {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-gold); /* Highlight 'IMPORTANT' */
}

/* Navbar */
.navbar {
    position: fixed;
    top: auto; /* Adjusts based on disclaimer + ticker */
    margin-top: 76px; /* 36px ticker + ~40px disclaimer */
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(7, 9, 14, 0.95);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--accent-gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: var(--font-heading);
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 160px; /* ticker(36) + disclaimer(~40) + navbar(~80) */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/wbnb_hero_bg_1777078649076.png'); /* Replace with actual name if different */
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(7,9,14,0.4) 0%, var(--bg-dark) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.price-highlight {
    display: inline-flex;
    flex-direction: column;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
    margin-bottom: 3rem;
}

.price-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.price-value .currency {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Glass Card Common */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Section Padding */
.section-padding {
    padding: 8rem 0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-text strong {
    color: var(--text-main);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list li span {
    color: var(--accent-cyan);
    font-weight: bold;
}

.about-image .image-wrapper {
    height: 450px;
    background-image: url('images/wbnb_abstract_network_1777078888918.png');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--accent-cyan-glow);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.program-card {
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.program-card:hover::before {
    width: 6px;
}

.program-column:first-child .program-card::before {
    background: var(--accent-gold);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 0;
}

.program-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.program-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Roadmap Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-dark);
    border: 4px solid var(--accent-gold);
    border-radius: 50%;
    top: 30px;
    right: -10px;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.timeline-content {
    padding: 2rem;
    position: relative;
}

.year {
    display: inline-block;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.timeline-item:nth-child(even) .year {
    color: var(--accent-cyan);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.price-target {
    background: rgba(0,0,0,0.3);
    padding: 0.8rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    border-left: 2px solid var(--accent-gold);
}

.timeline-item:nth-child(even) .price-target {
    border-left-color: var(--accent-cyan);
}

.price-target strong {
    color: var(--text-main);
    font-size: 1.2rem;
}

.highlight-target {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
    border: 1px solid var(--accent-gold-glow);
}

.highlight-target strong {
    color: var(--accent-gold);
    font-size: 1.4rem;
}

/* Footer */
footer {
    background: var(--bg-panel);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-contact {
    text-align: left;
}

.footer-contact h4 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-cyan);
}

.footer-legal {
    text-align: right;
    max-width: 500px;
}

.footer-legal p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-legal strong {
    color: #ff4444;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    padding: 2rem;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover { color: #fff; }

.modal-title { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--accent-gold); }
.modal-desc { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

.wallet-options, .buy-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.wallet-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    transform: translateX(5px);
}

/* Transparency Section */
.transparency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contract-address {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--glass-border);
}

.contract-address code {
    font-family: monospace;
    color: var(--accent-cyan);
    word-break: break-all;
    font-size: 0.9rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.tokenomics-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.bar-container {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.1, 0, 0, 1);
}

/* Calculator Section */
.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
}

.calculator-body {
    margin-top: 3rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

input[type="range"] {
    flex-grow: 1;
    height: 6px;
    background: var(--glass-border);
    border-radius: 5px;
    appearance: none;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

input[type="number"] {
    width: 80px;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.result-card {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid var(--glass-border);
}

.result-card.highlight {
    border-color: var(--accent-gold-glow);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
}

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

.result-value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-gold);
}

/* Governance Section */
.governance-card {
    padding: 0;
    overflow: hidden;
}

.governance-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
}

.governance-text {
    padding: 4rem;
}

.governance-subtitle {
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.governance-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.governance-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.governance-image {
    background: linear-gradient(135deg, var(--bg-panel), #1a2235);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.architect-icon {
    width: 150px;
    height: 150px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    box-shadow: 0 0 50px var(--accent-gold-glow);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-cyan);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Large enough for content */
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 1rem;
}

@media (max-width: 992px) {
    .transparency-grid, .governance-content {
        grid-template-columns: 1fr;
    }
    .governance-image {
        height: 300px;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

.scroll-reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.left { transform: translateX(-50px); }
.scroll-reveal.right { transform: translateX(50px); }

.scroll-reveal.visible {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-dot { left: 21px !important; right: auto; }
}

.mobile-menu-btn { display: none; }

@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    .hero { padding-top: 120px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .price-value { font-size: 2.2rem; }
    
    .hero-btn-group { justify-content: center; width: 100%; }
    .btn-primary.large, .btn-secondary.large { width: 100%; text-align: center; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-panel);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 998;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1000;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 30px;
        height: 2px;
        background: var(--text-main);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .footer-content { flex-direction: column; text-align: center; }
    .footer-legal { text-align: center; }
    
    .section-title { font-size: 2.2rem; }
    .section-padding { padding: 4rem 0; }
    
    .hero-actions { align-items: center; text-align: center; }
}

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

/* Protocol Status Indicator */
.protocol-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 0, 0.05);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.status-text {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-muted);
}

.status-highlight {
    color: #00ff00;
}

/* Footer Socials */
.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px);
}

/* Whitepaper Badge */
.coming-soon-badge {
    display: inline-block;
    background: var(--accent-gold-glow);
    color: var(--accent-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    border: 1px solid var(--accent-gold);
    margin: 1.5rem 0;
}

/* Institutional Dashboard */
.dashboard {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.wallet-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

#userAddress {
    color: var(--accent-cyan);
    font-family: monospace;
}

#userBalance {
    color: var(--accent-gold);
    font-weight: 700;
}

.dashboard-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--accent-gold);
    color: black;
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px var(--accent-gold-glow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.program-card {
    position: relative;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.badge-active {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.badge-closed {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid var(--glass-border);
}

.program-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.yield-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.program-type {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.program-type.flexible {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.program-type.contractual {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.highlight-card {
    border: 1px solid var(--accent-gold) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15) !important;
}

.highlight-card::before {
    background: var(--accent-gold) !important;
}

.yield-text.muted {
    color: var(--text-muted);
    opacity: 0.6;
}

.apy {
    font-size: 1rem;
    color: var(--text-muted);
}

.program-card .desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.program-stats {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.program-stats div {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 5px 0;
}

.program-stats div span:first-child {
    color: var(--text-muted);
}

.program-stats div span:last-child {
    color: var(--text-main);
    font-weight: 600;
}

.closed-pool {
    opacity: 0.7;
    filter: grayscale(0.5);
}

/* Wallet Connection Enhancement */
.wallet-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.wallet-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.wallet-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent-gold);
    transform: translateX(5px);
}

.wallet-thumb {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff; /* Solid white background for visibility of logos */
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.wallet-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wallet-tag {
    position: absolute;
    right: 1.5rem;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 2px 8px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .wallet-info-bar {
        flex-direction: column;
        gap: 1rem;
        border-radius: 20px;
        text-align: center;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Protocol Health Widget */
.protocol-health-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.health-card {
    text-align: center;
    padding: 1.5rem;
}

.health-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.health-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    font-family: var(--font-heading);
}

.health-trend {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.health-trend.up { color: #00ff00; }
.health-status { color: var(--accent-cyan); font-size: 0.75rem; font-weight: 700; margin-top: 0.5rem; }

/* Wealth Architect Calculator */
.calculator-inputs {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.custom-select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.wealth-projection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.projection-card {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.proj-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.proj-value { font-size: 2rem; font-weight: 800; color: var(--accent-cyan); font-family: var(--font-heading); }

/* Mechanism Flowchart */
.mechanism-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    gap: 2rem;
}

.flow-step {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.flow-step:hover {
    border-color: var(--accent-gold);
    transform: translateY(-10px);
    background: rgba(212, 175, 55, 0.05);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: 800;
}

/* Curiosity Tooltips */
.curiosity-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    border-radius: 50%;
    font-size: 10px;
    justify-content: center;
    align-items: center;
    cursor: help;
    margin-left: 5px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.curiosity-icon:hover {
    background: var(--accent-gold);
    color: black;
}

@media (max-width: 992px) {
    .protocol-health-grid, .wealth-projection-grid, .mechanism-flow {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .flow-arrow { transform: rotate(90deg); margin: 1rem 0; }
    .calculator-inputs { grid-template-columns: 1fr; }
}

/* =========================================================================
   PORTFOLIO BALANCE CARDS
   ========================================================================= */
.portfolio-balance-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 1.5rem auto 2rem;
}
.balance-card { text-align: center; padding: 1.2rem 1rem; }
.balance-label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.balance-value { display: block; font-size: 1.3rem; font-weight: 800; font-family: var(--font-heading); color: var(--text-main); }
.balance-value.accent { color: var(--accent-cyan); }
.balance-value.gold { color: var(--accent-gold); }
.highlight-balance { border-color: var(--accent-gold) !important; background: rgba(212, 175, 55, 0.05) !important; }
.btn-primary.connected { background: rgba(0, 255, 0, 0.15); color: #00ff00; border: 1px solid rgba(0, 255, 0, 0.3); box-shadow: none; font-family: monospace; font-size: 0.85rem; }

/* MULTI-CHAIN PORTFOLIO SCANNER */
.portfolio-scanner { max-width: 800px; margin: 0 auto 2rem; padding: 2.5rem; }
.scanner-title { font-size: 1.8rem; margin-bottom: 0.5rem; }
.scanner-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.scanner-inputs { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.scanner-input-group label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-main); }
.chain-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.scanner-input { width: 100%; padding: 0.8rem 1rem; background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-main); font-family: monospace; font-size: 0.9rem; transition: border-color 0.3s ease; }
.scanner-input:focus { outline: none; border-color: var(--accent-gold); }
.scanner-input::placeholder { color: rgba(255,255,255,0.2); }
.full-width { width: 100%; }

/* Portfolio Results */
.portfolio-total-value { text-align: center; padding: 2rem; margin-bottom: 2rem; }
.portfolio-total-label { display: block; font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; }
.portfolio-total-amount { font-size: 3rem; font-weight: 800; font-family: var(--font-heading); background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.portfolio-chains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.chain-panel { padding: 1.5rem; }
.chain-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.chain-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; font-family: var(--font-heading); }
.chain-header h4 { font-size: 1rem; margin-bottom: 2px; }
.chain-value { font-size: 0.85rem; color: var(--accent-gold); font-weight: 700; }
.chain-not-connected { font-size: 0.8rem; color: var(--text-muted); }
.native-balance-row { display: flex; justify-content: space-between; padding: 0.8rem; background: rgba(0,0,0,0.3); border-radius: 8px; font-size: 0.85rem; margin-bottom: 1rem; color: var(--text-muted); }
.native-amount { color: var(--text-main); font-weight: 600; font-family: monospace; }
.token-list-header { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.5rem; }
.token-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--glass-border); }
.token-row:last-child { border-bottom: none; }
.token-info { display: flex; align-items: center; gap: 0.6rem; }
.token-symbol-badge { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.75rem; }
.token-name { font-weight: 600; font-size: 0.85rem; display: block; }
.token-fullname { font-size: 0.7rem; color: var(--text-muted); display: block; }
.token-values { text-align: right; }
.token-balance { display: block; font-size: 0.85rem; font-weight: 600; font-family: monospace; }
.token-usd { display: block; font-size: 0.7rem; color: var(--text-muted); }
.no-tokens { text-align: center; padding: 1rem; color: var(--text-muted); font-size: 0.85rem; }

/* SECURITY CENTER */
.security-header { text-align: center; max-width: 700px; margin: 0 auto 2rem; padding: 3rem 2rem; }
.security-icon { font-size: 3rem; margin-bottom: 1rem; }
.security-header h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.security-clean { text-align: center; padding: 3rem; }
.security-shield { font-size: 4rem; margin-bottom: 1rem; }
.security-clean h4 { color: #00ff00; font-size: 1.5rem; margin-bottom: 0.5rem; }
.security-clean p { color: var(--text-muted); }
.security-summary { text-align: center; padding: 1rem; margin-bottom: 1rem; color: var(--text-muted); }
.approvals-count { color: var(--accent-gold); font-weight: 800; font-size: 1.2rem; }
.approvals-list { max-width: 800px; margin: 0 auto; }
.approval-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 10px; margin-bottom: 0.8rem; transition: border-color 0.3s ease; }
.approval-row.risk-high { border-left: 4px solid #ff4444; }
.approval-row.risk-medium { border-left: 4px solid #ffaa00; }
.approval-row.risk-low { border-left: 4px solid #00ff00; }
.approval-token { font-weight: 700; font-size: 1rem; }
.approval-spender { color: var(--text-muted); font-size: 0.85rem; margin-left: 0.5rem; }
.approval-amount { font-family: monospace; font-size: 0.85rem; display: block; }
.risk-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 800; letter-spacing: 1px; }
.risk-badge.risk-high { background: rgba(255,68,68,0.15); color: #ff4444; border: 1px solid rgba(255,68,68,0.3); }
.risk-badge.risk-medium { background: rgba(255,170,0,0.15); color: #ffaa00; border: 1px solid rgba(255,170,0,0.3); }
.risk-badge.risk-low { background: rgba(0,255,0,0.1); color: #00ff00; border: 1px solid rgba(0,255,0,0.2); }
.btn-revoke { background: rgba(255,68,68,0.15); color: #ff4444; border: 1px solid rgba(255,68,68,0.3); padding: 6px 16px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 0.8rem; transition: all 0.3s ease; white-space: nowrap; }
.btn-revoke:hover { background: rgba(255,68,68,0.3); }
.btn-revoke.revoked { background: rgba(0,255,0,0.1); color: #00ff00; border-color: rgba(0,255,0,0.2); cursor: default; }

/* Drainer Education */
.security-education { max-width: 800px; margin: 2rem auto 0; padding: 2rem; }
.security-education h4 { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--accent-gold); }
.edu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.edu-item { text-align: center; }
.edu-num { display: inline-flex; width: 36px; height: 36px; background: rgba(212,175,55,0.15); color: var(--accent-gold); border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; margin-bottom: 0.8rem; }
.edu-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.portfolio-loading { padding: 3rem; }

@media (max-width: 992px) {
    .portfolio-balance-cards { grid-template-columns: repeat(2, 1fr); }
    .portfolio-chains-grid { grid-template-columns: 1fr; }
    .edu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .portfolio-balance-cards { grid-template-columns: 1fr 1fr; }
    .approval-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .edu-grid { grid-template-columns: 1fr; }
    .portfolio-total-amount { font-size: 2rem; }
    .dashboard-tabs { flex-wrap: wrap; }
}

/* =========================================================================
   ENHANCED DESIGN TOKENS
   ========================================================================= */
:root {
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.25);
    --shadow-cyan: 0 0 30px rgba(0, 240, 255, 0.2);
    --transition-fast: 0.2s ease;
    --transition-slow: 0.6s cubic-bezier(0.5, 0, 0, 1);
    --glass-bg-stronger: rgba(255, 255, 255, 0.04);
    --inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* =========================================================================
   NOISE TEXTURE OVERLAY (premium dark background feel)
   ========================================================================= */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* =========================================================================
   PAGE PROGRESS BAR
   ========================================================================= */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px var(--accent-gold-glow);
}

/* =========================================================================
   SCROLLING TICKER BAR
   ========================================================================= */
.ticker-bar {
    background: rgba(7, 9, 14, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 998;
}

.ticker-track {
    display: flex;
    animation: tickerScroll 40s linear infinite;
    white-space: nowrap;
    gap: 4rem;
    padding-left: 100%;
}

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

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.ticker-item .ticker-label {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticker-item .ticker-value {
    color: var(--text-main);
    font-weight: 700;
}

.ticker-item .ticker-change {
    color: #00ff00;
    font-size: 0.7rem;
}

.ticker-dot {
    color: rgba(212, 175, 55, 0.3);
    font-size: 1rem;
    margin: 0 0.5rem;
}

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

/* Offset everything below ticker */
.ticker-bar {
    top: 0;
}

.disclaimer-banner {
    margin-top: 36px; /* below ticker */
}

/* =========================================================================
   GLASSMORPHISM UPGRADE — stronger, more premium feel
   ========================================================================= */
.glass-card {
    background: var(--glass-bg-stronger) !important;
    box-shadow: var(--inner-glow), 0 4px 24px rgba(0,0,0,0.4);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.2) !important;
    box-shadow: var(--inner-glow), var(--shadow-gold), 0 8px 32px rgba(0,0,0,0.5) !important;
}

/* =========================================================================
   STATS STRIP (count-up on scroll)
   ========================================================================= */
.stats-strip {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(13,18,28,0.8) 50%, var(--bg-dark) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(212,175,55,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(212, 175, 55, 0.15);
}

.stat-item:last-child::after { display: none; }

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-sublabel {
    display: block;
    font-size: 0.7rem;
    color: rgba(212, 175, 55, 0.5);
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 2rem; }
    .stat-item::after { display: none; }
}

/* =========================================================================
   DEFI EDUCATION SECTION
   ========================================================================= */
.education-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-dark), rgba(13,18,28,0.5));
}

.edu-tabs-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.edu-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.edu-tab-nav::-webkit-scrollbar { display: none; }

.edu-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.edu-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.edu-tab-btn.active {
    color: var(--accent-gold);
}

.edu-tab-btn.active::after {
    transform: scaleX(1);
}

.edu-tab-btn:hover {
    color: var(--text-main);
}

.edu-tab-panels {
    background: var(--glass-bg-stronger);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.edu-panel {
    display: none;
    padding: 3rem;
    animation: fadePanel 0.4s ease;
}

.edu-panel.active {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

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

.edu-panel-text h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.edu-panel-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.edu-panel-text .edu-highlight {
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid var(--accent-gold);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.edu-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* APY vs APR Visual */
.apy-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.apy-card {
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.apy-card.highlight-apy {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.06);
}

.apy-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.apy-card-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.apy-card.highlight-apy .apy-card-value {
    color: var(--accent-gold);
}

.apy-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Price Floor Visual */
.price-floor-visual {
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
}

.floor-chart {
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.floor-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.5s ease;
}

.floor-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gold);
    box-shadow: 0 0 8px var(--accent-gold-glow);
}

.floor-label {
    font-size: 0.7rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-top: 0.5rem;
}

/* Collateral Ratio Visual */
.collateral-visual {
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.collateral-ratio-bar {
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    display: flex;
    margin: 1rem 0;
}

.collateral-loan { background: linear-gradient(90deg, #ff6b6b, #ff4444); flex: 1; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: white; }
.collateral-buffer { background: linear-gradient(90deg, var(--accent-gold), #aa8b2c); flex: 0.5; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: black; }

.collateral-legend { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }

@media (max-width: 768px) {
    .edu-panel.active { grid-template-columns: 1fr; }
    .edu-tab-btn { padding: 0.8rem 1rem; font-size: 0.85rem; }
}

/* =========================================================================
   COMPOUND INTEREST CHART
   ========================================================================= */
.chart-container {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.25);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legend-line {
    width: 24px;
    height: 2px;
    border-radius: 2px;
}

#compound-chart {
    width: 100%;
    height: 220px;
}

/* =========================================================================
   DONUT CHART — Tokenomics
   ========================================================================= */
.donut-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.donut-svg-container {
    position: relative;
    flex-shrink: 0;
}

.donut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.donut-center-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.donut-center-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.donut-legend-item:hover {
    background: rgba(255,255,255,0.03);
}

.donut-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.donut-legend-label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-main);
}

.donut-legend-pct {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-main);
}

.donut-segment {
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: center;
    transform-box: fill-box;
    cursor: pointer;
}

.donut-segment:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

/* =========================================================================
   COPY ADDRESS BUTTON
   ========================================================================= */
.copy-btn {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent-cyan);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.copy-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

/* =========================================================================
   CUSTOM TOOLTIP SYSTEM
   ========================================================================= */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-card {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-panel);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    width: 220px;
    font-size: 0.8rem;
    color: var(--text-main);
    line-height: 1.5;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
    box-shadow: var(--shadow-gold);
}

.tooltip-card::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(212, 175, 55, 0.3);
}

.curiosity-icon:hover + .tooltip-card,
.tooltip-wrapper:hover .tooltip-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =========================================================================
   LIVE BSC DATA WIDGET
   ========================================================================= */
.bsc-data-widget {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 0;
}

.bsc-data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bsc-data-card {
    background: var(--glass-bg-stronger);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--inner-glow);
}

.bsc-data-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: var(--shadow-cyan), var(--inner-glow);
    transform: translateY(-3px);
}

.bsc-data-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
}

.bsc-data-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.bsc-data-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 0.3rem;
}

.bsc-data-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.bsc-data-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    color: #00ff00;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.bsc-data-live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 5px #00ff00;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .bsc-data-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   PARTNER / SOCIAL PROOF STRIP
   ========================================================================= */
.partners-strip {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.partners-label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.35;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.partner-logo:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.partner-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.partner-logo-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
}

/* =========================================================================
   HERO CANVAS
   ========================================================================= */
#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.5;
}

/* =========================================================================
   PROJECTION CARD UPGRADE
   ========================================================================= */
.projection-card.highlight {
    border-color: var(--accent-gold) !important;
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(0,240,255,0.03)) !important;
    box-shadow: var(--shadow-gold) !important;
}

.projection-card.highlight .proj-value {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================================================
   SHIMMER ANIMATION on cards
   ========================================================================= */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.program-card.highlight-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

/* =========================================================================
   SECTION TRANSITION DIVIDERS
   ========================================================================= */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.2), rgba(0,240,255,0.2), transparent);
    margin: 0;
}

/* =========================================================================
   RESPONSIVE EXTRAS
   ========================================================================= */
@media (max-width: 768px) {
    .ticker-bar { display: none; }
    .disclaimer-banner { margin-top: 0; }
    .navbar { margin-top: 40px; } /* only disclaimer height on mobile */
    .hero { padding-top: 130px; }
    .edu-panel.active { grid-template-columns: 1fr; }
    .donut-wrapper { flex-direction: column; }
}


/* =========================================================================
   MISSING & POLISHED CSS — Bug Fix Patch
   ========================================================================= */

/* btn-small */
.btn-small {
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
    border-radius: 4px;
}

/* active-program highlight border */
.active-program {
    border-color: rgba(0, 240, 255, 0.15) !important;
}

/* disabled button state */
button.disabled, .btn-secondary.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* input-group (calculator & forms) */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

/* calculator-header */
.calculator-header {
    margin-bottom: 1.5rem;
}

.calculator-header .section-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

/* newsletter */
.newsletter {
    padding: 6rem 0;
}

.newsletter-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.newsletter-note {
    margin-top: 0.8rem;
    font-size: 0.8rem;
}

/* dashboard-header */
.dashboard-header {
    margin-bottom: 3rem;
}

/* buy-input-group */
.buy-input-group label {
    display: block;
    color: var(--accent-gold);
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.buy-input-group input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1rem;
    font-family: var(--font-heading);
    transition: border-color 0.3s ease;
}

.buy-input-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* preloader-spinner */
.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* copyright footer */
.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    opacity: 0.6;
}

/* tokenomics-info card */
.tokenomics-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tokenomics-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* contract-info card */
.contract-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.contract-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* utility-notice */
.utility-notice {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Roadmap section */
.roadmap {
    position: relative;
    overflow: hidden;
}

/* Stability mechanism section */
.stability-mechanism {
    background: linear-gradient(180deg, var(--bg-dark), rgba(13,18,28,0.6));
}

/* about section */
.about {
    position: relative;
    overflow: hidden;
}

/* governance section */
.governance {
    position: relative;
}

/* faq section */
.faq {
    position: relative;
    background: linear-gradient(180deg, rgba(13,18,28,0.4), var(--bg-dark));
}

/* calculator section */
.calculator {
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark), rgba(13,18,28,0.6));
}

/* transparency section */
.transparency {
    position: relative;
}

/* programs section */
.programs {
    position: relative;
    background: linear-gradient(180deg, rgba(13,18,28,0.5), var(--bg-dark));
}

/* wallet-tag font */
.wallet-tag {
    font-family: var(--font-heading);
}

/* Projection label with icon */
.proj-label .curiosity-icon {
    font-size: 10px;
}

/* Smooth dashboard section transition */
#dashboard {
    transition: opacity 0.3s ease;
}

/* Revoke button small */
.btn-revoke {
    font-family: var(--font-heading);
}

/* Portfolio loading */
.portfolio-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Highlight active-program card with gold left border */
.program-card.active-program {
    border-left: 3px solid rgba(0, 240, 255, 0.4);
}

.program-card.active-program.highlight-card {
    border-left: 3px solid var(--accent-gold);
}

/* Fix staking/lending dashboard card heights */
#lending-tab .dashboard-grid,
#staking-tab .dashboard-grid {
    align-items: start;
}

/* Programs column title */
.program-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* =========================================================================
   RESPONSIVE PATCHES
   ========================================================================= */
@media (max-width: 768px) {
    .newsletter-card {
        padding: 2rem 1.5rem;
    }
    .calculator-wrapper {
        padding: 1.5rem;
    }
    .governance-text {
        padding: 2rem;
    }
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    .portfolio-balance-cards {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-tabs {
        gap: 0.5rem;
    }
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    .mechanism-flow {
        flex-direction: column;
    }
    .flow-arrow {
        transform: rotate(90deg);
    }
}
