/* CyberGuard Enterprise v8 - Client Portal Enhancements */

.client-portal-shell {
    max-width: 1500px;
}

.client-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 18px;
    background:
        radial-gradient(circle at top left, rgba(56,189,248,.22), transparent 34%),
        linear-gradient(135deg, rgba(15,23,42,.98), rgba(2,6,23,.98));
    border: 1px solid rgba(56,189,248,.24);
    border-radius: 22px;
    padding: 26px;
    margin-bottom: 22px;
    box-shadow: 0 18px 44px rgba(0,0,0,.30);
}

.client-hero h2 {
    margin: 6px 0 8px 0;
    color: #ffffff;
    font-size: 32px;
}

.client-hero p {
    margin: 0;
    color: #b6c3d4;
    max-width: 850px;
    line-height: 1.55;
}

.eyebrow {
    color: #7dd3fc;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.client-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    min-width: 180px;
}

.portal-grid-main {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 18px;
    margin-bottom: 18px;
}

.portal-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.portal-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.portal-card-heading h3 {
    margin-bottom: 6px;
}

.portal-card-heading p,
.muted-text {
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

.score-ring-wrap {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    align-items: center;
}

.score-ring {
    width: 176px;
    height: 176px;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, #0b1220 56%, transparent 57%),
        conic-gradient(#22c55e, #38bdf8, #22c55e);
    box-shadow: 0 0 34px rgba(34,197,94,.14);
}

.score-ring strong {
    color: #ffffff;
    font-size: 48px;
    line-height: .95;
}

.score-ring span {
    color: #94a3b8;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.score-copy h4 {
    color: #ffffff;
    font-size: 22px;
    margin: 0 0 10px 0;
}

.score-copy p {
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.portal-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.portal-mini-grid div {
    background: #0b1220;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 14px;
    padding: 13px;
}

.portal-mini-grid strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
}

.portal-mini-grid span {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.portal-action-card .cg-form {
    max-width: none;
}

.compact-form label {
    margin-top: 12px;
}

.portal-primary-button {
    width: 100%;
    margin-top: 14px;
    border: none;
    border-radius: 12px;
    padding: 13px 16px;
    font-weight: 900;
    color: #04111f;
    background: linear-gradient(135deg, #38bdf8, #22c55e);
    cursor: pointer;
}

.portal-primary-button:hover {
    filter: brightness(1.08);
}

.portal-stat-card p {
    color: #cbd5e1;
    margin: 9px 0;
}

.portal-button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

@media (max-width: 1200px) {
    .portal-grid-main,
    .portal-grid-3,
    .score-ring-wrap {
        grid-template-columns: 1fr;
    }

    .portal-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-hero {
        flex-direction: column;
    }

    .client-hero-actions {
        align-items: flex-start;
    }
}
