/* FD Calculator Styles - Blue/Orange Theme */

.calculator-section {
    position: relative;
    padding: 140px 0 80px;
    min-height: 100vh;
}

.calculator-header {
    text-align: center;
    margin-bottom: 50px;
}

.calculator-header h1 {
    font-size: 56px;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.calculator-header .subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Calculator Wrapper */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    background: linear-gradient(145deg, #2F3142 0%, #252736 100%);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1100px;
    margin: 0 auto;
}


/* Calculator Tabs - Two Tier Layout */
.calculator-tabs-container {
    margin-bottom: 30px;
}

.primary-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Raleway", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.primary-tab.active {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.25);
}

.secondary-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Raleway", sans-serif;
}

.tab-btn:hover:not(.disabled) {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.4);
    color: #2196F3;
}

.tab-btn.active {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
    color: #2196F3;
}

.tab-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.coming-soon {
    font-size: 9px;
    background: #FF9800;
    color: #000;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 6px;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}


/* Input Groups */
.input-group-custom {
    margin-bottom: 40px;
}

.input-group-custom:last-child {
    margin-bottom: 0;
}

.input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.input-label-row label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.input-value-display {
    display: flex;
    align-items: center;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 8px;
    padding: 8px 14px;
}

.input-value-display .currency,
.input-value-display .unit {
    color: #2196F3;
    font-weight: 600;
    font-size: 15px;
}

.inline-input {
    background: transparent;
    border: none;
    color: #2196F3;
    font-weight: 700;
    font-size: 18px;
    width: 100px;
    text-align: right;
    font-family: "Source Sans Pro", sans-serif;
}

.inline-input:focus {
    outline: none;
}

.duration-input {
    width: 40px;
}

.rate-input {
    width: 40px;
}

/* Duration Toggle */
.label-with-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.duration-toggle {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196F3;
}

.duration-toggle:hover {
    background: rgba(33, 150, 243, 0.25);
    border-color: #2196F3;
    color: #64B5F6;
}

.duration-toggle:active {
    transform: scale(0.95);
}

.duration-toggle::after {
    content: '↻';
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
}

/* Custom Slider */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2196F3 0%, #FF9800 100%);
    outline: none;
    margin: 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid #2196F3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid #2196F3;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Preset Chips */
.preset-chips {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: "Source Sans Pro", sans-serif;
}

.chip:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.4);
    color: #2196F3;
}

.chip.active {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    border-color: #2196F3;
    color: #2196F3;
}

/* Compounding Section - now inside Advanced Options */
.compounding-section label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 12px;
}

.compounding-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.compound-chip {
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.compound-chip:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
}

.compound-chip.active {
    background: rgba(255, 152, 0, 0.15);
    border-color: #FF9800;
    color: #FF9800;
}

/* Advanced Options Toggle Section */
.advanced-toggle-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.advanced-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(33, 150, 243, 0.08);
    border: 1px dashed rgba(33, 150, 243, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
}

.advanced-toggle:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.5);
    color: #2196F3;
}

.advanced-toggle i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.advanced-toggle.expanded {
    background: rgba(33, 150, 243, 0.15);
    border-style: solid;
    color: #2196F3;
}

.advanced-toggle.expanded i {
    transform: rotate(180deg);
}

/* Advanced Options Panel */
.advanced-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0;
}

.advanced-options.show {
    max-height: 650px;
    opacity: 1;
    padding-top: 20px;
}

.advanced-input-group {
    margin-bottom: 20px;
}

.advanced-input-group:last-child {
    margin-bottom: 0;
}

.advanced-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.advanced-label-row label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.input-value-display.small {
    padding: 6px 10px;
}

.input-value-display.small .inline-input {
    font-size: 14px;
    width: 35px;
}

.input-value-display.small .unit {
    font-size: 13px;
}

