.pstb-calculator {
    --pstb-blue: #1769aa;
    --pstb-blue-dark: #0f4f83;
    --pstb-light: #f4f8fb;
    --pstb-border: #d9e3ea;
    --pstb-text: #1e2b33;
    --pstb-muted: #65747d;
    --pstb-good: #176b4a;
    --pstb-good-bg: #eef8f3;
    --pstb-warn: #7a4b00;
    --pstb-warn-bg: #fff8e8;
    direction: rtl;
    color: var(--pstb-text);
    font: inherit;
    line-height: 1.6;
    max-width: 960px;
    margin: 28px auto;
}
.pstb-calculator * { box-sizing: border-box; }
.pstb-intro { border-right: 4px solid var(--pstb-blue); padding: 4px 16px 4px 0; margin-bottom: 22px; }
.pstb-intro p { margin: 4px 0 0; }
.pstb-year { color: var(--pstb-blue-dark); font-weight: 700; font-size: 14px; }
.pstb-input-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.pstb-field { min-width: 0; }
.pstb-field label, .pstb-field legend { display: block; font-weight: 700; margin-bottom: 7px; color: var(--pstb-text); }
.pstb-field small { display: block; color: var(--pstb-muted); margin-top: 6px; font-size: 13px; }
.pstb-fieldset { border: 0; padding: 0; margin: 0; }
.pstb-money-input { position: relative; }
.pstb-money-input input { width: 100%; min-height: 48px; border: 1px solid #bac9d3; border-radius: 7px; padding: 10px 14px 10px 42px; background: #fff; color: var(--pstb-text); font-size: 17px; text-align: right; }
.pstb-money-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--pstb-muted); font-weight: 700; }
.pstb-money-input input:focus { outline: 3px solid rgba(23,105,170,.16); border-color: var(--pstb-blue); }
.pstb-radio-row { display: flex; flex-wrap: wrap; gap: 12px; min-height: 48px; align-items: center; }
.pstb-radio-row label { margin: 0; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--pstb-border); border-radius: 7px; padding: 9px 14px; font-weight: 500; cursor: pointer; }
.pstb-radio-row input { width: 18px; height: 18px; accent-color: var(--pstb-blue); }
.pstb-calc-button { margin-top: 20px; min-height: 48px; border: 0; border-radius: 7px; background: var(--pstb-blue); color: #fff; font: inherit; font-weight: 700; padding: 11px 25px; cursor: pointer; }
.pstb-calc-button:hover { background: var(--pstb-blue-dark); }
.pstb-calc-button:focus { outline: 3px solid rgba(23,105,170,.22); outline-offset: 2px; }
.pstb-message { min-height: 24px; margin-top: 8px; color: #a02727; font-weight: 600; }
.pstb-results { margin-top: 26px; }
.pstb-summary-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-bottom: 22px; }
.pstb-summary-card { border: 1px solid var(--pstb-border); background: #fff; border-radius: 8px; padding: 14px; min-width: 0; }
.pstb-summary-card span { display: block; color: var(--pstb-muted); font-size: 13px; }
.pstb-summary-card strong { display: block; margin-top: 4px; font-size: clamp(18px,2.5vw,24px); line-height: 1.25; overflow-wrap: anywhere; }
.pstb-summary-card small { display: block; margin-top: 5px; color: var(--pstb-muted); font-size: 12px; }
.pstb-summary-main { border-top: 3px solid var(--pstb-blue); }
.pstb-summary-benefit { background: var(--pstb-good-bg); border-color: #cfe5da; }
.pstb-summary-benefit strong { color: var(--pstb-good); }
.pstb-section { border-top: 1px solid var(--pstb-border); padding-top: 22px; margin-top: 22px; }
.pstb-section-heading { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.pstb-section h3 { margin: 0; font-size: 23px; }
.pstb-section-heading p { margin: 3px 0 0; color: var(--pstb-muted); }
.pstb-badge { white-space: nowrap; background: var(--pstb-light); color: var(--pstb-blue-dark); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 700; }
.pstb-detail-grid, .pstb-savings-breakdown { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.pstb-detail-grid > div, .pstb-savings-breakdown > div { background: var(--pstb-light); border-radius: 7px; padding: 12px; min-width: 0; }
.pstb-detail-grid span, .pstb-savings-breakdown span { display: block; color: var(--pstb-muted); font-size: 13px; }
.pstb-detail-grid strong, .pstb-savings-breakdown strong { display: block; margin-top: 3px; font-size: 18px; overflow-wrap: anywhere; }
.pstb-compare-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.pstb-method-card { border: 1px solid var(--pstb-border); border-radius: 8px; padding: 15px; background: #fff; min-width: 0; }
.pstb-method-best { border: 2px solid #b9d9ca; background: #fcfffd; }
.pstb-method-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.pstb-method-title h4 { margin: 0; font-size: 18px; }
.pstb-method-title span { color: var(--pstb-muted); font-size: 13px; }
.pstb-method-card dl { margin: 0; }
.pstb-method-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--pstb-border); }
.pstb-method-card dl > div:last-child { border-bottom: 0; }
.pstb-method-card dt { color: var(--pstb-muted); }
.pstb-method-card dd { margin: 0; font-weight: 700; text-align: left; }
.pstb-best-note { margin-top: 11px; padding: 10px 12px; border-radius: 6px; background: var(--pstb-good-bg); color: var(--pstb-good); font-size: 14px; }
.pstb-savings-breakdown { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 15px; }
.pstb-warning, .pstb-info { margin: 14px 0 0; padding: 11px 13px; border-radius: 7px; font-size: 14px; }
.pstb-warning { background: var(--pstb-warn-bg); color: var(--pstb-warn); }
.pstb-info { background: var(--pstb-light); color: #40535f; }
.pstb-assumptions h3 { font-size: 18px; }
.pstb-assumptions p { color: var(--pstb-muted); font-size: 13px; margin-bottom: 0; }
@media (max-width: 820px) {
    .pstb-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .pstb-summary-benefit { grid-column: 1 / -1; }
    .pstb-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .pstb-input-grid, .pstb-compare-grid, .pstb-summary-grid, .pstb-detail-grid, .pstb-savings-breakdown { grid-template-columns: 1fr; }
    .pstb-summary-benefit { grid-column: auto; }
    .pstb-section-heading { display: block; }
    .pstb-badge { display: inline-block; margin-top: 8px; }
    .pstb-calc-button { width: 100%; }
}
.pstb-summary-net { border-right-color: #607d8b; }
.pstb-logic-box { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 14px; padding: 14px; border: 1px solid var(--pstb-border); border-radius: 8px; background: #fbfcfd; }
.pstb-logic-box > div { min-width: 0; }
.pstb-logic-box span { display: block; color: var(--pstb-muted); font-size: 13px; margin-bottom: 4px; }
.pstb-logic-box strong { display: block; color: var(--pstb-text); font-size: 18px; }
@media (max-width: 820px) {
    .pstb-logic-box { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .pstb-logic-box { grid-template-columns: 1fr; }
}

.pstb-mandatory-section { border-top-color: #c7d9e6; }
.pstb-mandatory-layers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.pstb-mandatory-layers > div { border: 1px solid var(--pstb-border); border-radius: 7px; padding: 12px; background: #fff; min-width: 0; }
.pstb-mandatory-layers span, .pstb-mandatory-layers small { display: block; color: var(--pstb-muted); font-size: 13px; }
.pstb-mandatory-layers strong { display: block; margin: 3px 0; font-size: 18px; color: var(--pstb-text); }
@media (max-width: 620px) { .pstb-mandatory-layers { grid-template-columns: 1fr; } }

/* v1.3 - calculation mode and actual deposits */
.pstb-calculator [hidden] { display: none !important; }
.pstb-mode-fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.pstb-mode-fieldset > legend { display: block; font-weight: 700; margin-bottom: 8px; color: var(--pstb-text); }
.pstb-mode-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.pstb-mode-switch label { position: relative; display: block; min-width: 0; cursor: pointer; }
.pstb-mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pstb-mode-switch span { display: block; min-height: 70px; border: 1px solid var(--pstb-border); border-radius: 8px; padding: 11px 14px; background: #fff; transition: border-color .15s ease, background .15s ease; }
.pstb-mode-switch strong, .pstb-mode-switch small { display: block; }
.pstb-mode-switch strong { font-size: 16px; color: var(--pstb-text); }
.pstb-mode-switch small { margin-top: 3px; color: var(--pstb-muted); font-size: 13px; }
.pstb-mode-switch input:checked + span { border: 2px solid var(--pstb-blue); background: var(--pstb-light); padding: 10px 13px; }
.pstb-mode-switch input:focus-visible + span { outline: 3px solid rgba(23,105,170,.18); outline-offset: 2px; }
.pstb-actual-fields { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--pstb-border); }
.pstb-opportunity-section { border-top-color: #b9d9ca; }
@media (max-width: 620px) {
    .pstb-mode-switch { grid-template-columns: 1fr; }
}
