/* ═══════════════════════════════════════════════════════════════
   Track iT — Luxury Digital Banking Financial Tools Stylesheet
   Matte Black (#09090b) + Burnished Gold (#d4af37) + Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

.tools-hero {
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12), transparent 70%),
                linear-gradient(180deg, #18181b 0%, #09090b 100%) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    color: #fff;
    padding: 64px 0 52px;
    text-align: center;
}

.tools-hero h1 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.tools-hero p {
    color: #a1a1aa;
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Calculator Tabs / Navigation ────────────────────────────── */
.calc-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 36px 0 32px;
}

.calc-tab-btn {
    padding: 12px 26px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(10px);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-tab-btn:hover {
    border-color: rgba(212, 175, 55, 0.5);
    color: #d4af37;
    transform: translateY(-2px);
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #b89728 100%);
    border-color: #d4af37;
    color: #09090b;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
}

/* ── Calculator Card Layout ──────────────────────────────────── */
.calculator-panel {
    display: none;
}

.calculator-panel.active {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    background: rgba(24, 24, 27, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    margin-bottom: 60px;
}

.calc-inputs h3 {
    font-family: 'Outfit', sans-serif;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.range-slider-wrap {
    margin-bottom: 24px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    color: #d4d4d8;
}

.calc-slider {
    width: 100%;
    accent-color: #d4af37;
    height: 6px;
    border-radius: 4px;
}

/* Results Output Card */
.calc-results {
    background: rgba(9, 9, 11, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-box {
    margin-bottom: 22px;
}

.result-label {
    font-size: 0.88rem;
    color: #a1a1aa;
    margin-bottom: 6px;
}

.result-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
}

.result-val.gold {
    color: #d4af37;
}

.result-val.green {
    color: #10b981;
}

/* Ratio Bar */
.ratio-bar {
    width: 100%;
    height: 14px;
    border-radius: 9999px;
    overflow: hidden;
    display: flex;
    margin-top: 16px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.ratio-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #a1a1aa;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

@media (max-width: 850px) {
    .calculator-panel.active {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}
