:root {
    --cp-navy: #0f2744;
    --cp-navy-light: #1a3760;
    --cp-accent: #af346e;
    --cp-accent-dark: #8f2958;
    --cp-bg: #edf1f6;
    --cp-card: #ffffff;
    --cp-border: #d7e0ec;
    --cp-muted: #64748b;
    --cp-shadow: 0 22px 60px rgba(15, 39, 68, 0.08);
    --cp-shadow-soft: 0 8px 24px rgba(15, 39, 68, 0.06);
}

* { box-sizing: border-box; }

html {
    height: 100%;
    background: var(--cp-bg);
}

body.cp-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top center, rgba(175, 52, 110, 0.05), transparent 28%),
        linear-gradient(180deg, #f4f7fb 0%, var(--cp-bg) 100%);
    background-attachment: fixed;
    color: #1e293b;
    display: flex;
    flex-direction: column;
}

.cp-topbar {
    background: linear-gradient(90deg, var(--cp-navy) 0%, var(--cp-navy-light) 100%);
    color: #fff;
    border-bottom: 3px solid var(--cp-accent);
}

.cp-topbar__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cp-topbar__event {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cp-topbar__tag {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.cp-shell {
    flex: 1 0 auto;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 36px 20px 28px;
}

.cp-hero {
    text-align: center;
    margin-bottom: 32px;
}

.cp-hero__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.cp-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    max-width: 100%;
    padding: 22px 34px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    box-shadow: var(--cp-shadow-soft);
}

.cp-logo {
    display: block;
    max-width: min(320px, 78vw);
    max-height: 92px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cp-hero__content {
    max-width: 760px;
    margin: 0 auto;
}

.cp-hero__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(175, 52, 110, 0.08);
    color: var(--cp-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cp-hero__content h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    color: var(--cp-navy);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cp-lead {
    max-width: 680px;
    margin: 16px auto 0;
    color: var(--cp-muted);
    line-height: 1.7;
    font-size: 16px;
}

.cp-card {
    background: var(--cp-card);
    border: 1px solid var(--cp-border);
    border-radius: 22px;
    box-shadow: var(--cp-shadow);
    padding: 0;
    overflow: hidden;
}

.cp-card__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 26px 28px 18px;
    background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
    border-bottom: 1px solid var(--cp-border);
}

.cp-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 39, 68, 0.08);
    color: var(--cp-navy);
    font-size: 22px;
    flex-shrink: 0;
}

.cp-card__head h2,
.cp-results__head h2 {
    margin: 0 0 6px;
    color: var(--cp-navy);
    font-size: 22px;
    font-weight: 800;
}

.cp-card__head p {
    margin: 0;
    color: var(--cp-muted);
    font-size: 14px;
    line-height: 1.5;
}

.cp-form {
    padding: 24px 28px 28px;
}

.cp-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--cp-navy);
    font-size: 14px;
}

.cp-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cp-form-row input {
    flex: 1 1 280px;
    min-height: 52px;
    border: 1px solid var(--cp-border);
    border-radius: 14px;
    padding: 0 18px;
    font-size: 15px;
    background: #fbfcfe;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cp-form-row input:focus {
    outline: none;
    border-color: var(--cp-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(175, 52, 110, 0.1);
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.cp-btn--primary {
    background: linear-gradient(180deg, var(--cp-accent) 0%, var(--cp-accent-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(175, 52, 110, 0.22);
}

.cp-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(175, 52, 110, 0.28);
}

.cp-btn--ghost {
    background: #fff;
    border-color: var(--cp-border);
    color: var(--cp-navy);
}

.cp-btn--ghost:hover {
    border-color: var(--cp-accent);
    color: var(--cp-accent);
}

.cp-form-error,
.cp-alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
}

.cp-form-error {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.cp-form-error strong {
    font-size: 14px;
}

.cp-form-error span {
    color: #b91c1c;
    line-height: 1.5;
}

.cp-alert--error {
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.cp-results {
    margin-top: 28px;
}

.cp-results__head {
    margin-bottom: 18px;
}

.cp-results__head p {
    margin: 0;
    color: var(--cp-muted);
    line-height: 1.6;
}

.cp-attendee-card {
    background: var(--cp-card);
    border: 1px solid var(--cp-border);
    border-radius: 20px;
    box-shadow: var(--cp-shadow-soft);
    padding: 24px;
    margin-bottom: 18px;
}

.cp-attendee-card__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
}

.cp-attendee-card__head h3 {
    margin: 0 0 6px;
    color: var(--cp-navy);
    font-size: 20px;
    font-weight: 800;
}

.cp-attendee-card__head p {
    margin: 0;
    color: var(--cp-muted);
    font-size: 14px;
}

.cp-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(15, 39, 68, 0.08);
    color: var(--cp-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cp-cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cp-cert-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--cp-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #fcfdff 0%, #f8fafc 100%);
}

.cp-cert-item__info strong {
    display: block;
    color: var(--cp-navy);
    margin-bottom: 4px;
    font-size: 15px;
}

.cp-cert-item__info span {
    font-size: 11px;
    color: var(--cp-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.cp-cert-item__subtitle {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-style: normal;
    color: #475569;
    line-height: 1.5;
}

.cp-profile-label {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cp-accent);
}

.cp-presentation-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--cp-border);
}

.cp-presentation-strip strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cp-navy);
    margin-right: 4px;
}

.cp-presentation-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--cp-border);
    font-size: 12px;
    color: #334155;
}

.cp-cert-group {
    margin-bottom: 18px;
}

.cp-cert-group:last-child {
    margin-bottom: 0;
}

.cp-cert-group__title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cp-muted);
}

.cp-cert-item__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cp-empty {
    margin: 0;
    color: var(--cp-muted);
}

.cp-footer {
    flex-shrink: 0;
    width: 100%;
    padding: 22px 20px 28px;
    text-align: center;
    color: var(--cp-muted);
    font-size: 13px;
    background: transparent;
    border-top: 1px solid rgba(215, 224, 236, 0.95);
}

.cp-footer p {
    margin: 0;
    line-height: 1.7;
}

.cp-footer__credit {
    margin-top: 6px !important;
    font-size: 12px;
    color: #94a3b8;
}

.cp-footer__credit a {
    color: var(--cp-navy);
    font-weight: 700;
    text-decoration: none;
}

.cp-footer__credit a:hover {
    color: var(--cp-accent);
}

@media (max-width: 720px) {
    .cp-shell {
        padding-top: 24px;
    }

    .cp-logo-card {
        min-width: 0;
        width: 100%;
        padding: 18px 20px;
    }

    .cp-logo {
        max-height: 72px;
    }

    .cp-card__head,
    .cp-form {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cp-cert-item,
    .cp-attendee-card__head,
    .cp-form-row,
    .cp-topbar__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cp-topbar__tag {
        text-align: left;
    }

    .cp-cert-item__actions {
        width: 100%;
    }

    .cp-cert-item__actions .cp-btn {
        flex: 1;
    }

    .cp-btn--primary {
        width: 100%;
    }
}
