/* 
 * AlphaNifty Investment Calculators - Design System 
 */

/* Custom Reset & CSS Variables */
:root {
    /* Color Palette */
    --color-bg-primary: #FFFFFF;
    --color-bg-card: #FFFFFF;
    --color-text-primary: #0F172A;
    --color-text-secondary: #475569;
    --color-text-light: #94A3B8;
    
    /* Green (Growth) */
    --color-green: #10B981;
    --color-green-dark: #065F46;
    --color-green-light: #ECFDF5;
    --grad-green: linear-gradient(135deg, #00A86B 0%, #10B981 100%);
    --grad-green-glow: 0 0 15px rgba(16, 185, 129, 0.4);

    /* Golden Yellow (Wealth) */
    --color-gold: #F5A623;
    --color-gold-dark: #B38F00;
    --color-gold-light: #FFFBEB;
    --grad-gold: linear-gradient(135deg, #FFD54F 0%, #F5A623 50%, #B38F00 100%);
    --grad-gold-glow: 0 0 15px rgba(245, 166, 35, 0.4);

    /* Corporate Blue (Trust) */
    --color-blue: #2563EB;
    --color-blue-dark: #1E3E62;
    --color-blue-light: #EFF6FF;
    --grad-blue: linear-gradient(135deg, #2563EB 0%, #1E3E62 100%);
    --grad-blue-glow: 0 0 15px rgba(37, 99, 235, 0.4);

    /* Neutral Gradients & Borders */
    --border-color: #E2E8F0;
    --border-glass: rgba(255, 255, 255, 0.7);
    --shadow-premium: 0 10px 30px -5px rgba(11, 25, 44, 0.06), 0 4px 12px -2px rgba(11, 25, 44, 0.04);
    --shadow-hover: 0 20px 40px -5px rgba(11, 25, 44, 0.12), 0 8px 16px -2px rgba(11, 25, 44, 0.06);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    /* Font stack */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Utilities */
.text-green { color: var(--color-green); }
.text-gold { color: var(--color-gold); }
.text-blue { color: var(--color-blue); }
.font-outfit { font-family: var(--font-heading); }
.hidden { display: none !important; }

/* Wrapper Layout */
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

.content-container, .header-container, .footer-container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Header Styling */
.main-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Tab Navigation Buttons */
.nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: #F1F5F9;
    padding: 0.35rem;
    border-radius: var(--radius-md);
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1rem;
}

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

.tab-btn.active {
    background-color: var(--color-bg-card);
    color: var(--color-blue-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Hero Section */
.hero-section {
    margin-bottom: 2.5rem;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-blue-dark);
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Calculator Grid Setup */
.calculator-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.calculator-top-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.calculator-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.2rem;
    align-items: stretch;
}

/* Cards System */
.calculator-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    padding: 2.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calculator-card:hover {
    box-shadow: var(--shadow-hover);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: var(--color-blue-dark);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Form / Inputs styling */
.inputs-group {
    display: none;
}

.inputs-group.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.input-wrapper {
    margin-bottom: 1.8rem;
}

.input-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.input-labels label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.input-box-wrapper {
    display: flex;
    align-items: center;
    background-color: #F8FAFC;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.65rem;
    transition: border-color 0.2s ease;
}

.input-box-wrapper:focus-within {
    border-color: var(--color-blue);
    background-color: #FFFFFF;
}

.input-box-wrapper input {
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: right;
    width: 100px;
    outline: none;
}

/* Remove Arrows from Number Input */
.input-box-wrapper input::-webkit-outer-spin-button,
.input-box-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-box-wrapper input[type=number] {
    -moz-appearance: textfield;
}

.currency-prefix {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-right: 0.25rem;
}

.currency-suffix {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-left: 0.25rem;
}

.input-help-text {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.4rem;
}

/* Custom Range Sliders */
.styled-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: var(--radius-pill);
    background: #E2E8F0;
    outline: none;
    margin: 0.5rem 0;
}

/* Slider Limits Text */
.slider-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Thumb customizations */
.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    border: 3px solid #FFFFFF;
}

.styled-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    border: 3px solid #FFFFFF;
}

.styled-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.styled-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}

/* Slider Track Color variations */
.green-slider::-webkit-slider-thumb {
    background: var(--color-green);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.green-slider::-moz-range-thumb {
    background: var(--color-green);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.green-slider::-webkit-slider-thumb:active {
    box-shadow: var(--grad-green-glow);
}

.blue-slider::-webkit-slider-thumb {
    background: var(--color-blue);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.blue-slider::-moz-range-thumb {
    background: var(--color-blue);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.blue-slider::-webkit-slider-thumb:active {
    box-shadow: var(--grad-blue-glow);
}

.gold-slider::-webkit-slider-thumb {
    background: var(--color-gold);
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.3);
}
.gold-slider::-moz-range-thumb {
    background: var(--color-gold);
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.3);
}
.gold-slider::-webkit-slider-thumb:active {
    box-shadow: var(--grad-gold-glow);
}

/* Step Up Toggle Card */
.step-up-toggle-card {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-top: 1.5rem;
}

.toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.toggle-info {
    display: flex;
    flex-direction: column;
}

.toggle-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-blue-dark);
}

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

/* iOS Toggle Switch Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--color-green);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Step-Up controls body container */
.stepup-inputs-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
}

