body.portal-body {
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: #1c1917;
    background:
        radial-gradient(circle at top left, rgba(241, 182, 62, 0.18), transparent 28%),
        radial-gradient(circle at right center, rgba(34, 197, 94, 0.08), transparent 22%),
        linear-gradient(180deg, #f8f4ec 0%, #f1ebe0 45%, #eee5d9 100%);
}

.portal-shell {
    max-width: 1320px;
}

.portal-topbar {
    margin-bottom: 2rem;
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 90px rgba(57, 44, 29, 0.08);
    backdrop-filter: blur(14px);
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
    text-decoration: none;
}

.portal-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #15110f 0%, #3f2f24 100%);
    color: #f6d58b;
    font-weight: 800;
    letter-spacing: 0.08em;
    overflow: hidden;
    flex-shrink: 0;
}

.portal-brand-logo-wrap {
    padding: 0;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(28, 25, 23, 0.08);
}

.portal-brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-brand small,
.portal-brand strong {
    display: block;
    overflow-wrap: anywhere;
}

.portal-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
}

.portal-brand small {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a16207;
}

.portal-brand strong {
    margin-top: 0.25rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1c1917;
}

.portal-toggler {
    border: 1px solid rgba(28, 25, 23, 0.12);
    border-radius: 1rem;
}

.portal-nav-link {
    padding: 0.75rem 1rem !important;
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #292524 !important;
    background: rgba(255, 255, 255, 0.72);
}

.portal-nav-link:hover,
.portal-nav-link:focus {
    color: #111827 !important;
    border-color: rgba(28, 25, 23, 0.24);
}

.portal-nav-live-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.portal-live-pulse {
    position: relative;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
    animation: portal-live-pulse 1.8s infinite;
}

.portal-live-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(22, 163, 74, 0.32);
}

@keyframes portal-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.portal-nav-link-accent {
    background: #1c1917;
    color: #fff7ed !important;
}

.portal-nav-link-accent:hover,
.portal-nav-link-accent:focus {
    background: #292524;
    color: #fff !important;
}

.portal-alert {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.12);
}

.portal-card,
.portal-panel,
.portal-soft-card {
    border-radius: 2rem;
    border: 1px solid rgba(28, 25, 23, 0.08);
    box-shadow: 0 20px 80px rgba(68, 53, 31, 0.08);
}

.portal-card {
    background: rgba(255, 255, 255, 0.88);
}

.portal-soft-card {
    background: #f7f2ea;
}

.portal-hero {
    overflow: hidden;
    border-radius: 2.5rem;
    background:
        radial-gradient(circle at 12% 24%, rgba(250, 204, 21, 0.22), transparent 24%),
        radial-gradient(circle at 88% 72%, rgba(52, 211, 153, 0.12), transparent 18%),
        linear-gradient(140deg, #171312 0%, #221a16 46%, #35261d 100%);
    color: #fff;
    box-shadow: 0 34px 130px rgba(35, 27, 18, 0.3);
}

.portal-hero .display-5 {
    font-weight: 800;
    line-height: 1.04;
}

.portal-stat-card,
.portal-quick-card,
.portal-step-card,
.portal-action-card,
.portal-list-item,
.portal-trust-card {
    border-radius: 1.5rem;
}

.portal-stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-stat-card .portal-stat-value {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
}

.portal-quick-panel {
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.portal-quick-card {
    display: block;
    padding: 1.25rem;
    color: inherit;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.18s ease, background 0.18s ease;
}

.portal-quick-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.1);
}

.portal-live-metric-value {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.portal-live-progress {
    overflow: hidden;
    width: 100%;
    max-width: 170px;
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.08);
}

.portal-live-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b 0%, #16a34a 100%);
}

.portal-results-stack {
    display: grid;
    gap: 1.25rem;
}

.portal-results-sub-label {
    color: #a16207;
    font-size: 0.95rem;
    font-weight: 700;
}

.portal-results-table-wrap {
    overflow-x: auto;
}

.portal-results-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.46);
    margin: 0;
}

