.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* Card */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

/* Left panel */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

/* Right panel */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

/* Input wrap */
.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.toggle-group {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    min-width: 60px;
    padding: 9px 10px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.toggle-btn+.toggle-btn {
    border-left: 1px solid #ccc;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.toggle-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* select */
.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* Calc button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* Results */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

/* Breakdown table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
    background: #555;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tr.current-row td:nth-child(2) {
    background: #3b82f6;
    color: #fff;
    font-weight: 700;
}

.breakdown-table tr.raise-row td:nth-child(3) {
    background: #3a9e3a;
    color: #fff;
    font-weight: 700;
}

.breakdown-table tr.new-row td:nth-child(4) {
    background: #555;
    color: #fff;
    font-weight: 700;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

/* ── Page wrapper ── */
.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* ── Tab Buttons ── */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    background: #555;
    color: #fff;
    display: inline-block;
}

.calc-tab-btn.active {
    background: #007bff;
    color: #fff;
}

.tah-rate-btn,
.ot-rate-btn {
    flex: 1;
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

/* ── Calculator outer card ── */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
    width: 100%;
}

/* ── Inner white box ── */
.calculator-inner {
    background: transparent;
    padding: 0;
    max-width: none;
}

/* ── Currency ── */
.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    min-width: 42px;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: #007bff;
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* ── Input rows ── */
.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

/* Right panel */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

/* ── Calculate Button ── */
.calc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    width: 100%;
}

.calc-btn:hover {
    background: #007bff;
}

/* ── Results ── */
.calc-results {
    margin-top: 30px;
}

.calc-results-title {
    font-size: 22px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 14px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.result-cell {
    background: #fff;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.result-cell:nth-child(even) {
    border-right: none;
}

.result-cell.full {
    grid-column: 1 / -1;
    border-right: none;
}

.result-cell:last-child {
    border-bottom: none;
}

.result-cell.full:last-child {
    border-bottom: none;
}

.ri-blue {
    font-size: 34px;
    color: #4a90d9;
}

.ri-orange {
    font-size: 34px;
    color: #e8a020;
}

.ri-green {
    font-size: 34px;
    color: #3a9e3a;
}

.result-lbl {
    font-size: 13px;
    color: #777;
    margin-bottom: 2px;
}

.result-val {
    font-size: 21px;
    font-weight: 700;
    color: #1a1a1a;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 540px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-cell {
        border-right: none;
    }

    .result-cell.full {
        grid-column: 1;
    }
}

.basic-intro h2.text-dark.text-style-2 {
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 36px;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

.basic-intro {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.basic-intro p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.5;
}

.jwt-wrap:first-of-type {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 20px;
    }
}

.jwt-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 12px 30px;
}

.basic-intro {
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.shock-section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.jwt-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    padding: 12px 14px;
    margin-bottom: 0;
}

.jwt-panels {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.jwt-left-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-right-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.jwd-textarea {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    background: #fff;
    color: #333;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: border-color .2s;
}

.jwd-textarea:focus {
    border-color: #2563eb;
}

.jwd-output-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: #222;
    min-height: 80px;
    white-space: pre-wrap;
}

.jwd-key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jwd-key-format-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #555;
    font-weight: 600;
}

.jwd-key-format-toggle label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.jwt-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.jwt-copy-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all .2s;
}

.jwt-copy-btn:hover {
    background: #f4f7ff;
    border-color: #2563eb;
    color: #2563eb;
}

.jwt-sample-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    height: 30px;
    line-height: 1;
}

.jwt-sample-btn:hover {
    opacity: .88;
}

.jwt-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.jwt-generate-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.jwt-generate-btn:hover {
    opacity: .88;
}

.jwt-clear-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.jwt-clear-btn:hover {
    background: #e5e7eb;
}

.jwd-error-box {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    display: none;
}

.jwd-success-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #16a34a;
    display: none;
}

.jwt-card-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.jwt-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 4px 0;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

@media(max-width:767px) {
    .jwt-panels {
        flex-direction: column;
        gap: 20px;
    }
}

.basic-intro h2.text-dark.text-style-2 {
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 36px;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

.basic-intro {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.basic-intro p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.5;
}

.jwt-wrap:first-of-type {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 20px;
    }
}

.jwt-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 12px 30px;
}

.basic-intro {
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.shock-section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.jwt-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    padding: 12px 14px;
    margin-bottom: 0;
}

.jwt-panels {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.jwt-left-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-right-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.jwe-textarea {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    background: #fff;
    color: #333;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: border-color .2s;
}

.jwe-textarea:focus {
    border-color: #2563eb;
}

.jwe-output-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: #222;
    min-height: 300px;
    white-space: pre-wrap;
    flex: 1;
}

.jwe-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jwe-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jwe-field-group label .info-icon {
    color: #9ca3af;
    font-size: 11px;
    cursor: help;
}

.jwe-select {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    background: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
}

.jwe-select:focus {
    border-color: #2563eb;
}

.jwe-field-row {
    display: flex;
    gap: 12px;
}

.jwe-field-row .jwe-field-group {
    flex: 1;
}

.jwe-key-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jwe-key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jwe-key-format-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #555;
}

.jwe-key-format-toggle label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: 600;
}

.jwt-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.jwt-copy-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all .2s;
}

.jwt-copy-btn:hover {
    background: #f4f7ff;
    border-color: #2563eb;
    color: #2563eb;
}

.jwt-sample-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    height: 30px;
    line-height: 1;
}

.jwt-sample-btn:hover {
    opacity: .88;
}

.jwt-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.jwt-generate-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.jwt-generate-btn:hover {
    opacity: .88;
}

.jwt-clear-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.jwt-clear-btn:hover {
    background: #e5e7eb;
}

.jwe-error-box {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    display: none;
}

.jwe-success-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #16a34a;
    display: none;
}

.jwt-card-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

@media(max-width:767px) {
    .jwt-panels {
        flex-direction: column;
        gap: 20px;
    }

    .jwe-field-row {
        flex-direction: column;
    }
}

.basic-intro h2.text-dark.text-style-2 {
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 36px;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

.basic-intro {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.basic-intro p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.5;
}

.jwt-wrap:first-of-type {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 20px;
    }
}

.jwt-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 12px 30px;
}

.basic-intro {
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.shock-section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.jwt-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    padding: 12px 14px;
    margin-bottom: 0;
}

/* TABS */
.jwk-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 14px;
}

.jwk-tab {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.jwk-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.jwk-tab:hover {
    color: #2563eb;
}

.jwk-tab-content {
    display: none;
}

.jwk-tab-content.active {
    display: block;
}

/* PANELS */
.jwt-panels {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.jwt-left-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-right-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.jwk-textarea {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    background: #fff;
    color: #333;
    outline: none;
    resize: vertical;
    min-height: 160px;
    transition: border-color .2s;
}

.jwk-textarea:focus {
    border-color: #2563eb;
}

.jwk-output-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: #222;
    min-height: 160px;
    white-space: pre-wrap;
}

.jwk-field-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.jwk-field-group {
    flex: 1;
    min-width: 160px;
}

.jwk-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 4px;
}

.jwk-input {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color .2s;
}

.jwk-input:focus {
    border-color: #2563eb;
}

.jwk-select {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    background: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
}

.jwk-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.jwt-copy-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all .2s;
}

.jwt-copy-btn:hover {
    background: #f4f7ff;
    border-color: #2563eb;
    color: #2563eb;
}

.jwt-sample-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    height: 30px;
    line-height: 1;
}

.jwt-sample-btn:hover {
    opacity: .88;
}

.jwt-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.jwt-generate-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.jwt-generate-btn:hover {
    opacity: .88;
}

.jwt-clear-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.jwt-clear-btn:hover {
    background: #e5e7eb;
}

.jwk-error-box {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-top: 6px;
    display: none;
}

.jwk-success-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #16a34a;
    margin-top: 6px;
    display: none;
}

/* Generate new key - two output boxes */
.jwk-key-pair {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.jwt-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 4px 0;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

@media(max-width:767px) {
    .jwt-panels {
        flex-direction: column;
        gap: 20px;
    }

    .jwk-field-row {
        flex-direction: column;
    }
}

.basic-intro h2.text-dark.text-style-2 {
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 36px;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

.basic-intro {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.basic-intro p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.5;
}

.jwt-wrap:first-of-type {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 20px;
    }
}

.jwt-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 12px 30px;
}

.basic-intro {
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.shock-section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}


.jwt-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    padding: 12px 14px 12px;
    margin-bottom: 0;
}


.jwt-card-labels {
    display: flex;
    gap: 16px;
    margin-bottom: 2px;
}

.jwt-card-label-left {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.jwt-card-label-right {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jwt-card-label-right span {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}


.jwt-panels {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.jwt-left-panel,
.jwt-right-panel {
    flex: 1;
}

.jwt-left-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}


.jwt-left-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.jwt-left-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.jwt-left-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jwt-right-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-textarea {
    width: 100%;
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    background: transparent;
    color: #333;
    outline: none;
    resize: vertical;
    min-height: 180px;
}

/* Status badge */
.jwt-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1.5px solid;
    display: none;
}

.jwt-status-badge.valid {
    color: #1a9e8f;
    border-color: #1a9e8f;
    background: #f0fdf4;
}

.jwt-status-badge.invalid {
    color: #dc3545;
    border-color: #dc3545;
    background: #fff5f5;
}

/* Copy button inside grey panel */
.jwt-input-copy-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity .2s;
}

.jwt-input-copy-btn:hover {
    opacity: 0.88;
}

/* Sample Data button */
.jwt-sample-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    height: 30px;
    line-height: 1;
}

.jwt-sample-btn:hover {
    opacity: 0.88;
}

/* Output boxes  */
.jwt-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.jwt-output-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.jwt-copy-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all .2s;
}

.jwt-copy-btn:hover {
    background: #f4f7ff;
    border-color: #2563eb;
    color: #2563eb;
}

.jwt-output-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: #222;
    min-height: 70px;
    white-space: pre-wrap;
}


.jwt-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 4px 0;
}

/* Signature section */
.jwt-sig-section {
    background: transparent;
    border: none;
    padding: 0;
}

.jwt-sig-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.jwt-sig-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.jwt-sig-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1.5px solid;
    display: none;
}

.jwt-sig-badge.valid {
    color: #1a9e8f;
    border-color: #1a9e8f;
    background: #f0fdf4;
}

.jwt-sig-badge.invalid {
    color: #dc3545;
    border-color: #dc3545;
    background: #fff5f5;
}

.jwt-secret-textarea {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    background: #fff;
    color: #333;
    outline: none;
    resize: vertical;
    min-height: 70px;
    transition: border-color .2s;
}

.jwt-secret-textarea:focus {
    border-color: #2563eb;
}

.jwt-sig-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.jwt-algo-info {
    font-size: 13px;
    color: #555;
}

.jwt-algo-info span {
    font-weight: 700;
    color: #111;
}

.jwt-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.jwt-generate-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.jwt-generate-btn:hover {
    opacity: 0.88;
}

.jwt-clear-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.jwt-clear-btn:hover {
    background: #e5e7eb;
}

/* Error box */
.jwt-error-box {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-top: 10px;
    display: none;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 767px) {
    .jwt-panels {
        flex-direction: column;
        gap: 20px;
    }

    .jwt-card {
        padding: 18px 14px;
    }

    .jwt-left-panel,
    .jwt-right-panel {
        padding: 16px;
    }

    .jwt-textarea {
        min-height: 160px;
    }

    .jwt-card-labels {
        flex-direction: column;
        gap: 8px;
    }
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.basic-intro h2.text-dark.text-style-2 {
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 36px;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

.basic-intro {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.basic-intro p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.5;
}

.jwt-wrap:first-of-type {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 20px;
    }
}

.jwt-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 12px 30px;
}

.basic-intro {
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.shock-section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.jwt-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    padding: 12px 14px 12px;
    margin-bottom: 0;
}

.jwt-panels {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.jwt-left-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-right-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.jwt-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.jwt-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1.5px solid;
    display: none;
}