.stepup-inputs-body.active {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), opacity 0.3s ease;
}

.step-type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    background: #E2E8F0;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.step-type-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.45rem 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-type-btn.active {
    background-color: var(--color-bg-card);
    color: var(--color-text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Actions footer buttons */
.inputs-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background: var(--color-blue-light);
    color: var(--color-blue);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--color-blue);
    color: #FFFFFF;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: var(--color-text-primary);
}

/* Left Column styling */
.inputs-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Right Column styling: Wealth Projection + Growth Chart */
.results-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* Clean, compact, controlled gap between Wealth Projection and Growth Chart */
}

/* AlphaNifty Brand Logo (Clean, Normal Position - Increased by 20%) */
.brand-logo {
    height: 53px;
    width: auto;
    max-width: 210px;
    display: block;
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
}

.logo-link:hover .brand-logo {
    transform: scale(1.025);
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.25));
}

/* Dedicated 3D visualizer card styles */
.visualizer-card-3d {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.visualizer-3d-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1.5rem;
    gap: 0.8rem;
}

.visualizer-3d-header .section-title {
    margin-bottom: 0;
    justify-content: center;
}

.speed-badge-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.speed-badge {
    background: var(--color-green-light);
    color: var(--color-green-dark);
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.05);
    display: inline-block;
}

.speed-badge.swp-badge {
    background: var(--color-blue-light);
    color: var(--color-blue-dark);
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.05);
}

/* Floating animation for badge tooltips in SVG */
@keyframes badgeBob {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3.5px); }
    100% { transform: translateY(0); }
}

.floating-badge {
    animation: badgeBob 4s ease-in-out infinite;
    transform-origin: center;
}

#cyl-1-badge { animation-delay: 0s; }
#cyl-2-badge { animation-delay: 1.3s; }
#cyl-3-badge { animation-delay: 2.6s; }

/* 2x2 metrics grid card design */
.results-summary-card {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.results-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.metric-box {
    background: #FFFFFF;
    border: 1.5px solid #F1F5F9;
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-box:hover {
    transform: translateY(-2.5px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.06), 0 4px 8px -2px rgba(0, 0, 0, 0.03);
}

.metric-box.metric-gold {
    border-left: 4.5px solid var(--color-gold);
}

.metric-box.metric-blue {
    border-left: 4.5px solid var(--color-blue);
}

.metric-box.metric-green {
    border-left: 4.5px solid var(--color-green);
}

.metric-box.metric-teal {
    border-left: 4.5px solid #0D9488;
}

.metric-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.metric-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--color-blue-dark);
}

.metric-box.metric-green .metric-value {
    color: var(--color-green);
}

.metric-box.metric-teal .metric-value {
    color: #0D9488;
}

/* Dynamic Wealth Plan Alerts */
.alert-box {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.alert-box i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.alert-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.alert-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    margin-right: 0.25rem;
}

