/* Calculator Page Styles - Gretex Financial Theme */
:root {
    --calc-primary-blue: #1873E0;
    --calc-primary-teal: #0ea5a4;
    --calc-accent-green: #00cc6a;
    --calc-accent-purple: #2563eb;
    --calc-text-dark: #1a1a1a;
    --calc-text-medium: #4a5568;
    --calc-text-light: #64748b;
    --calc-bg-light: #f8f9fa;
    --calc-bg-white: #ffffff;
    --calc-border-light: rgba(24, 115, 224, 0.15);
    --calc-gradient: linear-gradient(135deg, #1873E0 0%, #0ea5a4 100%);
    --calc-shadow-sm: 0 2px 8px rgba(24, 115, 224, 0.08);
    --calc-shadow-md: 0 4px 12px rgba(24, 115, 224, 0.12);
}

.calculator-shell-page {
    background: #f4f5f7;
    color: #07101d;
    font-family: var(--font-body);
    overflow-x: clip;
}

.calculator-page {
    min-height: 100vh;
    background-color: var(--calc-bg-light);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(24, 115, 224, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 164, 0.04) 0%, transparent 20%);
    /* padding: 90px 0 4rem 0; */
    overflow: visible;
}

/* Calculator Hero Section */
.calculator-hero {
    background: linear-gradient(135deg, #1873E0 0%, #0ea5a4 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.calculator-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.calculator-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.back-link i {
    width: 18px;
    height: 18px;
}

.calculator-page-title {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.calculator-page-description {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    margin: 0;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.calculator-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    color: #526070;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    line-height: 1.4;
}

.calculator-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.calculator-breadcrumb a:hover,
.calculator-breadcrumb a:focus {
    color: #0052cc;
}

.calculator-eyebrow {
    margin: 0 0 0.45rem;
    color: #334155;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.sip-calculator-page .calculator-page {
    background: #f4f7fb;
    background-image: none;
}

.sip-calculator-page .calculator-hero .container,
.sip-calculator-page .calculator-main-section .container {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: 50px;
}

.sip-calculator-page .calculator-hero {
    padding: clamp(2.3rem, 4vw, 3.6rem) 0 clamp(1.8rem, 3vw, 2.6rem);
    background: #f4f7fb;
}

.sip-calculator-page .calculator-hero::before {
    display: none;
}

.sip-calculator-page .calculator-hero-content {
    width: 100%;
    max-width: 860px;
    color: #020817;
    text-align: left;
}

.sip-calculator-page .calculator-page-title {
    margin-bottom: 0.85rem;
    color: #050816;
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
}

.sip-calculator-page .calculator-page-description {
    max-width: 780px;
    margin: 0;
    color: #334155;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
}

/* Calculator Main Section */
.calculator-main-section {
    padding: 3rem 0 6rem 0;
    overflow: visible;
}

/* Inline results live inside .calculator-card (below the form) */
.calculator-inline-results {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(24, 115, 224, 0.12);
}

.calculator-inline-results.is-hidden {
    display: none !important;
}

/* SSY calculator card — rate banner, sliders, summary list */
.ssy-slider-card .ssy-latest-rate {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #3d4450;
    margin: -0.25rem 0 1.35rem 0;
    padding: 0.55rem 0.85rem;
    background: rgba(0, 204, 106, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(0, 204, 106, 0.2);
}

.ssy-slider-card .ssy-latest-rate strong {
    color: #0a6a37;
    font-weight: 700;
}

.ssy-slider-card .ssy-details-hint {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #4b5563;
    margin: 0 0 1.25rem 0;
    padding: 0.75rem 1rem;
    background: rgba(24, 115, 224, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(24, 115, 224, 0.12);
}

.ssy-slider-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ssy-slider-stack .investment-slider-field {
    margin-top: 0;
}

.ssy-slider-stack .investment-slider-field + .investment-slider-field {
    margin-top: 0;
}

/* Groww-style SSY results panel */
.ssy-groww-results {
    margin: 0.25rem 0 0.5rem 0;
}

.ssy-card-summary {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ssy-card-summary.ssy-card-summary--groww {
    margin-top: 0;
    padding: 1.35rem 1.25rem 1.45rem 1.25rem;
    border-top: none;
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.ssy-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.ssy-groww-results .ssy-summary-list {
    gap: 1.2rem;
}

.ssy-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #2b2f3a;
}

.ssy-summary-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

.ssy-groww-results .ssy-summary-label {
    color: #64748b;
}

.ssy-summary-value {
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.ssy-groww-results .ssy-summary-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.02rem;
}

.ssy-summary-row--maturity .ssy-summary-value {
    font-weight: 700;
    font-size: 1.06rem;
}

.ssy-summary-row--highlight .ssy-summary-value {
    color: #0a6a37;
}

/* SSY results card: table-style rows + donut (single bordered card) */
.investment-donut-card--ssy {
    padding: 0.35rem 1.2rem 0;
    border-color: #e8ecf1;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
}

.investment-modern-calc--ssy .investment-ssy-summary-top {
    margin: 0;
    padding: 1rem;
    border-bottom: none;
}

.investment-donut-card--ssy .investment-ssy-summary-top .ssy-summary-list {
    gap: 0;
}

.investment-donut-card--ssy .investment-ssy-summary-top .ssy-summary-row {
    padding: 0.7rem 0;
    align-items: center;
}

.investment-donut-card--ssy .investment-ssy-summary-top .ssy-summary-row:not(:last-child) {
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.investment-donut-card--ssy .investment-ssy-summary-top .ssy-summary-row:last-child {
    padding-bottom: 0.55rem;
}

.investment-donut-card--ssy .investment-donut-wrap {
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    margin-top: 0;
    padding-top: 1rem;
    padding-bottom: 0.35rem;
}

.investment-donut-card--ssy .investment-donut-legend {
    margin-top: 0.35rem;
    padding-bottom: 1.1rem;
}

.investment-donut-card--ssy .investment-donut-center-value {
    font-size: 1.45rem;
    font-weight: 800;
}

.investment-donut-legend-dot--ssy-principal {
    background: #1e5a7d !important;
}

.investment-donut-legend-dot--ssy-interest {
    background: #2d9c8f !important;
}

.investment-modern-calc--ssy .ssy-summary-value--interest {
    color: #3b6dff;
    font-weight: 700;
}

.ssy-slider-card .investment-value-pill .pill-input--narrow {
    width: 4.25rem;
    text-align: center;
}

.ssy-slider-card .investment-value-pill .pill-input--deposit {
    width: 6.5rem;
}

.calculator-results-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(24, 115, 224, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: visible;
}

.calculator-results-wrapper .calculator-section-title {
    margin-bottom: 2rem;
}

.calculator-results-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

.calculator-results-grid .results-primary-card {
    margin-bottom: 0;
}

.calculator-results-chart {
    background: linear-gradient(135deg, rgba(24, 115, 224, 0.05) 0%, rgba(170, 22, 196, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(24, 115, 224, 0.15);
    min-height: 320px;
}

.calculator-chart-full {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e8f4f8;
}

.chart-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--calc-primary-blue);
    margin: 0 0 1rem 0;
}

.calculator-timeline-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(24, 115, 224, 0.05) 0%, rgba(170, 22, 196, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(24, 115, 224, 0.15);
}

.timeline-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--calc-primary-blue);
    font-size: 0.9375rem;
}

.timeline-desc {
    font-size: 0.75rem;
    color: var(--calc-text-medium);
}

.timeline-connector {
    flex: 1;
    max-width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1873E0, #aa16c4);
    border-radius: 2px;
}

/* PPF Progress Bar */
.ppf-progress-bar {
    margin-bottom: 0.5rem;
}

.ppf-bar-segments {
    display: flex;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(24, 115, 224, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ppf-segment {
    transition: width 0.6s ease;
}

.ppf-segment.ppf-inv {
    background: #1873E0;
}

.ppf-segment.ppf-int {
    background: linear-gradient(90deg, #4094F7, #00cc6a);
}

.ppf-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--calc-text-medium);
    margin-top: 0.5rem;
}

.ppf-bar-labels .icon-inline,
.ppf-bar-labels svg {
    display: inline;
    vertical-align: middle;
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.25rem;
}

/* EPF Comparison Table */
.epf-comparison-table {
    margin-top: 2rem;
}

.epf-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.epf-table-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(24, 115, 224, 0.15);
}

.epf-table-row.highlight {
    background: linear-gradient(135deg, rgba(24, 115, 224, 0.1) 0%, rgba(170, 22, 196, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: var(--calc-primary-blue);
}

/* Brokerage Breakeven */
.breakeven-visual {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(24, 115, 224, 0.15);
}

.breakeven-bar {
    display: flex;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0.75rem 0;
    position: relative;
}

.breakeven-loss { background: #e74c3c; }
.breakeven-profit { background: #4caf50; }

.breakeven-marker {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 4px;
    background: #2c3e50;
}

/* Calculator Layout */
.calculator-main-section .container {
    max-width: 1400px;
    padding: 0 2rem;
    overflow: visible;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    margin: 0 auto;
    align-items: start;
    overflow: visible;
}

.calculator-wrapper:has(.calculator-form-section) {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.calculator-info-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
    grid-column: 1;
    grid-row: auto;
}

.calculator-form-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow: visible;
    min-height: fit-content;
    min-width: 0;
    grid-column: 2;
    grid-row: auto;
}

.calculator-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: clamp(1.25rem, 2.2vw, 2.5rem);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: visible;
    min-width: 0;
    width: 100%;
    display: block;
}

.calculator-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--calc-primary-blue);
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Calculator Form */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calculator-field {
    display: flex;
    flex-direction: column;
}

.calculator-field label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.calculator-field input,
.calculator-field select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    color: #1a1a1a;
    background: #f9fbfe;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.calculator-field input:focus,
.calculator-field select:focus {
    outline: none;
    border-color: #1873E0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(24, 115, 224, 0.12);
}

.calculator-field input::placeholder {
    color: #999;
}

.calculator-field small.field-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.calculator-field .field-error-msg {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #eb5b3d;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
}

.calculator-field.is-error input,
.calculator-field.is-error select {
    border-color: #eb5b3d;
    background: #fff8f7;
}

.calculator-field.is-error input:focus,
.calculator-field.is-error select:focus {
    border-color: #eb5b3d;
    box-shadow: 0 0 0 3px rgba(235, 91, 61, 0.15);
}

.calculator-field.is-error .field-hint {
    display: none;
}

.calculator-field.is-error .field-error-msg {
    display: block;
}

.calculator-time-input {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
}

.calculator-time-input input {
    flex: 1 1 120px;
    min-width: 100px;
    width: auto;
}

.calculator-time-input select {
    flex: 1 1 120px;
    min-width: 110px;
    width: auto;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6c7d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.25rem;
}

.calculator-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.calculator-btn-calculate,
.calculator-btn-reset {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.calculator-btn-calculate {
    background: linear-gradient(135deg, #1873E0 0%, #0ea5a4 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(24, 115, 224, 0.2);
}

.calculator-btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 115, 224, 0.3);
}

.calculator-btn-reset {
    background: #f8fafc;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1a1a1a;
    border: 1px solid #dbe3ee;
}

.calculator-btn-reset:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(24, 115, 224, 0.3);
}

.calculator-btn-calculate i,
.calculator-btn-reset i {
    width: 18px;
    height: 18px;
}

/* Calculator Info Section */
.calculator-info-card {
    /* background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%); */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 2rem;
    padding-top: 0 !important;
    /* box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08); */
    /* border: 1px solid rgba(15, 23, 42, 0.06); */
    margin-bottom: 2rem;
}

.calculator-info-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.45rem, 1.2rem + 0.55vw, 1.85rem);
    font-weight: 700;
    color: var(--calc-primary-blue);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0.01em;
}

.calculator-info-content {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
}

.calculator-info-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--calc-primary-blue);
    margin: 1.7rem 0 0.95rem 0;
    padding-left: 0.75rem;
    border-left: 3px solid rgba(24, 115, 224, 0.25);
}