.portal-results-table thead th {
    border-bottom-width: 1px;
    border-color: rgba(28, 25, 23, 0.1);
    color: #57534e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.portal-results-table tbody td {
    vertical-align: middle;
    border-color: rgba(28, 25, 23, 0.08);
}

.portal-results-score,
.portal-results-score-cell {
    font-weight: 700;
}

.portal-results-score-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 220px;
}

.portal-results-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(120, 113, 108, 0.12);
    color: #44403c;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-results-badge.is-leading {
    background: rgba(22, 163, 74, 0.14);
    color: #166534;
}

.portal-home-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.portal-home-hero {
    position: relative;
}

.portal-home-badge,
.portal-home-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-home-badge {
    padding: 0.55rem 0.95rem;
    background: rgba(255, 255, 255, 0.12);
    color: #f6d58b;
    font-size: 0.74rem;
}

.portal-home-chip {
    padding: 0.5rem 0.85rem;
    background: #f7efe2;
    color: #8b5e34;
    font-size: 0.72rem;
}

.portal-home-lead {
    max-width: 40rem;
    color: rgba(255, 247, 237, 0.78);
    font-size: 1.05rem;
    line-height: 1.7;
}

.portal-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.portal-home-secondary-btn {
    border-radius: 999px;
    padding: 0.9rem 1.45rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff7ed;
    font-weight: 700;
}

.portal-home-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.portal-home-mini-note {
    padding: 1rem 1.15rem;
    max-width: 34rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 247, 237, 0.84);
    line-height: 1.65;
}

.portal-home-overview {
    padding: 1.4rem;
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.portal-home-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.portal-home-overview-label,
.portal-home-section-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b45309;
}

.portal-home-stat-card {
    padding: 1.2rem;
}

.portal-home-stat-card.portal-stat-card {
    background: rgba(255, 255, 255, 0.09);
}

.portal-home-stat-note {
    color: rgba(255, 247, 237, 0.62);
    font-size: 0.88rem;
    line-height: 1.45;
}

.portal-home-stat-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.portal-home-panel,
.portal-home-footer-panel {
    background: rgba(255, 255, 255, 0.9);
}

.portal-home-action-list,
.portal-home-steps,
.portal-home-recent-list {
    display: grid;
    gap: 1rem;
}

.portal-home-action-card,
.portal-home-step,
.portal-home-recent-item,
.portal-home-recent-empty {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border-radius: 1.5rem;
    text-decoration: none;
}

.portal-home-action-card {
    background: #fcfaf6;
    border: 1px solid rgba(28, 25, 23, 0.08);
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.portal-home-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(28, 25, 23, 0.18);
    background: #ffffff;
}

.portal-home-action-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 1rem;
    background: #1c1917;
    color: #f6d58b;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.portal-home-action-copy {
    min-width: 0;
}

.portal-home-step {
    align-items: flex-start;
    background: #fcfaf6;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-home-step .portal-pill {
    flex-shrink: 0;
}

.portal-home-recent-item {
    justify-content: space-between;
    background: #f8f4ee;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-home-recent-empty {
    justify-content: center;
    background: #fcfaf6;
    border: 1px dashed rgba(28, 25, 23, 0.12);
    color: #6b645f;
}

.portal-admin-login-card {
    max-width: 30rem;
    padding: 2rem;
}

.portal-admin-topbar {
    padding: 1.25rem 1.35rem;
    border-radius: 1.75rem;
    border: 1px solid rgba(28, 25, 23, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 50px rgba(68, 53, 31, 0.08);
    backdrop-filter: blur(12px);
}

.portal-admin-topbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.portal-admin-eyebrow {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a16207;
}

.portal-admin-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1c1917;
}

.portal-admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.portal-admin-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(28, 25, 23, 0.08);
    background: rgba(255, 255, 255, 0.74);
    color: #292524;
    font-weight: 700;
    text-decoration: none;
}

.portal-admin-menu-link.is-active {
    background: #1c1917;
    border-color: #1c1917;
    color: #fff7ed;
}

.portal-admin-shell {
    background: rgba(255, 255, 255, 0.92);
}