.alert-desc {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Success Alert (Growing, sustainable - Green background, blue shield) */
.alert-box.success-alert {
    background-color: #ECFDF5;
    border-color: #D1FAE5;
    color: #065F46;
}
.alert-box.success-alert i {
    color: #3B82F6;
}

/* Warning Alert (Runs out - Red) */
.alert-box.warning-alert {
    background-color: #FEF2F2;
    border-color: #FEE2E2;
    color: #991B1B;
}
.alert-box.warning-alert i {
    color: #EF4444;
}

/* Caution Alert (Declining capital - Yellow) */
.alert-box.caution-alert {
    background-color: #FFFBEB;
    border-color: #FEF3C7;
    color: #92400E;
}
.alert-box.caution-alert i {
    color: #F5A623;
}

/* Info Alert (compounding tips - Blue) */
.alert-box.info-alert {
    background-color: #EFF6FF;
    border-color: #DBEAFE;
    color: #1E40AF;
}
.alert-box.info-alert i {
    color: #3B82F6;
}

/* Graphics Card Styles */
.graphics-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    height: 100%;
}

.graphics-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    gap: 1.2rem;
}

.graphics-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding-bottom: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.graphics-tab-btn:hover {
    color: var(--color-text-primary);
}

.graphics-tab-btn.active {
    color: var(--color-blue);
    border-bottom-color: var(--color-blue);
}

.graphics-viewports {
    position: relative;
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 290px;
    width: 100%;
}

.graphics-viewport {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.4s ease;
}

.graphics-viewport.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    height: 100%;
}

#viewport-chart {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 290px;
    display: flex;
    flex-direction: column;
}

#viewport-chart canvas {
    flex: 1;
    width: 100% !important;
    min-height: 270px;
}

.donut-chart-container {
    width: 250px;
    height: 250px;
    position: relative;
    margin: 0 auto;
}

/* 3D Visualizer styling */
.visualizer-3d-wrapper {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scene-3d {
    width: 100%;
    height: 100%;
}

/* Hover effects & animations on 3D elements */
.pillar-group {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pillar-group:hover {
    transform: translateY(-5px);
}

/* Text floating above pillars */
.pillar-group text {
    user-select: none;
    pointer-events: none;
}

#p-grow-arrow {
    transform-origin: center;
}

.chart-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.6rem;
    text-align: center;
}

/* Bottom table section */
.projection-table-section {
    margin-top: 1rem;
}

.table-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.table-header-controls .section-title {
    margin-bottom: 0;
}

.export-actions {
    display: flex;
    gap: 0.6rem;
}

.btn-outline {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #F8FAFC;
    color: var(--color-text-primary);
    border-color: var(--color-text-secondary);
}

/* Projection table design */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.projection-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: right;
}

.projection-table th, .projection-table td {
    padding: 0.9rem 1.2rem;
}

.projection-table th {
    background-color: #F1F5F9;
    color: var(--color-blue-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    border-bottom: 1.5px solid var(--border-color);
}

.projection-table th:first-child, .projection-table td:first-child {
    text-align: center;
    font-weight: 600;
}

.projection-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    background-color: #FFFFFF;
    transition: background-color 0.15s ease;
}

.projection-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.projection-table tbody tr:hover {
    background-color: var(--color-blue-light);
}