.calculator-info-content h3:first-child {
    margin-top: 0;
}

.calculator-info-content ul {
    margin: 0.8rem 0 1.1rem;
    padding-left: 0;
    list-style: none;
}

.calculator-info-content li {
    position: relative;
    margin: 0.62rem 0;
    line-height: 1.7;
    padding-left: 1.4rem;
}

.calculator-info-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1873e0 0%, #0ea5a4 100%);
    box-shadow: 0 0 0 3px rgba(24, 115, 224, 0.12);
}

.calculator-info-content strong {
    color: #0f172a;
    font-weight: 700;
}

.calculator-info-content p {
    margin: 0.85rem 0;
}

.calculator-info-content p:first-child {
    margin-top: 0;
}

/* Results Section */
.results-card {
    position: static;
    min-height: 0;
}

.calculator-charts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calculator-chart-container {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px solid rgba(24, 115, 224, 0.15);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calculator-chart-container canvas {
    max-height: 100%;
}

.calculator-results-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 2px solid rgba(24, 115, 224, 0.15);
    transition: all 0.3s ease;
    min-width: 0;
}

.result-item:hover {
    border-color: #1873E0;
    box-shadow: 0 2px 8px rgba(24, 115, 224, 0.15);
    transform: translateY(-2px);
}

.result-item.highlight {
    background: linear-gradient(135deg, rgba(24, 115, 224, 0.1) 0%, rgba(170, 22, 196, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: #1873E0;
    border-width: 2px;
}

.result-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4a4a4a;
    flex: 1 1 auto;
    min-width: 0;
}

.result-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--calc-primary-blue);
    flex-shrink: 0;
    text-align: right;
}

.result-item.highlight .result-value {
    color: var(--calc-primary-teal);
    font-size: 1.5rem;
}

/* Enhanced Results Display */
.results-primary-card {
    background: linear-gradient(135deg, rgba(24, 115, 224, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(24, 115, 224, 0.15);
    min-width: 0;
    overflow: visible;
}

.results-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--calc-primary-blue);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.results-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(24, 115, 224, 0.15);
}

.summary-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    color: #4a4a4a;
    font-weight: 500;
}

.summary-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: var(--calc-primary-blue);
    font-weight: 600;
}

.results-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e8f4f8, transparent);
    margin: 1.5rem 0;
}

.results-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    min-width: 0;
}

.results-main .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 2px solid rgba(24, 115, 224, 0.15);
    transition: all 0.3s ease;
    min-width: 0;
}

.result-item:hover {
    border-color: #1873E0;
    box-shadow: 0 2px 8px rgba(24, 115, 224, 0.15);
    transform: translateY(-2px);
}

.result-item.highlight {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f9f4 100%);
    border-color: var(--calc-primary-blue);
    border-width: 2px;
}

.result-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8faff;
    border-radius: 8px;
    flex-shrink: 0;
}

.result-icon svg,
.result-icon .lucide {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--calc-primary-blue);
}

.timeline-icon svg,
.timeline-icon .lucide {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--calc-primary-teal);
}

.icon-inline {
    display: inline;
    vertical-align: middle;
}

.icon-inline svg {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.25rem;
}

.result-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.results-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8f4f8;
}

.metric-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--calc-primary-blue);
}

.results-breakdown-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e8f4f8;
}

.breakdown-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--calc-primary-blue);
    margin: 0 0 1rem 0;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    padding: 0.875rem;
    background: #f8faff;
    border-radius: 8px;
}

.breakdown-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.breakdown-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--calc-primary-blue);
}

@media (max-width: 768px) {
    .results-metrics,
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .results-primary-card {
        padding: 1.5rem;
    }
}

/* Content Callout Box */
.calculator-info-content .callout-box {
    background: #fff8e6;
    border-left: 4px solid #f4b942;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin: 1.25rem 0;
    font-size: 0.9375rem;
    color: var(--calc-text-medium);
}

