/**
 * IMPACT Events - Base Styles
 * Fonts, CSS Variables, Reset, Typography
 */

/* Self-hosted Be Vietnam Pro font */
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/be-vietnam-pro-400-viet.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/be-vietnam-pro-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/be-vietnam-pro-500-viet.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/be-vietnam-pro-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/be-vietnam-pro-600-viet.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Be Vietnam Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/be-vietnam-pro-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reset & Variables */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Semantic: public sections */
    --section-bg: #ffffff;
    --section-bg-alt: #f5f5f5;
    --section-text: #000000;
    --section-text-muted: #525252;
    --section-border: #e5e5e5;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --card-shadow: rgba(0, 0, 0, 0.06);
    --form-bg: #ffffff;
    --form-border: #d4d4d4;
    --form-text: #000000;
    --input-bg: #ffffff;
    --input-border: #d4d4d4;
    --input-text: #000000;
    --input-placeholder: #a3a3a3;
    --meta-bg: #f5f5f5;
    --meta-label: #737373;
    --filter-bg: #ffffff;
    --filter-text: #1A1A2E;
    --filter-border: rgba(0, 0, 0, 0.15);
    --filter-hover: rgba(0, 0, 0, 0.1);
    --filter-active-bg: #000000;
    --filter-active-text: #ffffff;
    --link-muted: #666666;
    --link-muted-hover: #333333;
    --review-text: #333333;
    --review-author: #666666;
    --success-title: #1a1a2e;
    --success-text: #4b5563;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    --error-text: #991b1b;
    --capacity-full-bg: #fef2f2;
    --capacity-full-border: #fecaca;
    --capacity-full-text: #991b1b;
    --dropdown-highlight: #e8e8e8;
    --toggle-bg: #d4d4d4;
    --toggle-active: #171717;
    --toggle-knob: #ffffff;
    --badge-type-bg: #E5E7EB;
    --badge-type-text: #374151;
    --badge-free-bg: #DCFCE7;
    --badge-free-text: #166534;
    --badge-paid-bg: #FEF3C7;
    --badge-paid-text: #92400E;
    --footer-bg: #000000;

    /* Status colors (checkin states - theme-independent) */
    --status-success: #10B981;
    --status-error: #EF4444;
    --status-warning: #F97316;
    --status-neutral: #8B929E;

    /* Brand accent colors (shared with admin, theme-independent) */
    --fire: #ff6b35;
    --ocean: #0066ff;
    --charcoal: #1A1A2E;
    --steel: #2E2E42;
    --mist: #8B8B9F;
    --pearl: #F5F5FF;
}

[data-theme="dark"] {
    --section-bg: #000000;
    --section-bg-alt: #141414;
    --section-text: #eeeeee;
    --section-text-muted: #aaaaaa;
    --section-border: #aaaaaa;
    --card-bg: #1c1c1c;
    --card-border: #666666;
    --card-shadow: rgba(0, 0, 0, 0.4);
    --form-bg: #1c1c1c;
    --form-border: #444444;
    --form-text: #eeeeee;
    --input-bg: #242424;
    --input-border: #aaaaaa;
    --input-text: #eeeeee;
    --input-placeholder: #777777;
    --meta-bg: #1e1e1e;
    --meta-label: #999999;
    --filter-bg: #1c1c1c;
    --filter-text: #eeeeee;
    --filter-border: rgba(255, 255, 255, 0.2);
    --filter-hover: rgba(255, 255, 255, 0.1);
    --filter-active-bg: #ffffff;
    --filter-active-text: #000000;
    --link-muted: #aaaaaa;
    --link-muted-hover: #dddddd;
    --review-text: #dddddd;
    --review-author: #999999;
    --success-title: #eeeeee;
    --success-text: #aaaaaa;
    --error-bg: #2a1515;
    --error-border: #4a2020;
    --error-text: #f87171;
    --capacity-full-bg: #2a1515;
    --capacity-full-border: #4a2020;
    --capacity-full-text: #f87171;
    --dropdown-highlight: #333333;
    --toggle-bg: #666666;
    --toggle-active: #e8e8e8;
    --toggle-knob: #141414;
    --badge-type-bg: #333333;
    --badge-type-text: #cccccc;
    --badge-free-bg: rgba(16, 185, 129, 0.15);
    --badge-free-text: #6ee7b7;
    --badge-paid-bg: rgba(245, 158, 11, 0.15);
    --badge-paid-text: #fbbf24;
    --footer-bg: #000000;
}

/* Base */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body, sans-serif);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading, sans-serif);
    font-weight: 400;
    line-height: 1.2;
}

h1 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.pt-100 { padding-top: 100px; }
.my-24 { margin-top: 24px; margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

/**
 * IMPACT Events - Component Styles
 * Buttons, Forms, Cards, Badges, Modals
 */

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--filter-active-bg);
    color: var(--filter-active-text);
    border-color: var(--filter-active-bg);
}

.btn-primary:hover {
    background: transparent;
    color: var(--section-text);
}

/* White button variant for dark backgrounds */
.hero .btn-primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.hero .btn-primary:hover {
    background: transparent;
    color: var(--white);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 32px;
}

.btn-secondary {
    background: var(--section-bg);
    color: var(--section-text);
    border: 1px solid var(--section-border);
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--section-bg-alt);
    border-color: var(--section-text);
}

.btn-danger {
    background: #dc2626;
    color: var(--white);
    border-color: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn-checkin {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 44px;
    border: 1px solid #fff;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    transition: all 0.2s ease;
}

.btn-checkin:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* ============================================
   FORMS
   ============================================ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--meta-label);
}

/* Public page form inputs */
body:not([class]) .form-group input,
.page-event-public .form-group input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    outline: none;
    transition: border-color 0.2s;
}

