        :root {
            --primary: #1e3a8a;
            --primary-light: #eff6ff;
            --success: #059669;
            --success-light: #ecfdf5;
            --danger: #dc2626;
            --danger-light: #fef2f2;
            --gray-700: #374151;
            --gray-100: #f3f4f6;
            --border: #e5e7eb;
            --radius: 8px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        }

        body {
            background-color: #f9fafb;
            color: var(--gray-700);
            line-height: 1.6;
            padding: 0 0 20px 0; /* Clear padding for flush navbar */
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px; /* Shift padding limits contextually to container */
        }
    
        /* EXTENSION: SOPHISTICATED BRAND NAVBAR */
.brand-navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 20px;
    padding: 12px 20px;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo-group {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-accent {
    margin-right: 8px;
    font-size: 1.2rem;
    color: var(--primary);
}

.brand-name {
    color: var(--primary);
}

.brand-division {
    color: #9ca3af;
    font-weight: 400;
}

.nav-utility-tag {
    display: flex;
    align-items: center;
}

.utility-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

        header {
            margin-bottom: 30px;
            background: white;
            padding: 24px 30px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
        }

        h1 {
            color: var(--primary);
            font-size: 2.2rem;
            margin-bottom: 15px;
        }

        .lead-text {
            font-size: 1.1rem;
            color: #4b5563;
            margin-bottom: 20px;
        }

        .fx-status-bar {
            font-size: 0.85rem;
            color: #6b7280;
            background-color: var(--gray-100);
            padding: 6px 12px;
            border-radius: 6px;
            display: inline-block;
            font-weight: 500;
        }

        .grid-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
        }

        @media (min-width: 900px) {
            .grid-layout {
                grid-template-columns: 400px 1fr;
            }
        }

        .panel {
            background: white;
            padding: 25px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            height: fit-content;
        }

        .panel h2 {
            font-size: 1.4rem;
            margin-bottom: 20px;
            color: var(--primary);
            border-bottom: 2px solid var(--primary-light);
            padding-bottom: 8px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        label {
            display: block;
            font-weight: 600;
            margin-bottom: 6px;
            font-size: 0.95rem;
        }

        input[type="number"], input[type="text"], select {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 1rem;
            color: var(--gray-700);
        }

        input:focus, select:focus {
            outline: 2px solid var(--primary);
        }

        .checkbox-group {
            max-height: 180px;
            overflow-y: auto;
            border: 1px solid var(--border);
            padding: 10px;
            border-radius: 6px;
            background: var(--gray-100);
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            font-size: 0.95rem;
        }

        .checkbox-item input {
            margin-right: 10px;
            width: 16px;
            height: 16px;
        }

        .bracket-row {
            display: grid;
            grid-template-columns: 1fr 1fr auto;
            gap: 8px;
            margin-bottom: 8px;
        }

        .btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.95rem;
            width: 100%;
            transition: background 0.2s;
        }

        .btn:hover {
            background: #1d4ed8;
        }

        .btn-secondary {
            background: var(--gray-100);
            color: var(--gray-700);
            border: 1px solid var(--border);
            margin-top: 5px;
        }

        .btn-secondary:hover {
            background: #e5e7eb;
        }

        .action-area {
            margin-top: 15px;
        }

        .share-banner {
            margin-top: 15px;
            padding: 12px;
            background-color: var(--primary-light);
            border: 1px solid var(--border);
            border-radius: 6px;
        }

        .share-input-wrapper {
            display: flex;
            gap: 8px;
            margin-top: 6px;
        }

        .share-input-wrapper input {
            flex: 1;
            padding: 6px 10px;
            font-size: 0.85rem;
            border: 1px solid var(--border);
            border-radius: 4px;
            background: #fff;
        }

        .share-input-wrapper button {
            width: auto;
            padding: 6px 12px;
            font-size: 0.85rem;
        }

        .cards-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .card {
            background: white;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            padding: 20px;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .card.base-country {
            border-left: 6px solid var(--primary);
            background-color: #f8fafc;
        }

        .card.highest-net {
            border: 2px solid var(--success);
            box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
        }

        .card.lowest-tax {
            background: var(--success-light);
        }

        .badge-container {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 4px;
        }

        .badge {
            display: inline-block;
            font-size: 0.75rem;
            font-weight: bold;
            text-transform: uppercase;
            padding: 4px 8px;
            border-radius: 4px;
        }

        .badge-base { background: var(--primary-light); color: var(--primary); }
        .badge-highest { background: var(--success); color: white; }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px dashed var(--border);
            gap: 15px;
        }

        .card-title-group {
            display: flex;
            flex-direction: column;
        }

        .card-title {
            font-size: 1.3rem;
            font-weight: 700;
            line-height: 1.2;
        }

        .card-meta-type {
            font-size: 0.85rem;
            color: #6b7280;
            font-weight: bold;
            text-align: right;
            white-space: nowrap;
        }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 15px;
            margin-bottom: 15px;
        }

        .metric label {
            font-size: 0.8rem;
            color: #6b7280;
            text-transform: uppercase;
        }

        .metric .value {
            font-size: 1.1rem;
            font-weight: 700;
        }

        .metric .sub-label {
            font-size: 0.75rem;
            color: #9ca3af;
        }

        .metric .lowest-tax-highlight {
            font-size: 0.75rem;
            color: #10b981;
            font-weight: 600;
        }

        .comparison-bar {
            font-size: 0.9rem;
            padding: 8px 12px;
            background: var(--gray-100);
            border-radius: 6px;
            display: flex;
            justify-content: space-between;
        }

        .comparison-bar.positive { border-left: 4px solid var(--success); }
        .comparison-bar.negative { border-left: 4px solid var(--danger); }

        .seo-section {
            margin-top: 40px;
            background: white;
            padding: 35px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
        }

        .seo-section h2, .seo-section h3 {
            color: var(--primary);
            margin-top: 25px;
            margin-bottom: 12px;
        }

        .seo-section p {
            margin-bottom: 15px;
            color: #4b5563;
            text-align: justify;
        }

        .disclaimer {
            background: var(--danger-light);
            border: 1px solid #fca5a5;
            padding: 15px;
            border-radius: var(--radius);
            margin-top: 30px;
            font-size: 0.9rem;
            color: var(--danger);
        }

        .panel-wrapper { margin-bottom: 20px; }
        .error-message { padding: 20px; color: var(--danger); }
        .empty-trigger-msg { padding: 20px; text-align: center; }
        .bracket-delete-btn { margin: 0; padding: 10px; }

        .hidden { display: none !important; }