/* Algorithm/Formula Box */
.calculator-info-content .formula-box {
    background: linear-gradient(135deg, #f8fbff 0%, #f1f9ff 100%);
    border: 1px solid #dbeafc;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.93rem;
    color: #1e3a5f;
    overflow-wrap: anywhere;
}

.calculator-info-content .cagr-example-steps {
    margin: 0.65rem 0 1rem 0;
    padding-left: 1.35rem;
    line-height: 1.65;
}

.calculator-info-content .cagr-example-steps li {
    margin-bottom: 0.4rem;
}

.calculator-info-content .faq-item {
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8f4f8;
}

.calculator-info-content .faq-item:last-child {
    border-bottom: none;
}

.calculator-info-content .faq-q {
    font-weight: 600;
    color: var(--calc-primary-blue);
    margin-bottom: 0.5rem;
}

.calculator-info-content .related-calc-list {
    list-style: none;
    padding: 0;
    margin: 0.35rem 0 0 0;
    display: grid;
    gap: 0.5rem;
}

.calculator-info-content .related-calc-list li {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dbeaf5;
    border-radius: 10px;
    background: #f8fcff;
    line-height: 1.55;
}

.calculator-info-content .related-calc-list li::before {
    content: none;
}

.calculator-info-content .related-calc-list a {
    color: var(--calc-primary-teal);
    text-decoration: none;
    font-weight: 600;
}

.calculator-info-content .related-calc-list a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.coming-soon-icon {
    display: block;
    margin-bottom: 1rem;
}

.coming-soon-icon svg {
    width: 4rem;
    height: 4rem;
    color: var(--calc-primary-teal);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .calculator-info-section {
        order: 3;
        grid-column: 1;
        grid-row: 3;
    }
    .calculator-form-section {
        order: 1;
        grid-column: 1;
        grid-row: 1;
    }
}

@media (max-width: 968px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calculator-info-section {
        order: 2;
    }
    
    .calculator-form-section {
        order: 1;
    }
    
    .results-card {
        position: static;
    }
    
    .calculator-page-title {
        font-size: 2.25rem;
    }
    
    .calculator-charts-wrapper {
        grid-template-columns: 1fr;
    }
    
    .calculator-results-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .calculator-hero {
        padding: 2rem 0;
    }
    
    .calculator-page-title {
        font-size: 2rem;
    }
    
    .calculator-page-description {
        font-size: 1rem;
    }
    
    .calculator-main-section {
        padding: 2rem 0;
    }
    .calculator-card {
        border-radius: 14px;
    }
    
    .calculator-section-title {
        font-size: 1.25rem;
    }
    
    .calculator-actions {
        flex-direction: column;
    }
    
    .calculator-btn-calculate,
    .calculator-btn-reset {
        width: 100%;
    }
    
    .calculator-chart-container {
        height: 250px;
        padding: 1rem;
    }

    .calculator-time-input {
        flex-direction: column;
        gap: 0.625rem;
    }

    .calculator-time-input input,
    .calculator-time-input select {
        width: 100%;
        min-width: 0;
    }

    .calculator-info-card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .calculator-info-title {
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
    }

    .calculator-info-content {
        font-size: 0.95rem;
        line-height: 1.72;
    }

    .calculator-info-content h3 {
        font-size: 1.06rem;
        margin-top: 1.35rem;
    }

    .calculator-info-content li {
        padding-left: 1.15rem;
    }
}

@media (max-width: 480px) {
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .result-value {
        font-size: 1.125rem;
    }
    
    .result-item.highlight .result-value {
        font-size: 1.25rem;
    }
}

/* Enhanced Calculator Styles */
.visualizations-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e8f4f8;
}

.visualizations-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--calc-primary-blue);
    margin-bottom: 1.5rem;
}

.chart-container-full {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #e8f4f8;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e8f4f8;
}

.chart-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--calc-primary-blue);
    margin-bottom: 1rem;
}

/* Yearly Breakdown Table */
.yearly-breakdown-table-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e8f4f8;
}

.breakdown-table-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--calc-primary-blue);
    margin-bottom: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 2px solid #e8f4f8;
}

.yearly-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
}

.yearly-breakdown-table thead {
    background: linear-gradient(135deg, var(--calc-primary-blue) 0%, var(--calc-primary-teal) 100%);
    color: #ffffff;
}

.yearly-breakdown-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.yearly-breakdown-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e8f4f8;
}

.yearly-breakdown-table tbody tr:hover {
    background: #f8faff;
}

.yearly-breakdown-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 968px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .table-wrapper {
        font-size: 0.75rem;
    }
    
    .yearly-breakdown-table th,
    .yearly-breakdown-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Prevent calculator results from overflowing into footer */
.calculator-page + .footer {
    margin-top: 0;
}

/* .calculator-form-section .calculator-card {
    margin-bottom: 0;
} */

.calculator-results-chart-wrapper {
    min-height: 300px;
}