body:not([class]) .form-group input:focus:not(:focus-visible),
.page-event-public .form-group input:focus:not(:focus-visible) {
    outline: none;
}

body:not([class]) .form-group input:focus-visible,
.page-event-public .form-group input:focus-visible {
    outline: 2px solid var(--gray-500);
    outline-offset: 1px;
}

body:not([class]) .form-group input:focus,
.page-event-public .form-group input:focus {
    border-color: var(--gray-500);
}

body:not([class]) .form-group input::placeholder,
.page-event-public .form-group input::placeholder {
    color: var(--input-placeholder);
}

.join-form .btn {
    width: 100%;
    background: var(--filter-active-bg);
    color: var(--filter-active-text);
    border-color: var(--filter-active-bg);
}

.join-form .btn:hover {
    background: transparent;
    color: var(--section-text);
}

/* Registration Form */
.reg-form .form-group {
    margin-bottom: 24px;
}

.reg-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0px;
    color: var(--gray-400);
}

.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
}

.reg-form input:focus:not(:focus-visible),
.reg-form textarea:focus:not(:focus-visible) {
    outline: none;
}

.reg-form input:focus-visible,
.reg-form textarea:focus-visible {
    outline: 2px solid var(--gray-500);
    outline-offset: 1px;
}

.reg-form input:focus,
.reg-form textarea:focus {
    border-color: var(--gray-500);
}

.reg-form input::placeholder,
.reg-form textarea::placeholder {
    color: var(--gray-500);
}

.reg-form textarea {
    min-height: 100px;
    resize: vertical;
}

.reg-form .helper-text {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    cursor: pointer;
    transition: border-color 0.2s;
}

.radio-option:hover {
    border-color: var(--gray-600);
}

.radio-option input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-600);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--white);
}

.radio-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
}

.radio-option span {
    color: var(--gray-300);
    font-size: 0.95rem;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--gray-600);
    background: transparent;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
}

.checkbox-group input[type="checkbox"]:checked {
    border-color: var(--white);
    background: var(--white);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--black);
    font-size: 14px;
    font-weight: bold;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--gray-300);
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}

.lookup-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.lookup-form input {
    flex: 1;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 16px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
}

.lookup-form input:focus:not(:focus-visible) {
    outline: none;
}

.lookup-form input:focus-visible {
    outline: 2px solid var(--gray-500);
    outline-offset: 1px;
}

.lookup-form input:focus {
    border-color: var(--gray-500);
}

.lookup-form input::placeholder {
    color: var(--gray-500);
}

.form-note {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
}

.field-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.field-error {
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 4px;
}

/* intl-tel-input integration */
.iti {
    width: 100%;
}

.page-event-public .iti .iti__search-input {
    padding: 8px 8px 8px 24px;
    font-size: 14px;
    height: auto;
}

/* ============================================
   EVENT CARDS & BADGES
   ============================================ */

/* Event Badges */
.event-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.event-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.event-badge-type {
    background: var(--badge-type-bg);
    color: var(--badge-type-text);
}

.event-badge-free {
    background: var(--badge-free-bg);
    color: var(--badge-free-text);
}

.event-badge-paid {
    background: var(--badge-paid-bg);
    color: var(--badge-paid-text);
}

/* Capacity Badge Overlay */
.capacity-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.capacity-badge-few-left {
    background: #F59E0B;
    color: #000;
}

.capacity-badge-sold-out,
.capacity-badge-fully-booked {
    background: #DC2626;
    color: #fff;
}

/* Event Cards */
.event-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    overflow: hidden;
    text-decoration: none;
    color: var(--section-text);
    transition: all 0.2s ease;
}

@media (hover: hover) {
    .event-card:hover {
        border-color: var(--section-text);
    }
}

.event-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--meta-bg);
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--link-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.event-card-title {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 6px 0;
    color: var(--section-text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: var(--link-muted);
    margin-bottom: 12px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.event-card-venue {
    font-size: 14px;
    color: var(--link-muted);
    margin-bottom: 12px;
}

.event-card-venue::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -2px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

.event-card-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-stack-small {
    display: flex;
}

.avatar-stack-small .avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    margin-left: -8px;
}

.avatar-stack-small .avatar-small:first-child {
    margin-left: 0;
}

.event-card-going {
    font-size: 13px;
    color: var(--link-muted);
}

.event-card-cta {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--section-text);
    padding: 6px 12px;
    border: 1px solid var(--section-text);
    background: var(--card-bg);
    transition: all 0.2s ease;
}

@media (hover: hover) {
    .event-card:hover .event-card-cta {
        background: var(--section-text);
        color: var(--section-bg);
    }
}

/* Featured Event - extends .event-card-* with size overrides only */
.featured-event {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border);
    text-decoration: none;
    color: var(--section-text);
    transition: all 0.2s ease;
}

@media (hover: hover) {
    .featured-event:hover {
        border-color: var(--section-text);
    }
}

.featured-event .event-card-image {
    aspect-ratio: 16 / 10;
}

.featured-event .event-card-content {
    padding: 20px;
}

