:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --accent: #fd79a8;
    --dark: #2d3436;
    --light: #f5f6fa;
    --success: #00b894;
    --warning: #fdcb6e;
    --error: #e84393;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #dfe6e9, #b2bec3);
    min-height: 100vh;
    color: var(--dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Navigation */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark);
    opacity: 0.7;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb-separator {
    opacity: 0.5;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.calculator-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Calculator Panel */
.calculator-panel {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: sticky;
    top: 120px;
}

.panel-header {
    margin-bottom: 2rem;
}

.panel-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.panel-subtitle {
    color: var(--dark);
    opacity: 0.7;
    font-size: 1rem;
}

.form-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(108, 92, 231, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.input-group {
    position: relative;
}

.input-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark);
    opacity: 0.6;
    font-size: 0.9rem;
    pointer-events: none;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Results Section */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.results-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
}

.results-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.export-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.result-label {
    font-size: 0.9rem;
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.result-secondary {
    font-size: 0.8rem;
    color: var(--dark);
    margin-top: 0.5rem;
    opacity: 0.7;
}

.bracket-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
}

.bracket-table th {
    background: rgba(108, 92, 231, 0.1);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.85rem;
}

.bracket-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.bracket-table tr:last-child td {
    border-bottom: none;
}

.bracket-table tr.active-bracket {
    background: rgba(108, 92, 231, 0.12);
    font-weight: 600;
}

.bracket-table tr.active-bracket td:first-child::before {
    content: "▶ ";
    color: var(--primary);
}

.bracket-table .rate-col {
    color: var(--primary);
    font-weight: 700;
}

.bracket-table .tax-col {
    color: var(--dark);
}

.breakdown-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.deduction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    gap: 1rem;
}

.deduction-row:last-child {
    border-bottom: none;
}

.deduction-value {
    font-weight: 600;
    white-space: nowrap;
}

.deduction-value.negative {
    color: var(--error);
}

.deduction-value.positive {
    color: var(--success);
}

.deduction-value.neutral {
    color: var(--dark);
}

.deduction-value.primary {
    color: var(--primary);
}

.deduction-row.total-row {
    font-weight: 700;
    font-size: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-bottom: none;
}

.deduction-label {
    opacity: 0.85;
}

/* Amortization Schedule */
.schedule-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
}