@media (max-width: 640px) {
    .calculator-hero {
        padding: 1.5rem 0;
    }
    
    .calculator-page-title {
        font-size: 1.75rem;
    }
    
    .calculator-page-description {
        font-size: 0.95rem;
    }
    
    .calculator-main-section {
        padding: 1.5rem 0;
    }
    
    .calculator-main-section .container {
        padding: 0 1rem;
    }
    
    .calculator-section-title {
        font-size: 1.125rem;
    }
    
    .calculator-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .calculator-btn-calculate,
    .calculator-btn-reset {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
    
    .calculator-results-wrapper {
        padding: 1.25rem;
    }
    
    .calculator-results-chart {
        min-height: 250px;
        padding: 0.75rem;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .result-label {
        font-size: 0.875rem;
    }
    
    .result-value {
        font-size: 1.125rem;
    }
    
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .yearly-breakdown-table {
        min-width: 600px;
    }
}

@media (max-width: 600px) {
    .calculator-results-wrapper {
        padding: 1.5rem;
    }
    
    .calculator-results-chart {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .calculator-hero {
        padding: 1.25rem 0;
    }
    
    .calculator-page-title {
        font-size: 1.5rem;
    }
    
    .calculator-page-description {
        font-size: 0.875rem;
        padding: 0 1rem;
    }
    
    .back-link {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .calculator-main-section {
        padding: 1.25rem 0;
    }
    .calculator-card {
        border-radius: 12px;
    }

    .calculator-section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .calculator-btn-calculate,
    .calculator-btn-reset {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .calculator-results-wrapper {
        padding: 1rem;
    }
    
    .calculator-results-chart {
        min-height: 220px;
        padding: 0.5rem;
    }
    
    .result-item {
        padding: 0.75rem;
    }
    
    .result-label {
        font-size: 0.8rem;
    }
    
    .result-value {
        font-size: 1rem;
    }
    
    .result-item.highlight .result-value {
        font-size: 1.125rem;
    }
    
    .charts-grid {
        gap: 1rem;
    }
    
    .yearly-breakdown-table {
        font-size: 0.7rem;
    }
    
    .yearly-breakdown-table th,
    .yearly-breakdown-table td {
        padding: 0.5rem 0.375rem;
    }
}

@media (max-width: 360px) {
    .calculator-page-title {
        font-size: 1.25rem;
    }
    
    .calculator-results-wrapper {
        padding: 0.875rem;
    }
    
    .calculator-results-chart {
        min-height: 200px;
    }
}

/* Modern Investment Calculator UI (used on calculator-sip.php) */
.investment-modern-calc-page .calculator-wrapper {
    display: grid;
    /* margin-top: -0.6rem; */
    /* padding-top: 8rem !important; */
}

/* Primary inputs live in the modern card; hide duplicate legacy form (not on SSY). */
.investment-modern-calc-page:not(:has(.investment-modern-calc--ssy)) .calculator-form-section {
    display: none;
}

/* PPF: Groww-style fixed rate (no slider), aligned with teal inputs */
.investment-modern-calc--ppf {
    top: auto;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
    position: relative;
    z-index: 1;
}

.investment-modern-calc--ppf .investment-tabs {
    margin-bottom: 1rem;
}

.investment-modern-calc--ppf .ppf-rate-field .investment-slider-header {
    margin-bottom: 0;
}

.investment-modern-calc--ppf .ppf-rate-field .investment-value-pill--readonly {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: none;
}

.investment-modern-calc--ppf .ppf-rate-field .pill-readonly {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    padding: 0.15rem 0;
    min-width: 3.25rem;
    text-align: right;
}

/* EPF (Groww-style inputs + 3-slice donut quickbar) */
.investment-modern-calc--epf {
    top: auto;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
    position: relative;
    z-index: 1;
}

.investment-modern-calc--epf .investment-tabs {
    margin-bottom: 1rem;
}

.investment-modern-calc--epf .epf-field-hint {
    font-weight: 400;
    opacity: 0.75;
    font-size: 0.9em;
}

.investment-modern-calc--epf .epf-open-balance-field .investment-slider-header {
    align-items: flex-start;
}

.investment-modern-calc--epf .epf-open-balance-note {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--calc-muted, #64748b);
    max-width: 28rem;
}

.investment-modern-calc--epf .epf-open-balance-note strong {
    color: inherit;
    font-weight: 600;
}

.investment-modern-calc--epf .legend-dot.legend-opening {
    background: #94a3b8;
}

.investment-modern-calc--epf .epf-rate-field .investment-slider-header {
    margin-bottom: 0;
}

.investment-modern-calc--epf .epf-rate-field .investment-value-pill--readonly {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: none;
}

.investment-modern-calc--epf .epf-rate-field .pill-readonly {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    padding: 0.15rem 0;
    min-width: 3.25rem;
    text-align: right;
}

.investment-modern-calc--epf .investment-value-pill .pill-input--narrow {
    min-width: 3rem;
    max-width: 4.5rem;
    width: auto;
    text-align: right;
}

.investment-modern-calc--epf .investment-graph-quickbar {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
}

.investment-modern-calc--epf .investment-graph-quickbar .quickbar-total {
    grid-column: 1 / -1;
    padding-top: 0.85rem;
    margin-top: 0.35rem;
    border-top: 1px solid #edf2f7;
}

.investment-modern-calc--epf .quickbar-value--employer {
    color: #0ea5e9;
}

.legend-employer {
    background: #0ea5e9;
    border: 2px solid rgba(14, 165, 233, 0.55);
}

.investment-modern-calc {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(24, 115, 224, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: clamp(1.25rem, 2.4vw, 2.25rem);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    margin-bottom: 0;
    /* Do not offset this block; it breaks layout spacing below */
    top: -120px;
}

.investment-modern-calc.investment-modern-calc--ssy {
    /* top: auto; */
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
    position: relative;
    z-index: 1;
}

/* ELSS: same flow as SSY/PPF (avoid hero overlap from default negative offset) */
.investment-modern-calc.investment-modern-calc--elss {
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
    position: relative;
    z-index: 1;
}

/* Wider amount pill for large SSY yearly amounts (e.g. ₹1,00,050) */
.investment-modern-calc--ssy .investment-value-pill .pill-input {
    min-width: 6.5rem;
    width: auto;
    max-width: 9.5rem;
}

.investment-modern-calc--ssy .investment-value-pill .pill-input--ssy-year {
    width: 4.5rem;
    min-width: 4rem;
    text-align: center;
}

.investment-tabs {
    display: inline-flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(24, 115, 224, 0.14);
    border-radius: 10px;
    padding: 0.35rem;
    margin-bottom: 1.75rem;
    margin-left: auto;
    margin-right: auto;
}

.investment-tab {
    appearance: none;
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 0.5rem 1.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #2b2f3a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.investment-tab:hover {
    background: rgba(24, 115, 224, 0.06);
}

.investment-tab.is-active {
    background: linear-gradient(135deg, #1873E0 0%, #0ea5a4 100%);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(24, 115, 224, 0.22);
}

.investment-modern-calc--ssy .investment-tabs {
    margin-bottom: 0.65rem;
}

.investment-ssy-context-line {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0 auto 1.35rem;
    max-width: 56rem;
    padding: 0 0.15rem;
}

.investment-ssy-context-line strong {
    color: #475569;
    font-weight: 700;
}

.investment-modern-calc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: start;
}

.investment-controls {
    min-width: 0;
}

.investment-slider-field {
    padding: 0.9rem 1.1rem 0.8rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(24, 115, 224, 0.12);
    background: rgba(248, 250, 252, 0.65);
    box-shadow: 0 2px 10px rgba(24, 115, 224, 0.05);
}

.investment-slider-field + .investment-slider-field {
    margin-top: 0.8rem;
}

.investment-modern-calc--nsc .nsc-compounding-row {
    margin-top: 0.9rem;
    padding: 0 0.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.investment-modern-calc--nsc .nsc-compounding-label {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #2b2f3a;
}

.investment-modern-calc--nsc .nsc-compounding-select {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #00a86b;
    border: none;
    background: transparent;
    outline: none;
    cursor: pointer;
    text-align: right;
    padding: 0 1rem 0 0;
    min-width: 8.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300a86b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 0.9rem;
}

/* Simple interest: Groww-style card + formula strip */
.investment-modern-calc.investment-modern-calc--simple-interest {
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
    position: relative;
    z-index: 1;
    /* top: auto; */
}

.investment-modern-calc--simple-interest .legend-invested {
    background: #0d9488;
    border: 2px solid rgba(13, 148, 136, 0.55);
}

.investment-modern-calc--simple-interest .legend-returns {
    background: #5eead4;
    border: 2px solid rgba(94, 234, 212, 0.65);
}

.investment-modern-calc--simple-interest .investment-donut-center-value {
    color: #0f766e;
}

.investment-modern-calc--compound-interest .legend-invested {
    background: #ff7a14;
    border: 2px solid rgba(255, 122, 20, 0.55);
}

.investment-modern-calc--compound-interest .legend-returns {
    background: #3b6dff;
    border: 2px solid rgba(59, 109, 255, 0.55);
}

.investment-modern-calc--compound-interest .quickbar-returns-value {
    color: #3b6dff;
}

.investment-modern-calc--compound-interest .investment-donut-center-value {
    color: #1f2937;
}

.investment-si-formula-panel {
    margin-top: 1.15rem;
    padding: 1.1rem 1.35rem 1.2rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.95) 0%, rgba(240, 253, 250, 0.88) 100%);
    border: 1px solid rgba(13, 148, 136, 0.2);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.investment-si-formula-heading {
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f766e;
    margin: 0 0 0.65rem;
}

.investment-si-formula-static {
    margin: 0 0 0.45rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.investment-si-formula-line {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #475569;
}

.investment-si-formula-line + .investment-si-formula-line {
    margin-top: 0.5rem;
}

.investment-si-formula-line strong {
    font-weight: 800;
    color: #0f172a;
}

.investment-si-formula-line--total {
    padding-top: 0.35rem;
    margin-top: 0.65rem;
    border-top: 1px dashed rgba(13, 148, 136, 0.28);
}

.investment-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.investment-label-with-unit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
}

.investment-period-unit-select {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid rgba(0, 204, 106, 0.35);
    border-radius: 8px;
    padding: 0.28rem 0.55rem;
    background: #fff;
    color: #0a6a37;
    cursor: pointer;
    max-width: 100%;
}

.investment-input-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.investment-error-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eb5b3d;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.investment-slider-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: #2b2f3a;
}

.investment-value-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 204, 106, 0.12);
    border: 1px solid rgba(0, 204, 106, 0.28);
    border-radius: 10px;
    padding: 0.4rem 0.7rem;
    box-shadow: 0 10px 18px rgba(0, 204, 106, 0.12);
}

.investment-slider-field.is-error .investment-error-icon {
    display: inline-flex;
}

.investment-slider-field.is-error .investment-value-pill {
    background: #fbe9e7;
    border-color: #f6c3bb;
    box-shadow: none;
}

.investment-slider-field.is-error .pill-unit,
.investment-slider-field.is-error .pill-input {
    color: #eb5b3d;
}

.investment-value-pill .pill-unit {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0a6a37;
}

.investment-value-pill .pill-input {
    border: none;
    background: transparent;
    outline: none;
    width: 120px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0a6a37;
    text-align: right;
}

.investment-value-pill .pill-input--select {
    width: auto;
    min-width: 9rem;
    padding-right: 1.1rem;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a6a37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 0.9rem;
}

.investment-value-pill input[type=number]::-webkit-outer-spin-button,
.investment-value-pill input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.investment-value-pill input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.investment-range {
    width: 100%;
    --fill: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    height: 26px;
    padding: 0;
    margin: 0;
}

.investment-range::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(0, 204, 106, 1) 0%,
        rgba(0, 204, 106, 1) calc(var(--fill) * 1%),
        rgba(0, 204, 106, 0.18) calc(var(--fill) * 1%),
        rgba(15, 23, 42, 0.07) 100%
    );
}

.investment-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0, 204, 106, 1);
    box-shadow: 0 8px 18px rgba(0, 204, 106, 0.18);
    margin-top: -3px; /* (track height - thumb height) / 2 */
    cursor: pointer;
}

.investment-range::-moz-range-track {
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(0, 204, 106, 1) 0%,
        rgba(0, 204, 106, 1) calc(var(--fill) * 1%),
        rgba(0, 204, 106, 0.18) calc(var(--fill) * 1%),
        rgba(15, 23, 42, 0.07) 100%
    );
}

.investment-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0, 204, 106, 1);
    box-shadow: 0 8px 18px rgba(0, 204, 106, 0.18);
    cursor: pointer;
}

.investment-visual {
    min-width: 0;
}

.investment-donut-card {
    position: relative;
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(24, 115, 224, 0.12);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.investment-donut-wrap {
    position: relative;
    min-height: 315px;
    padding: 0.95rem 0.75rem 0.25rem 0.75rem;
}

#investmentDonutChart,
#epfDonutChart {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.investment-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.investment-donut-center-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.investment-donut-center-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 750;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.investment-donut-legend {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    margin-top: 0.9rem;
    padding: 0 1rem 0.95rem 1rem;
}

