:root
{
    --bg: #0c1018;
    --panel: #131a26;
    --panel-soft: #182131;
    --panel-border: rgba(255, 255, 255, 0.08);
    --text: #f4f7fb;
    --muted: #b4bfd3;
    --muted-strong: #d9e1ef;
    --accent: #8b5cf6;
    --accent-2: #6d46ef;
    --chip: rgba(255, 255, 255, 0.12);
    --chip-border: rgba(255, 255, 255, 0.16);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.28);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --content-width: 1400px;
}

*,
*::before,
*::after
{
    box-sizing: border-box;
}

html
{
    font-size: 16px;
}

body
{
    margin: 0;
    font-family: "Inter", sans-serif;
    background:
            radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 28%),
            radial-gradient(circle at top right, rgba(52, 211, 153, 0.10), transparent 24%),
            linear-gradient(180deg, #0b0f17 0%, #101624 100%);
    color: var(--text);
    min-height: 100vh;
}

a
{
    color: inherit;
    text-decoration: none;
}

img
{
    display: block;
    max-width: 100%;
}

button
{
    font: inherit;
}

.site-header
{
    width: min(calc(100% - 32px), var(--content-width));
    margin: 18px auto 0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(15, 21, 33, 0.90);
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 16px;
    z-index: 20;
}