.projection-table tbody tr:last-child {
    border-bottom: none;
    font-weight: 700;
    background-color: #EFF6FF !important;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0B192C;
    color: #FFFFFF;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(11, 25, 44, 0.2);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    z-index: 1000;
    transform: translateY(120px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.active {
    transform: translateY(0);
}

.toast-icon {
    color: var(--color-green);
    font-size: 1.15rem;
}

.toast-message {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer layout */
.app-footer {
    background-color: #0B192C;
    color: #94A3B8;
    padding: 2.2rem 0;
    margin-top: 4rem;
    font-size: 0.85rem;
    border-top: 3px solid var(--color-green);
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   A4 Executive Wealth Report Preview & Print Engine
   ========================================================================== */

/* Report Modal Backdrop */
.report-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.report-modal-backdrop.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

/* Modal Dialog Window */
.report-modal-dialog {
    width: 100%;
    max-width: 980px;
    height: 94vh;
    background: #0f172a;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Modal Header Bar */
.report-modal-header {
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    z-index: 10;
}

.report-header-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.report-badge-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.report-badge-title i {
    font-size: 1.25rem;
    color: var(--color-green);
}

.report-title-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.report-pages-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.report-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-report-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-print-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-print-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.btn-export-csv {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-export-csv:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.btn-report-close {
    background: transparent;
    color: #94a3b8;
    border: none;
    font-size: 1.25rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-report-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

/* Modal Body (A4 Sheets Scroll Canvas) */
.report-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2.2rem 1rem;
    background: #334155;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.report-pages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
}

/* ==========================================================================
   A4 Physical Sheet Layout & Elements (Screen & Print Uniformity)
   ========================================================================== */

.a4-page {
    width: 210mm;
    min-height: 297mm;
    max-height: 297mm;
    height: 297mm;
    background: #FFFFFF;
    color: #0f172a;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    padding: 11mm 13mm 9mm 13mm;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 8.5pt;
    line-height: 1.35;
    overflow: hidden;
    break-after: page;
    page-break-after: always;
}

.a4-page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Page Header */
.a4-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 7px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.a4-brand-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.a4-header-logo {
    height: 38px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
}

.a4-brand-sub {
    font-size: 6.8pt;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.a4-title-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.a4-doc-title {
    font-family: var(--font-heading);
    font-size: 11pt;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: uppercase;
}

.a4-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 7pt;
    color: #64748b;
}

.a4-badge-confidential {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 6.5pt;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Decorative Accent Bar */
.a4-accent-bar {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #2563eb 100%);
    border-radius: 2px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* Mini Header for Continuation Pages (Page 2, Page 3) */
.a4-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1.5px solid #e2e8f0;
    margin-bottom: 8px;
    font-size: 7.2pt;
    color: #64748b;
    flex-shrink: 0;
}

.a4-mini-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #0f172a;
}

.a4-mini-brand img {
    height: 22px;
    width: auto;
}

/* Section Headings inside A4 */
.a4-section-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 8.8pt;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-left: 3px solid #10b981;
    padding-left: 6px;
    margin: 7px 0 5px 0;
    flex-shrink: 0;
}

.a4-section-heading.blue-accent {
    border-left-color: #2563eb;
}

.a4-section-heading.gold-accent {
    border-left-color: #d97706;
}

/* Plan Specifications Matrix */
.a4-params-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 7px 10px;
    margin-bottom: 7px;
    flex-shrink: 0;
}

.a4-params-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 12px;
}

.a4-param-item {
    display: flex;
    flex-direction: column;
}

.a4-param-label {
    font-size: 6.8pt;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.a4-param-val {
    font-size: 8.5pt;
    font-weight: 700;
    color: #0f172a;
}

/* Executive KPI Highlight Cards */
.a4-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-bottom: 7px;
    flex-shrink: 0;
}

.a4-kpi-card {
    border-radius: 6px;
    padding: 7px 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid transparent;
}

.a4-kpi-card.kpi-gold {
    background: #fffbeb;
    border-color: #fde68a;
}
.a4-kpi-card.kpi-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.a4-kpi-card.kpi-green {
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.a4-kpi-card.kpi-teal {
    background: #f0fdfa;
    border-color: #99f6e4;
}

.a4-kpi-label {
    font-size: 6.5pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 2px;
}

.a4-kpi-val {
    font-family: var(--font-heading);
    font-size: 10.5pt;
    font-weight: 800;
    line-height: 1.15;
}

.kpi-gold .a4-kpi-val { color: #b45309; }
.kpi-blue .a4-kpi-val { color: #1d4ed8; }
.kpi-green .a4-kpi-val { color: #047857; }
.kpi-teal .a4-kpi-val { color: #0f766e; }

/* Visual Portfolio Allocation Bar */
.a4-asset-bar-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 7px;
    flex-shrink: 0;
}

.a4-asset-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 7.2pt;
    font-weight: 700;
}

.a4-bar-track {
    height: 12px;
    width: 100%;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
}

.a4-bar-segment-invested {
    background: #f59e0b;
    height: 100%;
    transition: width 0.3s;
}

.a4-bar-segment-wealth {
    background: #10b981;
    height: 100%;
    transition: width 0.3s;
}

.a4-bar-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 6.8pt;
    color: #475569;
}

.a4-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.a4-legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.dot-gold { background: #f59e0b; }
.dot-green { background: #10b981; }

/* Milestone Snapshot Checkpoints Table */
.a4-milestone-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 7.8pt;
    margin-bottom: 7px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.a4-milestone-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 6.8pt;
    padding: 4px 8px;
    text-align: right;
    border-bottom: 1px solid #cbd5e1;
}

.a4-milestone-table th:first-child {
    text-align: center;
}

.a4-milestone-table td {
    padding: 4px 8px;
    text-align: right;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.a4-milestone-table td:first-child {
    text-align: center;
    font-weight: 700;
}

.a4-milestone-table tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    background: #f8fafc;
}

/* Strategic Insight Banner */
.a4-advisory-callout {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 6px 9px;
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.a4-advisory-callout i {
    color: #16a34a;
    font-size: 9pt;
    margin-top: 1px;
}

.a4-callout-text {
    font-size: 7.2pt;
    color: #166534;
    line-height: 1.35;
}

/* Cash Flow Schedules Table (Page 2 & Page 3) */
.a4-schedule-table-wrap {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 7px;
    flex-shrink: 0;
}

.a4-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 7.6pt;
}

.a4-schedule-table th {
    background: #1e293b;
    color: #ffffff;
    font-size: 6.8pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 5px 6px;
    text-align: right;
}

.a4-schedule-table th:first-child {
    text-align: center;
}

.a4-schedule-table td {
    padding: 4px 6px;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-variant-numeric: tabular-nums;
}

.a4-schedule-table td:first-child {
    text-align: center;
    font-weight: 700;
}

.a4-schedule-table tr:nth-child(even) td {
    background: #f8fafc;
}

.a4-schedule-table tr.total-row td {
    background: #ecfdf5 !important;
    font-weight: 800;
    color: #065f46;
    border-top: 2px solid #10b981;
    border-bottom: 2px solid #10b981;
}

/* Strategic Architecture Analysis Box (Page 2/3) */
.a4-strat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    margin-bottom: 7px;
    flex-shrink: 0;
}

.a4-strat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 7.1pt;
    line-height: 1.35;
}

.a4-strat-card strong {
    color: #0f172a;
    display: block;
    margin-bottom: 2px;
}

/* SEBI Recommended Allocation Matrix */
.a4-sebi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 7.2pt;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 7px;
    flex-shrink: 0;
}

.a4-sebi-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 6.5pt;
    text-transform: uppercase;
    padding: 3px 6px;
    text-align: left;
}

.a4-sebi-table td {
    padding: 3.5px 6px;
    border-bottom: 1px solid #f1f5f9;
}

.a4-sebi-table tr.active-profile td {
    background: #eff6ff;
    font-weight: 700;
    color: #1e40af;
}

/* Regulatory Disclaimers & Sign-off Block */
.a4-signoff-wrap {
    border-top: 1px dashed #cbd5e1;
    padding-top: 5px;
    margin-top: 5px;
    flex-shrink: 0;
}

.a4-signoff-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 5px;
}

.a4-signoff-box {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 5px;
    height: 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 6.5pt;
    color: #64748b;
}

.a4-signoff-line {
    border-top: 1px solid #cbd5e1;
    margin-top: 15px;
    padding-top: 2px;
    text-align: center;
    font-size: 6pt;
    text-transform: uppercase;
}

.a4-disclaimer-text {
    font-size: 6pt;
    color: #94a3b8;
    line-height: 1.3;
    text-align: justify;
}

/* Universal Page Footer */
.a4-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1.5px solid #e2e8f0;
    padding-top: 5px;
    font-size: 6.8pt;
    color: #64748b;
    flex-shrink: 0;
}

