.navbar {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body {
    background: #f8fafc;
    color: #0f172a;
}

main.container {
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.portal-nav {
    align-items: center;
}

.portal-nav .nav-link {
    color: #334155;
    font-weight: 500;
}

.portal-nav .nav-link:hover,
.portal-nav .nav-link:focus {
    color: #0d6efd;
}

.portal-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.portal-hero,
.portal-subhero,
.portal-flow-section,
.portal-cta,
.portal-form-card,
.portal-form-side,
.portal-feature-card,
.portal-product-card,
.portal-value-card,
.portal-highlight-card,
.portal-stat-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.portal-hero,
.portal-subhero,
.portal-flow-section,
.portal-form-card,
.portal-form-side,
.portal-product-card,
.portal-value-card {
    background: #ffffff;
}

.portal-hero {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(15, 23, 42, 0.03));
}

.portal-subhero {
    padding: 2.5rem;
}

.portal-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: #0d6efd;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-link {
    text-decoration: none;
    font-weight: 600;
}

.portal-stat-card,
.portal-feature-card,
.portal-value-card,
.portal-flow-step {
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: #fff;
}

.portal-stat-card strong,
.portal-feature-card h3,
.portal-value-card h3,
.portal-product-card h2,
.portal-side-section h3 {
    display: block;
    margin-bottom: 0.75rem;
}

.portal-stat-card span,
.portal-feature-card p,
.portal-value-card p,
.portal-product-card p,
.portal-form-side p,
.portal-side-section li,
.portal-product-card li,
.portal-value-card li,
.portal-feature-card li,
.portal-flow-step span {
    color: #475569;
}

.portal-highlight-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: #0f172a;
}

.portal-highlight-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
}

.portal-highlight-item span {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.2);
    color: #93c5fd;
    font-weight: 700;
}

.portal-highlight-item h3,
.portal-highlight-item p {
    color: #ffffff;
}

.portal-feature-card,
.portal-product-card,
.portal-form-card,
.portal-form-side,
.portal-value-card {
    border-radius: 1.5rem;
    padding: 1.75rem;
}

.portal-accent-card {
    background: linear-gradient(135deg, #0d6efd, #1d4ed8);
}

.portal-accent-card h3,
.portal-accent-card p {
    color: #ffffff;
}

.portal-flow-section {
    padding: 2.5rem;
}

.portal-flow-step {
    height: 100%;
}

.portal-flow-step strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.portal-cta {
    padding: 3rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 1.5rem;
}

.portal-product-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.portal-product-head > span {
    display: inline-flex;
    min-width: 4rem;
    padding: 0.75rem 1rem;
    justify-content: center;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-weight: 700;
}

.portal-form-card .form-control,
.portal-form-card .form-select {
    border-radius: 0.9rem;
    border-color: rgba(148, 163, 184, 0.45);
}

.portal-form-card .form-control:focus,
.portal-form-card .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}

.portal-side-section + .portal-side-section {
    margin-top: 1.5rem;
}

.portal-side-section ul,
.portal-product-card ul,
.portal-value-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.portal-side-section li + li,
.portal-product-card li + li,
.portal-value-card li + li {
    margin-top: 0.5rem;
}

[data-bs-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: rgba(148, 163, 184, 0.16);
}

[data-bs-theme="dark"] body {
    background: #020617;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .portal-nav .nav-link {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .portal-nav .nav-link:hover,
[data-bs-theme="dark"] .portal-nav .nav-link:focus,
[data-bs-theme="dark"] .portal-link {
    color: #93c5fd;
}

[data-bs-theme="dark"] .portal-hero,
[data-bs-theme="dark"] .portal-subhero,
[data-bs-theme="dark"] .portal-flow-section,
[data-bs-theme="dark"] .portal-form-card,
[data-bs-theme="dark"] .portal-form-side,
[data-bs-theme="dark"] .portal-product-card,
[data-bs-theme="dark"] .portal-value-card,
[data-bs-theme="dark"] .portal-stat-card,
[data-bs-theme="dark"] .portal-feature-card,
[data-bs-theme="dark"] .portal-flow-step {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
}

[data-bs-theme="dark"] .portal-hero {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.28), rgba(15, 23, 42, 0.92));
}

