.portal-select-page {
    background: #f5f7fb;
    color: #111827;
    min-height: 100vh;
}

.portal-select-container {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.portal-select-hero {
    position: relative;
    margin-top: calc(var(--portal-navbar-height, 68px) * -1);
    padding: calc(var(--portal-navbar-height, 68px) + 1.5rem) 0 4.75rem;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(12, 20, 36, .98), rgba(13, 38, 58, .92)),
        var(--portal-select-hero-image) center / cover no-repeat;
}

.portal-select-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 20%, rgba(18, 185, 129, .18), transparent 34%);
    pointer-events: none;
}

.portal-select-hero .portal-select-container {
    position: relative;
    z-index: 1;
}

.portal-select-breadcrumb {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .52);
    font-size: .78rem;
    letter-spacing: .09em;
}

.portal-select-breadcrumb span {
    color: rgba(190, 255, 226, .84);
}

.portal-select-hero h1 {
    max-width: 640px;
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2.4rem, 4vw, 4.35rem);
    font-weight: 900;
    line-height: .98;
}

.portal-select-hero h1 span,
.portal-select-consolidated h2 span {
    color: #18c48f;
}

.portal-select-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 1.12rem;
    line-height: 1.55;
}

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

.portal-select-hero-metrics article {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 84px;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    background: rgba(255, 255, 255, .11);
    backdrop-filter: blur(14px);
}

.portal-select-hero-metrics span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #18c48f;
    background: rgba(24, 196, 143, .17);
    font-size: 1.25rem;
}

.portal-select-hero-metrics .portal-select-warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, .17);
}

.portal-select-hero-metrics strong,
.portal-select-hero-metrics small {
    display: block;
}

.portal-select-hero-metrics strong {
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
}

.portal-select-hero-metrics small {
    margin-top: .2rem;
    color: rgba(255, 255, 255, .64);
    font-weight: 700;
}

.portal-select-filter {
    position: relative;
    z-index: 3;
    margin-top: -2.15rem;
    border-radius: 14px;
}

.portal-select-search {
    position: relative;
    display: block;
    margin: 0;
}

.portal-select-search i {
    position: absolute;
    top: 50%;
    left: 1.1rem;
    z-index: 2;
    color: #9aa6b6;
    transform: translateY(-50%);
}

.portal-select-search .form-control {
    padding-left: 2.8rem;
}

.portal-select-filter .form-control,
.portal-select-filter .form-select {
    min-height: 48px;
    border-color: #e5eaf1;
    border-radius: 10px;
    background-color: #f8fafc;
    color: #667085;
    font-size: .94rem;
    font-weight: 700;
}

.portal-select-join-btn {
    border: 0;
    border-radius: 10px;
    background: #101828;
    color: #fff;
    font-weight: 800;
}

.portal-select-join-btn:hover,
.portal-select-join-btn:focus {
    background: #182339;
    color: #fff;
}

.portal-select-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
    margin-top: 2.7rem;
}

.portal-select-card,
.portal-select-add-card,
.portal-select-empty,
.portal-select-no-result {
    border-radius: 18px;
}

.portal-select-card {
    overflow: hidden;
}

.portal-select-card-cover {
    position: relative;
    min-height: 150px;
    padding: 1rem;
    background-position: center;
    background-size: cover;
}

.portal-select-card-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .16), rgba(15, 23, 42, .72));
}

.portal-select-card-status {
    position: relative;
    z-index: 1;
    float: right;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .38rem .6rem;
    border-radius: 999px;
    background: #fff;
    color: #0f766e;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-select-card-status.is-warning {
    color: #b45309;
}

.portal-select-card-identity {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .9rem;
    color: #fff;
}

.portal-select-card-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    color: #101828;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .2);
}

.portal-select-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .45rem;
}

.portal-select-card-logo i {
    font-size: 1.65rem;
}

.portal-select-card-identity strong,
.portal-select-card-identity small {
    display: block;
}

.portal-select-card-identity strong {
    color: #fff;
    font-size: 1.18rem;
    line-height: 1.15;
}

