/* Certificate verification — public verify portal */

.cv-page--site {
    min-height: auto;
}

.rt-site-main .cv-page {
    min-height: auto;
}

.cv-body {
    min-height: 100vh;
    min-height: 100dvh;
    background: #f8fafc;
}

.cv-main {
    min-height: 100vh;
    min-height: 100dvh;
}

.cv-page {
    min-height: 100vh;
    min-height: 100dvh;
    --cv-navy: #0f2744;
    --cv-navy-soft: #1a3a5c;
    --cv-surface: #ffffff;
    --cv-muted: #64748b;
    --cv-border: rgba(15, 39, 68, 0.1);
    --cv-shadow: 0 24px 64px rgba(15, 39, 68, 0.12);
    --cv-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 10% -10%, rgba(0, 174, 239, 0.14), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(24, 102, 180, 0.16), transparent 50%),
        linear-gradient(180deg, #f4f8fc 0%, #eef4fa 42%, #f8fafc 100%);
}

.cv-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 39, 68, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 39, 68, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
    pointer-events: none;
}

.cv-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem);
}

.cv-brand {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.cv-brand .rt-brand-logo--form .rt-brand-logo__img {
    height: clamp(3.5rem, 8vw, 4.75rem);
    width: auto;
    max-width: min(100%, 18rem);
    object-fit: contain;
}

.cv-grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: start;
}

@media (min-width: 960px) {
    .cv-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 3.5rem;
    }
}

.cv-intro {
    max-width: 34rem;
}

.cv-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem 0.4rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--cv-border);
    box-shadow: 0 4px 16px rgba(15, 39, 68, 0.06);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rt-blue-dark, #1F226E);
}

.cv-badge svg {
    flex-shrink: 0;
    color: var(--rt-orange, #00AEEF);
}

.cv-title {
    margin: 1.25rem 0 0;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--cv-navy);
}

.cv-lead {
    margin: 1rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #475569;
}

.cv-trust {
    display: grid;
    gap: 0.85rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.cv-trust li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #334155;
}

.cv-trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: rgba(24, 102, 180, 0.1);
    color: var(--rt-blue, #2E3192);
}

.cv-steps {
    margin: 2.25rem 0 0;
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--cv-border);
    backdrop-filter: blur(8px);
}

.cv-steps__title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cv-muted);
}

.cv-steps ol {
    margin: 0.85rem 0 0;
    padding-left: 1.15rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.55;
}

.cv-steps li + li {
    margin-top: 0.45rem;
}

.cv-panel {
    position: relative;
}

.cv-card {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--cv-radius);
    background: var(--cv-surface);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--cv-shadow);
}

.cv-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--cv-radius) + 1px);
    padding: 1px;
    background: linear-gradient(145deg, rgba(24, 102, 180, 0.22), rgba(0, 174, 239, 0.18));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.cv-panel .cv-card {
    position: relative;
}

.cv-card__header {
    margin-bottom: 1.5rem;
}

.cv-card__label {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rt-orange, #00AEEF);
}

.cv-card__title {
    margin: 0.4rem 0 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--cv-navy);
}

.cv-card__subtitle {
    margin: 0.45rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--cv-muted);
}

.cv-form {
    display: grid;
    gap: 0.65rem;
}

.cv-field-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cv-navy);
}

.cv-input-wrap {
    position: relative;
}

.cv-input-wrap svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.cv-input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.85rem;
    border: 1.5px solid #dbe3f0;
    border-radius: 0.9rem;
    background: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: var(--cv-navy);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cv-input::placeholder {
    color: #94a3b8;
    letter-spacing: 0.04em;
}

.cv-input:hover {
    border-color: #b8c9de;
    background: #fff;
}

.cv-input:focus {
    outline: none;
    border-color: var(--rt-blue, #2E3192);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(24, 102, 180, 0.12);
}

.cv-hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--cv-muted);
}

.cv-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 0;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--rt-blue-dark, #1F226E), var(--rt-blue, #2E3192));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(46, 49, 146, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.cv-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(46, 49, 146, 0.34);
}

.cv-submit:active {
    transform: translateY(0);
}

.cv-submit svg {
    flex-shrink: 0;
}

.cv-footer-note {
    margin: 1.25rem 0 0;
    padding-top: 1.15rem;
    border-top: 1px solid #eef2f7;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--cv-muted);
    text-align: center;
}

.cv-footer-note a {
    color: var(--rt-blue, #2E3192);
    font-weight: 600;
    text-decoration: none;
}

.cv-footer-note a:hover {
    text-decoration: underline;
}

/* Result states */

.cv-status {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: 1rem;
    margin-bottom: 1.35rem;
}

.cv-status--valid {
    background: linear-gradient(135deg, #ecfdf3, #f0fdf4);
    border: 1px solid #86efac;
}

.cv-status--invalid {
    background: linear-gradient(135deg, #fff1f2, #fef2f2);
    border: 1px solid #fecaca;
}

.cv-status__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 39, 68, 0.08);
}

.cv-status--valid .cv-status__icon {
    color: #16a34a;
}

.cv-status--invalid .cv-status__icon {
    color: #dc2626;
}

.cv-status__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cv-navy);
}