[data-bs-theme="dark"] .portal-subhero {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.88));
}

[data-bs-theme="dark"] .portal-flow-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
}

[data-bs-theme="dark"] .portal-feature-card,
[data-bs-theme="dark"] .portal-product-card,
[data-bs-theme="dark"] .portal-form-card,
[data-bs-theme="dark"] .portal-form-side,
[data-bs-theme="dark"] .portal-value-card,
[data-bs-theme="dark"] .portal-stat-card,
[data-bs-theme="dark"] .portal-flow-step {
    background: rgba(15, 23, 42, 0.9);
}

[data-bs-theme="dark"] .portal-page h1,
[data-bs-theme="dark"] .portal-page h2,
[data-bs-theme="dark"] .portal-page h3,
[data-bs-theme="dark"] .portal-page strong,
[data-bs-theme="dark"] .portal-flow-step strong,
[data-bs-theme="dark"] .portal-product-card h2,
[data-bs-theme="dark"] .portal-side-section h3 {
    color: #f8fafc;
}

[data-bs-theme="dark"] .portal-page p,
[data-bs-theme="dark"] .portal-page li,
[data-bs-theme="dark"] .portal-page span,
[data-bs-theme="dark"] .portal-stat-card span,
[data-bs-theme="dark"] .portal-feature-card p,
[data-bs-theme="dark"] .portal-value-card p,
[data-bs-theme="dark"] .portal-product-card p,
[data-bs-theme="dark"] .portal-form-side p,
[data-bs-theme="dark"] .portal-side-section li,
[data-bs-theme="dark"] .portal-product-card li,
[data-bs-theme="dark"] .portal-value-card li,
[data-bs-theme="dark"] .portal-feature-card li,
[data-bs-theme="dark"] .portal-flow-step span,
[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .portal-eyebrow {
    color: #60a5fa;
}

[data-bs-theme="dark"] .portal-product-head > span {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
}

[data-bs-theme="dark"] .portal-highlight-card {
    background: linear-gradient(180deg, #0f172a, #020617);
    border-color: rgba(96, 165, 250, 0.16);
}

[data-bs-theme="dark"] .portal-highlight-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .portal-form-card .form-control,
[data-bs-theme="dark"] .portal-form-card .form-select,
[data-bs-theme="dark"] .portal-form-card textarea {
    background-color: #0b1220;
    border-color: rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .portal-form-card .form-control::placeholder,
[data-bs-theme="dark"] .portal-form-card textarea::placeholder {
    color: #64748b;
}

[data-bs-theme="dark"] .portal-form-card .form-control:focus,
[data-bs-theme="dark"] .portal-form-card .form-select:focus,
[data-bs-theme="dark"] .portal-form-card textarea:focus {
    background-color: #0b1220;
    border-color: rgba(96, 165, 250, 0.45);
    color: #f8fafc;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.14);
}

[data-bs-theme="dark"] .portal-form-card .form-label,
[data-bs-theme="dark"] .portal-form-side .form-label {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .portal-form-card .text-danger {
    color: #fca5a5 !important;
}

[data-bs-theme="dark"] .portal-form-card .alert,
[data-bs-theme="dark"] .portal-page .alert-success {
    background: rgba(22, 101, 52, 0.22);
    color: #bbf7d0;
}

[data-bs-theme="dark"] .portal-page .btn-outline-secondary {
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.35);
}

[data-bs-theme="dark"] .portal-page .btn-outline-secondary:hover,
[data-bs-theme="dark"] .portal-page .btn-outline-secondary:focus {
    background-color: rgba(148, 163, 184, 0.12);
    color: #f8fafc;
}

[data-bs-theme="dark"] .portal-page .border,
[data-bs-theme="dark"] .portal-page hr {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

@media (max-width: 991.98px) {
    main.container {
        padding-top: 6rem;
    }

    .portal-hero,
    .portal-subhero,
    .portal-flow-section,
    .portal-cta,
    .portal-form-card,
    .portal-form-side,
    .portal-product-card {
        padding: 1.5rem;
    }
}
