:root {
    --rose-50: #f7f0eb;
    --rose-100: #efe1d5;
    --rose-200: #dcc4b3;
    --taupe-500: #8d715d;
    --taupe-700: #5e4839;
    --ink-900: #2d241f;
    --white: #ffffff;
    --shadow-soft: 0 20px 60px rgba(94, 72, 57, 0.12);
    --shadow-card: 0 18px 40px rgba(45, 36, 31, 0.08);
    --radius-xl: 28px;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink-900);
    background:
        radial-gradient(circle at top left, rgba(239, 225, 213, 0.9), transparent 34%),
        linear-gradient(180deg, #fcf8f5 0%, #f7f0eb 100%);
    font-family: "Manrope", sans-serif;
}

.page-shell {
    min-height: 100vh;
}

.hero-section,
.dashboard-section {
    position: relative;
}

.hero-card,
.thank-you-card,
.filter-card,
.table-card,
.stat-card,
.form-panel,
.auth-panel {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 196, 179, 0.6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.hero-card {
    overflow: hidden;
}

.hero-image-wrap {
    position: relative;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-copy {
    padding: 3rem 2.25rem;
    background: linear-gradient(160deg, rgba(239, 225, 213, 0.95), rgba(247, 240, 235, 0.75));
}

.form-panel,
.thank-you-card {
    padding: 2rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--taupe-500);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
}

.display-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    line-height: 0.95;
    margin-bottom: 1rem;
}

.display-title.small {
    font-size: clamp(2rem, 3vw, 3rem);
}

.lead-copy {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(45, 36, 31, 0.82);
}

.event-meta {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.event-meta .meta-label {
    display: block;
    color: var(--taupe-500);
    font-size: 0.82rem;
    margin-bottom: 0.15rem;
}

.form-label {
    margin-bottom: 0.55rem;
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 3.6rem;
    border-radius: 18px;
    border: 1px solid rgba(141, 113, 93, 0.22);
    padding: 0.95rem 1rem;
    box-shadow: none;
}

textarea.form-control {
    min-height: 8rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(141, 113, 93, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(220, 196, 179, 0.35);
}

.attendance-group,
.event-grid {
    display: grid;
    gap: 0.85rem;
}

.attendance-option,
.event-check {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    background: var(--white);
    border: 1px solid rgba(141, 113, 93, 0.16);
    border-radius: 18px;
}

.attendance-option input,
.event-check input {
    margin-top: 0;
}

.btn {
    border-radius: 999px;
    padding: 0.9rem 1.4rem;
    font-weight: 700;
}

.btn-primary {
    background: var(--taupe-700);
    border-color: var(--taupe-700);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #4f3c31;
    border-color: #4f3c31;
}

.btn-outline-primary {
    color: var(--taupe-700);
    border-color: rgba(94, 72, 57, 0.5);
}

.dashboard-header,
.dashboard-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.4rem 1.5rem;
}

.stat-card span {
    display: block;
    color: var(--taupe-500);
    font-size: 0.9rem;
}

.stat-card strong {
    font-size: 2rem;
    font-family: "Cormorant Garamond", serif;
}

.filter-card,
.table-card {
    padding: 1.5rem;
}

.table thead th {
    color: var(--taupe-500);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom-width: 1px;
}

.table td,
.table th {
    padding: 1rem 0.9rem;
}

@media (min-width: 992px) {
    .attendance-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .hero-image-wrap {
        aspect-ratio: 4 / 3;
    }

    .hero-copy {
        padding-bottom: 1rem;
    }
}