.jwt-status-badge.valid {
    color: #1a9e8f;
    border-color: #1a9e8f;
    background: #f0fdf4;
}

.jwt-status-badge.invalid {
    color: #dc3545;
    border-color: #dc3545;
    background: #fff5f5;
}

.jwt-textarea {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    background: #fff;
    color: #333;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: border-color .2s;
}

.jwt-textarea:focus {
    border-color: #2563eb;
}

.jwt-secret-textarea {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    background: #fff;
    color: #333;
    outline: none;
    resize: vertical;
    min-height: 70px;
    transition: border-color .2s;
}

.jwt-secret-textarea:focus {
    border-color: #2563eb;
}

.jwt-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 4px 0;
}

.jwt-output-box {
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: #2563eb;
    min-height: 120px;
    white-space: pre-wrap;
}

.jwt-copy-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all .2s;
}

.jwt-copy-btn:hover {
    background: #f4f7ff;
    border-color: #2563eb;
    color: #2563eb;
}

.jwt-sample-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    height: 30px;
    line-height: 1;
}

.jwt-sample-btn:hover {
    opacity: 0.88;
}

.jwt-algo-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: #374151;
    outline: none;
    cursor: pointer;
    height: 28px;
}

.jwt-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.jwt-generate-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.jwt-generate-btn:hover {
    opacity: 0.88;
}

.jwt-clear-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.jwt-clear-btn:hover {
    background: #e5e7eb;
}

.jwt-error-box {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-top: 6px;
    display: none;
}

.jwt-algo-info {
    font-size: 13px;
    color: #555;
    margin-top: 6px;
}

.jwt-algo-info span {
    font-weight: 700;
    color: #111;
}

@media (max-width: 767px) {
    .jwt-panels {
        flex-direction: column;
        gap: 20px;
    }

    .jwt-card {
        padding: 18px 14px;
    }
}

.basic-intro h2.text-dark.text-style-2 {
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 36px;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

.basic-intro {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.basic-intro p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.5;
}

.jwt-wrap:first-of-type {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 20px;
    }
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.jwt-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 12px 30px;
}

.basic-intro {
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.shock-section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.jwt-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    padding: 12px 14px;
    margin-bottom: 0;
}

.jwt-panels {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.jwt-left-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-right-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.lpg-input {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color .2s;
}

.lpg-input:focus {
    border-color: #2563eb;
}

.lpg-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lpg-field label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.lpg-hint {
    font-size: 11.5px;
    color: #888;
    margin-top: 3px;
}

.lpg-output-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 14px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: #222;
    min-height: 60px;
    white-space: pre-wrap;
}

.jwt-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.jwt-copy-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all .2s;
}

.jwt-copy-btn:hover {
    background: #f4f7ff;
    border-color: #2563eb;
    color: #2563eb;
}

.jwt-sample-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    height: 30px;
    line-height: 1;
}

.jwt-sample-btn:hover {
    opacity: .88;
}

.jwt-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.jwt-generate-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jwt-generate-btn:hover {
    opacity: .88;
}

.jwt-generate-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.jwt-clear-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.jwt-clear-btn:hover {
    background: #e5e7eb;
}

.jwt-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 4px 0;
}

.jwt-card-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lpg-verify-badge {
    display: none;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    border: 2px solid;
}

.lpg-verify-badge.match {
    color: #16a34a;
    border-color: #16a34a;
    background: #f0fdf4;
}

.lpg-verify-badge.no-match {
    color: #dc2626;
    border-color: #dc2626;
    background: #fff5f5;
}

.lpg-verify-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.lpg-verify-btn:hover {
    opacity: .88;
}

.lpg-verify-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.lpg-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.lpg-privacy-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media(max-width:767px) {
    .jwt-panels {
        flex-direction: column;
        gap: 20px;
    }
}

.basic-intro h2.text-dark.text-style-2 {
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 36px;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

.basic-intro {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.basic-intro p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.5;
}

.jwt-wrap:first-of-type {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .basic-intro h2.text-dark.text-style-2 {
        font-size: 20px;
    }
}

.jwt-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 12px 30px;
}

.basic-intro {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.shock-section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.jwt-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    padding: 12px 14px;
    margin-bottom: 0;
}

.jwt-panels {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.jwt-left-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fjg-columns-row {
    display: flex;
    gap: 20px;
}

@media(max-width:480px) {
    .fjg-columns-row {
        flex-direction: column;
    }
}

.jwt-right-panel {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.fjg-input {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color .2s;
}

.fjg-input:focus {
    border-color: #2563eb;
}

.fjg-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fjg-field label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.fjg-input-error {
    border-color: #dc3545 !important;
}

.fjg-checkbox-group {
    margin-top: 4px;
}

.fjg-checkbox-group-title {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    margin-bottom: 6px;
    margin-top: 10px;
    display: block;
}

.fjg-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #333;
    padding: 4px 0;
    cursor: pointer;
}

.fjg-checkbox-item input {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.jwd-output-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: #222;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.jwt-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.jwt-copy-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all .2s;
}

.jwt-copy-btn:hover {
    background: #f4f7ff;
    border-color: #2563eb;
    color: #2563eb;
}

.jwt-sample-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    height: 30px;
    line-height: 1;
}

.jwt-sample-btn:hover {
    opacity: .88;
}

.jwt-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.jwt-generate-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.jwt-generate-btn:hover {
    opacity: .88;
}

.jwt-clear-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.jwt-clear-btn:hover {
    background: #e5e7eb;
}

.jwt-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 8px 0;
}

.jwt-card-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

@media(max-width:767px) {
    .jwt-panels {
        flex-direction: column;
        gap: 20px;
    }
}

/* ===== PAGE ===== */
.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* ===== TOP TABS ===== */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

/* ===== MAIN CARD ===== */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-split {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* ===== LEFT PANEL ===== */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
    display: block;
}

.calc-field {
    margin-bottom: 16px;
}

/* Currency */
.currency-group {
    display: flex;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 0;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Input wrap */
.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.calc-prefix {
    padding: 0 11px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 34px;
    justify-content: center;
}

.calc-suffix {
    padding: 0 11px;
    background: #f0f0f0;
    border-left: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 9px;
    font-size: 9px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

/* Period row */
.period-row {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.period-row .calc-field {
    flex: 1;
    margin-bottom: 0;
}

/* Date */
.calc-date {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
}

/* Optional box */
.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 14px;
}

/* Balloon toggle */
.balloon-toggle {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.balloon-toggle button {
    flex: 1;
    padding: 8px 0;
    border: none;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: background 0.15s, color 0.15s;
}

.balloon-toggle button.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.balloon-toggle button:first-child {
    border-right: 1px solid #ccc;
}

/* Select */
.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    width: 100%;
    color: #333;
}

/* Calc button */
.calc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    width: 100%;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* ===== RIGHT PANEL ===== */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.results-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    color: #bbb;
    font-size: 15px;
}

/* ===== LOAN SUMMARY ===== */
.loan-summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    padding: 18px 20px 14px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
    margin: 0 0 4px;
}

.summary-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}

.s-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 17px;
    flex-shrink: 0;
}

.s-icon.green {
    border-color: #27ae60;
    color: #27ae60;
}

.s-icon.orange {
    border-color: #e67e22;
    color: #e67e22;
}

.s-lbl {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
    line-height: 1.3;
}

.s-val {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.s-val.blue {
    color: #007bff;
}

.s-val.orange {
    color: #e67e22;
}

.s-val.green {
    color: #27ae60;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 12px;
    margin-left: 4px;
    vertical-align: middle;
}

.copy-btn:hover {
    color: #555;
}

/* Savings note */
.savings-note {
    background: #fef9e7;
    border: 1px solid #f9e79f;
    border-radius: 0;
    padding: 10px 16px;
    font-size: 12.5px;
    color: #7d6608;
    margin: 0;
}

/* ===== AMORT / CHARTS TABS ===== */
.view-tabs {
    display: flex;
    gap: 0;
    padding: 14px 16px 0;
}

.view-tab {
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
    color: #555;
}

.view-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.view-tab:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.view-tab.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

/* ===== SCHEDULE SECTION ===== */
.schedule-section {
    padding: 14px 16px 0;
}

.schedule-title {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 12px;
}

/* Monthly / Yearly breakdown toggle */
.breakdown-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
}

.breakdown-tab {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #f0f0f0;
    color: #555;
}

.breakdown-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.breakdown-tab:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.breakdown-tab.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

