/* ═══════════════════════════════════════════════════════════
   BABY SHOWER RSVP — Art Deco Luxury Theme (Light)
   Fonts: Cormorant Garamond (display) · Jost (UI)
═══════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
    --bg:            #F8F4ED;
    --bg-2:          #FFFFFF;
    --bg-3:          #F2ECE1;
    --gold:          #A07820;
    --gold-lt:       #7A5C10;
    --gold-dim:      rgba(160, 120, 32, 0.08);
    --gold-border:   rgba(160, 120, 32, 0.22);
    --cream:         #1A1208;
    --cream-dim:     rgba(26, 18, 8, 0.60);
    --muted:         rgba(26, 18, 8, 0.32);
    --danger:        #B83040;

    --f-display: 'Cormorant Garamond', Georgia, serif;
    --f-body:    'Jost', system-ui, sans-serif;

    --r:    5px;
    --r-lg: 10px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--f-body);
    font-weight: 400;
    background-color: var(--bg);
    color: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle diamond grid texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(160, 120, 32, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 120, 32, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
    z-index: 0;
}

a { color: var(--gold-lt); text-decoration: none; transition: color 180ms var(--ease); }
a:hover { color: var(--cream); }

button { font-family: var(--f-body); cursor: pointer; border: none; background: none; }
input, textarea { font-family: var(--f-body); color: var(--cream); }


/* ═══════════════════════════════════════════════════════════
   RSVP PAGE  /
═══════════════════════════════════════════════════════════ */

.rsvp-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3.5rem 1.25rem 6rem;
}

/* subtle warm vignette */
.rsvp-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 90% 70% at 50% 0%, transparent 30%, rgba(200, 175, 130, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

.rsvp-content {
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── INVITE HEADER ───────────────────────────────────────── */
.invite-header {
    width: 100%;
    text-align: center;
    padding-bottom: 2rem;
    animation: slideDown 0.75s var(--ease-out) both;
}

.eyebrow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.eyebrow-line {
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow-row .eyebrow-line:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.eyebrow-text {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-lt);
}

/* decorative monogram rings */
.monogram-wrap {
    position: relative;
    width: 108px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.monogram-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--gold-border);
    animation: rotateSlow 24s linear infinite;
}
.monogram-ring.outer  { inset: 0; }
.monogram-ring.inner  { inset: 14px; animation-direction: reverse; animation-duration: 18s; }

.monogram-glyph {
    font-size: 2.75rem;
    position: relative;
    z-index: 1;
    line-height: 1;
}

/* banner image */
.banner-container {
    margin-bottom: 2rem;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--gold-border);
}
.banner-img { width: 100%; height: auto; display: block; }

/* name block */
.event-nameplate { margin-bottom: 1.75rem; }

.event-eyebrow {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-lt);
    margin-bottom: 0.5rem;
}

.event-name {
    font-family: var(--f-display);
    font-size: clamp(3.2rem, 9vw, 5.5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1;
    color: var(--cream);
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.event-sub {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin-bottom: 0.5rem;
}

.event-parents {
    font-family: var(--f-display);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--gold-lt);
    letter-spacing: 0.04em;
}

/* event meta: date / time / location */
.event-meta {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--gold-border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--gold-dim);
    animation: fadeIn 0.9s 0.25s var(--ease) both;
}

.meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 0.75rem;
    gap: 0.2rem;
    min-width: 0;
}

.meta-sep {
    width: 1px;
    background: var(--gold-border);
    flex-shrink: 0;
}

.meta-label {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-lt);
}

.meta-value {
    font-family: var(--f-display);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--cream);
    text-align: center;
    line-height: 1.3;
}

/* ── ORNAMENT DIVIDER ────────────────────────────────────── */
.ornament-divider {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
    margin: 2.25rem 0;
    animation: fadeIn 0.8s 0.4s var(--ease) both;
}

.od-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-border));
}
.ornament-divider .od-line:last-child {
    background: linear-gradient(90deg, var(--gold-border), transparent);
}

.od-diamond {
    color: var(--gold);
    font-size: 0.5rem;
    letter-spacing: 0.5em;
    opacity: 0.8;
}

/* ── RSVP SECTION ────────────────────────────────────────── */
.rsvp-section {
    width: 100%;
    animation: slideUp 0.75s 0.3s var(--ease-out) both;
}