.featured-event .event-card-title {
    font-size: 24px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.featured-event-description {
    font-size: 14px;
    color: var(--link-muted);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

@media (hover: hover) {
    .featured-event:hover .event-card-cta {
        background: var(--section-text);
        color: var(--section-bg);
    }
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 32px;
}

.social-proof.event-social-proof {
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 20px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--section-bg-alt);
    margin-left: -16px;
    object-fit: cover;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-left: -16px;
    border: 2px solid var(--gray-100);
}

.social-proof-text {
    color: var(--section-text-muted);
    font-size: 0.95rem;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-registered {
    background: #3B82F6;
    color: #FFFFFF;
}

.status-confirmed {
    background: #EAB308;
    color: #1A1A2E;
}

.status-confirmed-free {
    background: #10B981;
    color: #FFFFFF;
}

.status-paid {
    background: #10B981;
    color: #FFFFFF;
}

.status-checked-in {
    background: #F72585;
    color: #FFFFFF;
}

.status-waitlisted {
    background: #ff6b35;
    color: #FFFFFF;
}

.status-cancelled {
    background: #6B7280;
    color: #D1D5DB;
}

/* Status Dropdown */
.status-dropdown {
    position: relative;
    display: inline-block;
}

.status-clickable {
    cursor: pointer;
    transition: all 0.15s ease;
}

.status-clickable:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.status-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: var(--charcoal);
    border: 1px solid var(--steel);
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status-dropdown:hover .status-menu,
.status-dropdown:focus-within .status-menu {
    display: block;
}

.status-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    color: var(--pearl);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.status-option:hover:not(:disabled) {
    background: rgba(255, 107, 53, 0.2);
}

.status-option:disabled {
    color: var(--mist);
    cursor: default;
}

.status-option.current {
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   MESSAGES & NOTICES
   ============================================ */
.capacity-notice {
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--gray-800);
    text-align: center;
    font-size: 0.95rem;
}

.capacity-notice.full {
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
}

.warning-box {
    padding: 20px;
    background: var(--gray-800);
    border: 1px solid var(--gray-600);
    text-align: center;
    color: var(--gray-300);
}

.policy-box {
    padding: 24px;
    margin: 24px 0;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
}

.policy-box h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--white);
}

.policy-box p {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 16px;
}
/**
 * IMPACT Events - Layout Styles
 * Navigation, Hero, Containers, Sections, Footer
 */

/* ============================================
   CONTAINERS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.container-narrow {
    max-width: 600px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-subtitle {
    color: var(--section-text-muted);
    font-size: 1rem;
    margin-top: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 24px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.9;
}

.hero-subtitle {
    max-width: 600px;
    font-size: 1rem;
    color: var(--gray-300);
    margin-bottom: 32px;
}

.hero-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
}

.nav-logo-text {
    font-family: var(--font-heading, sans-serif);
    font-size: 60px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    /* Trim phantom ascender/descender space so uppercase glyphs center visually.
       text-box: trim-both cap alphabetic clips above cap-height and below baseline.
       Supported: Chrome 133+, Safari 18.2+, Firefox 134+.
       Fallback nudge for older browsers using the measured gin font offset. */
    text-box: trim-both cap alphabetic;
}

@supports not (text-box: trim-both cap alphabetic) {
    .nav-logo-text {
        transform: translateY(-0.08em);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.theme-toggle:hover {
    opacity: 1;
}

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Mobile nav controls (theme toggle + hamburger), hidden on desktop */
.nav-controls {
    display: none;
}

/* Hamburger Menu */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    color: var(--white);
}

.nav-hamburger span {
    width: 100%;
    height: 3px;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger.active span {
    background-color: var(--section-text);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Light Navigation */
.nav-light {
    background: var(--section-bg);
    border-bottom: 1px solid var(--card-border);
}

.nav-light .nav-logo-text {
    color: var(--section-text);
}

.nav-light .nav-links a {
    color: var(--section-text-muted);
}

.nav-light .nav-links a:hover {
    color: var(--section-text);
}

.nav-light .nav-hamburger {
    color: var(--section-text);
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.events-section {
    background: var(--section-bg);
    color: var(--section-text);
}

.events-section .container {
    overflow: visible;
}

.event-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.event-tab {
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--filter-text);
    background: var(--filter-hover);
    border: 1px solid var(--filter-border);
    transition: all 0.2s ease;
}

.event-tab:hover {
    background: var(--filter-hover);
    border-color: var(--filter-border);
}

.event-tab.active {
    background: var(--filter-active-bg);
    color: var(--filter-active-text);
    border-color: var(--filter-active-bg);
}

.event-tabs-bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.event-tabs-bar .event-filter {
    position: absolute;
    right: 0;
}

.event-tabs-bar .event-filter.event-filter-left {
    right: auto;
    left: 0;
}

.event-region-label {
    position: absolute;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-radius: 24px;
    background: transparent;
    border: 1px solid var(--filter-border);
    font-size: 14px;
    color: var(--section-text);
    pointer-events: none;
    user-select: none;
}

.event-region-label::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

.calendar-subscribe-link {
    position: absolute;
    right: 0;
    bottom: 100%;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--link-muted);
    font-size: 0.8rem;
    text-decoration: none;
    text-align: right;
    transition: color 0.2s;
}

.calendar-subscribe-link:hover {
    color: var(--link-muted-hover);
}

.event-filter .choices {
    margin-bottom: 0;
    min-width: 180px;
}

.event-filter .choices__inner {
    background: var(--filter-bg);
    border: 1px solid var(--filter-border);
    border-radius: 24px;
    padding: 6px 12px;
    min-height: auto;
    font-size: 14px;
}

.events-section .event-filter .choices .choices__list--dropdown,
.events-section .event-filter .choices .choices__list--dropdown .choices__list {
    min-width: max-content;
    border-radius: 0 16px 16px 16px;
    overflow: hidden;
    border-color: var(--card-border);
}

.events-section .event-filter .choices .choices__list--single .choices__item,
.events-section .event-filter .choices .choices__list--dropdown .choices__item {
    white-space: nowrap;
    padding-right: 20px;
    color: var(--filter-text);
}

.event-filter .choices__list--single .choices__item {
    color: var(--filter-text);
}

.events-section .event-filter .choices {
    --choices-bg-color: var(--filter-bg);
    --choices-bg-color-dropdown: var(--card-bg);
    --choices-highlighted-color: var(--dropdown-highlight);
}

.events-section .event-filter .choices.is-open .choices__inner {
    border-radius: 24px 24px 0 0;
}

.events-section .event-filter .choices.is-focused:not(.is-open) .choices__inner {
    outline: 2px solid var(--filter-active-bg);
    outline-offset: 2px;
}

/* Events Layout - Featured + Cards Grid */
.events-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 24px;
    align-items: start;
}

.event-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    container-type: inline-size;
}

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