.portal-admin-panel {
    height: 100%;
    padding: 1.4rem;
    border-radius: 1.5rem;
    background: #fcfaf6;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-admin-import-card {
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #fffdf8, #f7f2ea);
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-admin-section-label,
.portal-admin-metric-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a16207;
}

.portal-admin-analytics-card {
    height: 100%;
    padding: 1.25rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #fffdf8, #f7f2ea);
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-admin-metric-value {
    font-size: 2.3rem;
    line-height: 1;
    font-weight: 800;
    color: #1c1917;
}

.portal-admin-breakdown-list,
.portal-admin-recent-list,
.portal-admin-tower-list {
    display: grid;
    gap: 0.9rem;
}

.portal-admin-breakdown-row,
.portal-admin-recent-item,
.portal-admin-tower-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 1.2rem;
    background: #ffffff;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-admin-breakdown-total,
.portal-admin-tower-total,
.portal-admin-mini-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1c1917;
}

.portal-admin-mini-stat {
    height: 100%;
    padding: 1rem;
    border-radius: 1.2rem;
    background: #ffffff;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-admin-empty-state {
    padding: 1.25rem;
    border-radius: 1.2rem;
    text-align: center;
    background: #fcfaf6;
    border: 1px dashed rgba(28, 25, 23, 0.12);
    color: #6b645f;
}

.portal-admin-print-body {
    margin: 0;
    background: #f3efe6;
    color: #1c1917;
    font-family: "Manrope", sans-serif;
}

.portal-admin-print-sheet {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem;
}

.portal-admin-print-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.portal-admin-print-header,
.portal-admin-print-card {
    background: #ffffff;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-admin-print-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
    margin-bottom: 1.25rem;
}

.portal-admin-print-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a16207;
}

.portal-admin-print-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.portal-admin-print-subtitle {
    color: #6b645f;
}

.portal-admin-print-reference {
    min-width: 200px;
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    background: #f7f2ea;
    text-align: right;
}

.portal-admin-print-reference span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b645f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-admin-print-reference strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
}

.portal-admin-print-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.portal-admin-print-card {
    border-radius: 1.35rem;
    padding: 1.25rem;
}

.portal-admin-print-card h2 {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.portal-admin-print-card dl {
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.portal-admin-print-card dl div {
    display: grid;
    gap: 0.2rem;
}

.portal-upload-wrap {
    display: grid;
    gap: 1rem;
}

.portal-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.portal-upload-dropzone {
    display: grid;
    gap: 0.45rem;
    padding: 1.4rem;
    border-radius: 1.5rem;
    border: 1px dashed rgba(28, 25, 23, 0.18);
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.14), transparent 30%),
        linear-gradient(180deg, #fffdf8 0%, #f8f1e4 100%);
    color: #292524;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.portal-upload-dropzone:hover,
.portal-upload-dropzone:focus-within {
    border-color: rgba(161, 98, 7, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(68, 53, 31, 0.08);
}

.portal-upload-dropzone strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.portal-upload-dropzone span:last-child {
    color: #6b645f;
}

.portal-upload-badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.88);
    color: #fff7ed !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portal-upload-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(28, 25, 23, 0.08);
    background: #fcfaf6;
}

.portal-upload-preview-image {
    width: 88px;
    height: 88px;
    border-radius: 1rem;
    object-fit: cover;
    border: 1px solid rgba(28, 25, 23, 0.08);
    background: #ffffff;
    flex-shrink: 0;
}

.portal-upload-preview-copy {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.portal-upload-preview-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-upload-preview-copy span {
    color: #6b645f;
    font-size: 0.92rem;
}

.portal-admin-image-card {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.5rem;
    background: #fcfaf6;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-admin-image-preview,
.portal-admin-print-image {
    display: block;
    width: 100%;
    max-width: 360px;
    border-radius: 1.25rem;
    border: 1px solid rgba(28, 25, 23, 0.08);
    background: #ffffff;
    object-fit: cover;
}

.portal-admin-list-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portal-admin-list-image-wrap {
    display: inline-block;
    width: 72px;
    height: 72px;
    min-width: 72px;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(28, 25, 23, 0.08);
    background: #ffffff;
    vertical-align: middle;
}

.portal-admin-print-image {
    max-width: 100%;
    max-height: 380px;
}

@media (min-width: 768px) {
    .portal-admin-image-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

@media (max-width: 767.98px) {
    .portal-upload-preview {
        flex-direction: column;
        align-items: flex-start;
    }
}

.portal-admin-print-card dt {
    font-size: 0.75rem;
    font-weight: 800;
    color: #6b645f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-admin-print-card dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.portal-admin-print-notes {
    margin-top: 1rem;
}

.portal-admin-print-notes p {
    margin: 0;
    color: #3f3a36;
    line-height: 1.7;
}

.portal-admin-print-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6b645f;
}

.portal-admin-table-wrap {
    overflow-x: auto;
    border-radius: 1.5rem;
    border: 1px solid rgba(28, 25, 23, 0.08);
    background: #fcfaf6;
}

.portal-admin-table {
    min-width: 860px;
}

.portal-admin-table thead th {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(28, 25, 23, 0.08);
    color: #6b645f;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #f7f2ea;
}

.portal-admin-table tbody td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(28, 25, 23, 0.06);
    background: transparent;
}

.portal-admin-table tbody tr:last-child td {
    border-bottom: none;
}

.portal-admin-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #1c1917;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: capitalize;
}

.portal-step-card,
.portal-trust-card,
.portal-action-card,
.portal-result-box,
.portal-empty-box {
    background: #fcfaf6;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-action-card {
    display: block;
    padding: 1.4rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.portal-action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(28, 25, 23, 0.24);
    background: #ffffff;
}

.portal-list-item {
    background: #f8f4ee;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-badge-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    background: #1c1917;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.portal-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    font-weight: 800;
}

.portal-pill-dark {
    background: #1c1917;
    color: white;
}

.portal-pill-gold {
    background: #f6c453;
    color: #241b13;
}

.portal-pill-green {
    background: #10b981;
    color: white;
}

.portal-section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.portal-kicker {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b45309;
}

.portal-form-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem;
}