.portal-select-card-identity small {
    margin-top: .12rem;
    color: rgba(255, 255, 255, .72);
    font-size: .72rem;
    font-weight: 800;
}

.portal-select-label {
    display: block;
    margin-bottom: .35rem;
    color: #a2adbd;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-select-amount {
    color: #101828;
    font-size: 1.25rem;
    font-weight: 900;
}

.portal-select-amount span {
    color: #8995a6;
    font-size: .78rem;
    font-weight: 700;
}

.portal-select-mini-stat {
    min-height: 84px;
    padding: .9rem;
    border-radius: 12px;
    background: #f8fafc;
}

.portal-select-mini-stat small,
.portal-select-mini-stat strong {
    display: block;
}

.portal-select-mini-stat small {
    margin-bottom: .45rem;
    color: #8a97a8;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-select-mini-stat strong {
    color: #182133;
    font-size: .9rem;
}

.portal-select-alert {
    display: flex;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid #fde7b5;
    border-radius: 12px;
    background: #fffbeb;
    color: #92400e;
}

.portal-select-alert i {
    font-size: 1.25rem;
}

.portal-select-alert strong,
.portal-select-alert small {
    display: block;
}

.portal-select-alert small {
    margin-top: .15rem;
    color: #b45309;
}

.portal-select-card-btn {
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
    color: #101828;
    font-weight: 900;
}

.portal-select-card[data-status="action"] .portal-select-card-btn {
    background: #f59e0b;
    color: #fff;
}

.portal-select-card-btn:hover,
.portal-select-card-btn:focus {
    background: #e8eef6;
}

.portal-select-card[data-status="action"] .portal-select-card-btn:hover,
.portal-select-card[data-status="action"] .portal-select-card-btn:focus {
    background: #d97706;
    color: #fff;
}

.portal-select-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
    color: #98a2b3;
}

.portal-select-add-card {
    display: flex;
    min-height: 390px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #d3dde9;
    color: #8a97a8;
    text-align: center;
}

.portal-select-add-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1.4rem;
    border-radius: 16px;
    background: #fff;
    color: #9aa6b6;
    font-size: 2rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.portal-select-add-card h2 {
    color: #101828;
    font-size: 1.25rem;
    font-weight: 900;
}

.portal-select-add-card p {
    max-width: 230px;
    margin: .3rem 0 1.6rem;
    line-height: 1.35;
}

.portal-select-empty span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: #ecfdf5;
    color: #10b981;
    font-size: 2rem;
}

.portal-select-empty h2 {
    font-size: 1.25rem;
    font-weight: 900;
}

.portal-select-consolidated {
    margin: 5rem 0;
    padding: 3.3rem;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(120deg, #101827, #0d182b);
    color: #fff;
}

.portal-select-consolidated .badge {
    margin-bottom: 1.2rem;
    background: rgba(24, 196, 143, .14);
    color: #22d3a0;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-select-consolidated h2 {
    max-width: 520px;
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 900;
    line-height: 1.08;
}

.portal-select-consolidated p {
    color: rgba(255, 255, 255, .66);
    font-size: 1.08rem;
    line-height: 1.55;
}

.portal-select-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, .7);
}

.portal-select-checks i {
    color: #18c48f;
}

.portal-select-report-card {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.portal-select-report-card a {
    color: #18c48f;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}

.portal-select-report-card .small {
    color: rgba(255, 255, 255, .62);
}

.portal-select-report-card .row > div > div {
    padding: 1.1rem;
    border-radius: 13px;
    background: rgba(255, 255, 255, .08);
}

.portal-select-report-card small,
.portal-select-report-card strong {
    display: block;
}

.portal-select-report-card small {
    color: rgba(255, 255, 255, .52);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-select-report-card strong {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
}

@media (max-width: 1199.98px) {
    .portal-select-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .portal-select-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .portal-select-hero {
        padding-bottom: 3.8rem;
    }

    .portal-select-hero-metrics,
    .portal-select-grid {
        grid-template-columns: 1fr;
    }

    .portal-select-consolidated {
        margin: 3rem 0;
        padding: 2rem 1.2rem;
        border-radius: 20px;
    }
}