/* Container queries - column count based on the grid's own available width.
   Browsers without container query support fall back to the @media rules below. */
@container (max-width: 499px) {
    .event-cards-grid {
        grid-template-columns: 1fr;
    }
}

@container (min-width: 500px) and (max-width: 899px) {
    .event-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@container (min-width: 900px) {
    .event-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.event-showcase {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 24px;
    align-items: start;
}

.event-flyer {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 500px;
    width: 100%;
}

.event-flyer img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

.event-placeholder {
    aspect-ratio: 3/4;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

.event-info {
    padding: 0 0 20px 0;
}

.event-info .event-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--black);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.event-info h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.events-section .event-subtitle {
    color: var(--section-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.event-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--gray-100);
    text-align: center;
}

.meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
}

.meta-value {
    font-size: 1rem;
    font-weight: 500;
}

.meta-value a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.meta-value a:hover {
    opacity: 0.7;
}

.member-price {
    color: var(--gray-500);
    font-weight: 400;
    white-space: nowrap;
    font-size: 0.85rem;
}

/* Event description - HTML from WYSIWYG editor */
.event-description {
    color: var(--black);
    font-size: 0.95rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.event-description p {
    margin-bottom: 12px;
}

.event-description p:last-child {
    margin-bottom: 0;
}

.event-description ul,
.event-description ol {
    margin: 12px 0;
    padding-left: 24px;
}

.event-description li {
    margin-bottom: 6px;
}

.event-description strong {
    color: var(--black);
}

.event-description a {
    color: var(--fire);
    text-decoration: underline;
}

.event-description a:hover {
    color: var(--ocean);
}

/* No Events */
.no-events {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.no-events .hint {
    margin-top: 12px;
    font-size: 0.9rem;
}

/* More Events */
.more-events {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-700);
}

.more-events h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-400);
    margin-bottom: 24px;
}

/* ============================================
   COMMUNITY SECTION
   ============================================ */
.community-section {
    background: var(--section-bg-alt);
    color: var(--section-text);
}

.community-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.community-content h2 {
    margin-bottom: 16px;
}

.community-content > p {
    color: var(--section-text-muted);
    margin-bottom: 40px;
}

.telegram-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    text-align: left;
}

.telegram-icon {
    flex-shrink: 0;
    color: var(--white);
}

.telegram-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.telegram-info p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.telegram-info strong {
    color: var(--white);
}

/* Join Form */
.join-form-container {
    margin-top: 32px;
}

.join-form {
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   LOOKUP SECTION
   ============================================ */
.lookup-section {
    background: var(--gray-900);
    text-align: center;
}

.lookup-section h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.lookup-section > .container > p {
    color: var(--gray-400);
    margin-bottom: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 60px 24px;
    text-align: center;
    border-top: 1px solid var(--gray-800);
}

.footer-logo {
    height: 120px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--gray-400);
}

/* ============================================
   RESULT PAGE
   ============================================ */
.result-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.result-content {
    text-align: center;
    max-width: 400px;
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

.result-icon.success {
    background: var(--white);
    color: var(--black);
}

.result-icon.error {
    background: var(--gray-700);
    color: var(--white);
}

.result-content h1 {
    margin-bottom: 16px;
}

.result-content p {
    color: var(--gray-400);
    margin-bottom: 8px;
}

.result-hint {
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.result-content .btn {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.result-content .btn:hover {
    background: transparent;
    color: var(--white);
}

/* ============================================
   BACK LINK
   ============================================ */
.back-link {
    display: block;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 24px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--white);
}
/**
 * IMPACT Events - Page-Specific Styles
 * Registration Pages, Check-in, Reviews, Event Pages
 */

/* ============================================
   PUBLIC EVENT PAGE (LIGHT THEME)
   ============================================ */
.page-event-public {
    background: var(--section-bg);
    color: var(--section-text);
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

.event-page-content {
    padding: 60px 0 0;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* Event page uses same title style as homepage */
.page-event-public .event-info h1.event-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--section-text);
    max-width: 100%;
}

h1.event-title {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Ensure event showcase works on event page */
.page-event-public .event-showcase {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 24px;
    align-items: start;
}

.page-event-public .event-flyer img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-event-public .event-badge {
    display: none;
}

.page-event-public .event-subtitle {
    color: var(--section-text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 12px;
}

.page-event-public .event-short-desc {
    color: var(--section-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.page-event-public .event-description {
    color: var(--section-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.page-event-public .event-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 24px 0;
}

.page-event-public .meta-item {
    background: var(--meta-bg);
    padding: 16px 12px;
    text-align: center;
}

.page-event-public .meta-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--meta-label);
    margin-bottom: 4px;
}

.page-event-public .meta-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--section-text);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.page-event-public .meta-value a {
    color: var(--section-text);
    text-decoration: underline;
}

.page-event-public .member-price {
    color: var(--gray-500);
    font-weight: 400;
    font-size: 0.85rem;
}

/* Event page uses same meta styling as homepage */
.page-event-public .reg-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 32px 0;
}

.page-event-public .reg-detail {
    background: var(--meta-bg);
    padding: 16px;
    text-align: center;
}

.page-event-public .reg-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--meta-label);
    margin-bottom: 4px;
}

.page-event-public .reg-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--section-text);
}

.page-event-public .reg-value a {
    color: var(--section-text);
    text-decoration: underline;
}

.page-event-public .reg-banner {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto 32px;
    border: none;
}

.page-event-public .reg-intro {
    color: var(--section-text);
    font-size: 0.95rem;
    margin: 24px 0;
    line-height: 1.7;
}