/* Success */
.success-panel {
    padding: 3rem 2rem;
    border: 1px solid var(--gold-border);
    border-radius: var(--r-lg);
    text-align: center;
    background: var(--bg-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    animation: scaleIn 0.45s var(--ease-out) both;
    box-shadow: 0 2px 16px rgba(160, 120, 32, 0.08);
}
.success-panel.is-attending {
    border-color: rgba(32, 140, 90, 0.40);
    background: rgba(32, 140, 90, 0.04);
}
.success-panel.is-absent {
    border-color: rgba(184, 48, 64, 0.35);
    background: rgba(184, 48, 64, 0.04);
}

.success-glyph { font-size: 2.5rem; line-height: 1; }

.success-heading {
    font-family: var(--f-display);
    font-size: 2.1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--cream);
    line-height: 1.1;
}

.success-name {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-lt);
}

.success-body {
    font-size: 0.87rem;
    color: var(--cream-dim);
    max-width: 340px;
    line-height: 1.7;
}
.success-body em { font-style: italic; color: var(--cream); }

/* Form card */
.form-card {
    background: var(--bg-2);
    border: 1px solid var(--gold-border);
    border-radius: var(--r-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 20px rgba(160, 120, 32, 0.07);
}

.form-heading {
    font-family: var(--f-display);
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--cream);
    text-align: center;
    margin-bottom: 0.35rem;
}

.form-sub {
    font-size: 0.76rem;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

/* Fields */
.field-group { margin-bottom: 1.6rem; }

.field-label {
    display: block;
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-lt);
    margin-bottom: 0.5rem;
}

.optional {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-transform: none;
}

.field-input,
.field-textarea {
    display: block;
    width: 100%;
    background: var(--bg-3);
    border: 1px solid rgba(160, 120, 32, 0.20);
    border-radius: 3px;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    color: var(--cream);
    outline: none;
    transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
    resize: none;
}
.field-input::placeholder,
.field-textarea::placeholder { color: var(--muted); }
.field-input:focus,
.field-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(160, 120, 32, 0.10);
}
.field-input.invalid,
.field-textarea.invalid { border-color: var(--danger); }

.field-error,
.validation-message {
    display: block;
    font-size: 0.74rem;
    color: var(--danger);
    margin-top: 0.35rem;
    letter-spacing: 0.02em;
}

.field-hint {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.4rem;
    text-align: center;
}

/* Attendance cards */
.attend-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.attend-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--gold-border);
    border-radius: var(--r);
    cursor: pointer;
    transition: border-color 180ms var(--ease), background 180ms var(--ease);
    text-align: center;
    background: var(--bg-3);
    user-select: none;
}
.attend-card input[type="radio"] { display: none; }
.attend-card:hover {
    border-color: var(--gold);
    background: var(--gold-dim);
}
.attend-card.chosen.attending {
    border-color: rgba(32, 140, 90, 0.50);
    background: rgba(32, 140, 90, 0.07);
}
.attend-card.chosen.absent {
    border-color: rgba(184, 48, 64, 0.45);
    background: rgba(184, 48, 64, 0.06);
}

.attend-icon { font-size: 1.6rem; line-height: 1; }

.attend-label {
    font-family: var(--f-display);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--cream);
    line-height: 1;
}
.attend-hint {
    font-size: 0.67rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* Guest counter */
.guest-counter-group { text-align: center; }

.counter {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--gold-border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--bg-3);
}

.counter-btn {
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gold-lt);
    transition: background 150ms var(--ease), color 150ms var(--ease);
}
.counter-btn:hover:not(:disabled) {
    background: var(--gold-dim);
    color: var(--cream);
}
.counter-btn:disabled { opacity: 0.25; cursor: not-allowed; }

.counter-val {
    min-width: 52px;
    text-align: center;
    font-family: var(--f-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--cream);
    border-left: 1px solid var(--gold-border);
    border-right: 1px solid var(--gold-border);
    padding: 0.3rem 0.5rem;
    line-height: 1.8;
}

/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--gold);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: background 200ms var(--ease), transform 120ms var(--ease), opacity 200ms var(--ease);
    margin-top: 0.5rem;
}
.btn-primary:hover:not(:disabled) {
    background: var(--gold-lt);
    transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--gold-border);
    color: var(--gold-lt);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 180ms var(--ease);
    cursor: pointer;
}
.btn-ghost:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--cream);
}