/* Schedule table */
.schedule-wrap {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

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

.sched-table thead th {
    padding: 9px 12px;
    text-align: left;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
}

.sched-table thead th.th-month {
    background: #555;
}

.sched-table thead th.th-payment {
    background: #555;
}

.sched-table thead th.th-principal {
    background: #27ae60;
}

.sched-table thead th.th-interest {
    background: #e67e22;
}

.sched-table thead th.th-balance {
    background: #3b82f6;
}

.sched-table tbody td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sched-table tbody tr:hover td {
    background: #fafafa;
}

/* Year total row */
.sched-table tbody tr.yr-total td {
    background: #d6eaf8;
    color: #1a5276;
    font-weight: 700;
}

/* Balloon row */
.sched-table tbody tr.balloon-row td {
    color: #e67e22;
    font-style: italic;
}

/* Dash row (first row) */
.sched-table tbody tr.dash-row td {
    color: #aaa;
    text-align: right;
}

.sched-table tbody tr.dash-row td:first-child {
    text-align: left;
    color: #333;
}

/* Final total */
.sched-table tfoot td {
    padding: 9px 12px;
    font-weight: 700;
    background: #555;
    color: #fff;
    position: sticky;
    bottom: 0;
}

.sched-table tfoot td.td-principal {
    background: #27ae60;
}

.sched-table tfoot td.td-interest {
    background: #e67e22;
}

.sched-table tfoot td.td-balance {
    background: #3b82f6;
}

.schedule-note {
    font-size: 11px;
    color: #aaa;
    padding: 8px 0 4px;
}

/* ===== CHART ===== */
.chart-section {
    padding: 14px 16px 16px;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-align: center;
    margin-bottom: 10px;
}

.chart-box {
    position: relative;
    height: 260px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 8px;
    font-size: 12px;
    color: #555;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}


@media (max-width: 768px) {
    .calc-split {
        flex-direction: column;
    }

    .calc-left {
        max-width: 100%;
    }

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

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-input-wrap.error {
    border-color: #dc3545;
}

.error-msg {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-msg.show {
    display: block;
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* Tabs */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

/* Card */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

/* Left panel */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

/* Right panel */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

/* Currency */
.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Input wrap */
.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

/* Grey optional box */
.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Calc button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* Results */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat {
    margin-bottom: 12px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.result-stat .val {
    font-size: 26px;
    font-weight: 700;
    color: #007bff;
}

.result-stat .val.green {
    color: #3a9e3a;
}

.result-stat .val.blue-dark {
    color: #1d3557;
}

.result-stat .val.gray {
    color: #aaa;
    font-size: 22px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

/* Breakdown table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
}

.breakdown-table th:nth-child(1) {
    background: #555;
}

.breakdown-table th:nth-child(2) {
    background: #555;
}

.breakdown-table th:nth-child(3) {
    background: #e8a020;
}

.breakdown-table th:nth-child(4) {
    background: #3a9e3a;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tr:last-child td {
    font-weight: 700;
    background: #f8f9fa;
}

/* select */
.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* small years/months row */
.period-row {
    display: flex;
    gap: 10px;
}

.period-row .calc-field {
    flex: 1;
}

/* APR -> APY row */
.apr-apy-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.apr-apy-row .calc-field {
    flex: 1;
    margin-bottom: 0;
}

.apr-apy-arrow {
    font-size: 18px;
    color: #888;
    padding-top: 22px;
}

.apy-help-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    color: #888;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 22px;
    flex-shrink: 0;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}


@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }

    .apr-apy-row {
        flex-wrap: wrap;
    }
}

.calc-page-wrapper {
    max-width: 1340px;
    margin: 24px auto;
    padding: 0 32px 60px;
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-split {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

/* Right panel */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 6px;
}

.calc-field {
    margin-bottom: 16px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.currency-group {
    display: flex;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.period-row {
    display: flex;
    gap: 10px;
}

.period-row .calc-field {
    flex: 1;
}

.err-msg {
    color: #e24b4a;
    font-size: 12px;
    margin-top: 4px;
}

/* Toggle buttons */
.toggle-btn-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    color: #555;
    transition: background 0.15s;
    white-space: nowrap;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.toggle-btn:hover:not(.active) {
    background: #f5f5f5;
}

.freq-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 10px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* Summary grid */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.summary-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.summary-cell:nth-child(even) {
    border-right: none;
}

.summary-cell:nth-last-child(-n+2) {
    border-bottom: none;
}

.summary-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.summary-icon.blue {
    background: #e8f0fe;
    color: #1a73e8;
}

.summary-icon.orange {
    background: #fff3e0;
    color: #e07b20;
}

.summary-icon.gray {
    background: #f0f0f0;
    color: #555;
}

.summary-icon.green {
    background: #e8f5e9;
    color: #3a9e3a;
}

.summary-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

.summary-value {
    font-size: 17px;
    font-weight: 700;
}

.summary-value.blue {
    color: #1a73e8;
}

.summary-value.orange {
    color: #e07b20;
}

.summary-value.dark {
    color: #1d3557;
}

.summary-value.green {
    color: #3a9e3a;
}

/* Schedule tabs */
.sched-tab {
    padding: 8px 20px;
    border: 1px solid #ccc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: #555;
    border-radius: 6px 6px 0 0;
    border-bottom: none;
    margin-right: 12px;
    transition: background 0.15s;
}

.sched-tab.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.sched-tab:hover:not(.active) {
    background: #f5f5f5;
}

/* Schedule table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.schedule-table th {
    padding: 10px 12px;
    text-align: left;
    background: #555;
    color: #fff;
}

.schedule-table th:nth-child(3) {
    background: #3a9e3a;
}

.schedule-table th:nth-child(4) {
    background: #e07b20;
}

.schedule-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.schedule-table tr.year-row td {
    background: #fff8f0;
    font-weight: 700;
    color: #e07b20;
}

.schedule-table tr.final-row td {
    background: #333;
    color: #fff;
    font-weight: 700;
}

.schedule-table tr.final-row td:nth-child(3) {
    background: #2e832e;
}

.schedule-table tr.final-row td:nth-child(4) {
    background: #c06010;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 900px) {
    .calc-split {
        flex-direction: column;
    }

    .calc-left {
        width: 100%;
        min-width: unset;
    }

    .calc-page-wrapper {
        padding: 0 14px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1340px;
    margin: 24px auto;
    padding: 0 32px 60px;
}


.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-split {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 6px;
}

.calc-field {
    margin-bottom: 16px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

#cagr-results-area table thead tr {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff !important;
}

#cagr-results-area table thead th {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff !important;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.currency-group {
    display: flex;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.period-row {
    display: flex;
    gap: 10px;
}

.period-row .calc-field {
    flex: 1;
}

.date-row {
    display: flex;
    gap: 10px;
}

.date-row .calc-field {
    flex: 1;
}

.today-link {
    font-size: 12px;
    color: #007bff;
    cursor: pointer;
    margin-left: 8px;
    text-decoration: underline;
}

.err-msg {
    color: #e24b4a;
    font-size: 12px;
    margin-top: 4px;
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.cagr-mode-panel {
    display: none;
}

.cagr-mode-panel.active {
    display: block;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 900px) {
    .calc-split {
        flex-direction: column;
    }

    .calc-left {
        width: 100%;
        min-width: unset;
    }

    .calc-page-wrapper {
        padding: 0 14px 40px;
    }
}

/* ── Page wrapper — same max-width as Compound page ── */
.calc-page-wrapper {
    max-width: 1340px;
    margin: 24px auto;
    padding: 0 32px 60px;
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

/* ── Main card ── */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-split {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}


.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 6px;
}

.calc-field {
    margin-bottom: 16px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.currency-group {
    display: flex;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.period-row {
    display: flex;
    gap: 10px;
}

.period-row .calc-field {
    flex: 1;
}

.err-msg {
    color: #e24b4a;
    font-size: 12px;
    margin-top: 4px;
}

/* ── Results in right panel ── */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

/* ── Schedule section (below card, always visible after calc) ── */
#car-charts-section {
    margin-top: 24px;
}

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

.schedule-table th {
    padding: 10px 12px;
    text-align: left;
    background: #555;
    color: #fff;
}

.schedule-table th:nth-child(3) {
    background: #3a9e3a;
}

.schedule-table th:nth-child(4) {
    background: #e8a020;
}

.schedule-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.schedule-table tr.year-row td {
    background: #f0f4ff;
    font-weight: 700;
    color: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* ── Ad placeholder ── */
.ad-placeholder {
    margin-top: 28px;
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 900px) {
    .calc-split {
        flex-direction: column;
    }

    .calc-left {
        width: 100%;
        min-width: unset;
    }

    .calc-page-wrapper {
        padding: 0 14px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 350px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix,
.calc-suffix {
    padding: 0 12px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 32px;
    justify-content: center;
}

.calc-prefix {
    border-right: 1px solid #ccc;
}

.calc-suffix {
    border-left: 1px solid #ccc;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

.summary-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: #444;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.summary-row span:first-child {
    color: #888;
}

.summary-row span:last-child {
    font-weight: 600;
    color: #222;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}


.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* Tabs */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

/* Card */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

/* Left panel */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

/* Right panel */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

/* Currency */
.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Input wrap */
.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.toggle-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    padding: 8px 14px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.toggle-btn+.toggle-btn {
    border-left: 1px solid #ccc;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.toggle-btn:hover:not(.active) {
    background: #f0f0f0;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 14px;
}

.option-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
    white-space: nowrap;
}

.option-btn:last-child {
    border-right: none;
}

.option-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.option-btn:hover:not(.active) {
    background: #f0f0f0;
}

.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Calc button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* Results */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat {
    margin-bottom: 12px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.result-stat .val {
    font-size: 26px;
    font-weight: 700;
    color: #007bff;
}

.result-stat .val.green {
    color: #3a9e3a;
}

.result-stat .val.blue-dark {
    color: #1d3557;
}

.result-stat .val.gray {
    color: #aaa;
    font-size: 22px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

/* Breakdown table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
}

.breakdown-table th:nth-child(1) {
    background: #555;
}

.breakdown-table th:nth-child(2) {
    background: #555;
}

.breakdown-table th:nth-child(3) {
    background: #e8a020;
}

.breakdown-table th:nth-child(4) {
    background: #3a9e3a;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tr:last-child td {
    font-weight: 700;
    background: #f8f9fa;
}

.breakdown-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.breakdown-tab {
    padding: 5px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

.breakdown-tab.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;

}

/* select */
.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.period-row {
    display: flex;
    gap: 10px;
}

.period-row .calc-field {
    flex: 1;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1340px;
    margin: 24px auto;
    padding: 0 32px 60px;
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-split {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 6px;
}

.calc-field {
    margin-bottom: 16px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.err-msg {
    color: #e24b4a;
    font-size: 12px;
    margin-top: 4px;
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.cc-mode-panel {
    display: none;
}

.cc-mode-panel.active {
    display: block;
}

/* Results table */
.cc-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cc-results-table tr td {
    padding: 10px 14px;
    border-bottom: 1px solid #e8e8e8;
    color: #222;
}

.cc-results-table tr:first-child td {
    font-weight: 700;
    font-size: 15px;
    background: #f0f4ff;
}

.cc-results-table tr td:first-child {
    font-weight: 500;
    color: #444;
    width: 60%;
}

.amend-link {
    color: linear-gradient(135deg, #3b82f6, #06b6d4);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 12px;
    display: inline-block;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 900px) {
    .calc-split {
        flex-direction: column;
    }

    .calc-left {
        width: 100%;
        min-width: unset;
    }

    .calc-page-wrapper {
        padding: 0 14px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* Tabs */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

/* Card */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

/* Left panel */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

/* Right panel */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

/* Currency */
.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Input wrap */
.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

/* select */
.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.period-row {
    display: flex;
    gap: 10px;
}

.period-field {
    flex: 1;
}

.period-field label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.period-input-box {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.period-input-box input {
    border: none;
    outline: none;
    padding: 8px 6px;
    font-size: 14px;
    text-align: center;
    background: #fff;
    flex: 1;
    min-width: 0;
}

.period-input-box input::-webkit-outer-spin-button,
.period-input-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.period-input-box input[type=number] {
    -moz-appearance: textfield;
}

.period-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.period-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 8px;
    font-size: 9px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.period-spinners button:hover {
    background: #e8e8e8;
}

.period-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

/* Toggle (Yes/No) */
.toggle-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    padding: 8px 14px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.toggle-btn+.toggle-btn {
    border-left: 1px solid #ccc;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.toggle-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* Days of week buttons */
.days-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.day-btn {
    flex: 1;
    padding: 8px 4px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
    text-align: center;
}

.day-btn:last-child {
    border-right: none;
}

.day-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.day-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* Contributions */
.contrib-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 14px;
}

.contrib-btn {
    flex: 1;
    padding: 9px 10px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
}

.contrib-btn:last-child {
    border-right: none;
}

.contrib-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.contrib-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* Date input */
.date-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.date-input-wrap input[type="date"] {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 14px;
    flex: 1;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.date-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    padding-right: 8px;
}

/* Calc button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* optional box */
.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

/* help icon */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    color: #888;
    font-size: 11px;
    cursor: help;
    margin-left: 4px;
    vertical-align: middle;
}

/* Results */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

/* Breakdown table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
}

.breakdown-table th:nth-child(1) {
    background: #4a90d9;
}

.breakdown-table th:nth-child(2) {
    background: #555;
}

.breakdown-table th:nth-child(3) {
    background: #e8a020;
}

.breakdown-table th:nth-child(4) {
    background: #3a9e3a;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tr.total-row td {
    font-weight: 700;
    background: #fffbe6;
}

.breakdown-table tr.final-row td:nth-child(1) {
    background: #555;
    color: #fff;
    font-weight: 700;
}

.breakdown-table tr.final-row td:nth-child(2) {
    background: #555;
    color: #fff;
    font-weight: 700;
}

.breakdown-table tr.final-row td:nth-child(3) {
    background: #e8a020;
    color: #fff;
    font-weight: 700;
}

.breakdown-table tr.final-row td:nth-child(4) {
    background: #3a9e3a;
    color: #fff;
    font-weight: 700;
}

.breakdown-tabs {
    display: inline-flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.breakdown-tab {
    padding: 5px 12px;
    border: none;
    border-right: 1px solid #ccc;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

.breakdown-tab:last-child {
    border-right: none;
}

.breakdown-tab.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }

    .period-row {
        flex-wrap: wrap;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 6px;
}

/* Currency */
.currency-group {
    display: flex;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

.calc-field {
    margin-bottom: 16px;
}

/* Input wrap — normal and error state */
.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
    transition: border-color 0.15s;
}

.calc-input-wrap.error {
    border-color: #dc3545;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.calc-select.error {
    border-color: #dc3545;
}

/* Error text */
.field-error {
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
    display: none;
}

.field-error.show {
    display: block;
}

/* Years / Months row */
.period-row {
    display: flex;
    gap: 12px;
}

.period-field {
    flex: 1;
}

.period-field label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.period-input-box {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s;
}

.period-input-box.error {
    border-color: #dc3545;
}

.period-input-box input {
    border: none;
    outline: none;
    padding: 8px 8px;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.period-input-box input::-webkit-outer-spin-button,
.period-input-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.period-input-box input[type=number] {
    -moz-appearance: textfield;
}

.period-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.period-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 8px;
    font-size: 9px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.period-spinners button:hover {
    background: #e8e8e8;
}

.period-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

/* Optional box */
.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 16px;
}

/* Calculate button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* Copy btn */
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
    vertical-align: middle;
}

.copy-btn:hover {
    color: #555;
}

/* Help icon */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    color: #888;
    font-size: 10px;
    cursor: help;
    margin-left: 4px;
    vertical-align: middle;
}

/* Results title */
.results-title {
    font-size: 22px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 18px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.stats-left {
    padding-right: 16px;
    border-right: 1px solid #eee;
}

.stats-right {
    padding-left: 16px;
}

.stat-block {
    margin-bottom: 14px;
}

.stat-lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.stat-val-big {
    font-size: 26px;
    font-weight: 700;
}

.stat-val-med {
    font-size: 20px;
    font-weight: 700;
}

.stat-val-sml {
    font-size: 18px;
    font-weight: 600;
}

.blue {
    color: #007bff;
}

.gray {
    color: #aaa;
}

.green {
    color: #3a9e3a;
}

/* Summary section */
.summary-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.summary-title {
    font-size: 16px;
    font-weight: 700;
    color: linear-gradient(135deg, #3b82f6, #06b6d4);
    margin-bottom: 10px;
}

.summary-row {
    display: flex;
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-key {
    font-weight: 600;
    color: #333;
    min-width: 130px;
}

.summary-val {
    color: #555;
}

/* Breakdown tabs */
.breakdown-tabs {
    display: inline-flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.breakdown-tab {
    padding: 5px 14px;
    border: none;
    border-right: 1px solid #ccc;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

.breakdown-tab:last-child {
    border-right: none;
}

.breakdown-tab.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

/* Breakdown table wrapper — scroll */
.breakdown-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 420px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-top: 8px;
}

/* Sticky header inside scroll */
.breakdown-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Breakdown table — 4 columns */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 0;
}

.breakdown-table th {
    padding: 9px 12px;
    text-align: left;
    color: #fff;
}

/* Col colors */
.breakdown-table th:nth-child(1) {
    background: #555;
}

.breakdown-table th:nth-child(2) {
    background: #555;
}

.breakdown-table th:nth-child(3) {
    background: #e8a020;
}

.breakdown-table th:nth-child(4) {
    background: #3a9e3a;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}


.breakdown-table tr.year-end-row td {
    background: #fffbe6;
}

.breakdown-table tr.final-row td:nth-child(1) {
    background: #555;
    color: #fff;
    font-weight: 700;
}

.breakdown-table tr.final-row td:nth-child(2) {
    background: #555;
    color: #fff;
    font-weight: 700;
}

.breakdown-table tr.final-row td:nth-child(3) {
    background: #e8a020;
    color: #fff;
    font-weight: 700;
}

.breakdown-table tr.final-row td:nth-child(4) {
    background: #3a9e3a;
    color: #fff;
    font-weight: 700;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }

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

    .stats-left {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 12px;
    }

    .stats-right {
        padding-left: 0;
        padding-top: 12px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix,
.calc-suffix {
    padding: 0 12px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 32px;
    justify-content: center;
}

.calc-prefix {
    border-right: 1px solid #ccc;
}

.calc-suffix {
    border-left: 1px solid #ccc;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    width: 100%;
}

.period-row {
    display: flex;
    gap: 10px;
}

.period-row .calc-field {
    flex: 1;
}

.rate-row {
    display: flex;
    gap: 10px;
}

.rate-row .calc-field {
    flex: 1;
}

.calc-type-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.calc-type-btn {
    flex: 1;
    padding: 9px 10px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
    text-align: center;
    min-width: 60px;
}

.calc-type-btn:last-child {
    border-right: none;
}

.calc-type-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.calc-type-btn:hover:not(.active) {
    background: #f0f0f0;
}

.summary-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: #444;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.summary-row span:first-child {
    color: #888;
}

.summary-row span:last-child {
    font-weight: 600;
    color: #222;
}

.fv-table-wrap {
    margin-top: 22px;
    overflow-x: auto;
}

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

.fv-table th {
    background: #555;
    color: #fff;
    padding: 9px 10px;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

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

.fv-table td {
    padding: 8px 10px;
    text-align: right;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.fv-table .col-totaldep {
    background: #eaf3ff;
    color: #0069d9;
    font-weight: 600;
}

.fv-table .col-totalwd {
    background: #fff4e5;
    color: #b9750c;
    font-weight: 600;
}

.fv-table .col-interest {
    background: #fff4e5;
    color: #b9750c;
}

.fv-table .col-balance {
    background: #eafaf0;
    color: #2f8a4f;
    font-weight: 700;
}

.fv-table tr:last-child td {
    font-weight: 700;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }

    .rate-row {
        flex-direction: column;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

/* Currency buttons */
.currency-btn-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
    text-align: center;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* Input wrap */
.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

/* Deposit frequency select */
.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    width: 100%;
}

/* Calc button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    opacity: 0.92;
}

/* Results */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 20px;
}

.result-highlight-box {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.result-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-icon i {
    font-size: 22px;
    color: #555;
}

.result-main-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 2px;
}

.result-main-value {
    font-size: 28px;
    font-weight: 700;
    color: #e8630a;
}

.result-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.result-sub-cell {
    padding: 14px 16px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.result-sub-cell:nth-child(2n) {
    border-right: none;
}

.result-sub-cell:nth-last-child(-n+2) {
    border-bottom: none;
}

.result-sub-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.result-sub-value {
    font-size: 18px;
    font-weight: 700;
    color: #1d3557;
}

.result-sub-value.blue {
    color: #007bff;
}

.result-sub-value.gray {
    color: #888;
}

.result-goal-row {
    background: #555;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.result-goal-label {
    font-size: 13px;
    color: #ddd;
}

.result-goal-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }

    .result-sub-grid {
        grid-template-columns: 1fr;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* ── Tab buttons (top navigation) ── */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

/* ── Card ── */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

/* ── Left / Right panels ── */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}


.ir-mode-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ir-mode-btn {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
}

.ir-mode-btn:last-child {
    border-right: none;
}

.ir-mode-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.ir-mode-btn:hover:not(.active) {
    background: #f0f0f0;
}

/*  Sub-heading  */
.ir-sub-heading {
    font-size: 15px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 16px;
}

/*  Currency buttons  */
.currency-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 18px;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* ── Fields ── */
.calc-field {
    margin-bottom: 18px;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}


.option-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}

.option-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
}

.option-btn:last-child {
    border-right: none;
}

.option-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
    outline: none;
    border: none;
}

.option-btn:hover:not(.active) {
    background: #f0f0f0;
}

/*  Optional box  */
.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

/*  Calculate button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    width: 100%;
    justify-content: center;
    transition: opacity 0.2s;
}

.calc-btn:hover {
    opacity: 0.92;
}


.calc-date-input {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    width: 100%;
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat {
    margin-bottom: 14px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.result-stat .val {
    font-size: 28px;
    font-weight: 700;
    color: #007bff;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

.summary-table {
    font-size: 13px;
    color: #333;
    border-collapse: collapse;
}

.summary-table td {
    padding: 4px 16px 4px 0;
}

.summary-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}


@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.nom-apy-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.nom-apy-btn {
    flex: 1;
    padding: 7px 14px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}

.nom-apy-btn+.nom-apy-btn {
    border-left: 1px solid #ccc;
}

.nom-apy-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.nom-apy-btn:hover:not(.active) {
    background: #f0f0f0;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 14px;
}

.option-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
    white-space: nowrap;
}

.option-btn:last-child {
    border-right: none;
}

.option-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.option-btn:hover:not(.active) {
    background: #f0f0f0;
}

.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    opacity: 0.92;
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat {
    margin-bottom: 12px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.result-stat .val {
    font-size: 26px;
    font-weight: 700;
    color: #007bff;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tr:last-child td {
    font-weight: 700;
    background: #f8f9fa;
}

.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.period-row {
    display: flex;
    gap: 10px;
}

.period-row .calc-field {
    flex: 1;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: .3s;
}

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

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

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

.currency-btn {
    padding: 8px 14px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat {
    margin-bottom: 12px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.result-stat .val {
    font-size: 26px;
    font-weight: 700;
    color: #007bff;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.period-row {
    display: flex;
    gap: 10px;
}

.period-row .calc-field {
    flex: 1;
}

.cf-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.cf-row .cf-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    min-width: 52px;
}

.cf-row .calc-input-wrap {
    flex: 1;
}

.cf-toggle-btn {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.cf-toggle-btn:hover {
    background: #f0f0f0;
}

.cf-remove-btn {
    padding: 7px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #fff;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
}

.cf-remove-btn:hover {
    background: #ffe8e8;
    color: #e24b4a;
    border-color: #e24b4a;
}

.add-year-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #555;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.add-year-btn:hover {
    background: #444;
}

.calc-type-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 18px;
}

.calc-type-btn {
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
    text-align: center;
}

.calc-type-btn:last-child {
    border-right: none;
}

.calc-type-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.calc-type-btn:hover:not(.active) {
    background: #f0f0f0;
}

.multiple-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    width: 100%;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}


.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.toggle-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}

.toggle-btn {
    flex: 1;
    padding: 8px 14px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.toggle-btn+.toggle-btn {
    border-left: 1px solid #ccc;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

/* ── Regular amount result styles ── */
.results-title {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 14px;
}

.payoff-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.payoff-hero {
    background: #4caf50;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
}

.payoff-hero-icon {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.payoff-hero-txt .lbl {
    font-size: 12px;
    opacity: 0.85;
}

.payoff-hero-txt .val {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.payoff-stat-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-left: 1px solid #ddd;
}

.payoff-stat-cell:nth-child(n+3) {
    border-top: 1px solid #ddd;
}

.payoff-stat-cell .icon-circle {
    width: 38px;
    height: 38px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #888;
    flex-shrink: 0;
}

.payoff-stat-cell .lbl {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

.payoff-stat-cell .val {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.payoff-stat-cell .val.orange {
    color: #e07b00;
}

.payoff-stat-cell .val.red {
    color: #e53e3e;
}

.without-box {
    margin-bottom: 16px;
}

.without-title {
    font-size: 15px;
    font-weight: 700;
    color: #e07b00;
    margin-bottom: 6px;
}

.without-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.without-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.without-table th {
    padding: 7px 10px;
    color: #fff;
    font-weight: 600;
}

.without-table th:nth-child(1) {
    background: #777;
}

.without-table th:nth-child(2) {
    background: #007bff;
}

.without-table th:nth-child(3) {
    background: #e07b00;
}

.without-table th:nth-child(4) {
    background: #555;
}

.without-table td {
    padding: 7px 10px;
    border: 1px solid #eee;
    text-align: center;
}

.chart-section {
    margin-bottom: 16px;
}

.chart-title {
    font-size: 15px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 8px;
}

.chart-wrap {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
}

.year-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.year-table th {
    padding: 7px 10px;
    text-align: center;
}

.year-table th:nth-child(1) {
    background: #777;
    color: #fff;
}

.year-table th:nth-child(2) {
    background: #555;
    color: #fff;
}

.year-table th:nth-child(3) {
    background: #e07b00;
    color: #fff;
}

.year-table th:nth-child(4) {
    background: #4caf50;
    color: #fff;
}

.year-table th:nth-child(5) {
    background: #555;
    color: #fff;
}

.year-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.year-table tr.total-row td {
    font-weight: 700;
    background: #f0f0f0;
}

/* ── TIME MODE result styles (Loan Summary layout) ── */
.loan-summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.loan-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff;
}

.ls-cell {
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ls-cell:nth-child(odd) {
    border-right: 1px solid #eee;
}

.ls-cell:nth-last-child(-n+2) {
    border-bottom: none;
}

.ls-cell-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #888;
    flex-shrink: 0;
}

.ls-cell-lbl {
    font-size: 11px;
    color: #888;
    margin-bottom: 3px;
    line-height: 1.3;
}

.ls-cell-val {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.ls-cell-val.blue {
    color: #007bff;
}

.ls-cell-val.orange {
    color: #e07b00;
}

.ls-cell-val.red {
    color: #e53e3e;
}

.ls-cell-val.green {
    color: #4caf50;
}

/* Additional savings banner */
.addl-savings-banner {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
}

/* Monthly / Yearly breakdown buttons */
.amort-breakdown-btn {
    padding: 7px 18px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    border-radius: 0;
}

.amort-breakdown-btn:first-child {
    border-radius: 5px 0 0 5px;
}

.amort-breakdown-btn:last-child {
    border-radius: 0 5px 5px 0;
    border-left: none;
}

.amort-breakdown-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.amort-breakdown-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Amortization / Charts tab switcher */
.result-tab-bar {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
}

.result-tab-btn {
    padding: 9px 22px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
}

.result-tab-btn:first-child {
    border-radius: 5px 0 0 5px;
}

.result-tab-btn:last-child {
    border-radius: 0 5px 5px 0;
    border-left: none;
}

.result-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

/* Amortization table */
.amort-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.amort-table th {
    padding: 7px 10px;
    text-align: center;
    color: #fff;
}

.amort-table th:nth-child(1) {
    background: #777;
}

.amort-table th:nth-child(2) {
    background: #007bff;
}

.amort-table th:nth-child(3) {
    background: #e07b00;
}

.amort-table th:nth-child(4) {
    background: #4caf50;
}

.amort-table th:nth-child(5) {
    background: #555;
}

.amort-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.amort-table tr.total-row td {
    font-weight: 700;
    background: #f0f0f0;
}

.calc-input-wrap.error {
    border-color: #dc3545;
}

.error-msg {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-msg.show {
    display: block;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}


.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }

    .payoff-summary-grid {
        grid-template-columns: 1fr;
    }

    .payoff-stat-cell {
        border-left: none;
        border-top: 1px solid #ddd;
    }

    .loan-summary-grid {
        grid-template-columns: 1fr;
    }

    .ls-cell:nth-child(odd) {
        border-right: none;
    }

    .ls-cell:nth-last-child(-n+2) {
        border-bottom: 1px solid #eee;
    }

    .ls-cell:last-child {
        border-bottom: none;
    }
}

/* ── Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: #f5f5f5;
}

/* NEW */
.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* ── Tab nav ── */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

/* ── Main card ── */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-split {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* ── Left panel ── */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
    overflow-y: auto;
}

/* ── Right panel ── */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
    min-height: 500px;
    overflow-y: auto;
}

/* ── Form elements ── */
.calc-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.calc-label .optional {
    font-weight: 400;
    color: #888;
    font-size: 12px;
}

.calc-field {
    margin-bottom: 14px;
}

/* Currency buttons */
.currency-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
}

.currency-btn {
    flex: 1;
    padding: 7px 4px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Input wrapper */
.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.calc-prefix,
.calc-suffix {
    padding: 0 10px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
    border-right: 1px solid #ccc;
    white-space: nowrap;
}

.calc-suffix {
    border-right: none;
    border-left: 1px solid #ccc;
}

.calc-input {
    border: none;
    outline: none;
    padding: 8px 8px;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    background: #fff;
    color: #222;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    padding: 3px 9px;
    font-size: 9px;
    color: #666;
    flex: 1;
    line-height: 1;
    transition: background 0.1s;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.calc-select {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    background: #fff;
    color: #333;
}

/* Period row */
.period-row {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.period-row .calc-field {
    flex: 1;
}

/* Date input */
input[type="date"].calc-input-full {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    width: 100%;
    background: #fff;
    color: #333;
    outline: none;
}

/* Additional payment row */
.addl-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.addl-row .calc-input-wrap {
    flex: 1;
    border-radius: 4px 0 0 4px;
}

.addl-row .calc-select {
    border-left: none;
    border-radius: 0 4px 4px 0;
    min-width: 100px;
}

/* Extra fees checkbox */
.fees-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.fees-row .calc-prefix {
    border-right: 1px solid #ccc;
}

.fees-row .calc-input {
    flex: 1;
}

.fees-row .add-to-loan {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    font-size: 12px;
    color: #555;
    border-left: 1px solid #ccc;
    white-space: nowrap;
    background: #fafafa;
    height: 100%;
}

/* One-time payment */
.onetime-toggle {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.onetime-toggle button {
    flex: 1;
    padding: 7px 10px;
    border: none;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.onetime-toggle button+button {
    border-left: 1px solid #ccc;
}

.onetime-toggle button.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

/* Calculate button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    transition: background 0.15s;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* ── Results ── */
.results-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #bbb;
    font-size: 15px;
}

/* Summary grid */
.summary-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.summary-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
}

.summary-cell:nth-child(even) {
    border-right: none;
}

.summary-cell:nth-last-child(-n+2) {
    border-bottom: none;
}

.summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon svg {
    width: 22px;
    height: 22px;
}

.summary-cell-body .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.summary-cell-body .val {
    font-size: 18px;
    font-weight: 700;
    color: #2196f3;
}

.summary-cell-body .val.orange {
    color: #e07b28;
}

.summary-cell-body .val.green {
    color: #4caf50;
}

.summary-cell-body .val.dark {
    color: #333;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 12px;
    margin-left: 4px;
    vertical-align: middle;
}

.copy-btn:hover {
    color: #666;
}

/* ── Amortization / Charts tabs ── */
.result-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.result-tab {
    padding: 8px 20px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: background 0.15s;
}

.result-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.result-tab:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.result-tab.active {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
}

/* Amortization section */
.amort-section {
    margin-top: 16px;
}

.amort-title {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.breakdown-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
}

.breakdown-tab {
    padding: 6px 16px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    transition: background 0.15s;
}

.breakdown-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.breakdown-tab:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.breakdown-tab.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

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

.breakdown-table th {
    padding: 9px 12px;
    text-align: right;
    color: #fff;
    font-weight: 600;
}

.breakdown-table th:first-child {
    text-align: left;
    background: #555 !important;
}

.breakdown-table th.th-payment {
    background: #555;
}

.breakdown-table th.th-principal {
    background: #4caf50;
}

.breakdown-table th.th-interest {
    background: #e07b28;
}

.breakdown-table th.th-balance {
    background: #555;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}

.breakdown-table td:first-child {
    text-align: left;
    color: #555;
}

.breakdown-table tr.year-total td {
    background: #dceeff;
    font-weight: 600;
    color: #333;
}

.breakdown-table tr.final-total td {
    background: #555;
    color: #fff;
    font-weight: 700;
}

.breakdown-table tr.final-total td:nth-child(2) {
    background: #4caf50;
}

.breakdown-table tr.final-total td:nth-child(3) {
    background: #e07b28;
}

/* Charts */
.charts-section {
    margin-top: 16px;
}

.charts-title {
    font-size: 18px;
    font-weight: 700;
    color: #e07b28;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chart-box {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.chart-canvas-wrap {
    position: relative;
    height: 220px;
}

.chart-canvas-wrap-pie {
    position: relative;
    height: 200px;
}

.chart-box-title {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 12px;
}

.chart-note {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.chart-disclaimer {
    font-size: 12px;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }

    .calc-left {
        flex: 0 0 100% !important;
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .calc-right {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

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

    .summary-cell {
        border-right: none !important;
    }

    .summary-cell:nth-last-child(-n+2) {
        border-bottom: 1px solid #e8e8e8 !important;
    }

    .summary-cell:last-child {
        border-bottom: none !important;
    }
}

.calc-input-wrap.error {
    border-color: #dc3545;
}

.error-msg {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-msg.show {
    display: block;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* ── Tab buttons (top navigation) ── */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: #333;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border-color: transparent;
}

.calc-tab-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* ── Card ── */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

/* ── Left / Right panels ── */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

/* ── Currency buttons ── */
.currency-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 18px;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* ── Fields ── */
.calc-field {
    margin-bottom: 18px;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

/* ── Option group (value toggle tabs) ── */
.option-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}

.option-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
    white-space: nowrap;
    text-align: center;
}

.option-btn:last-child {
    border-right: none;
}

.option-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.option-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* ── Dropdown select inside input wrap ── */
.calc-select {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    flex: 1;
}

/* ── Calculate button ── */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    width: 100%;
    justify-content: center;
    transition: opacity 0.2s;
}

.calc-btn:hover {
    opacity: 0.92;
}

/* ── Results ── */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat {
    margin-bottom: 14px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.result-stat .val {
    font-size: 28px;
    font-weight: 700;
    color: #007bff;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

.summary-table {
    font-size: 13px;
    color: #333;
    border-collapse: collapse;
}

.summary-table td {
    padding: 4px 16px 4px 0;
}

.summary-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* ── Dropdown wrapper for Net Profit tab ── */
.np-select-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 12px;
}

.np-select-wrap select {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    flex: 1;
    appearance: auto;
}

.bold-heading {
    font-weight: 700 !important;
}


@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* Tabs */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

/* Card */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

/* Left panel */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

/* Right panel */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

/* Currency */
.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Input wrap */
.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

/* Grey optional box */
.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Calc button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* Results */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat {
    margin-bottom: 12px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.result-stat .val {
    font-size: 26px;
    font-weight: 700;
    color: #007bff;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

/* Breakdown table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
}

.breakdown-table th:nth-child(1) {
    background: #555;
}

.breakdown-table th:nth-child(2) {
    background: #555;
}

.breakdown-table th:nth-child(3) {
    background: #e8a020;
}

.breakdown-table th:nth-child(4) {
    background: #3a9e3a;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tr:last-child td {
    font-weight: 700;
    background: #f8f9fa;
}

/* select */
.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* small years/months row */
.period-row {
    display: flex;
    gap: 10px;
}

.period-row .calc-field {
    flex: 1;
}

/* Help tooltip */
.apy-help-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    color: #888;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 6px;
    flex-shrink: 0;
    vertical-align: middle;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

/* Currency buttons */
.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

/* Nominal / APY toggle */
.nom-apy-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.nom-apy-btn {
    flex: 1;
    padding: 7px 14px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}

.nom-apy-btn+.nom-apy-btn {
    border-left: 1px solid #ccc;
}

.nom-apy-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.nom-apy-btn:hover:not(.active) {
    background: #f0f0f0;
}

.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    opacity: 0.92;
}

/* Results */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat {
    margin-bottom: 12px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.result-stat .val {
    font-size: 26px;
    font-weight: 700;
    color: #007bff;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

/* Breakdown table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tr:last-child td {
    font-weight: 700;
}

.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.period-row {
    display: flex;
    gap: 10px;
}

.period-row .calc-field {
    flex: 1;
}

/* Summary table */
.summary-table {
    font-size: 13px;
    color: #333;
    border-collapse: collapse;
    width: auto;
}

.summary-table td {
    padding: 4px 16px 4px 0;
}

.summary-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 350px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.calc-label small {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

/* Currency buttons */
.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 0;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-suffix {
    padding: 0 12px;
    background: #f0f0f0;
    border-left: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
}

.inline-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-group .calc-select {
    min-width: 120px;
}

.inline-group .calc-input-wrap {
    flex: 1;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: opacity 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    opacity: 0.92;
}

/* Results */
.result-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin: 0 0 16px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row .val {
    font-weight: 600;
    color: #222;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }

    .inline-group {
        flex-direction: column;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

/* Left panel */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

/* Right panel */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 350px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

/* Currency buttons */
.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 0;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Input */
.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-suffix {
    padding: 0 12px;
    background: #f0f0f0;
    border-left: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

/* Select */
.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
}

/* Calc button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: opacity 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    opacity: 0.92;
}

/* Results */
.result-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin: 0 0 14px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row .val {
    font-weight: 600;
    color: #222;
}

.result-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}


@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 22px;
}

.option-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
    white-space: nowrap;
}

.option-btn:last-child {
    border-right: none;
}

.option-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.option-btn:hover:not(.active) {
    background: #f0f0f0;
}

.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.area-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.area-row .calc-input-wrap {
    flex: 1;
}

.area-row .calc-select {
    min-width: 140px;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.result-stat:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.result-stat .val {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
}

.result-stat.secondary .val {
    font-size: 19px;
    font-weight: 700;
    color: #999;
}

.copy-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    color: #888;
    font-size: 13px;
    padding: 6px 9px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background 0.15s, color 0.15s;
}

.copy-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}


.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }

    .area-row {
        flex-direction: column;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* Outer page tabs (sub-calculator switcher) */
.sg-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sg-subtab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #555;
    color: #fff;
    transition: background 0.2s;
}

.sg-subtab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.sg-subtab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.period-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.period-row .period-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.period-field label {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.period-input-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

.period-input-box input {
    border: none;
    outline: none;
    padding: 7px 6px;
    font-size: 14px;
    text-align: center;
    background: #fff;
    width: 100%;
}

.period-input-box input::-webkit-outer-spin-button,
.period-input-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.period-input-box input[type=number] {
    -moz-appearance: textfield;
}

.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

/* Breakdown table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
}

.breakdown-table th:nth-child(1) {
    background: #555;
}

.breakdown-table th:nth-child(2) {
    background: #555;
}

.breakdown-table th:nth-child(3) {
    background: #555;
}

.breakdown-table th:nth-child(4) {
    background: #3b82f6;
}

.breakdown-table th:nth-child(5) {
    background: #e8a020;
}

.breakdown-table th:nth-child(6) {
    background: #3a9e3a;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tbody tr:nth-child(odd):not(.total-row):not(.final-row) td {
    background: #f7f7f7;
}

.breakdown-table tr.total-row td {
    font-weight: 700;
    background: #fff7cc;
}

.breakdown-table tr.final-row td {
    font-weight: 700;
    background: #555;
    color: #fff;
}

.breakdown-table tr.final-row td:nth-child(4) {
    background: #3b82f6;
}

.breakdown-table tr.final-row td:nth-child(5) {
    background: #e8a020;
}

.breakdown-table tr.final-row td:nth-child(6) {
    background: #3a9e3a;
}

.breakdown-tabs {
    display: inline-flex;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.breakdown-tab {
    padding: 5px 14px;
    border: none;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    border-right: 1px solid #ccc;
}

.breakdown-tab:last-child {
    border-right: none;
}

.breakdown-tab.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}


.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}


.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}


.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}


.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Input wrap */
.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

/* Nominal / APY toggle */
.nom-apy-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.nom-apy-btn {
    flex: 1;
    padding: 7px 14px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}

.nom-apy-btn+.nom-apy-btn {
    border-left: 1px solid #ccc;
}

.nom-apy-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.nom-apy-btn:hover:not(.active) {
    background: #f0f0f0;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 14px;
}

.option-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
    white-space: nowrap;
}

.option-btn:last-child {
    border-right: none;
}

.option-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.option-btn:hover:not(.active) {
    background: #f0f0f0;
}

.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Calc button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* Results */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat {
    margin-bottom: 12px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.result-stat .val {
    font-size: 26px;
    font-weight: 700;
    color: #007bff;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

/* Breakdown table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
}

.breakdown-table th:nth-child(1) {
    background: #555;
}

.breakdown-table th:nth-child(2) {
    background: #555;
}

.breakdown-table th:nth-child(3) {
    background: #e8a020;
}

.breakdown-table th:nth-child(4) {
    background: #3a9e3a;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tr:last-child td {
    font-weight: 700;
    background: #f8f9fa;
}

/* select */
.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.period-row {
    display: flex;
    gap: 10px;
}

.period-row .calc-field {
    flex: 1;
}


.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: .3s;
}

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

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

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

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* Tabs */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

/* Card */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

/* Left panel */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

/* Right panel */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

/* Currency */
.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Input wrap */
.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.toggle-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    padding: 9px 14px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.toggle-btn+.toggle-btn {
    border-left: 1px solid #ccc;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.toggle-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* Period inputs (Years/Months/Weeks/Days) */
.period-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.period-row .period-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.period-field label {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.period-field .calc-input-wrap {
    flex-direction: column;
    border: none;
}

.period-input-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

.period-input-box input {
    border: none;
    outline: none;
    padding: 7px 6px;
    font-size: 14px;
    text-align: center;
    background: #fff;
    width: 100%;
}

.period-input-box input::-webkit-outer-spin-button,
.period-input-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.period-input-box input[type=number] {
    -moz-appearance: textfield;
}

/* Date input */
.date-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.date-input-wrap input[type="date"] {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 14px;
    flex: 1;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.date-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    padding-right: 8px;
}

/* Regular contributions */
.contrib-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 14px;
}

.contrib-btn {
    flex: 1;
    padding: 9px 10px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid #ccc;
    transition: background 0.15s;
}

.contrib-btn:last-child {
    border-right: none;
}

.contrib-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.contrib-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* select */
.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* optional box */
.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Calc button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* Results */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

/* Breakdown table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
}

.breakdown-table th:nth-child(1) {
    background: #555;
}

.breakdown-table th:nth-child(2) {
    background: #555;
}

.breakdown-table th:nth-child(3) {
    background: #e8a020;
}

.breakdown-table th:nth-child(4) {
    background: #3a9e3a;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tr.total-row td {
    font-weight: 700;
    background: #fffbe6;
}

.breakdown-table tr.final-row td {
    font-weight: 700;
    background: #555;
    color: #fff;
}

.breakdown-table tr.final-row td:nth-child(3) {
    background: #e8a020;
}

.breakdown-table tr.final-row td:nth-child(4) {
    background: #3a9e3a;
}

.breakdown-tabs {
    display: inline-flex;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.breakdown-tab {
    padding: 5px 14px;
    border: none;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    border-right: 1px solid #ccc;
}

.breakdown-tab:last-child {
    border-right: none;
}

.breakdown-tab.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

/* chart icon btn */
.chart-tab {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    color: #555;
    font-size: 16px;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}


.chart-tab.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* Tabs */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.calc-tab-btn {
    padding: 11px 22px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: #555;
    color: #fff;
    display: inline-block;
    transition: background 0.2s;
}

.calc-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-tab-btn:hover:not(.active) {
    background: #444;
    color: #fff;
}

/* Card */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

/* Left panel */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

/* Right panel */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

/* Currency */
.currency-group {
    display: flex;
    margin-bottom: 22px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.currency-btn {
    padding: 8px 15px;
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    flex: 1;
    text-align: center;
    transition: background 0.15s;
}

.currency-btn:last-child {
    border-right: none;
}

.currency-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.currency-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Input wrap */
.calc-field {
    margin-bottom: 18px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

.toggle-group {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    padding: 9px 14px;
    border: none;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
}

.toggle-btn+.toggle-btn {
    border-left: 1px solid #ccc;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 600;
}

.toggle-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* Period inputs (Years/Months) */
.period-row {
    display: flex;
    gap: 8px;
    margin-top: 0;
}

.period-row .period-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.period-field label {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.period-input-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

.period-input-box input {
    border: none;
    outline: none;
    padding: 7px 6px;
    font-size: 14px;
    text-align: center;
    background: #fff;
    width: 100%;
}

.period-input-box input::-webkit-outer-spin-button,
.period-input-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.period-input-box input[type=number] {
    -moz-appearance: textfield;
}

/* Regular investment freq select */
.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* optional box */
.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Calc button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

/* Results */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

/* Breakdown table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
}

.breakdown-table th:nth-child(1) {
    background: #555;
}

.breakdown-table th:nth-child(2) {
    background: #555;
}

.breakdown-table th:nth-child(3) {
    background: #e8a020;
}

.breakdown-table th:nth-child(4) {
    background: #3a9e3a;
}

.breakdown-table th:nth-child(5) {
    background: #3a9e3a;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tr.total-row td {
    font-weight: 700;
    background: #fffbe6;
}

.breakdown-table tr.final-row td {
    font-weight: 700;
    background: #555;
    color: #fff;
}

.breakdown-table tr.final-row td:nth-child(3) {
    background: #e8a020;
}

.breakdown-table tr.final-row td:nth-child(4) {
    background: #3a9e3a;
}

.breakdown-table tr.final-row td:nth-child(5) {
    background: #3a9e3a;
}

.breakdown-tabs {
    display: inline-flex;
    gap: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.breakdown-tab {
    padding: 5px 14px;
    border: none;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    border-right: 1px solid #ccc;
}

.breakdown-tab:last-child {
    border-right: none;
}

.breakdown-tab.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
}

.summary-box {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 16px;
}

.summary-row {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: none;
}

.summary-row .s-lbl {
    color: #333;
}

.summary-row .s-val {
    color: #222;
    font-weight: 700;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.calc-page-wrapper {
    max-width: 1300px;
    margin: 24px auto;
    padding: 0 24px 60px;
}

/* Card */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #e8e8e8;
}

/* Left panel */
.calc-left {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    padding: 20px;
}

/* Right panel */
.calc-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 28px 24px;
    min-height: 450px;
    border: 1px solid #e8e8e8;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

/* Input wrap */
.calc-field {
    margin-bottom: 18px;
}

.sa-subfield {
    margin-bottom: 4px;
}

.calc-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.calc-prefix {
    padding: 0 12px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    min-width: 36px;
    justify-content: center;
}

.calc-input {
    border: none;
    outline: none;
    padding: 9px 10px;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    background: #fff;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input[type=number] {
    -moz-appearance: textfield;
}

.calc-spinners {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.calc-spinners button {
    border: none;
    background: #f7f7f7;
    cursor: pointer;
    padding: 3px 10px;
    font-size: 10px;
    color: #555;
    flex: 1;
    line-height: 1;
}

.calc-spinners button:hover {
    background: #e8e8e8;
}

.calc-spinners button:first-child {
    border-bottom: 1px solid #ccc;
}

/* select */
.calc-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

/* optional box */
.optional-box {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Calc button */
.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.calc-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.calc-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #555;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 18px;
    transition: background 0.2s;
}

.calc-btn-secondary:hover {
    background: #444;
}

/* Results */
.results-title {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 16px;
}

.result-stat .lbl {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 13px;
    margin-left: 4px;
}

.copy-btn:hover {
    color: #555;
}

/* Breakdown table */
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.breakdown-table th {
    padding: 8px 12px;
    text-align: left;
    color: #fff;
    background: #555;
}

.breakdown-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.breakdown-table tr.total-row td {
    font-weight: 700;
    background: #fffbe6;
}

.hover-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.bold-heading {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .calc-split {
        flex-direction: column !important;
    }

    .calc-page-wrapper {
        padding: 0 12px 40px;
    }
}

.request-submit-btn {
    background: linear-gradient(135deg, #007bff) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.12s ease;
}

.request-submit-btn:hover {
    opacity: 0.95;
    color: #fff !important;
    transform: translateY(-1px);
}

.request-submit-btn .button-text,
.request-submit-btn .button-icon {
    color: #fff !important;
}

/* Extracted from remaining tools */

.ad-builder-box {
            background: #f4f7fb;
            border: 1px solid #e4e8ef;
            border-radius: 8px;
            padding: 16px;
        }
        .ad-code-area {
            min-height: 140px;
            font-family: Consolas, monospace;
            font-size: 13px;
        }
        .ad-preview-wrap {
            position: relative;
            display: inline-block;
        }
        .ad-remove-btn {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: none;
            background: #dc3545;
            color: #fff;
            line-height: 1;
            font-size: 16px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

.loading-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(255, 255, 255, 0.7);
            display: flex; justify-content: center; align-items: center;
            z-index: 9999;
        }

.ck-editor__editable_inline {
            min-height: 300px;
        }

.lang-settings-card {
            border: 1px solid #e9edf4;
            border-radius: 14px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
        }

        .lang-mode-badge {
            font-size: 12px;
            font-weight: 700;
            padding: 6px 12px;
            border-radius: 999px;
            letter-spacing: 0.3px;
        }

#liveUsersTable {
            table-layout: fixed;
            width: 100% !important;
        }

        #liveUsersTable td,
        #liveUsersTable th {
            white-space: normal !important;
            word-break: break-word;
            overflow-wrap: anywhere;
            vertical-align: top;
        }

        #liveUsersTable .col-browser,
        #liveUsersTable .col-url {
            max-width: 260px;
        }

/* Repeater items (About sections, FAQs, etc.) ka border thoda dark aur clear */
        .repeater-item {
            border: 1px solid #adb5bd !important; /* bootstrap gray-500 ke around */
            border-radius: 0.4rem;
        }

#todayActiveTable { table-layout: fixed; width: 100% !important; }
        #todayActiveTable td, #todayActiveTable th { white-space: normal !important; word-break: break-word; overflow-wrap: anywhere; vertical-align: top; }
        #todayActiveTable .col-browser, #todayActiveTable .col-url { max-width: 220px; }

#example { table-layout: fixed; width: 100% !important; }
        #example td, #example th { white-space: normal !important; word-break: break-word; overflow-wrap: anywhere; vertical-align: top; }
        #example .col-browser { max-width: 220px; }

.form-check-input:checked {
                                            background-color: #3b82f6 !important;
                                            border-color: #3b82f6 !important;
                                            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
                                            background-size: 100% 100%;
                                            background-position: center;
                                            background-repeat: no-repeat;
                                        }

.blog-header {
            margin-bottom: 3rem;
        }
        .blog-header h1 {
            font-size: 2.5rem;
            font-weight: 800;
            color: #0f172a;
            letter-spacing: -0.02em;
        }
        .blog-card {
            background: #ffffff;
            border: 1px solid #f1f5f9;
            border-radius: 16px;
            padding: 32px;
            margin-bottom: 24px;
            text-align: left;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            position: relative;
            overflow: hidden;
        }
        .blog-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: #3b82f6;
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        .blog-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
            border-color: #e2e8f0;
        }
        .blog-card:hover::before {
            opacity: 1;
        }
        .blog-meta {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 20px;
            font-size: 14px;
            color: #64748b;
            font-weight: 500;
        }
        .blog-badge {
            background: #eff6ff;
            color: #3b82f6;
            padding: 6px 14px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 12px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
        .blog-title {
            font-size: 24px;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 16px;
            line-height: 1.4;
            margin-top: 0;
        }
        .blog-title a {
            color: inherit;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .blog-title a:hover {
            color: #3b82f6;
        }
        .blog-excerpt {
            font-size: 16px;
            color: #475569;
            line-height: 1.7;
            margin-bottom: 24px;
        }
        .blog-read-more {
            color: #3b82f6;
            font-weight: 600;
            font-size: 15px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: gap 0.2s ease, color 0.2s ease;
        }
        .blog-read-more:hover {
            color: #2563eb;
            gap: 12px;
        }
        .blog-card:hover .blog-title a,
        .blog-card:hover .blog-excerpt,
        .blog-card:hover .blog-read-more,
        .blog-card:hover .blog-meta,
        .blog-card:hover .blog-meta span,
        .blog-card:hover .blog-meta i {
            color: #3b82f6 !important;
            background: none !important;
            -webkit-background-clip: border-box !important;
            -webkit-text-fill-color: #3b82f6 !important;
        }
        .blog-card:hover .blog-badge {
            background: linear-gradient(135deg, #3b82f6, #06b6d4);
            -webkit-background-clip: border-box;
            -webkit-text-fill-color: #fff;
            color: #fff;
        }

.blog-single-container {
            max-width: 800px;
            margin: 0 auto;
            padding-top: 4rem;
            padding-bottom: 5rem;
            text-align: left;
        }
        .back-to-blog {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #64748b;
            font-weight: 500;
            text-decoration: none;
            margin-bottom: 2rem;
            transition: color 0.2s ease;
        }
        .back-to-blog:hover {
            color: #3b82f6;
        }
        .blog-meta {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 20px;
            font-size: 14px;
            color: #64748b;
            font-weight: 500;
        }
        .blog-badge {
            background: #eff6ff;
            color: #3b82f6;
            padding: 6px 14px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 12px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
        .blog-title {
            font-size: 2.25rem;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 1.5rem;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }
        .blog-lead {
            font-size: 1.25rem;
            color: #475569;
            line-height: 1.6;
            margin-bottom: 2.5rem;
        }
        .blog-divider {
            height: 1px;
            background-color: #e2e8f0;
            border: none;
            margin: 3rem 0;
        }
        .blog-content {
            font-size: 1.1rem;
            color: #334155;
            line-height: 1.8;
        }
        .blog-content h3 {
            font-size: 1.75rem;
            font-weight: 700;
            color: #0f172a;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
        }
        .blog-content p {
            margin-bottom: 1.5rem;
        }
        .blog-content ul {
            padding-left: 1.5rem;
            margin-bottom: 1.5rem;
        }
        .blog-content li {
            margin-bottom: 0.5rem;
        }

/* FAQ: Bootstrap collapse animation (height transition) */
        .collapsible .collapse-content.collapse {
            transition: height 0.35s ease;
            overflow: hidden;
        }
        .collapsible .collapse-content.collapse:not(.show) {
            display: none;
        }
        .collapsible .collapse-content.collapse.show {
            display: block;
        }
        /* Send message button: gradient like other tool pages */
        .contact-submit-btn {
            background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
            border: none !important;
            color: #fff !important;
            border-radius: 8px;
            transition: opacity 0.2s ease, transform 0.12s ease;
        }
        .contact-submit-btn:hover {
            opacity: 0.95;
            color: #fff !important;
            transform: translateY(-1px);
        }
        .contact-submit-btn .button-text,
        .contact-submit-btn .button-icon {
            color: #fff !important;
        }
        .contact-submit-btn:hover .button-text,
        .contact-submit-btn:hover .button-icon {
            color: #fff !important;
        }

.calc-share-toolbar {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
    }
    .calc-share-toolbar .calc-share-status {
        display: none;
        font-size: 12px;
        font-weight: 600;
    }
    .calc-share-toolbar .calc-copy-top,
    .calc-share-toolbar .calc-share-top {
        font-size: 14px;
        line-height: 1.2;
        padding: 1px 8px;
    }
    .calc-share-toolbar .calc-copy-top {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #2563eb;
    }
    .calc-share-toolbar .calc-share-top {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        color: #16a34a;
    }
    .calc-share-toolbar .calc-sample-top {
        font-size: 14px;
        line-height: 1.2;
        padding: 1px 8px;
        background: linear-gradient(135deg, #3b82f6, #06b6d4);
        border: none;
        color: #fff;
    }

.related-tools-legacy-section .tools-grid {
        align-items: start !important;
        grid-auto-rows: auto !important;
    }

    .related-tools-legacy-section .tools-grid > a {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        align-self: start !important;
        text-decoration: none !important;
        color: inherit !important;
    }

    .related-tools-legacy-section .tool-card {
        height: auto !important;
        min-height: 260px !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 28px 24px !important;
        text-align: center !important;
    }

    .related-tools-legacy-section .tool-card i {
        color: #3b82f6 !important;
        font-size: 40px !important;
        margin: 0 0 20px !important;
    }

    .related-tools-legacy-section .tool-card h4 {
        color: #264653 !important;
        font-size: 22px !important;
        line-height: 1.25 !important;
        margin: 0 0 14px !important;
    }

    .related-tools-legacy-section .tool-card p {
        color: #555 !important;
        font-size: 16px !important;
        line-height: 1.45 !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden !important;
    }

    .related-card {
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .related-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    }

.editor-shell { max-width: 1100px; margin: 20px auto; }
        .page-card { border: 1px solid #ddd; border-radius: 8px; margin-bottom: 18px; padding: 10px; background: #fff; }
        .page-title { font-weight: 600; margin-bottom: 10px; }
        .canvas-wrap { position: relative; width: 100%; border: 1px solid #e8e8e8; background: #f8f9fa; overflow: hidden; }
        .canvas-wrap img { width: 100%; display: block; user-select: none; pointer-events: none; }
        .blank-page { background: white; width: 100%; height: 100%; }
        .overlay-text {
            position: absolute;
            border: 1px dashed #3b82f6;
            background: rgba(255, 255, 255, 0.78);
            color: #111;
            min-width: 30px;
            min-height: 20px;
            font-size: 14px;
            line-height: 1.2;
            padding: 2px 4px;
            cursor: move;
            overflow: hidden;
        }
        .toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
        .tools-hidden { display: none; }

.checker-status {
            margin-top: 14px;
            border-radius: 10px;
            padding: 10px 14px;
            font-weight: 600;
            border: 1px solid transparent;
            transition: all .2s ease;
            min-height: 44px;
            display: flex;
            align-items: center;
        }
        .checker-status.is-empty {
            background: transparent;
            border-color: transparent;
            min-height: 0;
            padding: 0;
        }
        .checker-status.is-success {
            color: #0f5132;
            background: #d1e7dd;
            border-color: #badbcc;
        }
        .checker-status.is-error {
            color: #842029;
            background: #f8d7da;
            border-color: #f5c2c7;
        }

.tt-wrap { padding: 30px 0 70px; }
        .tt-wrap .row:first-child .col-12 { text-align: center; }
        .tt-title { font-size: 34px; font-weight: 800; color: #1f2d3d; margin: 10px 0 10px; text-align: center; }
        .tt-desc { color: #4b5563; margin-bottom: 22px; text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
        .tt-card { background: #fff; border-radius: 12px; border: 1px solid rgba(15,23,42,0.08); box-shadow: 0 10px 25px rgba(0,0,0,0.06); padding: 18px; }
        .tt-textarea { width: 100%; min-height: 260px; border-radius: 10px; border: 1px solid rgba(15,23,42,0.15); padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 14px; line-height: 1.5; background: #f8fafc; }
        .tt-textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); background: #fff; }
        .tt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
        .tt-btn { border: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
        .tt-btn:active { transform: translateY(1px); }
        .tt-btn-primary { background: linear-gradient(135deg, #3b82f6, #06b6d4); color: #fff; }
        .tt-btn-secondary { background: #eef2ff; color: #1f2d3d; }
        .tt-status { margin-top: 10px; font-size: 13px; color: #6b7280; min-height: 18px; }
        .tt-error { display: none; margin-bottom: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: #b91c1c !important; background: #fef2f2 !important; border: 1px solid #fecaca; border-radius: 10px; }
        .tt-error:not(:empty) { display: block !important; }

        /* How to Use / Why it Matters / Related Tools */
        .how-to-use-section, .info-section { background-color: #f8f9fa; padding: 60px 20px; }
        .how-to-use-container, .info-cards, .tools-grid { max-width: 1200px; margin: 0 auto; }
        .section-title { text-align: center; color: #264653; margin-bottom: 40px; font-size: 32px; }
        .steps-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
        .step { flex: 1; min-width: 250px; background: white; border-radius: 10px; padding: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s ease; }
        .step:hover { transform: translateY(-5px); }
        .step-icon { font-size: 40px; color: #3b82f6; margin-bottom: 15px; }
        .step-title { font-size: 20px; color: #264653; margin-bottom: 10px; }
        .step-description { color: #6c757d; line-height: 1.6; }
        .step-number { display: inline-block; width: 30px; height: 30px; background: #3b82f6; color: white; border-radius: 50%; line-height: 30px; margin-bottom: 10px; font-weight: bold; }
        .info-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
        .info-card { background: white; border-radius: 10px; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); flex: 1; min-width: 300px; max-width: 350px; transition: transform 0.3s ease; }
        .info-card:hover { transform: translateY(-5px); }
        .info-card h3 { color: #264653; margin-bottom: 15px; font-size: 22px; }
        .info-card p { color: #555; line-height: 1.6; }
        .tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
        .tool-card { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); text-align: center; transition: all 0.3s ease; text-decoration: none; color: inherit; display: block; }
        .tool-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); color: inherit; }
        .tool-card i { font-size: 36px; color: #3b82f6; margin-bottom: 15px; }
        .tool-card h4 { color: #264653; margin-bottom: 10px; }
        .tool-card p { color: #666; font-size: 14px; }
        @media (max-width: 768px) {
            .info-cards, .steps-container { flex-direction: column; align-items: center; }
            .info-card { max-width: 100%; }
        }

.welcome-banner {
        background: linear-gradient(135deg, #4da3ff 0%, #0062ff 100%);
        border-radius: 16px;
        color: white;
        padding: 35px 40px;
        position: relative;
        overflow: hidden;
        margin-bottom: 24px;
        box-shadow: 0 4px 15px rgba(0, 98, 255, 0.2);
    }
    .welcome-banner::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
        border-radius: 50%;
    }
    .welcome-banner h2 {
        font-weight: 700;
        font-size: 28px;
        margin-bottom: 10px;
        letter-spacing: -0.5px;
    }
    .welcome-banner p {
        font-size: 15px;
        opacity: 0.9;
        margin-bottom: 25px;
    }
    .btn-explore {
        background-color: white;
        color: #0062ff;
        font-weight: 600;
        padding: 10px 20px;
        border-radius: 8px;
        border: none;
        font-size: 14px;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .btn-explore:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        color: #0056e0;
    }
    .stat-card-home {
        background: white;
        border-radius: 16px;
        padding: 20px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
        border: 1px solid #f1f5f9;
        height: 100%;
        transition: transform 0.2s;
    }
    .stat-card-home:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    }
    .stat-text h6 {
        color: #6b7280;
        font-size: 13px;
        font-weight: 500;
        margin-bottom: 6px;
    }
    .stat-text h3 {
        color: #111827;
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 0;
    }
    .stat-icon {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }
    .stat-icon.blue { background-color: #3b82f6; color: white; box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3); }
    .stat-icon.red { background-color: #ef4444; color: white; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); }
    .stat-icon.green { background-color: #10b981; color: white; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); }
    
    .stat-text.green-text h3 { color: #10b981; }
    .stat-text.blue-text h3 { color: #3b82f6; }
    .stat-text.red-text h3 { color: #ef4444; }

.user-sidebar .nav-link {
            color: #4b5563;
            border-radius: 8px;
            margin-bottom: 5px;
            padding: 10px 15px;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.2s;
        }
        .user-sidebar .nav-link:hover {
            background-color: #f3f4f6;
            color: #111827;
        }
        .user-sidebar .nav-link.active {
            background-color: #3b82f6;
            color: #ffffff;
        }
        .user-sidebar .nav-link.active i {
            color: #ffffff !important;
        }
        .dashboard-container {
            background-color: #f8fafc;
            min-height: calc(100vh - 80px);
        }
        .dashboard-card {
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            border: 1px solid #f1f5f9;
        }

.user-sidebar .nav-link {
                                border-radius: 8px;
                                margin-bottom: 5px;
                                padding: 12px 15px;
                                display: flex;
                                align-items: center;
                                gap: 12px;
                                font-weight: 500;
                                color: #374151;
                            }
                            .user-sidebar .nav-link.active {
                                background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
                                color: #ffffff !important;
                                box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3) !important;
                            }
                            .user-sidebar .nav-link.active i {
                                color: #ffffff !important;
                            }



/* Extracted from layouts */

section[data-related-tools-section="1"] .tools-grid {
        align-items: start !important;
        grid-auto-rows: auto !important;
    }

    section[data-related-tools-section="1"] .tools-grid > a {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        align-self: start !important;
    }

    section[data-related-tools-section="1"] .tool-card {
        height: auto !important;
        min-height: 260px !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 28px 24px !important;
        text-align: center !important;
    }

    section[data-related-tools-section="1"] .tool-card i {
        font-size: 40px !important;
        margin: 0 0 20px !important;
    }

    section[data-related-tools-section="1"] .tool-card h4 {
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden !important;
        font-size: 22px !important;
        line-height: 1.25 !important;
        margin: 0 0 14px !important;
    }

    section[data-related-tools-section="1"] .tool-card p {
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden !important;
        font-size: 16px !important;
        line-height: 1.45 !important;
    }

    /* How-to steps: inline SVG (no webfont) — JS may rebuild this section from CMS data */
    .how-to-use-section .step-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 2.5rem;
    }

    .how-to-use-section .step-icon .step-icon-svg {
        width: 2rem;
        height: 2rem;
        flex-shrink: 0;
    }

/* Self-contained footer styles (works with or without theme CSS) */
    #footer {
        background: linear-gradient(180deg, #141a25 0%, #121825 100%) !important;
        color: #b5afaf;
        margin-top: 0;
    }
    #footer .footer-content {
        padding: 2.75rem 0 2rem;
        color: #b5afaf;
    }
    #footer .footer-content .container {
        max-width: 1320px !important;
        margin: 0 auto;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    #footer .footer-item {
        margin-bottom: 1.5rem;
        color: #b5afaf;
    }
    #footer .title,
    #footer h6.title {
        color: #f2f4f8 !important;
        font-size: 1.95rem !important;
        font-weight: 700;
        margin-bottom: 1rem;
    }
    #footer .footer-text,
    #footer .footer-text p {
        color: #b5afaf !important;
        font-size: 1.04rem !important;
        line-height: 1.7;
        margin-bottom: 0.65rem;
    }
    #footer .nav-list {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }
    #footer .nav-list .nav-item {
        margin-bottom: 0.5rem;
    }
    #footer .nav-link,
    #footer .nav-link .text,
    #footer .link {
        color: #b5afaf !important;
        text-decoration: none;
        font-size: 1.02rem !important;
    }
    #footer .nav-link:hover,
    #footer .link:hover {
        color: #1f7aff !important;
        text-decoration: underline;
    }
    /* Quick Links: keep text color same on hover, underline in white */
    #footer .nav-list .nav-link .text {
        background: none !important;
        -webkit-background-clip: border-box !important;
        background-clip: border-box !important;
        -webkit-text-fill-color: #b5afaf !important;
        color: #b5afaf !important;
        transition: none !important;
    }
    #footer .nav-list .nav-link:hover,
    #footer .nav-list .nav-link:hover .text,
    #footer .nav-list .nav-link:focus,
    #footer .nav-list .nav-link:focus .text,
    #footer .nav-list .nav-link:active,
    #footer .nav-list .nav-link:active .text,
    #footer .nav-list .nav-link.primary-hover:hover,
    #footer .nav-list .nav-link.primary-hover:hover .text {
        color: #b5afaf !important;
        -webkit-text-fill-color: #b5afaf !important;
        background: none !important;
        text-decoration-color: #fff !important;
    }
    #footer .list-wrapper {
        margin-top: 0.75rem;
    }
    #footer .icon-h-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    #footer .icon-h-list .item {
        margin: 0;
    }
    #footer .icon-h-list .link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(255,255,255,0.09);
        color: #b5afaf !important;
    }
    #footer .icon-h-list .link:hover {
        background: #1f7aff;
        color: #fff !important;
    }
    #footer .tag-cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    #footer .tag-cloud .link {
        display: inline-block;
    }
    #footer .badge.outline.gray-50,
    #footer .badge {
        display: inline-block;
        padding: 0.32rem 0.55rem;
        border: 1px solid rgba(255,255,255,0.16);
        border-radius: 6px;
        font-size: 0.92rem !important;
        font-weight: 600;
        margin: 2px;
        background: rgba(11, 17, 28, 0.36);
    }
    #footer .badge-text.gray {
        color: #b5afaf !important;
    }
    #footer .badge:hover .badge-text,
    #footer .badge .white-hover:hover {
        color: #1f7aff !important;
    }
    #footer .badge:hover {
        border-color: #1f7aff !important;
        background: rgba(31, 122, 255, 0.12);
    }
    #footer .form-area {
        width: 100%;
        max-width: 100%;
    }
    #footer .form-area .form-row,
    #footer .form-area .input-group {
        display: flex !important;
        align-items: center;
        max-width: 100%;
    }
    #footer .form-area .form-control {
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.22);
        color: #fff;
        padding: 0.65rem 0.9rem;
        flex: 1;
        min-width: 0;
        border-radius: 6px !important;
    }
    #footer .form-area .form-control::placeholder {
        color: rgba(255,255,255,0.5);
    }
    #footer .form-area .overlay-button,
    #footer .form-area button[type="submit"] {
        background: #1f7aff !important;
        border: none !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 6px !important;
        color: #fff !important;
        cursor: pointer;
        width: auto !important;
        min-width: 44px !important;
        max-width: 52px !important;
        height: 42px !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #footer .form-area .overlay-button img,
    #footer .form-area button[type="submit"] img,
    #footer .form-area .overlay-image-icon {
        width: 20px !important;
        height: 20px !important;
        object-fit: contain;
        display: block !important;
    }
    #footer .footer-send-icon,
    #footer .form-area button[type="submit"] svg {
        width: 20px !important;
        height: 20px !important;
        display: block !important;
        color: #fff;
    }
    /* Prevent theme .button from making footer submit a huge blue box */
    #footer .button,
    #footer .overlay-button {
        width: auto !important;
        min-width: 44px !important;
        max-width: 52px !important;
        height: 42px !important;
        padding: 0.5rem 0.75rem !important;
        box-sizing: border-box !important;
    }
    #footer .bottom-bar {
        padding: 0.9rem 0;
        border-top: 1px solid rgba(255,255,255,0.08);
        text-align: center;
    }
    #footer .bottom-bar .text {
        color: rgba(255, 255, 255, 0.65) !important;
        font-size: 0.88rem !important;
        margin: 0;
    }
    #footer .icon {
        color: #b5afaf !important;
    }
    #footer .row.g-3 {
        --bs-gutter-x: 2.2rem;
        --bs-gutter-y: 1.1rem;
    }
    @media (max-width: 991.98px) {
        #footer .title,
        #footer h6.title {
            font-size: 1.55rem !important;
        }
        #footer .footer-text,
        #footer .footer-text p,
        #footer .nav-link,
        #footer .nav-link .text,
        #footer .link {
            font-size: 1.1rem !important;
        }
    }
    #global-scroll-top {
        position: fixed;
        right: 24px;
        bottom: 24px;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        border: 3px solid #b9bec8;
        background: #f3f5f8;
        color: #161b22;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 9999;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
        opacity: 0;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    }
    #global-scroll-top.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    #global-scroll-top:hover {
        background: #eef2f7;
    }
    #global-scroll-top i {
        font-size: 26px;
        line-height: 1;
    }

.ribbon-plan-card {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 100px 20px 30px 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ribbon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 105px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 15px), 0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
    z-index: 10;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.2);
}
.badge-burst {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    text-align: center;
    line-height: 1.1;
    z-index: 11;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    clip-path: polygon(50% 0%, 61% 11%, 76% 9%, 81% 23%, 96% 29%, 91% 43%, 100% 55%, 88% 65%, 90% 81%, 75% 85%, 68% 98%, 52% 93%, 38% 100%, 28% 87%, 12% 86%, 12% 70%, 0% 58%, 7% 44%, 0% 28%, 14% 20%, 21% 6%, 36% 12%);
}
.ribbon-price {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    line-height: 1;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}
.ribbon-currency {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
.ribbon-period {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}
.ribbon-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}
.ribbon-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.ribbon-features li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: #475569;
}
.ribbon-features li:last-child {
    border-bottom: none;
}
.feature-icon-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
    margin-left: 10px;
}
.feature-icon-circle.check {
    background: #64748b;
}
.feature-icon-circle.cross {
    background: #cbd5e1;
}
.ribbon-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: none;
    transition: filter 0.2s;
}
.ribbon-btn:hover {
    color: #fff;
    filter: brightness(1.1);
}
.ribbon-plan-card.highlighted-card {
    transform: scale(1.06);
    z-index: 20;
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.25);
    border-width: 4px !important;
}
.ribbon-plan-card.highlighted-card:hover {
    transform: scale(1.08);
}
@media (max-width: 991px) {
    .ribbon-plan-card.highlighted-card {
        transform: scale(1);
        margin-top: 40px;
        margin-bottom: 20px;
    }
    .ribbon-plan-card.highlighted-card:hover {
        transform: scale(1.02);
    }
}