.info-note {
    background: rgba(124, 108, 247, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.expense-btn {
    flex: 1;
    padding: 0.55rem 0.5rem;
    border: 2px solid rgba(124, 108, 247, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dark);
    transition: all 0.22s ease;
    text-align: center;
}

.expense-btn:hover {
    border-color: var(--primary);
}

.expense-btn.active {
    border-color: var(--primary);
    background: rgba(124, 108, 247, 0.12);
    color: var(--primary);
    font-weight: 700;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.toggle-label input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.schedule-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.schedule-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.schedule-filter {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.schedule-table th {
    background: rgba(108, 92, 231, 0.1);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.schedule-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.schedule-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.schedule-table .number {
    font-weight: 600;
    color: var(--primary);
}

.schedule-table .currency {
    font-weight: 500;
}

.schedule-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

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

.pagination-info {
    font-size: 0.9rem;
    color: var(--dark);
    opacity: 0.8;
}

/* Summary Cards */
.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-card h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.summary-item:last-child {
    margin-bottom: 0;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    opacity: 0.7;
}

footer a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary);
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.link-separator {
    color: rgba(45, 52, 54, 0.3);
    user-select: none;
}

/* Modal overlay */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 52, 54, 0.5);
    /* semi-transparent dark background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    /* Safari support */
    z-index: 1000;
    /* Higher than header */
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

/* Modal content box */
.modal-content {
    background: rgba(15, 10, 10, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    color: var(--dark);
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: translateY(0);
}

/* Modal header */
.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--dark);
    opacity: 0.7;
    font-size: 1rem;
}

/* Modal body */
.modal-body {
    margin-bottom: 2rem;
    color: var(--light);
}

/* Modal footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Close button */
.close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: var(--dark);
    opacity: 0.7;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    line-height: 1;
}

.close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal buttons */
.modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.modal-btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.modal-btn-secondary:hover {
    background: rgba(108, 92, 231, 0.1);
}

.modal a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.modal a:hover {
    color: var(--secondary);
}

.paycheck-card {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.paycheck-card .pc-label {
    font-size: 0.78rem;
    opacity: 0.7;
    margin-bottom: 4px;
}

.paycheck-card .pc-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.paycheck-card .pc-sub {
    font-size: 0.72rem;
    opacity: 0.6;
    margin-top: 2px;
}

.paycheck-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

    .filing-status-grid {
        grid-template-columns: 1fr;
    }
}

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

.filing-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Print Styles */
@media print {

    .header,
    .export-buttons,
    .schedule-controls,
    .schedule-pagination {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .calculator-panel,
    .results-panel,
    .schedule-section {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Not Found */
.not-found {
    max-width: 560px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.not-found-code {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
}

.not-found .panel-title {
    margin-bottom: 0.75rem;
}

.not-found .panel-subtitle {
    margin-bottom: 2rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.not-found-cta {
    width: auto;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-layout {
        grid-template-columns: 350px 1fr;
    }
}

@media (max-width: 768px) {
    .calculator-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calculator-panel {
        position: static;
    }

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

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

    .nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .results-header,
    .schedule-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .export-buttons,
    .schedule-controls {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .export-buttons .btn-secondary {
        flex: 1;
        min-width: 100px;
        margin: 0 0.5rem 0.5rem 0;
    }

    .export-buttons .btn-secondary:last-child {
        margin-right: 0;
    }

    .schedule-table {
        font-size: 0.8rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.5rem;
    }

    .input-suffix {
        font-size: 0.85rem;
    }

    .modal {
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-footer {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .calculator-panel,
    .results-panel,
    .schedule-section {
        padding: 1.5rem;
    }

    .panel-header {
        margin-bottom: 1.5rem;
    }

    .panel-title {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .panel-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .result-value {
        font-size: 1.5rem;
    }

    .result-card {
        padding: 1rem;
    }

    .schedule-table {
        font-size: 0.75rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.3rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .link-separator {
        display: none;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.5rem;
        min-height: 44px;
    }

    .btn-secondary {
        margin: 0.25rem 0;
        width: 100%;
    }

    .export-buttons .btn-secondary {
        margin: 0.25rem 0;
        width: 100%;
    }

    .export-buttons {
        flex-direction: column;
        width: 100%;
    }

    .schedule-pagination {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .pagination-btn {
        width: 100%;
        min-height: 40px;
    }

    .pagination-info {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .results-header {
        flex-direction: column;
    }

    .results-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .form-section {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .form-input,
    .form-select {
        font-size: 16px;
        padding: 0.75rem 0.875rem;
        min-height: 40px;
    }

    .input-suffix {
        font-size: 0.8rem;
    }

    .summary-card {
        padding: 1rem;
    }

    .summary-card h4 {
        font-size: 0.95rem;
    }

    .summary-item {
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 1rem;
        max-width: calc(100% - 2rem);
    }

    .modal-header {
        margin-bottom: 1rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .close {
        width: 2rem;
        height: 2rem;
        top: 1rem;
        right: 1rem;
        font-size: 1.3rem;
    }

    .modal-body {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .not-found {
        margin: 2rem auto;
        padding: 2rem 1.5rem;
    }

    .not-found-code {
        font-size: 3.5rem;
    }
}

.tax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    gap: 1rem;
}

.tax-row:last-child {
    border-bottom: none;
}

.tax-label {
    opacity: 0.85;
}

.tax-value {
    font-weight: 600;
    white-space: nowrap;
}

.tax-value.negative {
    color: var(--error);
}

.tax-value.positive {
    color: var(--success);
}

.tax-value.primary {
    color: var(--primary);
}

.tax-value.warning {
    color: var(--warning);
}

.tax-row.total-row {
    font-weight: 700;
    font-size: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-bottom: none;
}

.tax-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.info-note {
    background: rgba(124, 108, 247, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.threshold-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.badge-met {
    background: rgba(46, 216, 163, 0.15);
    color: var(--success);
}

.badge-not-met {
    background: rgba(240, 98, 146, 0.15);
    color: var(--error);
}

.expense-toggle-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.expense-btn {
    flex: 1;
    padding: 0.55rem 0.5rem;
    border: 2px solid rgba(124, 108, 247, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--dark);
    transition: all 0.22s ease;
    text-align: center;
}

.expense-btn:hover {
    border-color: var(--primary);
}

.expense-btn.active {
    border-color: var(--primary);
    background: rgba(124, 108, 247, 0.12);
    color: var(--primary);
    font-weight: 700;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.toggle-label input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.cas-threshold-indicator {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .expense-toggle-group {
        flex-direction: column;
    }
}