.centrigon-signature {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.centrigon-brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.centrigon-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.centrigon-brand:hover {
    text-decoration: underline;
}

.centrigon-divider {
    color: #9ca3af;
}

.centrigon-tagline {
    font-size: 0.9rem;
    color: #6b7280;
}

.centrigon-description {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 15px;
    text-align: left;
}

.centrigon-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.centrigon-links a {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.centrigon-links a:hover {
    text-decoration: underline;
}

.related-comparisons {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.related-intro {
    margin-bottom: 20px;
    color: #6b7280;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.related-card {
    display: block;
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-card:hover {
    border-color: var(--primary);
    background: white;
    transform: translateY(-2px);
}

.related-card h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.related-card p {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0;
    text-align: left;
}

/*
.deduction-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    margin: 1rem 0 1.5rem;
    padding: 0.9rem 1rem;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.deduction-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

.deduction-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;

    margin: 0;
    cursor: pointer;

    accent-color: var(--primary);
    flex-shrink: 0;
}

.deduction-toggle label {
    margin: 0;

    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;

    color: var(--text-primary);
}

*/

/* EXTENSION: DEDUCTIONS TOGGLE FIELD FORM CONTROL */
.toggle-wrapper {
    background-color: var(--gray-100);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin-top: 10px;
}

.toggle-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0; /* Reset default label spacing */
}

.toggle-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.toggle-label-text {
    user-select: none;
}

/* EXTENSION: COUNTRY DEDUCTIONS & ADDITIONS TRAY */
.card-breakdown-tray {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 2px 0;
}

.breakdown-label {
    color: #4b5563;
}

/* Semantically styled semantic value variants */
.breakdown-value {
    font-family: monospace;
    font-weight: 600;
}

.breakdown-value.subtraction {
    color: var(--danger);
}

.breakdown-value.addition {
    color: var(--success);
}

.breakdown-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    background-color: var(--gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

/* EXTENSION: SOPHISTICATED BRAND FOOTER */
.brand-footer {
    background-color: white;
    border-top: 1px solid var(--border);
    margin-top: 50px;
    padding: 24px 20px;
    color: #6b7280;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-branding {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 0.8rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
}

@media (min-width: 640px) {
    .footer-meta {
        text-align: right;
        align-items: flex-end;
    }
}

.privacy-notice {
    font-weight: 600;
    color: #4b5563;
}

.copyright-text {
    color: #9ca3af;
}