.cv-status__message {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #475569;
}

.cv-status--valid .cv-status__message {
    color: #166534;
}

.cv-status--invalid .cv-status__message {
    color: #b91c1c;
}

.cv-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.65rem;
    background: #f1f5f9;
    font-size: 0.8125rem;
    color: #475569;
}

.cv-code-pill strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--cv-navy);
}

.cv-credential {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.cv-credential__banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, var(--cv-navy), var(--cv-navy-soft));
    color: #fff;
}

.cv-credential__brand {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.82;
}

.cv-credential__stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cv-credential__body {
    padding: 1.15rem 1.15rem 1.25rem;
}

.cv-details {
    display: grid;
    gap: 0;
    margin: 0;
}

.cv-details > div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.cv-details > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cv-details > div:first-child {
    padding-top: 0;
}

.cv-details dt {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.cv-details dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--cv-navy);
}

.cv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.1rem;
    border: 0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.cv-btn--primary {
    background: var(--rt-orange, #00AEEF);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 174, 239, 0.28);
}

.cv-btn--primary:hover {
    background: var(--rt-orange-dark, #0095d9);
    color: #fff;
}

.cv-btn--ghost {
    background: #f1f5f9;
    color: var(--cv-navy);
}

.cv-btn--ghost:hover {
    background: #e2e8f0;
}

.cv-help {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    background: #fff8ef;
    border: 1px solid #fed7aa;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #9a3412;
}

.cv-help strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cv-actions--inline {
    margin-top: 1.25rem;
    margin-bottom: 0.25rem;
}

html.cv-modal-open,
html.cv-modal-open body {
    overflow: hidden;
}

.cv-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.cv-modal[hidden] {
    display: none !important;
}

.cv-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.28s ease;
    cursor: pointer;
}

.cv-modal.is-open .cv-modal__backdrop {
    opacity: 1;
}

.cv-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 34rem);
    max-height: min(88vh, 40rem);
    overflow: auto;
    outline: none;
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
}

.cv-modal__dialog.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cv-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cv-modal__close:hover,
.cv-modal__close:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
    outline: none;
}

.cv-credential--modal {
    margin: 0;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        radial-gradient(ellipse 90% 60% at 100% 0%, rgba(0, 174, 239, 0.08), transparent 55%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(46, 49, 146, 0.06), transparent 50%),
        #ffffff;
    box-shadow:
        0 28px 64px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(15, 39, 68, 0.04);
    overflow: hidden;
}

.cv-credential--modal .cv-credential__banner {
    position: relative;
    padding: 1.35rem 3.5rem 1.35rem 1.35rem;
    background:
        linear-gradient(135deg, #0f2744 0%, #1a3a5c 48%, #1866b4 100%);
    overflow: hidden;
}

.cv-credential--modal .cv-credential__banner::before {
    content: '';
    position: absolute;
    inset: auto -20% -60% auto;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.35), transparent 70%);
    pointer-events: none;
}

.cv-credential--modal .cv-credential__banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

.cv-credential__banner-copy {
    position: relative;
    z-index: 1;
}

.cv-credential--modal .cv-credential__brand {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    opacity: 0.9;
}

.cv-credential--modal .cv-credential__stamp {
    position: relative;
    z-index: 1;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(134, 239, 172, 0.45);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.95), rgba(21, 128, 61, 0.95));
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
    color: #fff;
}

.cv-credential__desc {
    margin: 0.45rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.84);
}

.cv-credential__hero {
    padding: 1.35rem 1.35rem 1.1rem;
    border-bottom: 1px solid #e8eef5;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.cv-credential__hero-label {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.cv-credential__hero-name {
    margin: 0.45rem 0 0;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f2744;
}

.cv-credential__hero-title {
    margin: 0.55rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #334155;
}

.cv-credential--modal .cv-credential__body {
    padding: 1.15rem 1.25rem 0.35rem;
}

.cv-details--cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0;
}

.cv-details--cards .cv-details__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0.9rem 0.95rem;
    border: 1px solid #e8eef5;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 12px rgba(15, 39, 68, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cv-details--cards .cv-details__item:hover {
    border-color: rgba(24, 102, 180, 0.28);
    box-shadow: 0 8px 18px rgba(24, 102, 180, 0.08);
    transform: translateY(-1px);
}

.cv-details--cards .cv-details__item--code {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(24, 102, 180, 0.06), rgba(0, 174, 239, 0.05));
    border-color: rgba(24, 102, 180, 0.18);
}

.cv-details--cards dt {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.cv-details--cards dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: #0f2744;
    word-break: break-word;
}