.a4-footer-left {
    font-weight: 600;
}

.a4-page-number {
    font-weight: 800;
    color: #0f172a;
}

/* ==========================================================================
   Print Mode Override Styles (@media print)
   ========================================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html, body {
        background: #FFFFFF !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 210mm !important;
        height: auto !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide standard web app UI, dialog frames, and notifications */
    .app-wrapper,
    .report-modal-header,
    .toast-notification,
    .main-header,
    .app-footer {
        display: none !important;
    }

    /* Convert modal container into direct printable document */
    #report-modal {
        display: block !important;
        position: static !important;
        background: transparent !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        z-index: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .report-modal-dialog {
        display: block !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .report-modal-body {
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .report-pages-container {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .a4-page {
        width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;
        max-height: 297mm !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 11mm 13mm 9mm 13mm !important;
        box-sizing: border-box !important;
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        overflow: hidden !important;
    }

    .a4-page:last-child {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .calculator-grid,
    .calculator-top-grid,
    .calculator-bottom-grid,
    .bottom-results-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    .nav-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex-shrink: 0;
        flex: 1;
        text-align: center;
    }
    .hero-title {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        margin-top: 0.5rem;
    }
    .main-content {
        padding: 1.2rem 0;
    }
    .content-container, .header-container, .footer-container {
        width: 94%;
    }
    .calculator-card {
        padding: 1.5rem;
    }
    .results-metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        height: 46px;
    }
    .calculator-card {
        padding: 1.15rem;
        border-radius: var(--radius-md);
    }
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1.4rem;
    }
    .input-wrapper {
        margin-bottom: 1.4rem;
    }
    .input-labels {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }
    .input-box-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    .input-box-wrapper input {
        width: 100%;
        text-align: right;
    }
    .inputs-footer-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .inputs-footer-actions button, .inputs-footer-actions .btn-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    .visualizer-3d-wrapper {
        height: 220px;
    }
    .projection-table th, .projection-table td {
        padding: 0.5rem 0.35rem;
        font-size: 0.75rem;
    }
    .alert-box {
        padding: 0.9rem;
        gap: 0.7rem;
    }
    .alert-title {
        font-size: 0.85rem;
    }
    .alert-desc {
        font-size: 0.78rem;
    }
    .wealth-education-section {
        padding: 1.2rem;
    }
    .education-box {
        padding: 1.2rem;
    }

    .export-actions {
        width: 100%;
    }
    .export-actions button {
        flex: 1;
        justify-content: center;
    }
    .graphics-tabs {
        gap: 0.8rem;
    }
    .graphics-tab-btn {
        font-size: 0.82rem;
        padding-bottom: 0.4rem;
    }
}

