/* MFP Layout Styles */

/* Hero */
.mfp-hero {
    padding: 8rem 0 5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-mid);
    text-align: center;
}

.mfp-hero__title {
    color: var(--maroon);
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.mfp-hero__lead {
    font-size: 1.25rem;
    color: var(--charcoal);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Core Concepts */
.mfp-concept-section {
    padding: 80px 0;
    background: #fffdf5;
}

.mfp-section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--charcoal);
    margin-bottom: 30px;
}

.mfp-concept-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.mfp-concept-card {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 12px;
}

.mfp-concept-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.mfp-concept-card p {
    color: #555;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mfp-concept-alert {
    background: #ffdbd6;
    color: #4a1310;
    padding: 15px 25px;
    border-radius: 8px;
    border-left: 4px solid #c0392b;
    font-weight: 500;
    margin-bottom: 10px;
}

.mfp-concept-footnote {
    font-size: 0.8rem;
    color: #888;
}

.mfp-limitations-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.mfp-limit-card {
    background: var(--white);
    padding: 40px 20px 25px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
    display: flex;
    flex-direction: column;
}

.mfp-limit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(107, 15, 17, 0.08);
    border-color: rgba(107, 15, 17, 0.15);
}

.mfp-limit-number {
    background: linear-gradient(90deg, #E5BC5D 0%, #DEAA31 100%);
    color: var(--white);
    width: 38px;
    height: 38px;
    line-height: 38px;
    border-radius: 50%;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 1.1rem;
    position: absolute;
    top: -19px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(222, 170, 49, 0.35);
}

.mfp-limit-card h4 {
    font-family: var(--font-display);
    color: var(--maroon);
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.mfp-limit-card p {
    font-size: 0.95rem;
    color: #4A4A4A;
    line-height: 1.5;
    margin: 0;
}

/* Input Panel */
.mfp-inputs {
    background: #F8F7F7;
    padding: 60px 0;
}

.mfp-inputs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.input-group {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.input-group h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.25rem;
    color: var(--charcoal);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
}

.field-row {
    margin-bottom: 15px;
}

.field-row label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}

.field-row input,
.field-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-base);
    color: var(--charcoal);
    transition: border-color 0.2s;
}

.field-row input:focus,
.field-row select:focus {
    border-color: var(--gold);
    outline: none;
}

.field-row.computed input {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    color: #777;
    font-weight: 600;
}

.btn-calculate-wrap {
    text-align: center;
    margin-top: 50px;
}

/* Results Area */
#results {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

#results.visible {
    opacity: 1;
    visibility: visible;
    height: auto;
    padding: 60px 0;
    background: #fff;
}

/* KPI Strip */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.kpi-card {
    padding: 30px 20px;
    border-radius: 8px;
    background: #F8F7F7;
    border: 1px solid #eee;
    text-align: center;
}

.kpi-card.highlight {
    background: var(--maroon);
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(99, 15, 15, 0.2);
}

.kpi-card.highlight .kpi-label,
.kpi-card.highlight .kpi-sub {
    color: rgba(255, 255, 255, 0.85);
}

.kpi-card.highlight .kpi-value {
    color: var(--gold);
}

.kpi-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    color: #666;
    letter-spacing: 1px;
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--charcoal);
}

.kpi-sub {
    font-size: 0.9rem;
    color: #888;
}

/* Chart Sections */
.chart-section {
    margin-bottom: 80px;
}

.chart-section h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.chart-section p.sub {
    color: #666;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.chart-container {
    height: 400px;
    width: 100%;
    position: relative;
}

#legendBalances {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

#legendBalances .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

#totalRefundLabel {
    text-align: center;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-top: 20px;
    color: var(--maroon);
}

.disclaimer-small {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Two-col Charts Grid */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

/* Flow Diagram Section */
.flow-diagram-section {
    background: #F8F7F7;
    padding: 80px 0;
    margin: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.flow-diagram-section h3 {
    text-align: center;
}

.flow-diagram-section p.sub {
    text-align: center;
}

#flowYearNav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.flow-year-btn {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-base);
    color: #555;
    transition: all 0.2s;
}

.flow-year-btn.active,
.flow-year-btn:hover {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
}

#flowDiagram {
    display: block;
    max-width: 1100px;
    margin: 0 auto;
}