.investment-output-note {
    margin: 0;
    padding: 0 1.35rem 1.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 600;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-invested { background: #F97316; border: 2px solid rgba(249, 115, 22, 0.55); }
.legend-returns { background: #3B6DFF; border: 2px solid rgba(59, 109, 255, 0.55); }

.sip-calculator-page .calculator-main-section {
    padding-top: 0;
}

.sip-calculator-page .investment-modern-calc {
    overflow: hidden;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding: 0;
    border: 1px solid #c7d2e3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.sip-calculator-page .investment-tabs {
    width: 100%;
    justify-content: flex-start;
    gap: 0;
    margin: 0 0 1.9rem;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #cfd8e6;
    border-radius: 0;
    background: transparent;
}

.sip-calculator-page .investment-tab {
    border-radius: 0;
    padding: 0.75rem 1.15rem 0.85rem;
    color: #334155;
    background: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.sip-calculator-page .investment-tab:hover {
    background: transparent;
    color: #0052cc;
}

.sip-calculator-page .investment-tab.is-active {
    background: transparent;
    box-shadow: inset 0 -2px 0 #003ea8;
    color: #003ea8;
}

.sip-calculator-page .investment-modern-calc-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.96fr);
    gap: 0;
    align-items: stretch;
}

.sip-calculator-page .investment-controls {
    position: relative;
    padding: clamp(1.6rem, 3vw, 2.45rem);
    border-right: 0;
}

.sip-calculator-page .investment-controls::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: #c7d2e3;
}

.sip-calculator-page .investment-slider-field {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sip-calculator-page .investment-slider-field + .investment-slider-field {
    margin-top: 2.15rem;
}

.sip-calculator-page .investment-slider-header {
    margin-bottom: 1rem;
}

.sip-calculator-page .investment-slider-label {
    color: #050816;
    font-size: 0.95rem;
    font-weight: 500;
}

.sip-calculator-page .investment-value-pill {
    min-width: 112px;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #c7d2e3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.sip-calculator-page .investment-value-pill .pill-unit,
.sip-calculator-page .investment-value-pill .pill-input {
    color: #020817;
    font-weight: 700;
    background: #ffffff;
}

.sip-calculator-page .investment-value-pill .pill-input {
    width: 68px;
    font-size: 0.95rem;
}

.sip-calculator-page .investment-range {
    height: 24px;
}

.sip-calculator-page .investment-range::-webkit-slider-runnable-track {
    height: 4px;
    background: linear-gradient(
        90deg,
        #2563eb 0%,
        #2563eb calc(var(--fill) * 1%),
        #dce4ef calc(var(--fill) * 1%),
        #dce4ef 100%
    );
}

.sip-calculator-page .investment-range::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -9px;
    border-color: #dce4ef;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.16);
}

.sip-calculator-page .investment-range::-moz-range-track {
    height: 4px;
    background: #dce4ef;
}

.sip-calculator-page .investment-range::-moz-range-progress {
    height: 4px;
    background: #2563eb;
}

.sip-calculator-page .investment-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-color: #dce4ef;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.16);
}

.investment-range-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.35rem;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    line-height: 1.3;
}

.investment-range-meta span {
    background: #ffffff;
}

.investment-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 46px;
    margin-top: 2rem;
    border: 1px solid #c7d2e3;
    border-radius: 8px;
    background: #ffffff;
    color: #020817;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.investment-reset-button:hover,
.investment-reset-button:focus {
    border-color: #2563eb;
    color: #0052cc;
    outline: none;
}

.investment-reset-button .lucide,
.investment-reset-button i {
    width: 16px;
    height: 16px;
}

.sip-calculator-page .investment-donut-card {
    height: 100%;
    padding: clamp(1.6rem, 3vw, 2.45rem);
    border: 0;
    border-radius: 0;
    background: #f8fafc;
    box-shadow: none;
}

.investment-summary-heading {
    margin: 0 0 1.65rem;
    color: #334155;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
}

.investment-projection-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    justify-items: center;
}

.sip-calculator-page .investment-donut-wrap {
    width: 100%;
    min-height: 285px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.sip-calculator-page #investmentDonutChart {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    overflow: visible;
}

.sip-calculator-page #investmentDonutChart .apexcharts-canvas,
.sip-calculator-page #investmentDonutChart svg {
    overflow: visible;
}

.sip-calculator-page .investment-donut-center-label {
    margin-bottom: 0.35rem;
    color: #334155;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sip-calculator-page .investment-donut-center-value {
    color: #050816;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 800;
}

.sip-calculator-page .investment-graph-quickbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: min(100%, 360px);
    padding: 0;
    border-bottom: 0;
}

.sip-calculator-page .quickbar-item,
.sip-calculator-page .quickbar-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 46px;
    border-bottom: 1px solid #d8e1ee;
}

.sip-calculator-page .quickbar-line {
    min-width: 0;
}

.sip-calculator-page .quickbar-label,
.sip-calculator-page .quickbar-total-label {
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
}

.sip-calculator-page .quickbar-value,
.sip-calculator-page .quickbar-total-value {
    color: #020817;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: right;
}

.sip-calculator-page .quickbar-returns-value {
    color: #0052ff;
}

.sip-calculator-page .quickbar-total {
    display: none;
}

.sip-calculator-page .legend-invested {
    background: #475569;
    border-color: #475569;
}

.sip-calculator-page .legend-returns {
    background: #2563eb;
    border-color: #2563eb;
}

.investment-breakdown-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.15rem;
    color: #0052ff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.investment-breakdown-link:hover,
.investment-breakdown-link:focus {
    text-decoration: underline;
}

.sip-calculator-page .investment-output-note {
    margin-top: clamp(2rem, 4vw, 3.6rem);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.78rem;
}

.sip-calculator-page #sip-information {
    width: 100%;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.sip-calculator-page #sip-information .calculator-info-card {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.sip-calculator-page #sip-information,
.sip-calculator-page #sip-information .calculator-info-title,
.sip-calculator-page #sip-information .calculator-info-content,
.sip-calculator-page #sip-information .calculator-info-content h3,
.sip-calculator-page #sip-information .calculator-info-content p,
.sip-calculator-page #sip-information .calculator-info-content li,
.sip-calculator-page #sip-information .calculator-info-content strong,
.sip-calculator-page #sip-information .formula-box {
    color: #000000;
}

.sip-calculator-page #sip-information .calculator-info-title,
.sip-calculator-page #sip-information .calculator-info-content h3 {
    border-color: #d6dce5;
    font-size: 1.2rem;
}

.sip-calculator-page #sip-information .formula-box {
    display: block;
    overflow-x: auto;
    padding: 1.25rem 1.4rem;
    text-align: left;
}

.sip-calculator-page #sip-information .sip-equation {
    display: inline-block;
    width: auto;
    min-width: max-content;
    margin: 0;
    margin-inline: 0 auto;
    color: #000000;
    font-family: Cambria Math, STIX Two Math, Times New Roman, serif;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 600;
}

.sip-calculator-page #sip-information .formula-definition {
    margin: 1rem 0 0;
    color: #000000;
}

.sip-calculator-page #sip-information .formula-definition p {
    margin: 0 0 0.5rem;
}

.sip-calculator-page #sip-information .formula-definition ul {
    margin: 0;
    padding-left: 1.15rem;
}

.sip-calculator-page #sip-information .formula-definition li {
    margin: 0.35rem 0;
    padding-left: 0;
}

.sip-calculator-page #sip-information .formula-definition li::before {
    display: none;
}

.sip-calculator-page #sip-information .sip-inline-equation {
    font-family: Cambria Math, STIX Two Math, Times New Roman, serif;
    font-size: 1.05rem;
}

.sip-calculator-page #sip-information .calculator-info-content,
.sip-calculator-page #sip-information .calculator-info-content p,
.sip-calculator-page #sip-information .calculator-info-content li,
.sip-calculator-page #sip-information .formula-box {
    font-size: 1rem;
}

@media (max-width: 900px) {
    .sip-calculator-page .calculator-hero .container,
    .sip-calculator-page .calculator-main-section .container {
        padding-inline: 40px;
    }

    .sip-calculator-page .investment-modern-calc-grid,
    .sip-calculator-page .investment-projection-layout {
        grid-template-columns: 1fr;
    }

    .sip-calculator-page .investment-controls {
        border-bottom: 1px solid #c7d2e3;
    }

    .sip-calculator-page .investment-controls::after {
        display: none;
    }

    .sip-calculator-page .investment-donut-card {
        padding-top: 1.6rem;
    }
}