/* Centering Wealth Breakdown Title */
#results-card-title {
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}

/* Wealth Education Section Styling */
.wealth-education-section {
    margin-top: 2.5rem;
    padding: 2.5rem;
}

.section-subtitle-edu {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    margin-top: -0.5rem;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
}

.education-box {
    background: #FFFFFF;
    border: 1.5px solid #F1F5F9;
    border-radius: 16px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 850px;
}

.education-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(11, 25, 44, 0.08), 0 4px 12px -2px rgba(11, 25, 44, 0.04);
}

.education-box.border-green {
    border-top: 5px solid var(--color-green);
}

.education-box.border-blue {
    border-top: 5px solid var(--color-blue);
}

.education-box.border-gold {
    border-top: 5px solid var(--color-gold);
}

.edu-icon-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.edu-icon-header i {
    font-size: 1.6rem;
}

.edu-icon-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-blue-dark);
}

.edu-desc {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.edu-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 0;
}

.edu-list li {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.45;
}

.edu-list li::before {
    content: "•";
    color: var(--color-blue);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0.8rem;
}

.education-box.border-green .edu-list li::before {
    color: var(--color-green);
}

.education-box.border-gold .edu-list li::before {
    color: var(--color-gold);
}

/* Responsiveness for education grid */
@media (max-width: 1024px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Inputs Column Wrapper */
.inputs-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Premium Educational Guide Elements */
.edu-points {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.edu-point-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.edu-point-bullet {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.edu-point-item:hover .edu-point-bullet {
    transform: scale(1.15) rotate(8deg);
}

.bullet-green {
    background-color: var(--color-green-light);
    color: var(--color-green);
}

.bullet-blue {
    background-color: var(--color-blue-light);
    color: var(--color-blue);
}

.bullet-gold {
    background-color: var(--color-gold-light);
    color: var(--color-gold);
}

.edu-point-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-blue-dark);
    margin-bottom: 0.2rem;
}

.edu-point-text span {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    display: block;
}

/* Mobile adjustments for educational section */
@media (max-width: 480px) {
    .edu-point-item {
        gap: 0.8rem;
    }
    .edu-point-bullet {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }
    .edu-point-text strong {
        font-size: 0.88rem;
    }
    .edu-point-text span {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   SIP + LUMPSUM HYBRID CALCULATOR STYLES
   ========================================================================== */

.combo-header-box {
    margin-bottom: 1.25rem;
}

.combo-instruction-hint {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: -0.25rem;
}

.toggle-card-module {
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.toggle-card-module.module-gold {
    border-left: 4px solid var(--color-gold);
}

.toggle-card-module.module-green {
    border-left: 4px solid var(--color-green);
}

.toggle-card-module.module-disabled {
    background: #F8FAFC;
    border-color: #E2E8F0;
    border-left-color: #CBD5E1;
    opacity: 0.7;
}

.toggle-card-module.module-disabled .module-body {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(80%);
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    transition: all 0.35s ease;
}

.toggle-card-module .module-body {
    max-height: 800px;
    opacity: 1;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.module-title-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.module-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.icon-gold {
    background-color: var(--color-gold-light);
    color: var(--color-gold);
}

.icon-green {
    background-color: var(--color-green-light);
    color: var(--color-green);
}

.module-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.module-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-blue-dark);
    line-height: 1.2;
}

.module-desc {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    margin-top: 0.15rem;
}

.module-status-badge {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.badge-active {
    background-color: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.badge-inactive {
    background-color: #F1F5F9;
    color: #64748B;
    border: 1px solid #CBD5E1;
}

.combo-stepup-card {
    margin-top: 1rem;
    background-color: #F8FAFC;
}

.shared-params-card {
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 0.5rem;
}

.shared-params-header {
    margin-bottom: 0.85rem;
}

.shared-params-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-blue-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.border-teal {
    border-top: 4px solid #0D9488 !important;
}

.bullet-teal {
    background-color: #CCFBF1;
    color: #0D9488;
}

.text-teal {
    color: #0D9488;
}

/* ==========================================================================
   GOAL PLANNER CALCULATOR STYLES
   ========================================================================== */

.text-purple { color: #8B5CF6; }

.purple-slider::-webkit-slider-thumb {
    background: #8B5CF6;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}
.purple-slider::-moz-range-thumb {
    background: #8B5CF6;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}
.purple-slider::-webkit-slider-thumb:active {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.border-purple {
    border-top: 4px solid #8B5CF6 !important;
}

.bullet-purple {
    background-color: #F3E8FF;
    color: #8B5CF6;
}

/* Goal Presets UI */
.goal-presets-wrapper {
    margin-bottom: 1.5rem;
}

.preset-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.6rem;
}

.goal-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.goal-preset-btn {
    border: 1.5px solid var(--border-color);
    background-color: #FFFFFF;
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-primary);
    color: var(--color-text-secondary);
}

.goal-preset-btn i {
    font-size: 1.15rem;
    color: #8B5CF6;
    transition: transform 0.2s ease;
}

.goal-preset-btn span {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.goal-preset-btn:hover {
    border-color: #C4B5FD;
    background-color: #FAF5FF;
    color: var(--color-text-primary);
}

.goal-preset-btn:hover i {
    transform: scale(1.15);
}

.goal-preset-btn.active {
    border-color: #8B5CF6;
    background-color: #F3E8FF;
    color: #6D28D9;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.15);
}

.goal-preset-btn.active i {
    color: #6D28D9;
}

@media (max-width: 480px) {
    .goal-presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Rich Segregated Education Box Enhancements */
.edu-formula-box {
    background: #F8FAFC;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
    font-family: monospace;
    font-size: 0.88rem;
    color: var(--color-blue-dark);
    line-height: 1.6;
}

.edu-formula-box strong {
    font-family: var(--font-primary);
    color: var(--color-blue);
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edu-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.edu-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.tag-green { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.tag-blue { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.tag-purple { background: #F5F3FF; color: #7C3AED; border: 1px solid #DDD6FE; }
.tag-gold { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
