:root {
    --ae-primary: #2563eb;
    --ae-primary-light: #dbeafe;
    --ae-surface: #ffffff;
    --ae-muted: #64748b;
    --ae-rounded: 24px;
    --ae-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.45);
}

.ae-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin: 2rem 0;
}

.ae-event-card {
    position: relative;
    background: linear-gradient(145deg, var(--ae-primary-light), #fff);
    border-radius: var(--ae-rounded);
    padding: 1.75rem;
    box-shadow: var(--ae-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: hidden;
}

.ae-event-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--ae-rounded);
    pointer-events: none;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.ae-event-card__date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--ae-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ae-event-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.ae-event-card__excerpt {
    color: #334155;
    line-height: 1.6;
}

.ae-event-card__cta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ae-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #0f172a;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px -16px rgba(15, 23, 42, 0.5);
}

.ae-button:hover,
.ae-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 24px -12px rgba(37, 99, 235, 0.35);
}

.ae-button--ghost {
    background: rgba(37, 99, 235, 0.12);
    color: var(--ae-primary);
    box-shadow: none;
}

.ae-registration-panel {
    background: rgba(255, 255, 255, 0.94);
    border-radius: calc(var(--ae-rounded) - 8px);
    padding: 1.5rem;
    margin-top: 1rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.ae-registration-panel.is-open {
    display: flex;
}

.ae-single-registration {
    margin-top: 3rem;
    padding: 2.5rem;
    border-radius: var(--ae-rounded);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
    box-shadow: 0 30px 40px -20px rgba(15, 23, 42, 0.18);
    display: grid;
    gap: 1.5rem;
}

.ae-single-registration h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.ae-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.5rem;
}

.ae-form-grid label {
    font-weight: 600;
    color: #0f172a;
    display: block;
    margin-bottom: 0.5rem;
}

.ae-form-grid input,
.ae-form-grid textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ae-form-grid input:focus,
.ae-form-grid textarea:focus {
    outline: none;
    border-color: var(--ae-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.ae-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.ae-status-pill--success {
    background: rgba(34, 197, 94, 0.18);
    color: #166534;
}

.ae-status-pill--warning {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.ae-status-pill--danger {
    background: rgba(239, 68, 68, 0.18);
    color: #991b1b;
}

.ae-alert {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    color: #0f172a;
}

.ae-alert--success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(187, 247, 208, 0.4);
}

.ae-alert--error {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(254, 226, 226, 0.45);
}

.ae-account-list {
    display: grid;
    gap: 1rem;
}

.ae-account-item {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 40px -26px rgba(15, 23, 42, 0.45);
}

.ae-account-item h4 {
    margin: 0 0 0.5rem;
}

.ae-account-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: #475569;
    font-size: 0.92rem;
}

.ae-attestations-list {
    display: grid;
    gap: 1rem;
}

.ae-attestation-card {
    background: linear-gradient(120deg, #fdf2f8, #eff6ff);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(244, 114, 182, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.ae-attestation-card a {
    color: var(--ae-primary);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 640px) {
    .ae-event-card {
        padding: 1.5rem;
    }

    .ae-form-grid {
        grid-template-columns: 1fr;
    }
}