@media (max-width: 560px) {
    .sip-calculator-page .calculator-hero .container,
    .sip-calculator-page .calculator-main-section .container {
        padding-inline: 20px;
    }

    .sip-calculator-page .calculator-page-description {
        padding-inline: 0;
    }

    .calculator-breadcrumb {
        font-size: 0.76rem;
    }

    .sip-calculator-page .investment-controls,
    .sip-calculator-page .investment-donut-card {
        padding: 1.2rem;
    }

    .sip-calculator-page .investment-slider-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .sip-calculator-page .investment-value-pill {
        width: 100%;
        justify-content: space-between;
    }
}

/* ELSS: match Dhan colors (invested = blue, returns = green) */
.investment-modern-calc--elss .legend-invested {
    background: #3B6DFF;
    border: 2px solid rgba(59, 109, 255, 0.55);
}

.investment-modern-calc--elss .legend-returns {
    background: #00B35A;
    border: 2px solid rgba(0, 179, 90, 0.3);
}

.investment-modern-calc--elss .quickbar-returns-value {
    color: #00B35A;
}

.investment-graph-quickbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.15rem 1.1rem 1rem 1.1rem;
    border-bottom: 1px solid #edf2f7;
}

.quickbar-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.quickbar-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quickbar-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b7280;
}

.quickbar-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

.quickbar-returns-value {
    color: #3B6DFF;
}

.quickbar-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.quickbar-total-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b7280;
}

.quickbar-total-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.investment-graph-top-summary,
.investment-graph-divider,
.investment-top-stat,
.investment-top-label,
.investment-top-value {
    display: none;
}

.investment-graph-top-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.05rem 1.15rem 0.85rem 1.15rem;
    border-bottom: 1px solid #edf2f7;
    justify-items: center;
}

.investment-top-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    text-align: center;
}

.investment-top-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b7280;
}

.investment-top-value {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: #3B6DFF;
}

.investment-top-returns-value {
    color: #00B35A;
}

.investment-graph-divider {
    display: none;
}

.investment-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.3rem;
    align-items: flex-end;
}

.summary-stat {
    min-width: 190px;
}

.summary-stat-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.summary-stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: #1873E0;
}

.investment-returns-value {
    color: #0a7f4f;
}

.investment-total-value {
    color: #0f172a;
}

/* CAGR calculator — teal/mint/slate theme */
.investment-modern-calc--cagr {
    --cagr-teal: #00d09c;
    --cagr-teal-hover: #00b88a;
    --cagr-teal-dark: #00a884;
    --cagr-mint: #e8f9f5;
    --cagr-slate: #44475b;
    --cagr-track-bg: #e8ecef;
}

.investment-modern-calc--cagr .investment-slider-label {
    color: var(--cagr-slate);
    font-weight: 600;
}

.investment-modern-calc--cagr .investment-slider-field {
    background: #ffffff;
    border-color: rgba(68, 71, 91, 0.1);
}

.investment-modern-calc--cagr .investment-value-pill {
    background: var(--cagr-mint);
    border-color: rgba(0, 208, 156, 0.35);
    box-shadow: none;
}

.investment-modern-calc--cagr .investment-value-pill .pill-unit,
.investment-modern-calc--cagr .investment-value-pill .pill-input {
    color: var(--cagr-teal-dark);
    font-weight: 700;
}

.investment-modern-calc--cagr .investment-range::-webkit-slider-runnable-track {
    background: linear-gradient(
        90deg,
        var(--cagr-teal) 0%,
        var(--cagr-teal) calc(var(--fill) * 1%),
        var(--cagr-track-bg) calc(var(--fill) * 1%),
        var(--cagr-track-bg) 100%
    );
}

.investment-modern-calc--cagr .investment-range::-webkit-slider-thumb {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 4px rgba(68, 71, 91, 0.12);
}

.investment-modern-calc--cagr .investment-range::-moz-range-track {
    background: linear-gradient(
        90deg,
        var(--cagr-teal) 0%,
        var(--cagr-teal) calc(var(--fill) * 1%),
        var(--cagr-track-bg) calc(var(--fill) * 1%),
        var(--cagr-track-bg) 100%
    );
}

.investment-modern-calc--cagr .investment-range::-moz-range-thumb {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 4px rgba(68, 71, 91, 0.12);
}

.investment-modern-calc--cagr .legend-invested {
    background: #94a3b8;
    border-color: rgba(148, 163, 184, 0.6);
}

.investment-modern-calc--cagr .legend-returns {
    background: var(--cagr-teal);
    border-color: rgba(0, 208, 156, 0.45);
}

.investment-modern-calc--cagr .quickbar-returns-value:not(.quickbar-loss) {
    color: var(--cagr-teal);
}

.investment-modern-calc--cagr .investment-donut-center-label {
    color: #64748b;
}

.investment-modern-calc--cagr .investment-donut-center-value {
    color: var(--cagr-slate);
}

/* CAGR calculator — result strip + loss state */
.investment-cagr-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 1rem 1.35rem;
    border-radius: 14px;
    background: var(--cagr-mint, #e8f9f5);
    border: 1px solid rgba(0, 208, 156, 0.18);
    box-shadow: none;
}

.investment-modern-calc--cagr .investment-cagr-summary-bar {
    background: #e8f9f5;
}

.investment-cagr-summary-text {
    margin: 0;
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cagr-slate, #44475b);
    letter-spacing: -0.02em;
}