.portal-form-label {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: #292524;
}

.portal-form-control,
.portal-form-select,
.portal-form-check-wrap {
    border-radius: 1rem;
}

.portal-form-control,
.portal-form-select {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(28, 25, 23, 0.14);
    background: #fff;
}

.portal-form-control:focus,
.portal-form-select:focus {
    border-color: rgba(28, 25, 23, 0.35);
    box-shadow: 0 0 0 0.25rem rgba(28, 25, 23, 0.08);
}

.portal-form-check-wrap {
    padding: 1rem 1.1rem;
    background: #f6f0e7;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-reference-box {
    border-radius: 1.75rem;
    padding: 1.5rem;
    background: #f7f2ea;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-reference-code {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.portal-fee-preview {
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(28, 25, 23, 0.1);
    border-radius: 1rem;
    background: linear-gradient(180deg, #fffaf3 0%, #f6efe4 100%);
    font-size: 1rem;
    font-weight: 800;
    color: #1c1917;
}

.portal-voucher {
    padding: 1.6rem;
    border-radius: 1.75rem;
    border: 1px solid rgba(28, 25, 23, 0.12);
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 252, 245, 0.98) 0%, rgba(247, 241, 230, 0.98) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.portal-voucher-header,
.portal-voucher-grid,
.portal-voucher-amount-row,
.portal-voucher-footer {
    display: flex;
    gap: 1rem;
}

.portal-voucher-header,
.portal-voucher-amount-row,
.portal-voucher-footer {
    align-items: center;
    justify-content: space-between;
}

.portal-voucher-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a16207;
}

.portal-voucher-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1c1917;
}