.cv-cert-no {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 0.55rem;
    background: #0f2744;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.cv-credential--modal.is-invalid .cv-credential__banner {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 55%, #b91c1c 100%);
}

.cv-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #eef2f7;
    background: #f8fafc;
}

@media (prefers-reduced-motion: reduce) {
    .cv-modal__backdrop,
    .cv-modal__dialog,
    .cv-details--cards .cv-details__item {
        transition: none;
    }
}

@media (max-width: 640px) {
    .cv-details--cards {
        grid-template-columns: 1fr;
    }

    .cv-details > div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .cv-credential__banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-modal {
        padding: 0.75rem;
        align-items: end;
    }

    .cv-modal__dialog {
        width: 100%;
        max-height: 92vh;
        transform: translateY(100%);
    }

    .cv-modal__dialog.is-visible {
        transform: translateY(0);
    }
}

/* Verification method tabs + QR */
.cv-verify-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin: 0 0 1.15rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: #f1f5f9;
}

.cv-verify-tab {
    appearance: none;
    border: 0;
    border-radius: 999px;
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.cv-verify-tab.is-active {
    background: #fff;
    color: #0f2744;
    box-shadow: 0 6px 16px rgba(15, 39, 68, 0.08);
}

.cv-verify-pane[hidden] {
    display: none !important;
}

.cv-qr-panel__lead {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
}

.cv-qr-reader {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #0f172a;
    min-height: 280px;
}

.cv-qr-reader video {
    border-radius: 1rem;
}

.cv-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.75rem;
    align-items: center;
}

.cv-qr-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cv-qr-upload:focus-within {
    outline: 2px solid rgba(24, 102, 180, 0.45);
    outline-offset: 2px;
}

.cv-btn:disabled,
.cv-qr-upload:has(input:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.cv-client-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
    align-items: start;
    margin: 1.25rem 0 0.25rem;
    padding: 1.15rem 1.1rem;
    border: 1px solid rgba(15, 39, 68, 0.1);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.cv-client-card__photo {
    width: 5.25rem;
    height: 5.25rem;
    overflow: hidden;
    border-radius: 999px;
    border: 3px solid rgba(24, 102, 180, 0.2);
    background: linear-gradient(145deg, #1a3a5c, #1866b4);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 39, 68, 0.12);
}

.cv-client-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-client-card__label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.cv-client-card__name {
    margin: 0.2rem 0 0.15rem;
    font-size: 1.25rem;
    line-height: 1.25;
    color: #0f2744;
}

.cv-client-card__credential {
    margin: 0 0 0.85rem;
    color: #475569;
    font-size: 0.95rem;
}

.cv-client-card__meta {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.cv-client-card__meta > div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.cv-client-card__meta dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cv-client-card__meta dd {
    margin: 0;
    color: #0f2744;
    font-size: 0.92rem;
    word-break: break-word;
}

.cv-credential__hero-meta {
    margin: 0.15rem 0 0;
    color: #64748b;
    font-size: 0.88rem;
}

@media (max-width: 640px) {
    .cv-client-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .cv-client-card__meta > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

.cv-credential__hero--with-photo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cv-credential__avatar {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    overflow: hidden;
    border-radius: 999px;
    border: 3px solid rgba(24, 102, 180, 0.18);
    background: linear-gradient(145deg, #1a3a5c, #1866b4);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 39, 68, 0.12);
}

.cv-credential__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-modal__dialog--alert {
    max-width: 26rem;
}

.cv-invalid-card {
    padding: 1.6rem 1.4rem 1.35rem;
    text-align: center;
    background: #fff;
    border-radius: 1.25rem;
}

.cv-invalid-card__icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(185, 28, 28, 0.1);
    color: #b91c1c;
}

.cv-invalid-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #7f1d1d;
}

.cv-invalid-card__text {
    margin: 0.55rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #475569;
}

.cv-code-pill--dark {
    justify-content: center;
    margin-top: 0.9rem;
    background: #0f2744;
    color: #e2e8f0;
}

.cv-invalid-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    margin-top: 1.15rem;
}

.stud-content-guard__file-note {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

/* Student profile photo reminder */
.stud-avatar-nudge {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.stud-avatar-nudge__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
}

.stud-avatar-nudge__card {
    position: relative;
    width: min(26rem, 100%);
    padding: 1.5rem 1.35rem 1.25rem;
    border-radius: 1.25rem;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(0, 174, 239, 0.1), transparent 55%), #fff;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.28);
    animation: stud-avatar-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stud-avatar-nudge__eyebrow {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00aeef;
}

.stud-avatar-nudge__title {
    margin: 0.45rem 0 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f2744;
}

.stud-avatar-nudge__text {
    margin: 0.55rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #475569;
}

.stud-avatar-nudge__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.15rem;
}

@keyframes stud-avatar-rise {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .stud-avatar-nudge__card { animation: none; }
}