/* Tax Chips */
.tax-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tax-chip {
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tax-chip:hover {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.tax-chip.active {
    background: rgba(244, 67, 54, 0.15);
    border-color: #f44336;
    color: #f44336;
}

/* Advanced Option with Toggle */
.advanced-option {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.advanced-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.option-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.option-info {
    flex: 1;
}

.option-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3px;
}

.option-hint {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

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

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, #2196F3 0%, #FF9800 100%);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

.option-input-row {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.option-input-row.enabled {
    opacity: 1;
    pointer-events: auto;
}

/* Chip-only options (no toggle switch) are always enabled */
.advanced-option:not(:has(.toggle-switch)) .option-input-row {
    opacity: 1;
    pointer-events: auto;
}

.slider-small {
    flex: 1;
    height: 6px;
}

/* Inflation Slider */
.inflation-slider {
    background: linear-gradient(90deg, #4CAF50 0%, #f44336 100%);
}

/* Adjusted Returns Section */
.adjusted-returns {
    width: 100%;
    max-width: 280px;
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.adjusted-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.adjusted-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adjusted-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.adjusted-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.adjusted-item.highlight {
    background: rgba(76, 175, 80, 0.1);
    margin: 8px -12px 0;
    padding: 12px;
    border-radius: 8px;
    border-bottom: none;
}

.adjusted-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.adjusted-indicator.tax {
    background: linear-gradient(135deg, #f44336 0%, #D32F2F 100%);
}

.adjusted-indicator.inflation {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.adjusted-indicator.real {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.adjusted-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.adjusted-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}

.adjusted-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    font-family: "Raleway", sans-serif;
}

.adjusted-item.highlight .adjusted-value {
    color: #4CAF50;
}

.adjusted-value.negative {
    color: #f44336;
}

/* Results Section */
.calculator-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Donut Chart */
.donut-chart-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin-bottom: 30px;
}

.donut-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-ring {
    transition: stroke 0.3s ease;
}

.donut-segment {
    transition: stroke-dasharray 0.6s ease-out, stroke-dashoffset 0.6s ease-out;
}

.donut-segment.principal {
    stroke: #2196F3;
}

.donut-segment.interest {
    stroke: #FF9800;
}

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

.donut-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.donut-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    font-family: "Raleway", sans-serif;
}

/* Result Breakdown */
.result-breakdown {
    width: 100%;
    max-width: 280px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.effective {
    background: rgba(255, 152, 0, 0.08);
    border-radius: 10px;
    padding: 16px;
    margin-top: 8px;
}

.breakdown-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
}

.breakdown-indicator.principal {
    background: #2196F3;
}

.breakdown-indicator.interest {
    background: #FF9800;
}

.breakdown-indicator.effective {
    background: linear-gradient(135deg, #2196F3, #FF9800);
}

.breakdown-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.breakdown-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.breakdown-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: "Raleway", sans-serif;
}

/* CTA Section */
.cta-section {
    margin-top: 30px;
    text-align: center;
}

.cta-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.download-btn {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.download-btn img {
    height: 48px;
}

/* Growth Section */
.growth-section {
    margin-top: 60px;
    background: linear-gradient(145deg, #2F3142 0%, #252736 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.breakdown-header {
    text-align: center;
    margin-bottom: 30px;
}

.breakdown-header h2 {
    font-size: 32px;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.breakdown-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Chart Container */
.chart-container {
    margin-bottom: 30px;
}

.chart-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 30px 20px 20px;
    margin-bottom: 16px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 8px;
    padding: 0 10px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    max-width: 60px;
    position: relative;
    height: 100%;
}

.bar-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.bar-stack:hover {
    transform: scaleY(1.02);
    filter: brightness(1.1);
}

.bar-invested {
    background: #2196F3;
    width: 100%;
}

.bar-returns {
    background: #FF9800;
    width: 100%;
}

.bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-bar:hover .bar-value {
    opacity: 1;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 12px 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.year-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    width: 60px;
    text-align: center;
}

/* Chart Legend */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.invested {
    background: #2196F3;
}

.legend-color.returns {
    background: #FF9800;
}

.legend-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Yearly Table */
.yearly-table-container {
    margin-top: 20px;
}

.table-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2196F3;
    font-weight: 600;
    font-size: 14px;
}

.table-toggle:hover {
    background: rgba(33, 150, 243, 0.2);
}

.table-toggle i {
    transition: transform 0.3s ease;
}

.table-toggle.expanded i {
    transform: rotate(180deg);
}

.yearly-table-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.yearly-table-wrapper.show {
    max-height: 600px;
}

.yearly-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.yearly-table th,
.yearly-table td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yearly-table th:first-child,
.yearly-table td:first-child {
    text-align: left;
}

.yearly-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.2);
}

.yearly-table td {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.yearly-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.info-card {
    background: rgba(47, 49, 66, 0.6);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(33, 150, 243, 0.3);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-icon i {
    font-size: 28px;
    color: #2196F3;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    font-family: "Raleway", sans-serif;
}

.info-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0;
    line-height: 1.6;
}

.info-card-link {
    text-decoration: none;
    cursor: pointer;
}

.info-card-link:hover {
    transform: translateY(-5px);
    border-color: #2196F3;
}

.info-card-link .read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2196F3;
    transition: gap 0.3s ease;
}

.info-card-link .read-more i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.info-card-link:hover .read-more {
    gap: 10px;
}

.info-card-link:hover .read-more i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 992px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .calculator-results::before {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.4), rgba(255, 152, 0, 0.4), transparent);
        margin-bottom: 30px;
    }

    .calculator-header h1 {
        font-size: 36px;
    }

    .info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .calculator-section {
        padding: 100px 0 60px;
    }

    .calculator-wrapper {
        padding: 24px;
    }

    .preset-chips,
    .compounding-chips {
        gap: 8px;
    }

    .chip,
    .compound-chip {
        padding: 6px 12px;
        font-size: 12px;
    }

    .donut-chart-container {
        width: 180px;
        height: 180px;
    }

    .donut-value {
        font-size: 22px;
    }
}

/* ========== LADDER CALCULATOR STYLES ========== */

/* Ladder Value Display */
.ladder-value {
    color: #2196F3;
    font-weight: 700;
    font-size: 18px;
}

/* Ladder Results Container */
.ladder-results {
    width: 100%;
    text-align: center;
}

/* Ladder Summary Cards */
.ladder-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.ladder-summary-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    flex: 1;
    min-width: 120px;
    max-width: 160px;
}