.investment-cagr-summary-text strong {
    font-weight: 800;
    color: var(--cagr-slate, #44475b);
}

.investment-cagr-reset-btn {
    border: none;
    background: var(--cagr-teal, #00d09c);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(0, 208, 156, 0.25);
}

.investment-cagr-reset-btn:hover {
    background: var(--cagr-teal-hover, #00b88a);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 208, 156, 0.3);
}

.investment-cagr-reset-btn:active {
    transform: translateY(0);
}

.quickbar-returns-value.quickbar-loss {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 968px) {
    .investment-cagr-summary-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .investment-cagr-reset-btn {
        width: 100%;
        text-align: center;
    }

    .investment-modern-calc-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .investment-donut-wrap {
        min-height: 290px;
    }

    .summary-stat {
        min-width: 0;
        width: 100%;
    }

    .investment-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .investment-graph-quickbar {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .quickbar-total {
        grid-column: 1 / -1;
        align-items: flex-start;
    }
}

/* Step Up FAQ accordion (close/open) UI */
.stepup-faq-accordion {
    margin-top: 0.65rem;
}

.stepup-faq-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 0;
    border: none;
    background: transparent;
    border-bottom: 1px solid #e8f4f8;
    cursor: pointer;
}

.stepup-faq-row:last-of-type {
    border-bottom: none;
}

.stepup-faq-question {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.02rem;
    font-weight: 50;
    color: #434343;
    text-align: left;
    line-height: 1.45;
}

.stepup-faq-icon {
    color: #64748b;
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.stepup-faq-row[aria-expanded="true"] .stepup-faq-icon {
    transform: rotate(180deg);
}

.stepup-faq-panel {
    padding: 0.25rem 0 1rem 0;
    color: var(--calc-text-medium, #475569);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Shared calculator detail reference layout */
.calculator-shell-page .calculator-page {
    background: #f4f7fb;
    background-image: none;
}

.calculator-shell-page .calculator-hero .container,
.calculator-shell-page .calculator-main-section .container {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: 50px;
}

.calculator-shell-page .calculator-hero {
    padding: clamp(2.3rem, 4vw, 3.6rem) 0 clamp(1.8rem, 3vw, 2.6rem);
    background: #f4f7fb;
}

.calculator-shell-page .calculator-hero::before {
    display: none;
}

.calculator-shell-page .calculator-hero-content {
    width: 100%;
    max-width: 860px;
    color: #020817;
    text-align: left;
}

.calculator-shell-page .back-link {
    margin-bottom: 1.1rem;
    color: #475569;
    font-family: var(--font-body);
    font-size: 0.82rem;
    opacity: 1;
}

.calculator-shell-page .back-link:hover,
.calculator-shell-page .back-link:focus {
    color: #0052cc;
    transform: none;
}

.calculator-shell-page .calculator-page-title {
    margin-bottom: 0.85rem;
    color: #050816;
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
}

.calculator-shell-page .calculator-page-description {
    max-width: 780px;
    margin: 0;
    color: #334155;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    opacity: 1;
}

.calculator-shell-page .calculator-main-section {
    padding-top: 0;
}

.calculator-shell-page .investment-modern-calc {
    overflow: hidden;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding: 0;
    border: 1px solid #c7d2e3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    top: auto;
}

.calculator-shell-page .investment-modern-calc-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.96fr);
    gap: 0;
    align-items: stretch;
}

.calculator-shell-page .investment-controls {
    position: relative;
    min-width: 0;
    padding: clamp(1.6rem, 3vw, 2.45rem);
}

.calculator-shell-page .investment-controls::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: #c7d2e3;
}

.calculator-shell-page .investment-tabs {
    width: 100%;
    justify-content: flex-start;
    gap: 0;
    margin: 0 0 1.9rem;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #cfd8e6;
    border-radius: 0;
    background: transparent;
}

.calculator-shell-page .investment-tab {
    border-radius: 0;
    padding: 0.75rem 1.15rem 0.85rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
}

.calculator-shell-page .investment-tab:hover,
.calculator-shell-page .investment-tab:focus {
    background: transparent;
    color: #0052cc;
}

.calculator-shell-page .investment-tab.is-active {
    background: transparent;
    box-shadow: inset 0 -2px 0 #004dff;
    color: #004dff;
}

.calculator-shell-page .investment-slider-field {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.calculator-shell-page .investment-slider-field + .investment-slider-field {
    margin-top: 2.15rem;
}

.calculator-shell-page .investment-slider-header {
    margin-bottom: 1rem;
}

.calculator-shell-page .investment-slider-label {
    color: #050816;
    font-size: 0.95rem;
    font-weight: 500;
}

.calculator-shell-page .investment-value-pill {
    min-width: 112px;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #c7d2e3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.calculator-shell-page .investment-value-pill .pill-unit,
.calculator-shell-page .investment-value-pill .pill-input {
    color: #0f172a;
    font-weight: 500;
}

.calculator-shell-page .investment-value-pill .pill-input {
    font-size: 0.95rem;
}

.calculator-shell-page .investment-range {
    height: 24px;
}

.calculator-shell-page .investment-range::-webkit-slider-runnable-track {
    height: 4px;
    background: linear-gradient(
        90deg,
        #2563eb 0%,
        #2563eb calc(var(--fill) * 1%),
        #dce4ef calc(var(--fill) * 1%),
        #dce4ef 100%
    );
}

.calculator-shell-page .investment-range::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -9px;
    border-color: #dce4ef;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.16);
}

.calculator-shell-page .investment-range::-moz-range-track {
    height: 4px;
    background: #dce4ef;
}

.calculator-shell-page .investment-range::-moz-range-progress {
    height: 4px;
    background: #2563eb;
}

.calculator-shell-page .investment-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-color: #dce4ef;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.16);
}

.calculator-shell-page .investment-donut-card {
    height: 100%;
    padding: clamp(1.6rem, 3vw, 2.45rem);
    border: 0;
    border-radius: 0;
    background: #f8fafc;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.calculator-shell-page .investment-summary-heading {
    order: 0;
}

.calculator-shell-page .investment-donut-wrap {
    min-height: 285px;
    order: 1;
}

.calculator-shell-page .investment-graph-quickbar,
.calculator-shell-page .investment-graph-top-summary {
    border-color: #d8e1ee;
    order: 2;
}

.calculator-shell-page .investment-donut-legend {
    order: 3;
}

.calculator-shell-page .investment-output-note {
    order: 3;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.78rem;
}

.calculator-shell-page .calculator-wrapper {
    width: 100%;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.calculator-shell-page .calculator-wrapper:has(.calculator-form-section) {
    grid-template-columns: minmax(0, 1fr);
}

.calculator-shell-page .calculator-wrapper:has(.calculator-form-section) .calculator-form-section {
    grid-column: 1;
    grid-row: 1;
    order: 1;
}

.calculator-shell-page .calculator-wrapper:has(.calculator-form-section) .calculator-info-section {
    grid-column: 1;
    grid-row: 2;
    order: 2;
}

.calculator-shell-page .calculator-info-card {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.calculator-shell-page .calculator-info-title,
.calculator-shell-page .calculator-info-content h3 {
    color: #000000;
    font-size: 1.2rem;
}

.calculator-shell-page .calculator-info-content,
.calculator-shell-page .calculator-info-content p,
.calculator-shell-page .calculator-info-content li,
.calculator-shell-page .calculator-info-content strong,
.calculator-shell-page .formula-box {
    color: #000000;
    font-size: 1rem;
}

.calculator-shell-page .calculator-info-content h3 {
    padding-left: 0;
    border-left: 0;
}

.calculator-shell-page .calculator-card {
    border: 1px solid #c7d2e3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.calculator-shell-page .calculator-section-title {
    color: #050816;
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .calculator-shell-page .calculator-hero .container,
    .calculator-shell-page .calculator-main-section .container {
        padding-inline: 40px;
    }

    .calculator-shell-page .investment-modern-calc-grid {
        grid-template-columns: 1fr;
    }

    .calculator-shell-page .investment-controls {
        border-bottom: 1px solid #c7d2e3;
    }

    .calculator-shell-page .investment-controls::after {
        display: none;
    }

    .calculator-shell-page .investment-donut-card {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .calculator-shell-page .calculator-hero .container,
    .calculator-shell-page .calculator-main-section .container {
        padding-inline: 20px;
    }

    .calculator-shell-page .calculator-page-description {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .calculator-shell-page .investment-controls,
    .calculator-shell-page .investment-donut-card {
        padding: 1.2rem;
    }

    .calculator-shell-page .investment-slider-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .calculator-shell-page .investment-value-pill {
        width: 100%;
        justify-content: space-between;
    }
}

/* SIP calculator is the shared visual source for all calculator detail pages. */
.calculator-shell-page {
    --calc-primary-blue: #2563eb;
    --calc-primary-teal: #475569;
    --calc-accent-green: #2563eb;
    --calc-accent-purple: #2563eb;
    --calc-text-dark: #050816;
    --calc-text-medium: #334155;
    --calc-text-light: #64748b;
    --calc-bg-light: #f4f7fb;
    --calc-bg-white: #ffffff;
    --calc-border-light: #c7d2e3;
    --calc-gradient: linear-gradient(135deg, #2563eb 0%, #2563eb 100%);
    --calc-shadow-sm: none;
    --calc-shadow-md: none;
    background: #f4f7fb;
}

.calculator-shell-page .calculator-page,
.calculator-shell-page .calculator-main-section,
.calculator-shell-page .calculator-card,
.calculator-shell-page .results-primary-card,
.calculator-shell-page .calculator-results-chart,
.calculator-shell-page .summary-row,
.calculator-shell-page .result-item,
.calculator-shell-page .results-main .result-item,
.calculator-shell-page .calculator-chart-container,
.calculator-shell-page .chart-container,
.calculator-shell-page .chart-container-full,
.calculator-shell-page .results-breakdown-card,
.calculator-shell-page .metric-item,
.calculator-shell-page .breakdown-item,
.calculator-shell-page .breakeven-visual {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.calculator-shell-page h1,
.calculator-shell-page h2,
.calculator-shell-page h3,
.calculator-shell-page h4,
.calculator-shell-page h5,
.calculator-shell-page h6,
.calculator-shell-page .calculator-page-title {
    font-family: var(--font-heading);
}

.calculator-shell-page,
.calculator-shell-page p,
.calculator-shell-page a,
.calculator-shell-page li,
.calculator-shell-page button,
.calculator-shell-page input,
.calculator-shell-page select,
.calculator-shell-page textarea,
.calculator-shell-page .back-link,
.calculator-shell-page .calculator-page-description,
.calculator-shell-page .calculator-info-content,
.calculator-shell-page .calculator-field label,
.calculator-shell-page .calculator-field input,
.calculator-shell-page .calculator-field select,
.calculator-shell-page .calculator-section-title,
.calculator-shell-page .calculator-info-title,
.calculator-shell-page .investment-tab,
.calculator-shell-page .investment-slider-label,
.calculator-shell-page .investment-value-pill,
.calculator-shell-page .pill-unit,
.calculator-shell-page .pill-input,
.calculator-shell-page .investment-range-meta,
.calculator-shell-page .investment-summary-heading,
.calculator-shell-page .investment-donut-center-label,
.calculator-shell-page .investment-donut-center-value,
.calculator-shell-page .quickbar-label,
.calculator-shell-page .quickbar-total-label,
.calculator-shell-page .quickbar-value,
.calculator-shell-page .quickbar-total-value,
.calculator-shell-page .investment-output-note,
.calculator-shell-page .result-label,
.calculator-shell-page .result-value,
.calculator-shell-page .summary-label,
.calculator-shell-page .summary-value,
.calculator-shell-page .metric-label,
.calculator-shell-page .metric-value,
.calculator-shell-page .breakdown-label,
.calculator-shell-page .breakdown-value,
.calculator-shell-page .chart-section-title,
.calculator-shell-page .chart-title,
.calculator-shell-page .breakdown-table-title,
.calculator-shell-page .yearly-breakdown-table {
    font-family: var(--font-body);
}

.calculator-shell-page .calculator-btn-calculate,
.calculator-shell-page .investment-cagr-reset-btn {
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    box-shadow: none;
}

.calculator-shell-page .calculator-btn-calculate:hover,
.calculator-shell-page .investment-cagr-reset-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: none;
    transform: none;
}

.calculator-shell-page .calculator-btn-reset {
    border: 1px solid #c7d2e3;
    border-radius: 8px;
    background: #ffffff;
    color: #020817;
    box-shadow: none;
}

.calculator-shell-page .calculator-btn-reset:hover,
.calculator-shell-page .calculator-btn-reset:focus {
    border-color: #2563eb;
    color: #0052cc;
    background: #ffffff;
}

.calculator-shell-page .calculator-field input,
.calculator-shell-page .calculator-field select,
.calculator-shell-page .investment-period-unit-select,
.calculator-shell-page .investment-modern-calc--nsc .nsc-compounding-select {
    border-color: #c7d2e3;
    border-radius: 8px;
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: none;
}

.calculator-shell-page .calculator-field input:focus,
.calculator-shell-page .calculator-field select:focus,
.calculator-shell-page .investment-period-unit-select:focus,
.calculator-shell-page .investment-modern-calc--nsc .nsc-compounding-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.calculator-shell-page .calculator-info-content li::before {
    background: #2563eb;
    box-shadow: none;
}

.calculator-shell-page .formula-box,
.calculator-shell-page .calculator-info-content .formula-box,
.calculator-shell-page .callout-box,
.calculator-shell-page .calculator-info-content .callout-box,
.calculator-shell-page .investment-si-formula-panel,
.calculator-shell-page .investment-cagr-summary-bar {
    border: 1px solid #d6dce5;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: none;
    color: #020817;
}

.calculator-shell-page .calculator-results-chart,
.calculator-shell-page .calculator-chart-container,
.calculator-shell-page .chart-container,
.calculator-shell-page .chart-container-full,
.calculator-shell-page .results-breakdown-card,
.calculator-shell-page .breakeven-visual,
.calculator-shell-page .table-wrapper {
    border: 1px solid #d6dce5;
    border-radius: 8px;
    background: #ffffff;
}

.calculator-shell-page .results-primary-card,
.calculator-shell-page .result-item,
.calculator-shell-page .results-main .result-item,
.calculator-shell-page .summary-row,
.calculator-shell-page .metric-item,
.calculator-shell-page .breakdown-item {
    border: 1px solid #d6dce5;
    border-radius: 8px;
    background: #ffffff;
}

.calculator-shell-page .result-item:hover,
.calculator-shell-page .results-main .result-item:hover {
    border-color: #2563eb;
    box-shadow: none;
    transform: none;
}

.calculator-shell-page .result-item.highlight,
.calculator-shell-page .results-main .result-item.highlight {
    border-color: #2563eb;
    background: #f1f5f9;
}

.calculator-shell-page .result-value,
.calculator-shell-page .summary-value,
.calculator-shell-page .metric-value,
.calculator-shell-page .breakdown-value,
.calculator-shell-page .chart-section-title,
.calculator-shell-page .results-card-title,
.calculator-shell-page .breakdown-title,
.calculator-shell-page .chart-title,
.calculator-shell-page .breakdown-table-title,
.calculator-shell-page .calculator-info-content .faq-q,
.calculator-shell-page .calculator-info-content .related-calc-list a,
.calculator-shell-page .investment-breakdown-link,
.calculator-shell-page .quickbar-returns-value:not(.quickbar-loss),
.calculator-shell-page .investment-modern-calc--ssy .ssy-summary-value--interest {
    color: #2563eb;
}

.calculator-shell-page .result-item.highlight .result-value,
.calculator-shell-page .investment-total-value,
.calculator-shell-page .investment-donut-center-value {
    color: #050816;
}

.calculator-shell-page .legend-invested,
.calculator-shell-page .investment-modern-calc--simple-interest .legend-invested,
.calculator-shell-page .investment-modern-calc--compound-interest .legend-invested,
.calculator-shell-page .investment-modern-calc--cagr .legend-invested,
.calculator-shell-page .investment-modern-calc--elss .legend-invested,
.calculator-shell-page .investment-modern-calc--epf .legend-dot.legend-opening,
.calculator-shell-page .investment-donut-legend-dot--ssy-principal {
    background: #475569;
    border-color: #475569;
}

.calculator-shell-page .investment-donut-legend-dot--ssy-principal {
    background: #475569 !important;
    border-color: #475569 !important;
}

.calculator-shell-page .legend-returns,
.calculator-shell-page .investment-modern-calc--simple-interest .legend-returns,
.calculator-shell-page .investment-modern-calc--compound-interest .legend-returns,
.calculator-shell-page .investment-modern-calc--cagr .legend-returns,
.calculator-shell-page .investment-modern-calc--elss .legend-returns,
.calculator-shell-page .investment-donut-legend-dot--ssy-interest {
    background: #2563eb;
    border-color: #2563eb;
}

.calculator-shell-page .investment-donut-legend-dot--ssy-interest {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.calculator-shell-page .yearly-breakdown-table thead {
    background: #f1f5f9;
    color: #050816;
}

.calculator-shell-page .yearly-breakdown-table td {
    border-bottom-color: #d6dce5;
}

.calculator-shell-page .yearly-breakdown-table tbody tr:hover {
    background: #f8fafc;
}

.calculator-shell-page .investment-projection-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    justify-items: center;
    order: 1;
}

.calculator-shell-page .investment-breakdown-link {
    order: 2;
}

.calculator-shell-page .investment-graph-quickbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: min(100%, 360px);
    margin: 1.15rem auto 0;
    padding: 0;
    border-bottom: 0;
}

.calculator-shell-page .investment-ssy-summary-top {
    order: 2;
    margin: 1.15rem auto 0;
    padding: 0;
    width: min(100%, 360px);
    border-top: 0;
    border-bottom: 0;
}

.calculator-shell-page .investment-donut-card--ssy .investment-donut-wrap {
    border-top: 0;
    margin-top: 0;
}

.calculator-shell-page .quickbar-item,
.calculator-shell-page .quickbar-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 46px;
    border-bottom: 1px solid #d8e1ee;
}

.calculator-shell-page .quickbar-total {
    display: none;
}

.calculator-shell-page .investment-modern-calc--cagr .quickbar-total {
    display: grid;
}

.calculator-shell-page .investment-modern-calc--cagr .investment-visual,
.calculator-shell-page .investment-modern-calc--cagr .investment-donut-card {
    align-self: start;
    height: auto;
}

.calculator-shell-page .quickbar-line {
    min-width: 0;
}

.calculator-shell-page .quickbar-label,
.calculator-shell-page .quickbar-total-label {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 500;
}

.calculator-shell-page .quickbar-value,
.calculator-shell-page .quickbar-total-value {
    font-size: 0.98rem;
    font-weight: 700;
    text-align: right;
}

.calculator-shell-page .investment-donut-center-label {
    color: #334155;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.calculator-shell-page .investment-donut-center-value {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 800;
}

.calculator-shell-page .investment-donut-card--epf-total {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: clamp(1.6rem, 3vw, 2.45rem);
    text-align: center;
}

.calculator-shell-page .investment-donut-center--static {
    position: static;
    transform: none;
    margin: 0;
}

.calculator-shell-page .epf-accumulated-copy {
    margin: 0;
    color: #475569;
    font-size: 1rem;
}

.calculator-shell-page .epf-accumulated-copy--before {
    margin-bottom: 0.5rem;
}

.calculator-shell-page .epf-accumulated-copy--after {
    margin-top: 0.5rem;
}

.calculator-shell-page .epf-total-value {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.calculator-shell-page .brokerage-chart {
    height: 220px;
}

.calculator-shell-page .brokerage-breakeven-note,
.calculator-shell-page #brBreakeven p {
    margin: 0.5rem 0 0;
    color: #475569;
    font-size: 0.875rem;
}

.calculator-shell-page #brBreakeven p {
    color: #475569 !important;
}

.calculator-shell-page .margin-coming-soon-card {
    padding: 3rem;
    text-align: center;
}

.calculator-shell-page .margin-coming-soon-card h3 {
    margin: 1rem 0;
    color: #050816;
}

.calculator-shell-page .margin-coming-soon-card p {
    color: #334155;
}