.portal-voucher-badge {
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #1c1917;
    color: #fff7ed;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-voucher-grid {
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.portal-voucher-grid > div {
    flex: 1 1 16rem;
    padding: 1rem 1.1rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-voucher-meta-label {
    margin-bottom: 0.35rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #78716c;
}

.portal-voucher-meta-value {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1c1917;
}

.portal-voucher-amount-row {
    margin-top: 1.25rem;
    padding: 1.1rem 1.2rem;
    border-radius: 1.3rem;
    background: rgba(28, 25, 23, 0.96);
    color: #fff7ed;
}

.portal-voucher-meta-note {
    color: rgba(255, 247, 237, 0.74);
    font-size: 0.92rem;
}

.portal-voucher-amount {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.portal-voucher-footer {
    margin-top: 1.75rem;
    padding-top: 1.35rem;
    border-top: 1px dashed rgba(28, 25, 23, 0.22);
}

.portal-voucher-signature {
    width: min(100%, 220px);
    padding-top: 0.55rem;
    border-top: 1px solid rgba(28, 25, 23, 0.48);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #44403c;
}

.portal-outline-btn {
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
    border: 1px solid rgba(28, 25, 23, 0.18);
    background: transparent;
    color: #292524;
    font-weight: 700;
}

.portal-outline-btn:hover {
    border-color: rgba(28, 25, 23, 0.34);
    background: rgba(255,255,255,0.78);
}

.portal-primary-btn {
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
    border: none;
    background: #1c1917;
    color: white;
    font-weight: 700;
}

.portal-primary-btn:hover {
    background: #292524;
    color: white;
}

.portal-gold-btn {
    border-radius: 999px;
    padding: 0.9rem 1.45rem;
    border: none;
    background: #f6c453;
    color: #1c1917;
    font-weight: 800;
}

.portal-gold-btn:hover {
    background: #f3d07d;
    color: #1c1917;
}

.portal-muted {
    color: #6b645f;
}

.portal-status-hero {
    background:
        radial-gradient(circle at top left, rgba(246, 196, 83, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.88));
}

.portal-status-tip {
    padding: 1.35rem 1.4rem;
    border-radius: 1.5rem;
    background: #fcfaf6;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.portal-status-list {
    padding-left: 1.15rem;
    color: #6b645f;
    line-height: 1.7;
}

@media print {
    .portal-topbar,
    .portal-alert,
    .d-flex.flex-wrap.gap-3.mt-4 {
        display: none !important;
    }

    .portal-shell {
        max-width: none;
        padding: 0 !important;
    }

    .portal-card {
        border: 0;
        box-shadow: none;
        background: #ffffff;
    }

    .portal-voucher {
        border: 1px solid rgba(28, 25, 23, 0.2);
        box-shadow: none;
    }
}

.portal-status-icon,
.portal-status-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 1rem;
    font-weight: 800;
}

.portal-status-icon {
    width: 3rem;
    height: 3rem;
    background: #1c1917;
    color: #fff;
}

.portal-status-empty {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-status-panel-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.portal-status-empty-icon {
    width: 4.2rem;
    height: 4.2rem;
    background: #f6ede1;
    color: #8b5e34;
    font-size: 1.5rem;
}

.portal-status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.portal-status-meta-item,
.portal-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.portal-status-meta-item {
    padding: 0.55rem 0.9rem;
    background: #f5efe5;
    color: #6b645f;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-status-chip {
    width: 100%;
    min-height: 3.4rem;
    padding: 0.8rem 1rem;
    background: #1c1917;
    color: #fff;
    text-transform: capitalize;
    letter-spacing: 0.03em;
}

.portal-status-success,
.portal-status-warning {
    padding: 1rem 1.15rem;
    border-radius: 1.2rem;
}

.portal-status-success {
    background: #edf9f0;
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.12);
}

.portal-status-warning {
    background: #fff4e8;
    color: #9a3412;
    border: 1px solid rgba(154, 52, 18, 0.12);
}

@media (max-width: 1199.98px) {
    .portal-topbar .container-fluid {
        align-items: flex-start;
    }

    .portal-brand {
        flex: 0 1 calc(100% - 5.75rem);
        gap: 0.85rem;
        margin-right: 0.5rem;
        max-width: calc(100% - 5.75rem);
    }

    .portal-brand-mark {
        width: 3.5rem;
        height: 3.5rem;
    }

    .portal-brand-copy {
        padding-right: 0.35rem;
    }

    .portal-brand small {
        font-size: clamp(0.52rem, 1.8vw, 0.58rem);
        letter-spacing: 0.1em;
        line-height: 1.3;
    }

    .portal-brand strong {
        font-size: clamp(0.95rem, 2.8vw, 1.05rem);
        line-height: 1.15;
    }

    .portal-toggler {
        margin-left: auto;
        align-self: flex-start;
        flex: 0 0 auto;
    }

    .portal-topbar .navbar-collapse {
        flex-basis: 100%;
        margin-top: 0.9rem;
    }

    .portal-nav-link {
        width: 100%;
        margin-top: 0.35rem;
    }
}

@media (max-width: 991.98px) {
    .portal-shell {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .portal-topbar {
        padding: 1rem 1.1rem;
    }

    .portal-form-card {
        padding: 1.4rem;
    }

    .portal-reference-code {
        font-size: 1.55rem;
        letter-spacing: 0.08em;
        word-break: break-word;
    }

    .portal-status-chip {
        width: auto;
    }

    .portal-home-stack {
        gap: 1rem;
    }

    .portal-home-hero {
        border-radius: 2rem;
    }

    .portal-home-hero .display-5 {
        font-size: clamp(2.2rem, 9vw, 3.15rem);
        line-height: 1;
    }

    .portal-home-lead {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .portal-home-actions {
        flex-direction: column;
    }

    .portal-home-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .portal-home-overview {
        padding: 1rem;
        border-radius: 1.65rem;
    }

    .portal-home-overview-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-home-stat-card {
        padding: 1rem;
    }

    .portal-home-stat-wide {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-home-panel,
    .portal-home-footer-panel {
        border-radius: 1.65rem;
    }

    .portal-home-section-label,
    .portal-home-overview-label {
        letter-spacing: 0.12em;
    }

    .portal-home-action-card,
    .portal-home-step,
    .portal-home-recent-item {
        align-items: flex-start;
        padding: 1rem;
        border-radius: 1.25rem;
    }

    .portal-home-recent-item {
        flex-direction: column;
    }

    .portal-home-recent-item .portal-badge-dark {
        align-self: flex-start;
    }

    .portal-admin-login-card {
        padding: 1.4rem;
    }

    .portal-admin-topbar {
        padding: 1rem 1.05rem;
        border-radius: 1.4rem;
    }

    .portal-admin-topbar-main,
    .portal-admin-breakdown-row,
    .portal-admin-recent-item,
    .portal-admin-tower-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-admin-title {
        font-size: 1.4rem;
    }

    .portal-admin-menu-link {
        flex: 1 1 auto;
    }

    .portal-admin-panel,
    .portal-admin-analytics-card {
        padding: 1.1rem;
    }

    .portal-admin-print-sheet {
        padding: 1rem;
    }

    .portal-admin-print-actions {
        justify-content: stretch;
        flex-direction: column;
    }

    .portal-admin-print-header,
    .portal-admin-print-footer {
        flex-direction: column;
    }

    .portal-admin-print-reference {
        width: 100%;
        text-align: left;
    }

    .portal-admin-print-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .portal-admin-print-body {
        background: #ffffff;
    }

    .portal-admin-print-actions {
        display: none;
    }

    .portal-admin-print-sheet {
        max-width: none;
        padding: 0;
    }
}

@media (max-width: 575.98px) {
    .portal-brand {
        flex: 0 1 calc(100% - 4.75rem);
        gap: 0.65rem;
        max-width: calc(100% - 4.75rem);
    }

    .portal-brand-mark {
        width: 3rem;
        height: 3rem;
    }

    .portal-brand-copy {
        padding-right: 0.2rem;
    }

    .portal-brand small {
        font-size: 0.5rem;
        letter-spacing: 0.06em;
    }

    .portal-brand strong {
        font-size: 0.9rem;
    }

    .portal-home-hero {
        padding: 1.25rem !important;
    }

    .portal-home-badge {
        font-size: 0.68rem;
    }

    .portal-home-mini-note {
        padding: 0.9rem 1rem;
        border-radius: 1.2rem;
        font-size: 0.94rem;
    }

    .portal-home-action-icon {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 0.9rem;
    }

    .portal-home-panel,
    .portal-home-footer-panel {
        padding: 1.25rem !important;
    }

    .portal-section-title {
        font-size: 1.55rem;
    }
}