.spinner-sm {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

/* Footer */
.invite-footer {
    width: 100%;
    text-align: center;
    padding: 2.5rem 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.9s 0.55s var(--ease) both;
}

.footer-img {
    max-width: 340px;
    width: 100%;
    border-radius: var(--r);
    border: 1px solid var(--gold-border);
    display: block;
}

.footer-orn {
    font-size: 0.55rem;
    letter-spacing: 0.5em;
    color: var(--gold);
    opacity: 0.6;
}

.footer-copy {
    font-family: var(--f-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--cream-dim);
}

.admin-access-link {
    font-size: 0.8rem;
    color: var(--muted);
    opacity: 0.45;
    transition: opacity 250ms var(--ease), color 250ms var(--ease);
    line-height: 1;
}
.admin-access-link:hover {
    opacity: 1;
    color: var(--gold-lt);
}


/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE  /login
═══════════════════════════════════════════════════════════ */

.login-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-2);
    border: 1px solid var(--gold-border);
    border-radius: var(--r-lg);
    padding: 2.75rem 2rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 28px rgba(160, 120, 32, 0.10);
    animation: scaleIn 0.4s var(--ease-out) both;
}

.login-logo {
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.login-title {
    font-family: var(--f-display);
    font-size: 2.1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 0.35rem;
}

.login-sub {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-bottom: 1.75rem;
}

.login-back {
    margin-top: 1.5rem;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 180ms var(--ease);
}
.login-back:hover { color: var(--gold-lt); }


/* ═══════════════════════════════════════════════════════════
   ADMIN PAGE  /admin
═══════════════════════════════════════════════════════════ */

.admin-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-bottom: 5rem;
    animation: fadeIn 0.5s var(--ease) both;
}

/* sticky top bar */
.admin-topbar {
    border-bottom: 1px solid var(--gold-border);
    margin-bottom: 2.5rem;
    background: rgba(248, 244, 237, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-topbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 180ms var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
}
.back-link:hover { color: var(--gold-lt); }

.admin-title-block { text-align: center; flex: 1; }

.admin-title {
    font-family: var(--f-display);
    font-size: 1.55rem;
    font-weight: 300;
    font-style: italic;
    color: var(--cream);
    line-height: 1.1;
}

.admin-subtitle {
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-lt);
    margin-top: 0.1rem;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--gold-border);
    border-radius: 3px;
    transition: all 160ms var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
    justify-content: center;
}
.btn-logout:hover {
    color: var(--gold-lt);
    border-color: var(--gold);
    background: var(--gold-dim);
}

.admin-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--gold-border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--gold-border);
    gap: 1px;
    margin-bottom: 2.5rem;
    animation: slideDown 0.6s 0.1s var(--ease-out) both;
    box-shadow: 0 1px 10px rgba(160, 120, 32, 0.07);
}

.stat-cell {
    background: var(--bg-2);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: background 180ms var(--ease);
}
.stat-cell:hover { background: var(--bg-3); }

.stat-num {
    font-family: var(--f-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 300;
    color: var(--gold-lt);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Controls bar */
.controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    animation: fadeIn 0.6s 0.2s var(--ease) both;
}

.filter-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--gold-border);
}

.tab-btn {
    padding: 0.55rem 1rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    color: var(--muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 160ms var(--ease), border-color 160ms var(--ease);
    white-space: nowrap;
}
.tab-btn:hover  { color: var(--cream-dim); }
.tab-btn.active { color: var(--gold-lt); border-bottom-color: var(--gold); }

.action-btns { display: flex; gap: 0.5rem; align-items: center; }

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-lt);
    border: 1px solid var(--gold-border);
    border-radius: 3px;
    transition: all 160ms var(--ease);
    cursor: pointer;
}
.btn-export:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--cream);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--danger);
    border: 1px solid rgba(184, 48, 64, 0.30);
    border-radius: 3px;
    transition: all 160ms var(--ease);
    cursor: pointer;
}
.btn-danger:hover:not(:disabled) {
    background: rgba(184, 48, 64, 0.07);
    border-color: var(--danger);
}
.btn-danger:disabled { opacity: 0.28; cursor: not-allowed; }

/* Table */
.table-wrap {
    border: 1px solid var(--gold-border);
    border-radius: var(--r);
    overflow-x: auto;
    background: var(--bg-2);
    animation: slideUp 0.65s 0.25s var(--ease-out) both;
    box-shadow: 0 1px 12px rgba(160, 120, 32, 0.06);
}

.entries-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.entries-table thead tr { border-bottom: 1px solid var(--gold-border); }