.page-event-public .reg-details-full {
    color: var(--section-text);
    font-size: 0.95rem;
    margin: 24px 0;
    line-height: 1.6;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-section {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.reviews-section h2 {
    text-align: center;
    margin-bottom: 32px;
    font-family: var(--font-heading, serif);
    color: var(--section-text);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.review-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.review-stars {
    color: #ffc107;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
}

.review-author {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

/* Review cards on event page (white background) */
.page-event-public .reviews-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.page-event-public .review-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    text-align: center;
    flex: 0 1 280px;
    max-width: 280px;
}

.page-event-public .review-stars {
    color: var(--section-text);
}

.page-event-public .review-text {
    color: var(--review-text);
}

.page-event-public .review-author {
    color: var(--review-author);
}

/* ============================================
   REGISTRATION SECTION
   ============================================ */
.page-event-public .registration-section {
    background: var(--section-bg-alt);
    margin-top: 60px;
    padding: 60px 0;
}

.page-event-public .registration-section h2 {
    font-family: var(--font-heading, sans-serif);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 8px;
    color: var(--section-text);
}

.page-event-public .register-details {
    text-align: center;
    color: var(--section-text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
}

.page-event-public .registration-section .social-proof {
    margin-top: 0;
    margin-bottom: 32px;
}

.social-proof-text-group {
    display: flex;
    flex-direction: column;
}

.spots-left {
    color: #888888;
    font-size: 0.85rem;
}

/* Registration Form - Light Theme */
.page-event-public .reg-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    background: var(--form-bg);
    border: 1px solid var(--form-border);
}

.page-event-public .form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.page-event-public .form-row-inline .form-group {
    margin-bottom: 0;
}

.page-event-public .policy-toggle .toggle-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.page-event-public .policy-toggle input[type="checkbox"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.page-event-public .policy-toggle .toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    min-width: 44px;
    height: 24px;
    min-height: 24px;
    background: var(--toggle-bg);
    border-radius: 12px;
    transition: background 0.3s;
    flex-shrink: 0;
    margin-top: 1px;
}

.page-event-public .policy-toggle .toggle-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--toggle-knob);
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.page-event-public .policy-toggle input:checked + .toggle-switch {
    background: var(--toggle-active);
}

.page-event-public .policy-toggle input:checked + .toggle-switch::before {
    transform: translateX(20px);
}

.page-event-public .policy-toggle input:focus-visible + .toggle-switch {
    outline: 2px solid var(--fire);
    outline-offset: 2px;
}

.page-event-public .policy-toggle .toggle-text {
    font-size: 0.9rem;
    color: var(--section-text-muted);
    line-height: 1.4;
}

.page-event-public .policy-bar,
.page-event-public .field-error-msg {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
    padding: 8px 12px;
    font-size: 0.8125rem;
    margin-top: 6px;
}

.page-event-public .field-invalid {
    border-color: #ef4444;
}

.page-event-public .form-group:has(.field-error-msg),
.page-event-public .form-group:has(.policy-bar) {
    margin-bottom: 6px;
}

.page-event-public .reg-form button[type="submit"] {
    width: 100%;
    margin-top: 8px;
}

.page-event-public .reg-form button[type="submit"].is-submitting {
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
    color: transparent;
}

.page-event-public .reg-form button[type="submit"].is-submitting::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Guest Section */
.page-event-public .guest-section {
    margin-top: 0;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-event-public .btn-add-guest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    background: var(--meta-bg);
    border: 1px solid var(--form-border);
    color: var(--section-text-muted);
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.page-event-public .btn-add-guest:hover {
    background: var(--input-bg);
    border-color: var(--section-text-muted);
    color: var(--section-text);
}

.page-event-public .guest-note {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.page-event-public .guest-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
    text-align: left;
    width: 100%;
}

.page-event-public .guest-row .guest-input {
    margin-bottom: 0;
    min-width: 0;
}

.page-event-public .guest-row .guest-input input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--black);
    box-sizing: border-box;
}

.page-event-public .btn-remove-guest {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-500);
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-event-public .btn-remove-guest:hover {
    border-color: var(--fire);
    color: var(--fire);
}

.page-event-public .form-group label {
    color: var(--section-text);
}

.page-event-public .reg-form input[type="text"],
.page-event-public .reg-form input[type="email"],
.page-event-public .reg-form input[type="tel"],
.page-event-public .reg-form textarea,
.page-event-public .reg-form select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
}

.page-event-public .reg-form input:focus,
.page-event-public .reg-form textarea:focus {
    border-color: var(--fire);
    outline: none;
}

.page-event-public .reg-form input:focus-visible,
.page-event-public .reg-form textarea:focus-visible {
    outline: 2px solid var(--fire);
    outline-offset: 1px;
}

.page-event-public .choices {
    margin-bottom: 0;
    --choices-bg-color: var(--input-bg);
    --choices-bg-color-dropdown: var(--card-bg);
    --choices-highlighted-color: var(--dropdown-highlight);
}

.page-event-public .choices__inner {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 10px 16px;
    min-height: 48px;
    font-size: 16px;
    border-radius: 0;
}

.page-event-public .choices__list--single .choices__item {
    color: var(--input-text);
}

.page-event-public .choices__list--dropdown {
    background: var(--card-bg);
    border-color: var(--card-border);
}

.page-event-public .choices__list--dropdown .choices__item {
    color: var(--input-text);
}

.page-event-public .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: var(--fire);
}

.page-event-public .is-open .choices__inner {
    border-color: var(--fire);
}

.page-event-public .choices.is-focused .choices__inner {
    outline: 2px solid var(--fire);
    outline-offset: 0;
}

.page-event-public .reg-form input::placeholder,
.page-event-public .reg-form textarea::placeholder {
    color: var(--input-placeholder);
}