.site-logo-wrap
{
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.site-logo-icon
{
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 28px rgba(109, 70, 239, 0.35);
}

.site-logo-text
{
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.site-nav
{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav a
{
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--muted-strong);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover
{
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    transform: translateY(-1px);
}

.site-actions
{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-button,
.profile-button,
.secondary-button,
.heart-button,
.round-action
{
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.icon-button:hover,
.profile-button:hover,
.secondary-button:hover,
.heart-button:hover,
.round-action:hover
{
    transform: translateY(-1px);
}

.icon-button
{
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.profile-button
{
    min-width: 52px;
    height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #dde5f4 100%);
    color: #101624;
    font-weight: 800;
}

.site-main
{
    width: min(calc(100% - 32px), var(--content-width));
    margin: 22px auto 56px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-section
{
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.secondary-button
{
    align-self: flex-start;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.secondary-button:hover
{
    background: rgba(255, 255, 255, 0.12);
}

.hero-card-stack
{
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(480px, 2.1fr) minmax(220px, 0.9fr);
    gap: 20px;
    align-items: stretch;
}

.side-card,
.main-event-card
{
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-xl);
}

.side-card::before,
.main-event-card::before
{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 10, 16, 0.18) 0%, rgba(7, 10, 16, 0.70) 100%);
}

.side-card
{
    min-height: 540px;
    display: flex;
    align-items: flex-end;
}

.side-card-overlay
{
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-card-overlay span
{
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.side-card-overlay h3
{
    margin: 0;
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.main-event-card
{
    min-height: 680px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.main-event-card-top,
.main-event-card-bottom
{
    position: relative;
    z-index: 1;
}

.main-event-card-top
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pill
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 700;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.heart-button
{
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 1.6rem;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.main-event-card-bottom
{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-category
{
    display: inline-flex;
    align-self: flex-start;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.main-event-card-bottom h2
{
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.5rem, 4vw, 4.25rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: #ffffff;
    text-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
}

.main-event-card-bottom p
{
    margin: 0;
    max-width: 760px;
    font-size: 1.32rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.event-meta
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.event-meta span
{
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-weight: 600;
    backdrop-filter: blur(12px);
}

.tag-row
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag
{
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.swipe-actions-section
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 28px;
    background: rgba(15, 21, 33, 0.88);
    border: 1px solid var(--panel-border);
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
}

.swipe-hint
{
    margin: 0;
    font-size: 1.2rem;
    color: var(--muted-strong);
    font-weight: 600;
}

.swipe-buttons
{
    display: flex;
    align-items: center;
    gap: 14px;
}

.round-action
{
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.round-action.reject
{
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.round-action.info
{
    background: linear-gradient(135deg, #334155 0%, #1f2937 100%);
}

.round-action.accept
{
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.feedback-section
{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-heading
{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2
{
    margin: 6px 0 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    letter-spacing: -0.035em;
    color: #ffffff;
}

.section-heading a
{
    color: #c7b6ff;
    font-weight: 700;
}

.section-heading a:hover
{
    color: #ffffff;
}

.eyebrow
{
    display: inline-block;
    color: #bca8ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    font-weight: 800;
}

.feedback-grid
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feedback-card
{
    overflow: hidden;
    border-radius: 26px;
    background: rgba(16, 23, 35, 0.94);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-lg);
}

.feedback-card img
{
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.feedback-card-body
{
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feedback-card-body h3
{
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #ffffff;
}

.feedback-date
{
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.feedback-rating
{
    color: #f8d46b;
    font-size: 1rem;
    font-weight: 700;
}

.feedback-rating strong
{
    color: #ffffff;
    margin-right: 6px;
}

.feedback-card-body p
{
    margin: 0;
    color: #d9e1ef;
    line-height: 1.65;
}

.feedback-name
{
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 1200px)
{
    .hero-card-stack,
    .feedback-grid
    {
        grid-template-columns: 1fr;
    }

    .hero-card-stack
    {
        min-height: auto;
    }

    .side-card
    {
        min-height: 260px;
    }

    .main-event-card
    {
        min-height: 620px;
    }
}

@media (max-width: 900px)
{
    .site-header
    {
        padding: 18px 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-nav
    {
        width: 100%;
    }

    .site-actions
    {
        width: 100%;
        justify-content: center;
    }

    .swipe-actions-section,
    .section-heading
    {
        flex-direction: column;
        align-items: stretch;
    }

    .swipe-buttons
    {
        justify-content: center;
    }
}

@media (max-width: 640px)
{
    .site-header,
    .site-main
    {
        width: min(calc(100% - 20px), var(--content-width));
    }

    .site-header
    {
        margin-top: 10px;
        top: 10px;
        border-radius: 22px;
    }

    .site-logo-text
    {
        font-size: 1.08rem;
    }

    .site-logo-icon
    {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .site-nav a
    {
        width: 100%;
        text-align: center;
    }

    .secondary-button
    {
        width: 100%;
        justify-content: center;
    }

    .main-event-card
    {
        min-height: 560px;
        padding: 18px;
        border-radius: 24px;
    }

    .main-event-card-bottom h2
    {
        font-size: 2.25rem;
    }

    .main-event-card-bottom p
    {
        font-size: 1.05rem;
    }

    .event-meta,
    .tag-row
    {
        gap: 10px;
    }

    .event-meta span,
    .tag
    {
        min-height: 38px;
        font-size: 0.9rem;
    }

    .feedback-card img
    {
        height: 220px;
    }

    .swipe-actions-section
    {
        padding: 20px;
    }

    .swipe-hint
    {
        font-size: 1rem;
        text-align: center;
    }

    .round-action
    {
        width: 54px;
        height: 54px;
    }
}
/* ============================================================
   Event Details Page
   ============================================================ */

.event-hero
{
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-xl);
}

.event-hero::before
{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(7, 10, 16, 0.12) 0%, rgba(7, 10, 16, 0.88) 100%);
}

.event-hero-content
{
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.event-hero-content h1
{
    margin: 0;
    max-width: 900px;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    color: #ffffff;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.event-hero-content p
{
    margin: 0;
    max-width: 840px;
    font-size: 1.28rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.event-hero-meta
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.event-hero-meta span
{
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 700;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.event-page-topbar
{
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
    align-items: stretch;
}

.event-host-card,
.event-attendee-card,
.info-panel
{
    background: rgba(16, 23, 35, 0.94);
    border: 1px solid var(--panel-border);
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
}

.event-host-card
{
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.event-host-card img
{
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 22px;
    object-fit: cover;
}

.event-host-card span,
.comment-head span,
.location-panel small,
.timeline-item span
{
    color: var(--muted);
    font-weight: 600;
}

.event-host-card h3,
.event-host-card p
{
    margin: 0;
}

.event-host-card h3
{
    color: #ffffff;
    font-size: 1.35rem;
}

.event-attendee-card
{
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.attendee-avatars
{
    display: flex;
    align-items: center;
}

.attendee-avatars img
{
    width: 54px;
    height: 54px;
    margin-right: -12px;
    border: 3px solid #101624;
    border-radius: 999px;
    object-fit: cover;
}

.event-body-grid
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.event-main-column,
.event-side-column
{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-panel
{
    padding: 28px;
}

.timeline-panel
{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-item
{
    padding-bottom: 22px;
    border-bottom: 1px solid var(--panel-border);
}

.timeline-item:last-of-type
{
    border-bottom: 0;
}

.timeline-item h3,
.event-about-block h3,
.location-panel h3,
.mini-info-grid h4
{
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.25rem;
}

.timeline-item p,
.event-about-block p,
.mini-info-grid p,
.location-panel p
{
    margin: 0;
    color: #d9e1ef;
    line-height: 1.65;
}

.event-about-block
{
    padding: 24px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 35%),
        rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-info-grid
{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mini-info-grid > div
{
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.no-margin
{
    margin: 0 0 20px;
}

.comments-panel
{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comment-list
{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-item
{
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-item img
{
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 18px;
    object-fit: cover;
}

.comment-body
{
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.comment-head
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.comment-head strong
{
    color: #ffffff;
}

.comment-body p
{
    margin: 0;
    color: #d9e1ef;
    line-height: 1.55;
}

.comment-body a
{
    align-self: flex-start;
    color: #c7b6ff;
    font-weight: 700;
}

.comment-form
{
    display: flex;
    gap: 12px;
}

.comment-form input
{
    flex: 1;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    outline: 0;
}

.comment-form input::placeholder
{
    color: var(--muted);
}

.primary-button
{
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316 0%, #db2777 100%);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(219, 39, 119, 0.26);
}

.location-panel
{
    position: sticky;
    top: 128px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.location-panel strong
{
    color: #ffffff;
    font-size: 1.18rem;
}

.map-placeholder
{
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(249, 115, 22, 0.18)),
        rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-weight: 800;
}

.full-width
{
    width: 100%;
    justify-content: center;
}

.sort-button
{
    min-height: 42px;
    padding: 0 16px;
}

@media (max-width: 1100px)
{
    .event-page-topbar,
    .event-body-grid
    {
        grid-template-columns: 1fr;
    }

    .location-panel
    {
        position: static;
    }
}

@media (max-width: 640px)
{
    .event-hero
    {
        min-height: 560px;
        border-radius: 24px;
    }

    .event-hero-content
    {
        padding: 22px;
    }

    .event-hero-content h1
    {
        font-size: 2.45rem;
    }

    .event-hero-content p
    {
        font-size: 1.05rem;
    }

    .mini-info-grid,
    .comment-form
    {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

.location-panel.private-location
{
    opacity: 0.82;
}

.private-location-box
{
    padding: 18px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(148, 163, 184, 0.16), rgba(71, 85, 105, 0.16)),
        rgba(255, 255, 255, 0.045);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    color: #d9e1ef;
}

.private-location-box strong
{
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

.private-location-box p
{
    margin: 0;
    color: var(--muted);
}

/* ============================================================
   Temporary Admin Login Gate
   ============================================================ */

.login-page
{
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 0;
}

.login-card
{
    width: min(100%, 520px);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 35%),
        rgba(16, 23, 35, 0.96);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-xl);
}

.login-brand
{
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-brand h1
{
    margin: 0;
    color: #ffffff;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.login-brand p
{
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.login-card label
{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-card label span
{
    color: var(--muted-strong);
    font-weight: 700;
}

.login-card input
{
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font: inherit;
    outline: 0;
}

.login-card input:focus
{
    border-color: rgba(139, 92, 246, 0.72);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

.login-error
{
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.26);
    color: #fecaca;
    font-weight: 700;
}

/* ============================================================
   Admin Users Page
   ============================================================ */

.admin-page
{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-page-header
{
    padding: 30px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.22), transparent 34%),
        rgba(16, 23, 35, 0.94);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-lg);
}

.admin-page-header h1
{
    margin: 8px 0 8px;
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.admin-page-header p
{
    margin: 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.admin-card
{
    padding: 26px;
    border-radius: var(--radius-xl);
    background: rgba(16, 23, 35, 0.94);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-lg);
}

.admin-card h2
{
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
}

.admin-alert
{
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 800;
}

.admin-alert-error
{
    color: #fecaca;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.admin-alert-success
{
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.admin-form-grid,
.admin-row-main
{
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.admin-form-grid label,
.admin-row-main label
{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form-grid span,
.admin-row-main span
{
    color: var(--muted-strong);
    font-weight: 700;
    font-size: 0.92rem;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-row-main input,
.admin-row-main select
{
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font: inherit;
    outline: 0;
}

.admin-form-grid select,
.admin-row-main select
{
    cursor: pointer;
}

.admin-form-actions
{
    display: flex;
    align-items: end;
}

.admin-table
{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-row
{
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-row-meta
{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.admin-row-actions
{
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.danger-button
{
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(185, 28, 28, 0.24);
}

@media (max-width: 1200px)
{
    .admin-form-grid,
    .admin-row-main
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px)
{
    .admin-form-grid,
    .admin-row-main
    {
        grid-template-columns: 1fr;
    }

    .admin-row-actions
    {
        flex-direction: column;
    }
}

/* ============================================================
   Site Logo Image
   ============================================================ */

.site-logo-image
{
    width: auto;
    height: 58px;
    max-width: 220px;
    object-fit: contain;
}

.login-logo-image
{
    width: auto;
    height: 74px;
    max-width: 240px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 640px)
{
    .site-logo-image
    {
        height: 48px;
        max-width: 180px;
    }

    .login-logo-image
    {
        height: 62px;
        max-width: 200px;
    }
}

.site-logo-image
{
    display: block;
    width: auto;
    height: 58px;
    max-width: 240px;
    object-fit: contain;
}

.login-logo-image
{
    display: block;
    width: auto;
    height: 78px;
    max-width: 260px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ============================================================
   Header Logo Fix
   ============================================================ */

.site-logo-wrap
{
    min-width: 190px;
    min-height: 74px;
    display: flex;
    align-items: center;
}

.site-logo-image
{
    width: auto;
    height: 82px;
    max-width: 260px;
    object-fit: contain;
}

.site-actions
{
    min-width: 190px;
    justify-content: flex-end;
}

@media (max-width: 640px)
{
    .site-logo-wrap
    {
        min-width: 150px;
        min-height: 62px;
    }

    .site-logo-image
    {
        height: 66px;
        max-width: 210px;
    }

    .site-actions
    {
        min-width: 120px;
    }
}

/* ============================================================
   Locked Header State
   ============================================================ */

.site-header-locked
{
    justify-content: center;
}

.site-header-locked .site-logo-wrap
{
    min-width: auto;
}

/* ============================================================
   Single Event Swipe Deck
   ============================================================ */

.swipe-event-page
{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.swipe-event-header
{
    padding: 28px 30px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.22), transparent 34%),
        rgba(16, 23, 35, 0.94);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-lg);
}

.swipe-event-header h1
{
    margin: 8px 0 8px;
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.swipe-event-header p
{
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.55;
}

.event-swipe-shell
{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.event-swipe-count
{
    align-self: flex-end;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--panel-border);
    color: var(--muted-strong);
    font-weight: 800;
}

.event-swipe-stage
{
    position: relative;
    width: min(100%, 860px);
    height: min(72vh, 720px);
    min-height: 560px;
    perspective: 1200px;
}

.event-swipe-card
{
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    pointer-events: none;
    transform: translateX(28px) scale(0.96) rotateY(-5deg);
    transition:
        opacity 0.28s ease,
        transform 0.34s ease;
}

.event-swipe-card.active
{
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1) rotateY(0);
    z-index: 3;
}

.event-swipe-card.previous
{
    transform: translateX(-42px) scale(0.94) rotateY(6deg);
}

.event-swipe-card.next
{
    transform: translateX(42px) scale(0.94) rotateY(-6deg);
}

.event-swipe-overlay
{
    position: absolute;
    inset: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(7, 10, 16, 0.18) 0%, rgba(7, 10, 16, 0.88) 100%);
}

.event-swipe-top
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.event-swipe-content
{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-swipe-content h2
{
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.event-swipe-content p
{
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.24rem;
    line-height: 1.55;
}

.event-view-button
{
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.event-swipe-actions
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.event-swipe-actions .round-action
{
    width: 68px;
    height: 68px;
    font-size: 1.7rem;
}

@media (max-width: 900px)
{
    .event-swipe-stage
    {
        width: 100%;
        height: 70vh;
        min-height: 540px;
    }

    .event-swipe-overlay
    {
        padding: 22px;
    }

    .event-swipe-content h2
    {
        font-size: clamp(2.3rem, 12vw, 4.2rem);
    }

    .event-swipe-content p
    {
        font-size: 1.05rem;
    }

    .event-swipe-count
    {
        align-self: center;
    }
}

@media (max-width: 640px)
{
    .swipe-event-header
    {
        display: none;
    }

    .event-swipe-stage
    {
        height: calc(100vh - 260px);
        min-height: 520px;
    }

    .event-swipe-overlay
    {
        padding: 18px;
    }

    .event-swipe-content
    {
        gap: 13px;
    }

    .event-swipe-content h2
    {
        font-size: 2.5rem;
    }

    .event-meta span,
    .tag
    {
        font-size: 0.82rem;
    }

    .event-swipe-actions .round-action
    {
        width: 58px;
        height: 58px;
        font-size: 1.35rem;
    }
}

/* ============================================================
   Test Event Admin Tools
   ============================================================ */

.test-event-tools
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 36%),
        rgba(16, 23, 35, 0.94);
}

.test-event-tools p
{
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.test-event-tools strong
{
    color: #ffffff;
}

.test-event-actions
{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 800px)
{
    .test-event-tools
    {
        flex-direction: column;
        align-items: stretch;
    }

    .test-event-actions
    {
        justify-content: stretch;
    }

    .test-event-actions form,
    .test-event-actions button
    {
        width: 100%;
    }
}

/* ============================================================
   Mobile Header Fix
   ============================================================ */

.mobile-menu-button,
.mobile-logout-form
{
    display: none;
}

@media (max-width: 760px)
{
    .site-header
    {
        width: calc(100% - 20px);
        min-height: 72px;
        margin: 10px auto 0;
        padding: 10px 14px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        border-radius: 22px;
        top: 8px;
    }

    .site-logo-wrap
    {
        min-width: 0;
        min-height: 52px;
        flex: 0 1 auto;
    }

    .site-logo-image
    {
        height: 54px;
        max-width: 150px;
    }

    .mobile-menu-button
    {
        width: 48px;
        height: 48px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.10);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-menu-button span
    {
        width: 22px;
        height: 2px;
        display: block;
        border-radius: 999px;
        background: #ffffff;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mobile-menu-open .mobile-menu-button span:nth-child(1)
    {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-open .mobile-menu-button span:nth-child(2)
    {
        opacity: 0;
    }

    .mobile-menu-open .mobile-menu-button span:nth-child(3)
    {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav
    {
        position: fixed;
        left: 10px;
        right: 10px;
        top: 92px;
        width: auto;
        max-height: calc(100vh - 112px);
        padding: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        overflow-y: auto;
        border-radius: 22px;
        background: rgba(13, 19, 31, 0.98);
        border: 1px solid var(--panel-border);
        box-shadow: var(--shadow-xl);
        z-index: 100;
    }

    .mobile-menu-open .site-nav
    {
        display: flex;
    }

    .site-nav a
    {
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .site-actions
    {
        display: none;
    }

    .mobile-logout-form
    {
        display: block;
        margin-top: 6px;
    }

    .mobile-logout-form .profile-button
    {
        width: 100%;
        min-height: 50px;
    }

    .site-header-locked
    {
        justify-content: center;
    }

    .site-main
    {
        width: calc(100% - 20px);
        margin-top: 14px;
    }
}

/* ============================================================
   Attendee Visibility Controls
   ============================================================ */

.attendee-count
{
    display: block;
    color: #ffffff;
    font-size: 1.35rem;
}

.attendee-avatars-blurred img
{
    filter: blur(8px);
    transform: scale(1.04);
}

.attendee-privacy-note
{
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 600;
}

/* ============================================================
   Event Create/Edit
   ============================================================ */

.event-editor-form
{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.event-editor-grid
{
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.event-editor-grid label,
.flag-grid label
{
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted-strong);
    font-weight: 700;
}

.event-editor-grid input,
.event-editor-grid select,
.event-editor-grid textarea
{
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font: inherit;
    outline: 0;
}

.event-editor-grid textarea
{
    min-height: 120px;
    padding: 14px;
    resize: vertical;
}

.span-2
{
    grid-column: span 2;
}

.span-3
{
    grid-column: span 3;
}

.span-full
{
    grid-column: 1 / -1;
}

.top-gap
{
    margin-top: 18px;
}

.flag-grid
{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.flag-grid label
{
    padding: 14px;
    flex-direction: row;
    align-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flag-grid input
{
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.current-event-image
{
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--panel-border);
}

.current-event-image img
{
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

.event-editor-actions
{
    display: flex;
    gap: 14px;
    justify-content: flex-end;
}

.event-card-edit-badge
{
    position: absolute;
    z-index: 4;
    right: 22px;
    top: 92px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.event-card-edit-badge span,
.event-edit-link
{
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-weight: 800;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.event-edit-link
{
    background: linear-gradient(135deg, #8b5cf6 0%, #db2777 100%);
}

@media (max-width: 1100px)
{
    .event-editor-grid,
    .flag-grid
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .span-2,
    .span-3
    {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px)
{
    .event-editor-grid,
    .flag-grid
    {
        grid-template-columns: 1fr;
    }

    .event-editor-actions
    {
        flex-direction: column;
    }

    .event-card-edit-badge
    {
        left: 18px;
        right: 18px;
        top: 78px;
        justify-content: space-between;
    }
}
