/* --- Theme Variables --- */
:root {
    --bg-dark: #070a13;
    --bg-card: rgba(13, 20, 38, 0.45);
    --bg-card-hover: rgba(22, 32, 59, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-cyan: #00f2fe;
    --color-purple: #8b5cf6;
    --color-emerald: #10b981;
    --color-blue: #3b82f6;
    --color-gold: #f59e0b;
    --color-red: #ef4444;
    
    --font-heading: 'Outfit', sans-serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* --- Background Glows --- */
.radial-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 80%);
    top: -150px;
    left: -150px;
}

.glow-2 {
    background: radial-gradient(circle, var(--color-purple) 0%, transparent 80%);
    bottom: -150px;
    right: -150px;
}

/* --- Wrapper & Back Link --- */
.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 5;
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.back-link:hover {
    color: var(--color-cyan);
    transform: translateX(-4px);
}

/* --- Header --- */
.header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.website-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.3px;
    color: #fff;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.logo-img-wrap {
    width: 28px;
    height: 28px;
    background: #070a13;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    overflow: hidden;
}

.logo-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.header h1 span {
    background: linear-gradient(to right, var(--color-cyan), var(--color-purple));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* --- Glass Card Template --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.4;
}

/* --- Main Calculator Layout --- */
.calculator-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
}

/* --- Config Panel (Left Column) --- */
.config-panel h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sliders-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slider-header label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.value-badge {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 3px 10px;
    border-radius: 5px;
}

.badge-blue { background: rgba(59, 130, 246, 0.1); color: var(--color-blue); border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-purple { background: rgba(139, 92, 246, 0.1); color: var(--color-purple); border: 1px solid rgba(139, 92, 246, 0.2); }
.badge-gold { background: rgba(245, 158, 11, 0.1); color: var(--color-gold); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-cyan { background: rgba(0, 242, 254, 0.1); color: var(--color-cyan); border: 1px solid rgba(0, 242, 254, 0.2); }

.input-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Range Sliders Style --- */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    margin: 8px 0;
    transition: var(--transition-smooth);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    transition: var(--transition-smooth);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.8);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- Dashboard Panel (Right Column) --- */
.dashboard-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Massive Highlight Cost Box */
.savings-highlight {
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08) 0%, transparent 60%), var(--bg-card);
    border-color: rgba(16, 185, 129, 0.2);
    text-align: center;
    padding: 2.25rem 2rem;
}

.savings-highlight h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-emerald);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.massive-counter-wrap {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    margin: 0.5rem 0;
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.35);
}

.massive-counter-wrap .currency-symbol {
    font-size: 2rem;
    margin-top: 0.4rem;
    color: var(--color-emerald);
}

.massive-counter {
    font-size: 3.5rem;
    letter-spacing: -1.5px;
}

.savings-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Mini Cards Row */
.metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.metric-mini {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-icon {
    font-size: 1.1rem;
}

.metric-mini h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.text-gold {
    color: var(--color-gold);
}

.metric-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Cost Bar Comparison Chart Card */
.chart-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bar-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bar-info strong {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #fff;
}

.bar-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.bar-red {
    background: linear-gradient(to right, var(--color-red), #f97316);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.bar-emerald {
    background: linear-gradient(to right, var(--color-emerald), var(--color-cyan));
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.payback-indicator {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.payback-indicator strong {
    color: var(--color-gold);
    font-size: 0.9rem;
}

/* --- Call To Action (Bottom Banner) --- */
.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(0, 242, 254, 0.06) 100%), var(--bg-card);
    border-color: rgba(139, 92, 246, 0.15);
}

.cta-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 600px;
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.cta-card p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.4);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .wrapper {
        padding: 1.5rem 1rem;
        gap: 1.75rem;
    }
    
    .header h1 {
        font-size: 1.85rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }

    .glass-card {
        padding: 1.25rem 1rem;
    }
    
    .massive-counter {
        font-size: 2.5rem;
    }
    
    .massive-counter-wrap .currency-symbol {
        font-size: 1.5rem;
    }
    
    .metrics-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-cta {
        padding: 0.9rem 1.25rem;
        font-size: 0.9rem;
    }
}