.entries-table th {
    padding: 0.8rem 1rem;
    text-align: left;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-lt);
    white-space: nowrap;
    background: transparent;
}
.entries-table th:first-child { padding-left: 1.25rem; }
.entries-table th:last-child  { padding-right: 1.25rem; text-align: center; }

.entries-table tbody tr {
    border-bottom: 1px solid rgba(160, 120, 32, 0.08);
    transition: background 140ms var(--ease);
}
.entries-table tbody tr:last-child { border-bottom: none; }
.entries-table tbody tr:hover { background: var(--bg-3); }

.entries-table td {
    padding: 0.9rem 1rem;
    color: var(--cream-dim);
    vertical-align: middle;
}
.entries-table td:first-child { padding-left: 1.25rem; }
.entries-table td:last-child  { padding-right: 1.25rem; text-align: center; }

/* left accent stripe */
.row-attending td:first-child { border-left: 3px solid rgba(32, 140, 90, 0.50); }
.row-absent    td:first-child { border-left: 3px solid rgba(184, 48, 64, 0.40); }

.td-num {
    font-family: var(--f-display);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--muted);
}
.td-name { font-weight: 500; color: var(--cream); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.55rem;
    border-radius: 2px;
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.badge-attending {
    background: rgba(32, 140, 90, 0.08);
    color: #1A7A50;
    border: 1px solid rgba(32, 140, 90, 0.25);
}
.badge-absent {
    background: rgba(184, 48, 64, 0.07);
    color: #B83040;
    border: 1px solid rgba(184, 48, 64, 0.22);
}

.td-date { display: flex; flex-direction: column; gap: 0.1rem; }
.date-sub { font-size: 0.7rem; color: var(--muted); }

.td-msg { max-width: 200px; }
.msg-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.text-muted { color: var(--muted); }

.btn-del {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    color: var(--muted);
    font-size: 0.85rem;
    transition: all 140ms var(--ease);
    cursor: pointer;
}
.btn-del:hover {
    background: rgba(184, 48, 64, 0.10);
    color: var(--danger);
}

/* Empty state */
.empty-state {
    padding: 4rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--gold-border);
    border-radius: var(--r);
    background: var(--bg-2);
}
.empty-icon { font-size: 2rem; opacity: 0.4; }
.empty-text {
    font-family: var(--f-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--muted);
}

/* Loading */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    gap: 1.25rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.spinner-lg {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--gold-border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(248, 244, 237, 0.85);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: fadeIn 0.2s var(--ease) both;
}

.modal-box {
    background: var(--bg-2);
    border: 1px solid var(--gold-border);
    border-radius: var(--r-lg);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    animation: scaleIn 0.25s var(--ease-out) both;
    box-shadow: 0 8px 40px rgba(160, 120, 32, 0.14);
}

.modal-title {
    font-family: var(--f-display);
    font-size: 1.55rem;
    font-weight: 300;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 0.75rem;
}

.modal-body {
    font-size: 0.85rem;
    color: var(--cream-dim);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.modal-body strong { color: var(--cream); font-weight: 600; }

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}


/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes rotateSlow {
    to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 580px) {
    .rsvp-page { padding: 2rem 1rem 4rem; }

    .event-meta { flex-direction: column; }
    .meta-sep { width: 100%; height: 1px; }

    .form-card { padding: 1.75rem 1.25rem; }

    .stats-row { grid-template-columns: 1fr 1fr; }

    .controls-bar { flex-direction: column; align-items: flex-start; }

    .admin-topbar-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
    .back-link { min-width: auto; }
    .btn-logout { min-width: auto; }

    .modal-actions { flex-direction: column; }
    .btn-export, .btn-danger { font-size: 0.68rem; padding: 0.45rem 0.75rem; }

    /* hide message col on small screens */
    .entries-table th:nth-child(5),
    .entries-table td:nth-child(5) { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   BLAZOR SYSTEM
═══════════════════════════════════════════════════════════ */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(248, 244, 237, 0.97);
    border-top: 1px solid rgba(184, 48, 64, 0.40);
    color: var(--cream-dim);
    font-size: 0.8rem;
    padding: 0.75rem 1.5rem;
    z-index: 999;
    align-items: center;
    gap: 1rem;
}
#blazor-error-ui .reload { color: var(--gold-lt); text-decoration: underline; cursor: pointer; }
#blazor-error-ui .dismiss { margin-left: auto; cursor: pointer; color: var(--muted); }