.page-event-public .helper-text {
    color: var(--gray-500);
}

.page-event-public .radio-option {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
}

.page-event-public .radio-option:hover {
    border-color: var(--gray-400);
}

.page-event-public .radio-option input:checked + span {
    color: var(--fire);
}

.page-event-public .policy-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--section-text);
}

.page-event-public .policy-box h3 {
    color: var(--section-text);
}

.page-event-public .policy-box p {
    color: var(--section-text-muted);
}

.page-event-public .capacity-notice {
    background: var(--meta-bg);
    border: 1px solid var(--section-border);
    color: var(--section-text);
    padding: 16px;
    text-align: center;
    margin-bottom: 24px;
}

.page-event-public .capacity-notice.full {
    background: var(--capacity-full-bg);
    border-color: var(--capacity-full-border);
    color: var(--capacity-full-text);
}

/* ============================================
   REGISTRATION MESSAGES
   ============================================ */
.page-event-public .reg-message {
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.page-event-public .reg-message.success {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 48px 32px;
    box-shadow: 0 4px 24px var(--card-shadow);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.page-event-public .reg-message.success .success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-event-public .reg-message.success.waitlist .success-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.page-event-public .reg-message.success .success-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 26px;
    font-weight: normal;
    margin: 0 0 12px 0;
    color: var(--success-title);
}

.page-event-public .reg-message.success.waitlist .success-title {
    color: #f59e0b;
}

.page-event-public .reg-message.success .success-message {
    font-size: 16px;
    line-height: 1.6;
    color: var(--success-text);
    margin: 0 0 28px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.payment-heading {
    font-family: var(--font-heading, sans-serif);
    font-weight: 400;
    text-transform: uppercase;
}

.success-message.payment-box {
    margin-top: 16px;
    padding: 20px 24px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 8px;
}

.success-message.payment-box p {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.5;
}

.payment-qr {
    display: block;
    width: 200px;
    height: auto;
    margin: 16px auto;
    border-radius: 8px;
}

.payment-contacts {
    margin-top: 16px !important;
    font-weight: 500;
}

.page-event-public .reg-message.success .calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff6b35, #f72585);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
    margin-bottom: 24px;
}

.page-event-public .reg-message.success .calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.page-event-public .reg-message.success .cancel-link {
    margin-top: 0;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.page-event-public .reg-message.success .cancel-link a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

.page-event-public .reg-message.success .cancel-link a:hover {
    text-decoration: underline;
}

/* Cancel page states */
.page-event-public .reg-message.error-state {
    border-color: var(--error-border);
}

.page-event-public .reg-message.error-state .success-icon,
.page-event-public .reg-message.cancel-prompt .success-icon {
    background: #ef4444;
}

.page-event-public .reg-message.error-state .success-title {
    color: var(--error-text);
}

.page-event-public .reg-message.cancelled .success-icon {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.page-event-public .reg-message.cancelled .calendar-btn,
.page-event-public .reg-message.cancel-prompt .calendar-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.25);
}

.page-event-public .reg-message.cancel-prompt .calendar-btn {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    border: none;
    cursor: pointer;
}

.page-event-public .reg-message.error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
    border-radius: 16px;
}

/* ============================================
   REGISTRATION CARD (LEGACY DARK - FOR ADMIN)
   ============================================ */
.reg-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    padding: 40px;
    margin-bottom: 24px;
}

.reg-header {
    text-align: center;
    margin-bottom: 32px;
}

.reg-header .tagline {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-top: 8px;
}

.reg-banner {
    width: 100%;
    margin: 24px 0;
    border: 1px solid var(--gray-800);
}

/* Registration Details Grid */
.reg-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.reg-detail {
    background: var(--gray-800);
    padding: 16px;
    text-align: center;
}

.reg-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.reg-value {
    font-size: 1rem;
    font-weight: 500;
}

.reg-value a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reg-value a:hover {
    opacity: 0.7;
}

/* Registration Intro/Description */
.reg-intro {
    color: var(--gray-300);
    font-size: 0.95rem;
    margin: 24px 0;
    line-height: 1.7;
}

.reg-intro ul {
    list-style: none;
    padding: 0;
}

.reg-intro li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.reg-intro li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gray-500);
}

/* Full description (detailed event info) */
.reg-details-full {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin: 20px 0;
    line-height: 1.7;
    padding-top: 20px;
    border-top: 1px solid var(--gray-800);
}

.reg-details-full ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.reg-details-full li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.reg-details-full li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gray-600);
}

.reg-details-full strong {
    color: var(--gray-300);
}

.reg-details-full p {
    margin: 0 0 12px 0;
}

.reg-details-full p:last-child {
    margin-bottom: 0;
}

.reg-details-full ol {
    padding-left: 24px;
    margin: 12px 0;
}

.reg-details-full ol li {
    padding-left: 4px;
    margin-bottom: 8px;
}

.reg-details-full ol li::before {
    content: none;
}

.reg-details-full em,
.reg-details-full i {
    font-style: italic;
}

.reg-details-full u {
    text-decoration: underline;
}

.reg-details-full a {
    color: var(--fire);
    text-decoration: none;
}

.reg-details-full a:hover {
    text-decoration: underline;
}

/* Registration Messages */
.reg-message {
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.reg-message.success {
    background: var(--white);
    color: var(--black);
}

.reg-message.success strong {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 8px;
}

.reg-message.error {
    background: var(--gray-800);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.reg-message.waitlist {
    background: var(--gray-200);
}

.reg-message .calendar-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--black);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reg-message .calendar-btn:hover {
    background: var(--gray-800);
}

.reg-message .cancel-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-300);
    font-size: 0.9rem;
    text-align: left;
}

.reg-message .cancel-link a {
    color: var(--gray-600);
    word-break: break-all;
}

