:root {
    --bg-dark: #060c12;
    --card-bg: rgba(14, 26, 38, 0.75);
    --card-border: rgba(16, 185, 129, 0.15);
    --accent-emerald: #10b981;
    --accent-gold: #f59e0b;
    --accent-blue: #3b82f6;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --radius-lg: 16px;
    --radius-md: 10px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body.finance-theme {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
    min-height: 100vh;
}

.glow-spot {
    position: fixed;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
.spot-1 { top: -100px; left: -50px; background: var(--accent-emerald); }
.spot-2 { bottom: 50px; right: -100px; background: var(--accent-gold); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    background: rgba(6, 12, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-content { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; }
.brand-icon { color: var(--accent-emerald); font-size: 1.3rem; }
.badge-fin {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.nav-links { display: flex; gap: 25px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; display: flex; align-items: center; gap: 6px; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-emerald); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

/* Network Spinner Widget (3/4...) */
.network-spinner {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3px;
}
.btn-spin-arrow {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.2s, color 0.2s;
}
.btn-spin-arrow:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.spin-label-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}
.spin-num strong { color: var(--accent-emerald); }
.spin-caret { font-size: 0.7rem; color: var(--text-muted); transition: transform 0.2s; }
.network-spinner.open .spin-caret { transform: rotate(180deg); }

.spin-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    z-index: 200;
}
.network-spinner.open .spin-dropdown { display: flex; flex-direction: column; gap: 4px; }
.spin-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
}
.spin-item:hover { background: rgba(255, 255, 255, 0.08); }
.spin-item.active { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.spin-idx { background: rgba(255, 255, 255, 0.1); font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; color: var(--accent-emerald); }
.spin-item strong { display: block; font-size: 0.85rem; }
.spin-item small { display: block; font-size: 0.7rem; color: #94a3b8; }

.btn-lang {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Ad Banners */
.ad-wrapper { margin: 20px auto; text-align: center; }
.aads-placeholder {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 10px;
    display: inline-block;
    max-width: 100%;
}
.aads-placeholder.medium-rect { min-height: 250px; width: 300px; }
.ad-label { display: block; font-size: 0.65rem; color: var(--text-muted); margin-bottom: 5px; }

/* Grid Layout */
.grid-layout { display: grid; grid-template-columns: 1fr 340px; gap: 25px; }
@media (max-width: 900px) { .grid-layout { grid-template-columns: 1fr; } .nav-links { display: none; } }

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}
.card-header { margin-bottom: 20px; }
.card-header h2, .card-header h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; }
.subtitle { color: var(--text-secondary); font-size: 0.85rem; margin-top: 5px; }

/* Text Content & FAQ */
.text-box { line-height: 1.6; }
.card-body p { margin-bottom: 15px; color: var(--text-secondary); font-size: 0.95rem; }
.card-body p strong { color: var(--text-primary); }
.card-body h3 { font-family: var(--font-heading); font-size: 1.05rem; margin: 20px 0 10px; color: #fff; }
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: rgba(0, 0, 0, 0.2); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 15px; }
.faq-item strong { display: block; margin-bottom: 5px; color: var(--accent-emerald); font-weight: 600; }
.faq-item p { margin-bottom: 0; font-size: 0.9rem; }
/* Form Elements */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }

input[type="number"] {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: #fff;
    padding: 12px 14px;
    font-family: var(--font-heading);
    font-size: 1rem;
    outline: none;
}
input[type="number"]:focus { border-color: var(--accent-emerald); }

/* Results Banner */
.results-banner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 600px) { .results-banner { grid-template-columns: 1fr; } }

.res-card { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 14px; text-align: center; }
.res-lbl { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 4px; }
.res-val { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: #fff; }
.res-val.highlight { color: var(--accent-emerald); }
.res-val.green { color: #34d399; }

/* Canvas Chart */
.chart-container { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 15px; }

/* Staking Selector */
.staking-selector { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.stake-btn { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--card-border); color: var(--text-secondary); padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: all 0.2s; }
.stake-btn.active, .stake-btn:hover { background: rgba(16, 185, 129, 0.15); border-color: var(--accent-emerald); color: #fff; }

.stake-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 15px; }
.stake-res-box { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 12px; text-align: center; }
.stake-res-box span { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 4px; }
.stake-res-box strong { font-family: var(--font-heading); font-size: 1.05rem; color: #fff; }
.stake-res-box.highlight strong { color: var(--accent-emerald); }

/* Pools List */
.pool-list { display: flex; flex-direction: column; gap: 10px; }
.pool-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.03); font-size: 0.85rem; }
.pool-apy { color: var(--accent-emerald); font-weight: 700; }

/* Footer */
.footer { border-top: 1px solid var(--card-border); padding: 30px 0; margin-top: 40px; background: rgba(3, 7, 12, 0.95); font-size: 0.85rem; color: var(--text-secondary); text-align: center; }