.flow-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-column-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    width: 100%;
}

.house-value-bar {
    width: 100%;
    height: 40px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
    background: #f4f4f4;
}

.seg-bad {
    background: #c0392b;
    transition: width 0.3s ease;
}

.seg-good {
    background: #2a9d4e;
    transition: width 0.3s ease;
}

.seg-room {
    background: #ccc;
    transition: width 0.3s ease;
}

.seg-equity {
    background: #fff;
    border: 1px solid #ddd;
    border-left: none;
    transition: width 0.3s ease;
}

.bar-legend {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.75rem;
    margin-bottom: 20px;
    color: #666;
}

.flow-box {
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.flow-box-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.flow-box-value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--charcoal);
}

.flow-arrow {
    font-size: 1.5rem;
    color: #aaa;
    margin: 10px 0;
}

/* Footer addition */
/* New Specific Exact Diagram Styles with Modern UI Aesthetics */
.exact-flow {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    min-height: 600px;
    font-family: var(--font-base);
    color: #555;
    background: transparent;
}

.exact-flow *,
.exact-flow *::before,
.exact-flow *::after {
    box-sizing: border-box;
}

.ef-col {
    position: absolute;
    width: 240px;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.ef-real-estate {
    left: 10px;
    top: 0px;
    border-top: 5px solid var(--charcoal);
}

.ef-investment {
    right: 10px;
    top: 0px;
    border-top: 5px solid #6bcc68;
    height: 480px;
    display: flex;
    flex-direction: column;
}

.ef-col h4 {
    color: var(--charcoal);
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.ef-dashed-box {
    border: 2px dashed #ccc;
    border-bottom: none;
    position: relative;
    width: 100%;
}

.ef-dash-line {
    border-bottom: 2px dashed #ccc;
    padding: 8px 0;
    font-weight: bold;
    font-size: 0.9rem;
    color: #555;
    background: #fdfdfd;
}

.ef-label-side {
    position: absolute;
    left: -35px;
    bottom: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #888;
}

.ef-good-debt {
    background: #2a9d4e;
    color: #fff;
    padding: 30px 0;
    font-weight: bold;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.ef-bad-debt {
    background: #c0392b;
    color: #fff;
    padding: 50px 0;
    font-weight: bold;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.ef-bank-account-label {
    margin-top: 25px;
    font-weight: bold;
    color: var(--charcoal);
    font-size: 1.1rem;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ef-investment-growth {
    background: #6bcc68;
    color: #fff;
    padding: 40px 0;
    font-weight: bold;
    border-radius: 4px;
    margin-top: auto;
    font-size: 1.4rem;
}

.ef-income-bucket {
    position: absolute;
    bottom: 10px;
    left: 450px;
    transform: translateX(-50%);
    text-align: center;
}

.ef-bucket-shape {
    width: 140px;
    border-top: 60px solid #666;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    position: relative;
    margin: 0 auto;
}

.ef-bucket-shape span {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: bold;
    font-size: 1.15rem;
}

.ef-blue-box {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #4ab7f7;
    color: #4ab7f7;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    bottom: 120px;
    left: 450px;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    min-width: 140px;
    background: #e1f5fe;
}

.ef-interest-box {
    background: #fff;
    border: 1px solid #f39c12;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 160px;
    position: absolute;
    top: 220px;
    left: 450px;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.interest-split {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.interest-split>div {
    padding: 5px 0;
    width: 50%;
}

.good-int {
    background: #2a9d4e;
}

.bad-int {
    background: #c0392b;
}

.ef-total-interest {
    position: absolute;
    top: 195px;
    left: calc(450px + 90px);
    font-weight: bold;
    color: var(--charcoal);
    font-size: 0.95rem;
}

.ef-tax-refund {
    position: absolute;
    top: -30px;
    left: 450px;
    transform: translateX(-50%);
    background: #f3e5f5;
    color: #6c3483;
    border: 1px solid #ce93d8;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    text-align: center;
}

.ef-tax-refund-val {
    color: #6c3483;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 5px;
}

.ef-arrow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ef-arrow-label {
    position: absolute;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 3;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ef-label-yellow {
    background: #fff8e1;
    border: 1px solid #ffca28;
    color: #f57f17;
}

.ef-label-red {
    background: #ffebee;
    border: 1px solid #ef5350;
    color: #c0392b;
}

.ef-bottom-bank {
    position: absolute;
    bottom: -60px;
    left: 10px;
    width: 240px;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* FAQ Styles */
.mfp-faq-section {
    margin: 3rem auto 4rem;
    max-width: 860px;
    padding: 0 1rem;
}

.mfp-faq-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--maroon);
    text-align: center;
    margin-bottom: 2rem;
}

.mfp-faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mfp-faq-item {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    overflow: hidden;
}

.mfp-faq-item summary {
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--white);
    color: var(--maroon);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-base);
}

.mfp-faq-item summary:after {
    content: '\\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 600;
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.mfp-faq-item[open] summary:after {
    transform: rotate(180deg);
}

.mfp-faq-item p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .mfp-inputs-grid {
        grid-template-columns: 1fr;
    }

    .kpi-strip {
        grid-template-columns: 1fr 1fr;
    }

    

    

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .mfp-concept-cards,
    .mfp-limitations-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .kpi-strip {
        grid-template-columns: 1fr;
    }

    .mfp-hero h1 {
        font-size: 2rem;
    }
}
@media (max-width: 767px) {
    .flow-diagram-section {
        display: none !important;
    }
}


/* SLICK FLOW DIAGRAM REDESIGN */
.slick-flow {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    min-height: 550px;
    font-family: 'Nunito Sans', sans-serif;
    color: #444;
}
.slick-flow *, .slick-flow *::before, .slick-flow *::after {
    box-sizing: border-box;
}

.sf-col {
    position: absolute;
    width: 150px;
    text-align: center;
}
.sf-left { left: 40px; bottom: 40px; }
.sf-right { right: 40px; bottom: 40px; }

.sf-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #555;
    text-align: center;
    margin-bottom: 5px;
}

.sf-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
}

.sf-dashed-top {
    border: 2px dashed #000;
    border-bottom: none;
    color: #000;
}
.sf-dashed-mid {
    border: 2px dashed #000;
    border-top: 1px dashed #000;
    border-bottom: none;
    color: #000;
}
.sf-dashed-bot {
    border-left: 2px dashed #000;
    border-right: 2px dashed #000;
    color: #000;
}

.sf-dashed-limit {
    position: absolute;
    top: -10px;
    background: #F8F7F7;
    padding: 0 5px;
    font-size: 0.85rem;
    font-weight: 700;
}

.sf-lbl-75 {
    position: absolute;
    left: -40px;
    bottom: -10px;
    font-size: 0.9rem;
    font-weight: 700;
}

.sf-green {
    background: #6bcc68;
    color: #fff;
    border-radius: 4px 4px 0 0;
}
.sf-red {
    background: #ff5e5e;
    color: #fff;
    border-radius: 0 0 4px 4px;
}
.sf-light-green {
    background: #6bcc68;
    color: #fff;
    border-radius: 4px;
}
.sf-dashed-invest {
    border: 2px dashed #000;
    border-bottom: 2px dashed #000;
}

.sf-bar-title {
    font-size: 0.9rem;
    opacity: 0.9;
}
.sf-bar-val {
    font-size: 1.15rem;
}

.sf-bank-account {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
    color: #444;
}

/* Center elements */
.sf-tax-refund {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    background: #e6b3ff; /* exact pink/purple */
    color: #fff;
    padding: 6px 14px;
    font-size: 0.9rem;
    text-align: center;
}
.sf-tax-refund b { font-size: 1.1rem; }

.sf-inv-contrib {
    position: absolute;
    background: #ffd54f;
    color: #333;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 0.85rem;
}

.sf-interest-group {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}
.sf-interest-box {
    display: flex;
    width: 140px;
    overflow: hidden;
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}
.sf-int-green { background: #6bcc68; padding: 4px 0; width: 50%; }
.sf-int-red { background: #ff5e5e; padding: 4px 0; width: 50%; }
.sf-interest-label {
    font-size: 0.9rem; font-weight: 600; text-align: left;
    color: #000;
}
.sf-interest-label b { font-size: 1.1rem; }

.sf-blue-box {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    background: #4ab7f7;
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 6px 20px;
}
.sf-blue-label {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    font-weight: 700; font-size: 1.05rem; color: #000;
}

.sf-income-bucket {
    left: 50%; transform: translateX(-50%);
}
.sf-bucket-body {
    background: #757575;
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    padding: 24px 30px 10px;
    border-radius: 4px 4px 20px 20px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
    width: 140px;
}

/* Arrows over the flow */
.slick-flow {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 50px auto 0;
    min-height: 650px;
    font-family: 'Nunito Sans', sans-serif;
    color: #444;
}
.slick-flow *, .slick-flow *::before, .slick-flow *::after {
    box-sizing: border-box;
}

.sf-col {
    position: absolute;
    width: 150px;
    text-align: center;
}
.sf-left { left: 40px; bottom: 40px; }
.sf-right { right: 40px; bottom: 40px; }

.sf-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #555;
    text-align: center;
    margin-bottom: 5px;
}

.sf-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
}

.sf-dashed-top { border: 2px dashed #000; border-bottom: none; color: #000; }
.sf-dashed-mid { border: 2px dashed #000; border-top: 1px dashed #000; border-bottom: none; color: #000; }
.sf-dashed-bot { border-left: 2px dashed #000; border-right: 2px dashed #000; color: #000; }

.sf-dashed-limit {
    position: absolute;
    top: -10px;
    background: #F8F7F7;
    padding: 0 5px;
    font-size: 0.85rem;
    font-weight: 700;
}

.sf-lbl-75 {
    position: absolute;
    left: -40px;
    bottom: -10px;
    font-size: 0.9rem;
    font-weight: 700;
}

.sf-green { background: #6bcc68; color: #fff; border-radius: 4px 4px 0 0; }
.sf-red { background: #ff5e5e; color: #fff; border-radius: 0 0 4px 4px; }
.sf-light-green { background: #6bcc68; color: #fff; border-radius: 4px; }
.sf-dashed-invest { border: 2px dashed #000; border-bottom: 2px dashed #000; }

.sf-bar-title { font-size: 0.9rem; opacity: 0.9; }
.sf-bar-val { font-size: 1.15rem; }

.sf-bank-account {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
    color: #444;
}

.sf-arrows {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.05));
}

.sf-tax-refund {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    background: #e6b3ff;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 20;
    border: 1px solid rgba(255,255,255,0.3);
}

.sf-inv-contrib {
    position: absolute;
    background: #ffd54f;
    color: #333;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 20;
}

.sf-interest-group {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 15px; z-index: 20;
}
.sf-interest-box {
    display: flex; width: 140px; overflow: hidden; font-weight: 700; color: #fff; font-size: 0.9rem;
}
.sf-int-green { background: #6bcc68; padding: 4px 0; width: 50%; }
.sf-int-red { background: #ff5e5e; padding: 4px 0; width: 50%; }
.sf-interest-label { font-size: 0.9rem; font-weight: 600; text-align: left; color: #000; }
.sf-interest-label b { font-size: 1.1rem; }

.sf-blue-box {
    position: absolute; left: 50%; transform: translateX(-50%);
    background: #4ab7f7; color: #000; font-weight: 700; font-size: 1.2rem;
    padding: 8px 24px; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 20;
}
.sf-blue-label {
    position: absolute; left: 50%; transform: translateX(-50%);
    font-weight: 700; font-size: 1.1rem; color: #000; z-index: 20;
}

.sf-slanted-red {
    position: absolute; background: #ff5e5e; color: #fff; font-weight: 700; font-size: 0.9rem;
    padding: 5px 12px; border-radius: 4px; z-index: 21; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sf-float-val {
    position: absolute; font-weight: 700; font-size: 1.05rem; z-index: 21;
    background: rgba(255, 255, 255, 0.9); padding: 2px 8px; border-radius: 4px; border: 1px solid #eee;
}