/* ============================================
   REGISTRATION ITEM (MY REGISTRATIONS)
   ============================================ */
.reg-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.reg-item-header .event-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.25rem;
}

.registration-item.past-event {
    opacity: 0.6;
}

.registration-item .cancel-link a {
    color: #ff6b6b;
    font-size: 0.9rem;
}

.registration-item .cancel-link a:hover {
    text-decoration: underline;
}

/* ============================================
   CHECK-IN PAGE - MOBILE-FIRST OPTIMIZED
   ============================================ */
.page-checkin {
    background: var(--black);
    min-height: 100vh;
}

.page-checkin .container {
    padding-top: 24px;
    padding-bottom: 24px;
}

.page-checkin .reg-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
}

.page-checkin .reg-header h1 {
    font-size: 1.75rem;
    margin-top: 16px;
}

.page-checkin .nav-logo-text {
    font-size: 1.5rem;
}

.page-checkin .tagline {
    font-size: 0.875rem;
}

.checkin-result {
    text-align: center;
    padding: 48px 24px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkin-icon {
    margin-bottom: 28px;
}

.checkin-icon svg {
    width: 96px;
    height: 96px;
}

/* Shared card base for all checkin state variants */
.checkin-result.success,
.checkin-result.error,
.checkin-result.already,
.checkin-result.pending {
    border-radius: 12px;
    margin: 0;
    padding: 24px 20px;
    min-height: auto;
}

/* Shared icon circle base */
.checkin-result.success .checkin-icon,
.checkin-result.error .checkin-icon,
.checkin-result.already .checkin-icon,
.checkin-result.pending .checkin-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkin-result.success .checkin-icon svg,
.checkin-result.error .checkin-icon svg,
.checkin-result.already .checkin-icon svg,
.checkin-result.pending .checkin-icon svg {
    width: 24px;
    height: 24px;
}

/* Shared message style */
.checkin-result.success .checkin-message,
.checkin-result.error .checkin-message,
.checkin-result.already .checkin-message,
.checkin-result.pending .checkin-message {
    font-family: var(--font-heading, sans-serif);
    font-size: 1.125rem;
    font-weight: normal;
    letter-spacing: 1px;
}

/* Shared name style */
.checkin-result.success .checkin-name,
.checkin-result.error .checkin-name,
.checkin-result.already .checkin-name {
    color: #fff;
    font-family: var(--font-heading, sans-serif);
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.checkin-result.success .checkin-name:has(+ .checkin-guest),
.checkin-result.error .checkin-name:has(+ .checkin-guest),
.checkin-result.already .checkin-name:has(+ .checkin-guest) {
    margin-bottom: 0;
}

/* Shared guest style */
.checkin-result.success .checkin-guest,
.checkin-result.error .checkin-guest,
.checkin-result.already .checkin-guest {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 24px;
}

/* Success State - Green Transparent Card */
.checkin-result.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.checkin-result.success .checkin-icon {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--status-success);
    color: var(--status-success);
}

.checkin-result.success .checkin-message {
    color: var(--status-success);
    margin-bottom: 20px;
}

.checkin-time {
    display: block;
    letter-spacing: 0;
    margin-top: -4px;
    font-family: var(--font-body, sans-serif);
}

.checkin-result.success .checkin-event,
.checkin-result.success .checkin-date {
    color: var(--status-neutral);
    font-size: 0.8125rem;
    line-height: 1.3;
}

/* Error State - Red Transparent Card */
.checkin-result.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.checkin-result.error .checkin-icon {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--status-error);
    color: var(--status-error);
}

.checkin-result.error .checkin-message {
    color: var(--status-error);
    margin-bottom: 20px;
}

.checkin-result.error .checkin-event,
.checkin-result.error .checkin-date {
    color: var(--status-neutral);
    font-size: 0.8125rem;
    line-height: 1.3;
}

/* Already Checked In State - Gray Transparent Card */
.checkin-result.already {
    background: rgba(139, 146, 158, 0.1);
    border: 1px solid rgba(139, 146, 158, 0.3);
}

.checkin-result.already .checkin-icon {
    background: rgba(139, 146, 158, 0.15);
    border: 1px solid var(--status-neutral);
    color: var(--status-neutral);
}

.checkin-result.already .checkin-message {
    color: var(--status-neutral);
    margin-bottom: 20px;
}

.checkin-result.already .checkin-event {
    color: var(--status-neutral);
    font-size: 0.8125rem;
    line-height: 1.3;
    margin-top: 16px;
}

.checkin-result.already .checkin-date {
    color: var(--status-neutral);
    font-size: 0.8125rem;
    line-height: 1.3;
}

/* Pending State - Orange Transparent Card */
.checkin-result.pending {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.checkin-result.pending .checkin-icon {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid var(--status-warning);
    color: var(--status-warning);
}

.checkin-result.pending .checkin-message {
    color: var(--status-warning);
    margin-bottom: 8px;
}

.checkin-result.pending .checkin-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
    text-transform: uppercase;
}

.checkin-result.pending .checkin-email,
.checkin-result.pending .checkin-type {
    display: none;
}

.checkin-result.pending .checkin-event {
    color: #fff;
    font-size: 0.8125rem;
    margin-top: 16px;
}

.checkin-result.pending .checkin-date {
    color: #fff;
    font-size: 0.8125rem;
}

.checkin-date {
    color: var(--gray-400);
    font-size: 1.0625rem;
}

.checkin-time {
    color: var(--gray-400);
    font-size: 0.75rem;
}

.checkin-code {
    color: rgba(255, 255, 255, 0.9);
    font-family: monospace;
    font-size: 1.125rem;
    margin-top: 12px;
    font-weight: 600;
}

.checkin-form {
    margin-top: 16px;
}

/* Undo button styling for checked-in state */
.checkin-result.already .btn-secondary {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid #fff;
    border-radius: 8px;
    background: transparent;
    color: #fff;
}