.ladder-summary-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ladder-summary-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: "Raleway", sans-serif;
}

.ladder-summary-value.highlight {
    color: #FF9800;
}

/* Ladder Timeline */
.ladder-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 160px;
    padding: 20px 10px;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    position: relative;
}

.ladder-timeline::before {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, #2196F3, #FF9800);
}

.ladder-rung {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ladder-rung-bar {
    width: 40px;
    background: linear-gradient(180deg, #2196F3 0%, #1976D2 100%);
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
    min-height: 20px;
}

.ladder-rung:hover .ladder-rung-bar {
    background: linear-gradient(180deg, #42A5F5 0%, #2196F3 100%);
    transform: scaleY(1.05);
}

.ladder-rung-value {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 4px;
}

.ladder-rung-dot {
    width: 12px;
    height: 12px;
    background: #FF9800;
    border-radius: 50%;
    border: 2px solid #252736;
    margin-top: -6px;
}

.ladder-rung-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    font-weight: 500;
}

/* Ladder Table */
.ladder-table-container {
    overflow-x: auto;
}

.ladder-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ladder-table th,
.ladder-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ladder-table th {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ladder-table td {
    color: rgba(255, 255, 255, 0.85);
}

.ladder-table tbody tr:hover {
    background: rgba(33, 150, 243, 0.08);
}

.ladder-table .interest-cell {
    color: #FF9800;
    font-weight: 600;
}

/* Ladder Mobile Responsive */
@media (max-width: 768px) {
    .calculator-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .ladder-timeline {
        height: 140px;
        padding: 15px 5px;
    }

    .ladder-rung-bar {
        width: 30px;
    }

    .ladder-summary-item {
        min-width: 100px;
        padding: 12px 14px;
    }

    .ladder-summary-value {
        font-size: 16px;
    }
}

/* ================================
   Flexi FD Styles
   ================================ */
.flexi-results {
    padding: 20px 0;
}

.flexi-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.flexi-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.flexi-card.flexi-highlight {
    background: rgba(33, 150, 243, 0.08);
    border-color: rgba(33, 150, 243, 0.3);
}

.flexi-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flexi-card-icon {
    font-size: 24px;
}

.flexi-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.flexi-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flexi-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flexi-stat.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.flexi-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.flexi-stat-value {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.flexi-stat-value.highlight {
    color: #4CAF50;
}

.flexi-stat-value.penalty {
    color: #F44336;
}

.flexi-stat.muted {
    opacity: 0.6;
}

.flexi-stat.muted .flexi-stat-value {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
}

.flexi-stat-value.positive {
    color: #4CAF50;
}

.flexi-recommendation {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.recommendation-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.recommendation-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.recommendation-text strong {
    color: #FFC107;
}

.flexi-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.flexi-note p {
    margin: 0;
}

/* Flexi responsive */
@media (max-width: 600px) {
    .flexi-comparison {
        grid-template-columns: 1fr;
    }

    .flexi-card {
        padding: 16px;
    }
}

/* ================================
   Compact Tab Tooltips
   ================================ */
.tab-btn.has-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tab-help {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease;
    cursor: help;
    vertical-align: middle;
}

.tab-btn.has-tooltip:hover .tab-help {
    color: #FFD500;
}

.tab-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    background: rgba(25, 25, 30, 0.98);
    border: 1px solid rgba(255, 213, 0, 0.25);
    border-radius: 10px;
    padding: 14px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: all 0.15s ease;
    text-align: left;
    pointer-events: none;
}

.tab-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(25, 25, 30, 0.98);
}

.tab-btn.has-tooltip:hover .tab-tooltip {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.tab-tooltip strong {
    color: #FFD500;
}

.tab-tooltip .tooltip-link {
    color: #64B5F6;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 2px;
}

.tab-tooltip .tooltip-link:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .tab-tooltip {
        width: 220px;
        left: 0;
        transform: translateX(-10%);
        font-size: 10px;
        padding: 10px;
    }

    .tab-tooltip::after {
        left: 20%;
    }
}

/* ================================
   Payout Frequency Selector
   ================================ */
.frequency-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.frequency-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 213, 0, 0.3);
}

.frequency-select:focus {
    outline: none;
    border-color: #FFD500;
    background: rgba(255, 255, 255, 0.1);
}

.frequency-select option {
    background: #1E1E28;
    color: white;
}

/* Interest Payout Section - now inside Advanced Options */
.payout-section label {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.payout-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.payout-chip {
    flex: 1;
    min-width: 100px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payout-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 213, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.payout-chip.active {
    background: rgba(255, 213, 0, 0.15);
    border-color: #FFD500;
    color: #FFD500;
}


/* ================================
   Auto-Renewal Section
   ================================ */
.auto-renewal-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.renewal-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.renewal-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#renewal-input {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#renewal-input label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

#renewal-input input[type="number"] {
    width: 60px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    text-align: center;
}

/* ================================
   Payout Comparison Cards
   ================================ */
#payout-comparison {
    background: rgba(100, 181, 246, 0.05);
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;
}

.payout-header {
    margin-bottom: 16px;
}

.payout-title {
    font-size: 16px;
    font-weight: 600;
    color: #64B5F6;
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.comparison-card:hover {
    transform: translateY(-2px);
}

.cumulative-card {
    border: 2px solid rgba(33, 150, 243, 0.3);
}

.non-cumulative-card {
    border: 2px solid rgba(255, 152, 0, 0.3);
}

.comparison-card h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.comparison-amount {
    margin: 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #FFF;
}

.comparison-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.payout-difference {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.diff-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 8px;
}

.diff-amount {
    font-size: 18px;
    font-weight: 700;
    color: #FFD500;
}

/* ================================
   Auto-Renewal Timeline
   ================================ */
#renewal-timeline {
    background: rgba(255, 152, 0, 0.05);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;
}

.renewal-header {
    margin-bottom: 16px;
}

.renewal-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #FF9800;
    margin-bottom: 4px;
}

.renewal-subtitle {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.timeline-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
    margin: 16px 0;
    justify-content: center;
}

.timeline-cycle {
    flex: 1 1 calc(33.333% - 12px);
    min-width: 160px;
    max-width: 220px;
    padding: 16px;
    background: rgba(100, 181, 246, 0.1);
    border-left: 4px solid #64B5F6;
    border-radius: 8px;
}

.timeline-cycle:nth-child(even) {
    background: rgba(255, 152, 0, 0.1);
    border-left-color: #FF9800;
}

.cycle-number {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.cycle-maturity {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 4px;
}

.cycle-interest {
    display: block;
    font-size: 12px;
    color: #4CAF50;
}

.final-corpus {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.corpus-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.corpus-amount {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #4CAF50;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .comparison-cards {
        grid-template-columns: 1fr;
    }

    .timeline-cycle {
        min-width: 120px;
    }
}