/* Action buttons below checkin result */
.checkin-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.checkin-actions .btn-secondary {
    min-height: 40px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-width: 1px;
    border-radius: 10px;
}

/* ============================================
   EVENT FLYER ZOOM (DESKTOP) & LIGHTBOX (MOBILE)
   ============================================ */

/* Zoom overlay - covers the flyer, hidden by default */
.flyer-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

/* Zoom image inside overlay - rendered at native resolution */
.flyer-zoom-overlay .flyer-zoom-img {
    display: block;
    max-width: none !important;
    height: auto !important;
    will-change: transform;
}

/* Show overlay when zoom is active */
.event-flyer.zoom-active .flyer-zoom-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Crosshair cursor only on devices that support hover */
@media (hover: hover) {
    .event-flyer[data-zoom-src] {
        cursor: crosshair;
    }
}

/* Mobile lightbox - fullscreen overlay */
.flyer-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.flyer-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.flyer-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    touch-action: pinch-zoom;
}

.flyer-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
    line-height: 1;
    padding: 0;
}

/**
 * IMPACT Events - Responsive Styles
 * Consolidated Media Queries
 * Breakpoints: 768px (tablet), 1024px (desktop), 1280px (large desktop)
 */

/* ============================================
   DESKTOP: 769px+ (min-width)
   ============================================ */
@media (min-width: 769px) {
    /* Hero background - desktop image set inline from PHP */
}

/* ============================================
   TABLET & BELOW: 768px and down
   ============================================ */
@media (max-width: 768px) {
    /* Navigation adjustments for mobile */
    .nav {
        padding: 16px 24px;
    }

    .nav-logo-text {
        font-size: 40px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--section-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 24px;
        color: var(--section-text);
        min-height: 44px;
        padding: 8px 16px;
        display: flex;
        align-items: center;
    }

    .theme-toggle-desktop { display: none; }

    .nav-controls {
        display: flex;
        align-items: center;
        gap: 20px;
        z-index: 1000;
    }

    .nav-controls:has(.nav-hamburger.active) .theme-toggle {
        color: var(--section-text);
    }

    .nav-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero content spacing */
    .hero-content {
        padding: 40px 20px;
    }

    .hero-logo {
        max-width: 200px;
    }

    /* Event cards - stack on mobile */
    .events-layout {
        grid-template-columns: 1fr;
    }

    .event-cards-grid {
        grid-template-columns: 1fr;
    }

    .event-cards-grid-full {
        grid-template-columns: 1fr;
    }

    /* Event showcase - stack on mobile */
    .event-showcase,
    .page-event-public .event-showcase {
        grid-template-columns: 1fr;
    }

    /* Event meta - 2 columns on mobile */
    .event-meta,
    .page-event-public .event-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Form row - stack on mobile */
    .form-row,
    .page-event-public .form-row-inline {
        grid-template-columns: 1fr;
    }

    /* Registration details - 2 columns on mobile */
    .reg-details,
    .page-event-public .reg-details {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Section padding reduction */
    .section {
        padding: 60px 0;
    }

    /* Container padding */
    .container {
        padding: 0 20px;
    }

    /* Event tabs bar - stack on mobile */
    .event-tabs-bar {
        flex-direction: column;
        gap: 16px;
    }

    .event-tabs-bar .event-filter,
    .event-tabs-bar .event-filter.event-filter-left {
        position: static;
    }

    .event-region-label {
        position: static;
    }

    .event-tabs-bar .calendar-subscribe-link {
        position: static;
        margin-top: 0;
    }

    .event-tabs {
        flex-wrap: wrap;
    }
}

/* ============================================
   MID TABLET: 769px - 900px
   Collapses the featured event + card grid so cramped landscape tablets
   don't squash both columns into unreadable widths.
   ============================================ */
@media (min-width: 769px) and (max-width: 900px) {
    .events-layout {
        grid-template-columns: 1fr;
    }

    .event-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   DESKTOP: 1024px+ (large screens)
   ============================================ */
@media (min-width: 1024px) {
    /* Navigation spacing */
    .nav {
        padding: 32px;
    }

    /* Event cards grid - 3 columns on large screens */
    .event-cards-grid-full {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Event meta - 4 columns on large screens */
    .event-meta,
    .page-event-public .event-meta {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    /* Hero content max-width */
    .hero-content {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* ============================================
   LARGE DESKTOP: 1280px+ (extra large screens)
   ============================================ */
@media (min-width: 1280px) {
    /* Container max-width increase */
    .container {
        max-width: 1280px;
    }

    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    /* Section padding increase */
    .section {
        padding: 50px 0;
    }
}

/* ============================================
   MOBILE SMALL: 480px and down
   ============================================ */
@media (max-width: 480px) {
    /* Navigation logo smaller */
    .nav-logo-text {
        font-size: 32px;
    }

    /* Hero logo smaller */
    .hero-logo {
        max-width: 160px;
    }

    /* Event meta - single column on very small screens */
    .event-meta,
    .page-event-public .event-meta {
        grid-template-columns: 1fr;
    }

    /* Registration details - single column */
    .reg-details,
    .page-event-public .reg-details {
        grid-template-columns: 1fr;
    }

    /* Button padding reduction */
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    /* Container padding reduction */
    .container {
        padding: 0 16px;
    }

    /* Section padding reduction */
    .section {
        padding: 48px 0;
    }

    /* Check-in result padding */
    .checkin-result {
        padding: 32px 16px;
    }
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Skip-to-content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--filter-active-bg);
    color: var(--filter-active-text);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.1s;
}

.skip-link:focus-visible {
    top: 0;
    outline: 2px solid var(--filter-active-text);
    outline-offset: -2px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-bg {
        transform: none !important;
    }
}
