/* ============================================================
   Site Stylesheet
   Full-width modern layout — Maroon & Cyan palette

   To re-theme for another community, update the CSS variables
   below. The rest of the stylesheet derives from these values.
   ============================================================ */

/* --- CSS Variables (Theme) --- */
:root {
    /* ── Primary ── */
    --color-primary: #7A1530;
    --color-primary-light: #9B2847;
    --color-primary-dark: #5C0F24;
    --color-primary-tint: rgba(122, 21, 48, 0.08);
    --color-primary-tint-light: rgba(122, 21, 48, 0.04);
    --color-primary-border: rgba(122, 21, 48, 0.15);
    /* ── Accent ── */
    --color-accent: #00AEEF;
    --color-accent-hover: #008DC0;
    --color-accent-tint: rgba(0, 174, 239, 0.08);
    --color-accent-tint-light: rgba(0, 174, 239, 0.04);
    --color-accent-border: rgba(0, 174, 239, 0.4);
    --color-accent-focus: rgba(0, 174, 239, 0.12);
    /* ── Highlight (Gold) ── */
    --color-highlight: #D4A843;
    --color-highlight-dark: #B8922F;
    --color-highlight-tint: rgba(212, 168, 67, 0.1);
    /* ── Surfaces ── */
    --color-bg: #F5F3F0;
    --color-surface: #FFFFFF;
    --color-card-bg: #FFF8F0;
    --color-card-hover: #FDEEDD;
    /* ── Text ── */
    --color-text: #2C2C2C;
    --color-text-muted: #666;
    /* ── Footer ── */
    --color-footer-bg: #1E1118;
    --color-footer-text: #D4C5C9;
    /* ── Navbar ── */
    --color-navbar: #1a1a2e;
    /* ── Hero Overlay ── */
    --color-hero-overlay-start: rgba(122, 21, 48, 0.65);
    --color-hero-overlay-mid: rgba(90, 15, 36, 0.58);
    --color-hero-overlay-end: rgba(30, 5, 15, 0.75);
    /* ── Badges ── */
    --color-badge-open: #088F8F;
    --color-badge-open-bg: rgba(10, 173, 173, 0.1);
    --color-badge-flex: #9A7C28;
    --color-badge-flex-bg: rgba(212, 168, 67, 0.12);
    /* ── Facebook (standard brand color) ── */
    --color-facebook: #1877F2;
    --color-facebook-hover: #145EC0;
    /* ── Layout ── */
    --content-width: 1440px;
    --nav-height: 60px;
    --section-padding: 2rem;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* --- Content Width Utility --- */
.content-width {
    max-width: var(--content-width);
    margin: 0 auto;
    padding-left: var(--section-padding);
    padding-right: var(--section-padding);
}

/* --- Page Layout (full-width) --- */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    background-color: var(--color-surface);
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    position: relative;
}

    /* Watermark logo behind content */
    .main-content::before {
        content: "";
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        height: 80%;
        background: var(--watermark-url, url('../content/logo-watermark.svg')) center / contain no-repeat;
        opacity: 0.04;
        pointer-events: none;
        z-index: 0;
    }

    /* Ensure content sits above the watermark */
    .main-content > * {
        position: relative;
        z-index: 1;
    }

/* ============================================================
   Navbar — compact wordmark + links
   ============================================================ */
.navbar {
    background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-navbar) 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--section-padding);
    min-height: var(--nav-height);
}

/* Brand — hidden on desktop, visible on mobile */
.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    display: none;
}

/* Nav links — global styles (no ::deep needed) */
.navbar-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

    .navbar-links a {
        color: #fff;
        text-decoration: none;
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 0.92rem;
        font-weight: 500;
        transition: background-color 0.2s;
        white-space: nowrap;
    }

        .navbar-links a:hover {
            background-color: rgba(255, 255, 255, 0.15);
            text-decoration: none;
        }

        /* Active NavLink — Blazor adds .active class */
        .navbar-links a.active {
            background-color: rgba(255, 255, 255, 0.22);
            font-weight: 600;
        }

        /* Brand link — wordmark styled distinctly from nav links */
        .navbar-links a.nav-brand-link {
            font-weight: 800;
            font-size: 1rem;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            padding: 6px 14px;
            opacity: 0.88;
            font-style: italic;
            background: #ffffff1f;
        }

            .navbar-links a.nav-brand-link:hover {
                opacity: 1;
                background-color: transparent;
            }

            .navbar-links a.nav-brand-link.active {
                background-color: transparent;
                opacity: 1;
            }

/* Mobile-only Home link — hidden on desktop */
.nav-home-mobile {
    display: none;
}

/* Subtle divider between brand and nav links */
.nav-divider {
    width: 1px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.25);
    margin: 0 8px;
    flex-shrink: 0;
}

/* Hamburger — hidden on desktop */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    transition: transform 0.2s;
}

/* ============================================================
   Hero — background image with dark overlay for readability
   ============================================================ */
.hero {
    position: relative;
    color: #fff;
    padding: 4.5rem 0;
    text-align: center;
    margin-top: calc(-1 * var(--section-padding));
    margin-bottom: var(--section-padding);
    background: linear-gradient( to bottom, var(--color-hero-overlay-start) 0%, var(--color-hero-overlay-mid) 50%, var(--color-hero-overlay-end) 100% ), url('../content/hero.jpg') center 42% / cover no-repeat;
    background-attachment: scroll;
    overflow: hidden;
}

.hero-logo {
    height: 180px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin: 0 0 0.5rem;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.hero .lead {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero .content-width {
    position: relative;
    z-index: 1;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

    .btn:active {
        transform: scale(0.98);
    }

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: var(--color-primary-light);
    }

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
    font-weight: 600;
}

    .btn-accent:hover {
        background-color: var(--color-accent-hover);
    }

.btn-facebook {
    background-color: var(--color-facebook);
    color: #fff;
    font-weight: 600;
}

    .btn-facebook:hover {
        background-color: var(--color-facebook-hover);
    }

.fb-icon {
    display: inline-flex;
    align-items: center;
}

/* ============================================================
   Links (accent-colored in main content)
   ============================================================ */
.main-content a:not(.btn):not(.quick-link-card):not(.connect-card) {
    color: var(--color-accent-hover);
    text-decoration: none;
    font-weight: 500;
}

    .main-content a:not(.btn):not(.quick-link-card):not(.connect-card):hover {
        text-decoration: underline;
        color: var(--color-accent);
    }

/* ============================================================
   Headings
   ============================================================ */
h1, h2, h3 {
    color: var(--color-primary);
}

.hero h1,
.hero h2,
.hero h3 {
    color: #fff;
}

/* ============================================================
   Home Sections & Quick Link Cards
   ============================================================ */
.home-section {
    margin-top: 2.5rem;
}

    .home-section h2 {
        color: var(--color-primary);
    }

.quick-link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.quick-link-card {
    background-color: var(--color-surface);
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

    .quick-link-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

/* ── Card header (gradient strip) ── */
.card-header {
    padding: 1.5rem 1.75rem 1.25rem;
    position: relative;
    overflow: hidden;
}

.card-header-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
}

.card-header-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.card-header-highlight {
    background: linear-gradient(135deg, var(--color-highlight) 0%, var(--color-highlight-dark) 100%);
}

/* Decorative circles in header */
.card-header-decor-1 {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.card-header-decor-2 {
    position: absolute;
    bottom: -30px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

/* Header row: icon + text */
.card-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.card-icon-wrap-header {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-title {
    display: block;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.card-subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

/* ── Card body ── */
.card-body {
    padding: 1.25rem 1.75rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .card-body p {
        color: var(--color-text-muted);
        font-size: 1rem;
        line-height: 1.6;
        margin: 0;
        flex: 1;
    }

/* ── Card footer (badge + arrow) ── */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.card-badge-accent {
    background: var(--color-accent-tint);
    color: var(--color-accent);
}

.card-badge-primary {
    background: var(--color-primary-tint);
    color: var(--color-primary);
}

.card-badge-highlight {
    background: var(--color-highlight-tint);
    color: var(--color-highlight-dark);
}

.card-arrow {
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.card-badge-accent + .card-arrow {
    color: var(--color-accent);
}

.card-badge-primary + .card-arrow {
    color: var(--color-primary);
}

.card-badge-highlight + .card-arrow {
    color: var(--color-highlight-dark);
}

.quick-link-card:hover .card-arrow {
    transform: translateX(4px);
}

/* ============================================================
   Video Grid & Cards
   ============================================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.video-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.15s, box-shadow 0.2s;
}

    .video-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

.video-card-info {
    padding: 0.75rem 1rem;
}

    .video-card-info h3 {
        margin: 0;
        font-size: 0.95rem;
        color: var(--color-primary);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.video-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
    display: block;
}

/* ── Media Tagger inside Video Cards ──
   Gives video taggers the same polished look as the photo lightbox tagger,
   adapted for the light card background. */
.video-card .media-tagger {
    margin: 0;
    padding: 0.6rem 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--color-bg, #f5f3f0);
}

.video-card .media-tags-list {
    gap: 0.3rem;
    margin-bottom: 0.35rem;
}

.video-card .media-tag-chip {
    font-size: 0.72rem;
    padding: 3px 9px;
}

.video-card .media-tag-actions {
    margin-top: 0.35rem;
    gap: 0.35rem;
}

.video-card .btn-media-tag {
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 6px;
}

.video-card .btn-media-tag-secondary {
    font-size: 0.75rem;
    padding: 4px 10px;
}

.video-card .media-tag-picker {
    margin-top: 0.35rem;
}

.video-card .media-tag-search {
    font-size: 0.82rem;
    padding: 6px 10px;
}

.video-card .media-tag-results {
    max-height: 160px;
}

.video-card .media-tag-result {
    font-size: 0.82rem;
    padding: 6px 10px;
}

/* Clickable thumbnail cards (YouTubePlaylist component) */
.video-card-clickable {
    cursor: pointer;
}

.video-thumb-wrapper {
    position: relative;
    overflow: hidden;
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-card-clickable:hover .video-thumb {
    transform: scale(1.04);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.video-card-clickable:hover .video-play-icon {
    opacity: 1;
}

/* Video lightbox player */
.video-lightbox-content {
    width: 90vw;
    max-width: 1280px;
}

/* Loading and empty states */
.video-loading,
.video-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem 0;
    font-style: italic;
}

/* ============================================================
   Responsive Video Container (16:9)
   ============================================================ */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* ============================================================
   Map Container
   ============================================================ */
.map-container {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

    .map-container iframe {
        display: block;
        border: 0;
    }

/* ============================================================
   Schedule Card & Location
   ============================================================ */
.location-section {
    margin-top: 1.5rem;
}

/* ── Court/Facility Photo ── */
.court-photo-wrap {
    margin: 1rem 0 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.court-photo {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* ── Court Amenities ── */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.amenity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.amenity-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.amenity-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .amenity-text strong {
        font-size: 0.95rem;
        color: var(--color-primary);
    }

    .amenity-text span {
        font-size: 0.82rem;
        color: var(--color-text-muted);
        line-height: 1.4;
    }

.schedule-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-top: 1rem;
}

.schedule-row {
    display: grid;
    grid-template-columns: 140px 160px 1fr;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.schedule-row-primary {
    background: var(--color-surface);
}

.schedule-row-alt {
    background: var(--color-card-bg);
}

.schedule-day {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
}

.schedule-time {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
}

.schedule-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-open {
    background: var(--color-badge-open-bg);
    color: var(--color-badge-open);
}

.badge-flex {
    background: var(--color-badge-flex-bg);
    color: var(--color-badge-flex);
}

/* GroupMe note callout */
.schedule-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-primary-tint-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.schedule-note-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.schedule-disclaimer {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* Events callout banner */
.events-callout {
    margin-top: 2.5rem;
}

.events-callout-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 12px;
    color: #fff;
}

.events-callout h2 {
    color: #fff;
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}

.events-callout p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.9rem;
}

.events-callout .btn-event {
    background: #fff;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

    .events-callout .btn-event:hover {
        background: var(--color-card-bg);
    }

/* ============================================================
   Facebook Page Embed
   ============================================================ */
.fb-page-embed {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.photo-cta {
    margin-top: 1.5rem;
    text-align: center;
}

/* ============================================================
   Callout Boxes — reusable styled highlights
   ============================================================ */
.callout {
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
}

.callout-accent {
    background-color: var(--color-card-bg);
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.callout-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

    .callout-header h3 {
        margin: 0;
        font-size: 1.2rem;
        color: var(--color-primary);
    }

.callout-icon {
    font-size: 1.4rem;
}

.callout p {
    margin: 0 0 0.75rem;
}

.callout ul {
    margin: 0;
    padding-left: 1.25rem;
}

.callout li {
    margin-bottom: 0.35rem;
}

/* ============================================================
   Photo Gallery — Grid + Lightbox
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background-color: var(--color-bg);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.06);
    filter: brightness(1.08);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-empty,
.gallery-loading,
.gallery-error {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem 0;
    font-style: italic;
}

.section-error {
    text-align: center;
    color: var(--color-text-muted);
    padding: 1.5rem 0 0.75rem;
    font-style: italic;
}

/* Load More button */
.gallery-load-more {
    text-align: center;
    margin-top: 2rem;
}

.btn-load-more {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-surface);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

    .btn-load-more:hover {
        background: var(--color-primary);
        color: #fff;
        transform: translateY(-1px);
    }

.load-more-count {
    font-weight: 400;
    opacity: 0.7;
    margin-left: 0.25rem;
    font-size: 0.85rem;
}

/* ── Lightbox Overlay ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightbox-fade-in 0.2s ease;
}

@keyframes lightbox-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Lightbox content styles consolidated at end of file */

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

    .lightbox-close:hover {
        opacity: 1;
    }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    z-index: 1001;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s, background-color 0.2s;
}

    .lightbox-nav:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.2);
    }

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* ── Gallery Toolbar (tabs + filter) ── */
.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gallery-view-tabs {
    display: flex;
    gap: 4px;
    background: var(--color-bg);
    border-radius: 10px;
    padding: 4px;
}

.gallery-tab {
    padding: 0.5rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

    .gallery-tab:hover {
        background: rgba(0, 0, 0, 0.04);
        color: var(--color-text);
    }

.gallery-tab-active {
    background: var(--color-surface) !important;
    color: var(--color-primary) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.gallery-player-filter {
    flex-shrink: 0;
}

.gallery-filter-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: var(--color-surface);
    font-size: 0.9rem;
    color: var(--color-text);
    cursor: pointer;
    appearance: auto;
}

/* ── Album Grid ── */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.album-card {
    background: var(--color-surface);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .album-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    }

.album-cover-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-bg);
}

.album-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.album-card:hover .album-cover-img {
    transform: scale(1.04);
}

.album-cover-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.3;
    background: var(--color-bg);
}

.album-photo-count {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.album-card-info {
    padding: 1rem 1.25rem 1.25rem;
}

    .album-card-info h3 {
        margin: 0 0 0.25rem;
        font-size: 1.05rem;
        color: var(--color-primary);
        line-height: 1.3;
    }

.album-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.album-desc {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-uncategorized-link {
    text-align: center;
    margin-top: 2rem;
}

/* ── Album Detail ── */
.album-detail-header {
    margin-bottom: 1.5rem;
}

.btn-album-back {
    background: none;
    border: none;
    color: var(--color-accent-hover);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.5rem;
}

    .btn-album-back:hover {
        text-decoration: underline;
        color: var(--color-accent);
    }

.album-detail-header h2 {
    margin: 0.25rem 0 0;
}

.album-detail-desc {
    color: var(--color-text-muted);
    margin: 0.5rem 0 0;
}

/* ── Timeline View ── */
.timeline-group {
    margin-bottom: 2.5rem;
}

.timeline-month-header {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    position: sticky;
    top: calc(var(--nav-height) + 8px);
    background: var(--color-surface);
    z-index: 10;
    padding-right: 1rem;
}

/* ── Infinite Scroll ── */
.gallery-scroll-sentinel {
    height: 1px;
    margin-top: 1rem;
}

.gallery-loading {
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
    padding: 1.5rem 0;
}

.gallery-photo-count {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

/* ── Lightbox Caption ── */
.lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ── Lightbox Action Buttons (Download, Profile Image) ── */
.lightbox-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
}

.lightbox-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

    .lightbox-action-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
    }

.lightbox-action-profile {
    border-color: var(--color-accent-border);
    background: var(--color-accent-tint);
}

    .lightbox-action-profile:hover {
        background: var(--color-accent-focus);
        border-color: var(--color-accent-border);
    }

.lightbox-action-status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.lightbox-action-error {
    color: #ff6b6b;
}

/* ============================================================
   Admin — Album Manager
   ============================================================ */
.admin-album-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-album-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background: var(--color-surface);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-album-cover {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg);
}

    .admin-album-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.admin-album-cover-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0.3;
}

.admin-album-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.admin-album-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    display: block;
}

.admin-album-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ── Photo Assignment Modal ── */
.admin-modal-wide {
    max-width: 900px;
    width: 95vw;
}

.admin-photo-assign-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.admin-photo-assign-col h4 {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.admin-photo-assign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.admin-photo-assign-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s;
}

    .admin-photo-assign-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .admin-photo-assign-item.selected {
        border-color: var(--color-accent);
    }

.admin-photo-assign-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .gallery-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-view-tabs {
        justify-content: center;
    }

    .gallery-filter-select {
        width: 100%;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .album-card-info {
        padding: 0.75rem 1rem;
    }

        .album-card-info h3 {
            font-size: 0.95rem;
        }

    .timeline-month-header {
        font-size: 1rem;
    }

    .admin-album-card {
        grid-template-columns: 80px 1fr;
        gap: 0.75rem;
    }

    .admin-album-actions {
        grid-column: 1 / -1;
    }

    .admin-photo-assign-layout {
        grid-template-columns: 1fr;
    }

    .admin-modal-wide {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================================
   Contact Page — Connect Cards
   ============================================================ */
.connect-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.connect-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

    .connect-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
    }

.connect-card-groupme {
    background: linear-gradient(135deg, #00aff0 0%, #0090c8 100%);
}

.connect-card-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #1260cc 100%);
}

.connect-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.connect-card h3 {
    color: #fff;
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.connect-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ── FAQ Section ── */
.contact-faq {
    margin-top: 3rem;
}

    .contact-faq h2 {
        margin-bottom: 1.25rem;
    }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.faq-item {
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

    .faq-item h3 {
        margin: 0 0 0.5rem;
        font-size: 1rem;
        color: var(--color-primary);
    }

    .faq-item p {
        margin: 0;
        font-size: 0.9rem;
        color: var(--color-text-muted);
        line-height: 1.6;
    }

    .faq-item a {
        color: var(--color-accent);
        font-weight: 600;
    }

/* ============================================================
   Events Page
   ============================================================ */
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.event-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .event-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    }

.event-image-wrap {
    position: relative;
    overflow: hidden;
}

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

/* Date badge overlay */
.event-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.event-date-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.event-date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 2px;
}

.event-details {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
}

    .event-details h2 {
        margin: 0 0 1rem;
        font-size: 1.35rem;
        color: var(--color-primary);
    }

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.event-meta-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.event-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
}

.event-register {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

    .event-register a {
        color: var(--color-accent);
        font-weight: 600;
    }

.event-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.btn-event {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s, transform 0.1s;
}

    .btn-event:hover {
        background: #5C1024;
        transform: translateY(-1px);
    }

.see-more-wrap {
    text-align: center;
    margin-top: 1.5rem;
}

.events-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--color-card-bg);
    border-radius: 12px;
    text-align: center;
}

    .events-cta h2 {
        margin-top: 0;
        font-size: 1.2rem;
    }

    .events-cta p {
        margin-bottom: 0;
        color: var(--color-text-muted);
    }

/* ============================================================
   Footer — full-width, dark
   ============================================================ */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    font-size: 0.9rem;
}

.footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1.25rem var(--section-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--color-footer-text);
    text-decoration: none;
    transition: color 0.2s;
}

    .footer-links a:hover {
        color: #fff;
        text-decoration: underline;
    }

.footer-divider {
    margin: 0 0.5rem;
    color: #555;
}

/* ============================================================
   Error Panel
   ============================================================ */
.error-panel {
    text-align: center;
    padding: 3rem 1rem;
}

    .error-panel h2 {
        color: #c0392b;
    }

/* ============================================================
   Responsive — Mobile (< 768px)
   ============================================================ */
@media (max-width: 767px) {
    :root {
        --section-padding: 1.25rem;
    }

    /* Show hamburger */
    .navbar-toggle {
        display: flex;
    }

    /* Show brand on mobile */
    .navbar-brand {
        display: block;
        text-transform: uppercase;
        font-style: italic;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    .navbar-inner {
        justify-content: space-between;
    }

    /* Mobile nav dropdown */
    .navbar-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background-color: var(--color-navbar);
        padding: 0.5rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        z-index: 100;
    }

        .navbar-links.open {
            display: flex;
        }

        .navbar-links a {
            padding: 0.75rem 1.5rem;
            border-radius: 0;
            font-size: 1rem;
        }

            /* Hide desktop wordmark in mobile dropdown */
            .navbar-links a.nav-brand-desktop {
                display: none;
            }

    /* Show simple Home link in mobile dropdown */
    .nav-home-mobile {
        display: block;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Hide the divider on mobile */
    .nav-divider {
        display: none;
    }

    /* Smaller hero on mobile */
    .hero {
        padding: 3rem 0;
    }

        .hero h1 {
            font-size: 1.6rem;
        }

    .hero-logo {
        height: 120px;
    }

    /* Stack cards */
    .quick-link-grid {
        grid-template-columns: 1fr;
    }

    /* Stack videos on mobile */
    .video-grid {
        grid-template-columns: 1fr;
    }

    /* Stack event cards vertically */
    .event-card {
        grid-template-columns: 1fr;
    }

    .event-image-wrap {
        max-height: 220px;
    }

    .event-details {
        padding: 1.25rem 1.5rem;
    }

    /* Schedule card stacks on mobile */
    .schedule-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.75rem 1.25rem;
    }

    /* Amenities 2 columns on mobile */
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-note {
        padding: 1rem 1.25rem;
    }

    /* Events callout stacks on mobile */
    .events-callout-inner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    /* Connect cards stack on mobile */
    .connect-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ stacks on mobile */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery — 2 columns on mobile */

    .lightbox-nav {
        font-size: 2rem;
        padding: 0.4rem 0.75rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    /* Footer stacks centered */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   Responsive — Tablet (768px–1024px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    .navbar-links a {
        padding: 5px 8px;
        font-size: 0.82rem;
    }

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

    .quick-link-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .quick-link-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }
}


/* ============================================================
   Sponsor Buttons (per-event)
   Append this to the end of your site.css
   ============================================================ */

.event-sponsor {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

    .event-sponsor h4 {
        margin: 0 0 0.6rem;
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--color-primary);
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

.sponsor-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-sponsor {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform 0.15s, box-shadow 0.2s;
}

    .btn-sponsor:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        color: #fff;
        text-decoration: none;
    }

.btn-cashapp {
    background: #00D632;
}

    .btn-cashapp:hover {
        background: #00b82b;
    }

.btn-venmo {
    background: #3D95CE;
}

    .btn-venmo:hover {
        background: #2f7eb5;
    }

.sponsor-icon {
    font-size: 1rem;
}

/* Events empty state */
.events-empty {
    text-align: center;
    padding: 3rem;
    background: var(--color-card-bg);
    border-radius: 12px;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
}

/* ── Message Header ── */
.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .msg-header h1 {
        margin: 0;
    }

/* ── Tabs ── */
.msg-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.msg-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .msg-tab:hover {
        color: var(--color-primary);
    }

.msg-tab-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.msg-unread-badge {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* ── Message List ── */
.msg-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.msg-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: var(--color-text);
    transition: background-color 0.15s;
    position: relative;
}

    .msg-item:hover {
        background: var(--color-card-bg);
    }

.msg-item-unread {
    background: var(--color-accent-tint-light);
}

    .msg-item-unread .msg-item-subject {
        font-weight: 700;
    }

.msg-item-avatar {
    flex-shrink: 0;
}

    /* Scale down the player card inside message list */
    .msg-item-avatar .player-card-sm {
        width: 50px;
        height: 72px;
    }

.msg-item-content {
    flex: 1;
    min-width: 0;
}

.msg-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.msg-item-from {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.msg-item-date {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.msg-item-subject {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-item-preview {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-item-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

.msg-loading,
.msg-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 3rem 0;
    font-style: italic;
}

.msg-auth-notice {
    text-align: center;
    padding: 3rem 0;
}

/* ── Thread ── */
.msg-thread-header {
    margin-bottom: 1.5rem;
}

.msg-back-link {
    font-size: 0.85rem;
    color: var(--color-accent-hover);
    text-decoration: none;
}

    .msg-back-link:hover {
        text-decoration: underline;
    }

.msg-thread-header h1 {
    margin: 0.5rem 0 0;
    font-size: 1.4rem;
}

.msg-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.msg-bubble {
    max-width: 80%;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    position: relative;
}

.msg-bubble-theirs {
    background: var(--color-card-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg-bubble-mine {
    background: var(--color-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.msg-bubble-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.msg-bubble-sender {
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

.msg-bubble-theirs .msg-bubble-sender {
    color: var(--color-primary);
}

.msg-bubble-mine .msg-bubble-sender {
    color: rgba(255, 255, 255, 0.8);
}

.msg-bubble-date {
    font-size: 0.72rem;
    opacity: 0.6;
    flex-shrink: 0;
}

.msg-bubble-body {
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* ── Reply Section ── */
.msg-reply-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
}

    .msg-reply-section h3 {
        margin: 0 0 0.75rem;
        font-size: 1rem;
    }

.msg-reply-input {
    width: 100%;
    margin-bottom: 0.75rem;
}

.msg-reply-actions {
    display: flex;
    gap: 0.75rem;
}

/* ── Compose Form ── */
.msg-compose-form {
    max-width: 600px;
}

/* ============================================================
   Registration Page
   ============================================================ */
.register-page {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.register-card {
    max-width: 640px;
    width: 100%;
}

    .register-card h1 {
        margin: 0 0 0.25rem;
    }

.register-subtitle {
    color: var(--color-text-muted);
    margin: 0 0 2rem;
    font-size: 1rem;
}

.register-card h3 {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.register-success {
    text-align: center;
    padding: 2rem 0;
}

.register-success-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.register-success h2 {
    margin: 0 0 0.75rem;
}

.register-success p {
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.register-success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.register-login-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

    .register-login-link a {
        color: var(--color-accent-hover);
        font-weight: 600;
    }

/* ── Responsive ── */
@media (max-width: 767px) {
    .msg-bubble {
        max-width: 95%;
    }

    .msg-item-avatar .player-card-sm {
        width: 40px;
        height: 58px;
    }

    .msg-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
/* ============================================================
   Account Pages — Login, Profile, Change Password, Delete
   ============================================================ */

/* ── Shared Account Layout ── */
.account-page {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.account-card {
    width: 100%;
    max-width: 520px;
    background: var(--color-surface);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.account-card-wide {
    max-width: 800px;
}

.account-card h1 {
    margin: 0 0 0.25rem;
    font-size: 1.6rem;
}

.account-subtitle {
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

/* ── Login Form Options ── */
.account-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.75rem 0 1.25rem;
    font-size: 0.9rem;
}

.account-remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

    .account-remember input[type="checkbox"] {
        accent-color: var(--color-primary);
    }

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

/* ── External Login Providers ── */
.account-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

    .account-divider::before,
    .account-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
    }

    .account-divider span {
        font-size: 0.85rem;
        color: var(--color-text-muted);
        white-space: nowrap;
    }

.account-external-providers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .account-external-providers form {
        display: contents;
    }

.btn-external {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s, box-shadow 0.2s;
}

    .btn-external:hover {
        background: var(--color-bg);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

.btn-external-google {
    border-color: #4285f4;
}

.btn-external-facebook {
    border-color: #1877f2;
}

/* ── Account Links ── */
.account-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

    .account-links a {
        color: var(--color-accent-hover);
        font-weight: 600;
    }

/* ── My Account Profile Header ── */
.account-profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.account-card-preview {
    flex-shrink: 0;
}

.account-profile-summary h2 {
    margin: 0 0 0.25rem;
    font-size: 1.3rem;
}

.account-email {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.account-quick-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

/* ── Checkbox Labels ── */
.account-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

    .account-checkbox input[type="checkbox"] {
        accent-color: var(--color-primary);
        width: 18px;
        height: 18px;
    }

/* ── Secondary Actions (change pw, delete) ── */
.account-secondary-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

    .btn-outline:hover {
        background: var(--color-primary);
        color: #fff;
    }

.btn-danger-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    border: 2px solid #c0392b;
    color: #c0392b;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

    .btn-danger-outline:hover {
        background: #c0392b;
        color: #fff;
    }

/* ── Delete Account Danger Zone ── */
.account-danger-zone {
    text-align: center;
}

    .account-danger-zone h2 {
        color: #c0392b;
        margin: 0.5rem 0;
    }

    .account-danger-zone p {
        color: var(--color-text-muted);
    }

    .account-danger-zone ul {
        text-align: left;
        max-width: 400px;
        margin: 1rem auto;
        color: var(--color-text-muted);
        font-size: 0.9rem;
    }

    .account-danger-zone li {
        margin-bottom: 0.4rem;
    }

.danger-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    border: none;
    background: #c0392b;
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

    .btn-danger:hover {
        background: #a93226;
    }

/* ── Info & Success Boxes ── */
.account-info-box {
    background: var(--color-accent-tint);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.admin-success {
    background: rgba(39, 174, 96, 0.08);
    border-left: 4px solid #27ae60;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #1e8449;
}

/* ── No Profile State ── */
.account-no-profile {
    text-align: center;
    padding: 2rem 0;
}

    .account-no-profile p {
        color: var(--color-text-muted);
        margin-bottom: 1rem;
    }

/* ── Responsive ── */
@media (max-width: 767px) {
    .account-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .account-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .account-quick-links {
        justify-content: center;
    }

    .account-secondary-actions {
        flex-direction: column;
    }

        .account-secondary-actions .btn-outline,
        .account-secondary-actions .btn-danger-outline {
            width: 100%;
            justify-content: center;
        }

    .account-danger-zone ul {
        text-align: left;
        padding-left: 1.25rem;
    }
}

/* ── Admin: Account Linking ── */
.admin-linked-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(39, 174, 96, 0.06);
    border: 1px solid rgba(39, 174, 96, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
}

.admin-linked-badge {
    font-weight: 600;
    color: #27ae60;
    white-space: nowrap;
}

.admin-link-account-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

    .admin-link-account-row .admin-input {
        flex: 1;
    }

.btn-admin-danger-sm {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

    .btn-admin-danger-sm:hover {
        background: #a93226;
    }

/* ── Navbar Message Badge ── */
.nav-messages-link {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

    .nav-messages-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

.nav-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* ── Navbar Logout Link ── */
.nav-logout {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem !important;
    padding: 6px 12px;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

    .nav-logout:hover {
        color: #fff !important;
        background-color: rgba(255, 255, 255, 0.1);
    }

/* ── League Admin Links (on public pages) ── */
.league-admin-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ── Doubles partner name in matches ── */
.match-partner {
    font-size: 0.85em;
    color: var(--color-text-muted, #666);
    font-weight: 400;
}

/* ── Admin warning box ── */
.admin-warning {
    background: #FFF3CD;
    border: 1px solid #FFECB5;
    border-left: 4px solid #FFC107;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #664D03;
}

/* ── Admin link-style button ── */
.btn-admin-link {
    background: none;
    border: none;
    color: var(--color-accent, #00AEEF);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 6px;
    text-decoration: underline;
}

    .btn-admin-link:hover {
        color: var(--color-accent-hover, #008DC0);
    }

/* ── Winner text highlight ── */
.admin-text-winner {
    color: #0a7a0a;
}
/* ── League Card Image ── */
.league-card-image-wrap {
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    max-height: 160px;
}

.league-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.league-card:hover .league-card-image {
    transform: scale(1.04);
}

/* When card has an image, remove top border-radius from header */
.league-card-image-wrap + .league-card-header {
    border-radius: 0;
}

/* ── League Header Image (detail page) ── */
.league-header-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.league-header-image {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* ── Sponsor / Pay Section ── */
.league-sponsor-section {
    margin: 1.5rem 0 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--color-primary-tint-light) 0%, var(--color-accent-tint-light) 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    text-align: center;
}

    .league-sponsor-section h3 {
        margin: 0 0 0.5rem;
        font-size: 1.15rem;
    }

.league-sponsor-fee {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.btn-sponsor:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sponsor-logo {
    height: 20px;
    width: auto;
    flex-shrink: 0;
}

.btn-cashapp:hover {
    background: linear-gradient(135deg, #00A844 0%, #008F38 100%);
}

.btn-venmo:hover {
    background: #f0f7fc;
}

.btn-zeffy {
    background: #096ad1;
    border: 3px solid #05D4B7;
    color: #05D4B7;
}

    .btn-zeffy:hover {
        background: #f0fdfb;
    }

/* ── Admin Payment Summary Bar ── */
.admin-payment-summary {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.payment-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1.5rem;
}

.payment-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-text);
}

.payment-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    color: var(--color-text-muted);
}

.payment-stat-paid .payment-stat-number {
    color: #2E7D32;
}

.payment-stat-unpaid .payment-stat-number {
    color: #E65100;
}

/* ── Admin Payment Badges ── */
.admin-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.admin-badge-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.admin-badge-warning {
    background: #FFF3E0;
    color: #E65100;
}

.admin-badge-muted {
    background: #f0f0f0;
    color: #666;
}

/* Small inline input for payment notes */
.admin-input-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    min-width: 140px;
    max-width: 200px;
}

/* ── Admin Image Preview ── */
.admin-image-preview {
    margin-top: 0.75rem;
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

    .admin-image-preview img {
        max-width: 200px;
        max-height: 120px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
    }

/* ── Winner highlight ── */

/* ── Responsive ── */
@media (max-width: 767px) {
    .league-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .league-header-image {
        max-width: 100px;
        max-height: 100px;
    }

    .sponsor-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-payment-summary {
        justify-content: center;
    }

    .payment-stat {
        padding: 0.5rem 1rem;
    }
}

/* ============================================================
   Account — Email Change Section
   ============================================================ */
.account-email-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.account-email-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--color-card-bg, #FFF8F0);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    gap: 1rem;
    flex-wrap: wrap;
}

.account-email-current {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-email-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted, #666);
}

.account-email-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text, #2C2C2C);
}

.account-email-form {
    padding: 1.25rem 1.5rem;
    background: var(--color-card-bg, #FFF8F0);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.account-email-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 767px) {
    .account-email-display {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-email-actions {
        flex-direction: column;
    }

        .account-email-actions .btn {
            width: 100%;
            justify-content: center;
        }
}

/* ============================================================
   Printable Score Sheet
   ============================================================ */
.scoresheet {
    max-width: var(--content-width, 1440px);
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.scoresheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-primary, #7A1530);
    margin-bottom: 1.5rem;
}

.scoresheet-title {
    margin: 0;
    font-size: 1.6rem;
    color: var(--color-primary, #7A1530);
}

.scoresheet-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #666;
}

.scoresheet-meta {
    text-align: right;
    font-size: 0.8rem;
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scoresheet-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.scoresheet-round-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .scoresheet-round-filter label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #555;
    }

    .scoresheet-round-filter select {
        padding: 0.4rem 0.75rem;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 0.9rem;
    }

.scoresheet-round {
    margin-bottom: 2rem;
    page-break-inside: avoid;
}

.scoresheet-round-title {
    font-size: 1.15rem;
    color: var(--color-primary, #7A1530);
    margin: 0 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #ddd;
}

/* ── Score Table ── */
.scoresheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .scoresheet-table th {
        background: var(--color-primary, #7A1530);
        color: #fff;
        padding: 0.5rem 0.75rem;
        text-align: center;
        font-weight: 600;
        font-size: 0.82rem;
        white-space: nowrap;
    }

.scoresheet-sub-header th {
    background: #f0e8eb;
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scoresheet-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.scoresheet-row-alt td {
    background: #faf8f6;
}

.scoresheet-col-num {
    width: 40px;
    text-align: center;
    font-weight: 600;
    color: #999;
}

.scoresheet-col-team {
    text-align: left;
    font-weight: 600;
    min-width: 140px;
}

.scoresheet-col-vs {
    width: 30px;
    text-align: center;
    color: #bbb;
    font-size: 0.8rem;
    font-style: italic;
}

.scoresheet-col-score {
    text-align: center;
    width: auto;
}

.scoresheet-score-cell {
    text-align: center;
    width: 40px;
    font-weight: 600;
}

.scoresheet-score-blank {
    border-bottom: 2px solid #ccc;
    min-width: 36px;
    height: 28px;
    background: #fefefe;
}

.scoresheet-score-filled {
    color: var(--color-primary, #7A1530);
}

.scoresheet-score-dash {
    width: 16px;
    text-align: center;
    color: #bbb;
    padding: 0 2px;
}

.scoresheet-score-label {
    font-size: 0.68rem;
    text-align: center;
}

.scoresheet-col-winner {
    text-align: center;
    min-width: 100px;
}

.scoresheet-winner-cell {
    text-align: center;
    font-weight: 600;
    color: var(--color-primary, #7A1530);
    min-width: 100px;
}

/* ── Notes area ── */
.scoresheet-notes {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

    .scoresheet-notes h3 {
        font-size: 0.95rem;
        color: #555;
        margin: 0 0 0.75rem;
    }

.scoresheet-note-line {
    height: 1.8rem;
    border-bottom: 1px solid #ccc;
    margin-bottom: 0.25rem;
}

/* ── Footer ── */
.scoresheet-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 2rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
    /* Hide non-print elements */
    .no-print,
    .navbar,
    .footer,
    .scoresheet-controls {
        display: none !important;
    }

    /* Reset page for print */
    body {
        background: #fff !important;
        font-size: 11pt;
        color: #000;
    }

    .main-content {
        padding: 0 !important;
        background: #fff !important;
    }

        .main-content::before {
            display: none !important;
        }

    .scoresheet {
        padding: 0;
        max-width: 100%;
    }

    .scoresheet-header {
        border-bottom-color: #000;
    }

    .scoresheet-title {
        color: #000;
        font-size: 16pt;
    }

    .scoresheet-round-title {
        color: #000;
    }

    .scoresheet-table th {
        background: #333 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .scoresheet-sub-header th {
        background: #eee !important;
        color: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .scoresheet-row-alt td {
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .scoresheet-score-blank {
        border-bottom: 2px solid #999;
        background: transparent !important;
    }

    .scoresheet-round {
        page-break-inside: avoid;
    }

    .scoresheet-notes {
        page-break-inside: avoid;
    }

    /* Ensure borders print */
    .scoresheet-table td {
        border-bottom: 1px solid #ccc;
    }

    @page {
        margin: 0.5in;
    }
}


/* ============================================================
   Gallery Cards — Photo with Tagger Below
   Add to site.css. Replaces/extends .gallery-* styles.
   ============================================================ */











/* ── Lightbox tagger styling ── */
.lightbox-content .media-tagger {
    margin-top: 0.75rem;
    padding: 0.75rem 0;
}

.lightbox-content .media-tags-list {
    justify-content: center;
}

.lightbox-content .media-tag-chip {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

    .lightbox-content .media-tag-chip:hover {
        background: rgba(255, 255, 255, 0.25);
    }

.lightbox-content .media-tag-remove:hover {
    color: #fca5a5;
}

.lightbox-content .btn-media-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

    .lightbox-content .btn-media-tag:hover {
        background: rgba(255, 255, 255, 0.25);
    }

.lightbox-content .media-tag-actions {
    justify-content: center;
}


.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .lightbox-content img {
        max-width: 100%;
        max-height: 75vh;
        object-fit: contain;
        border-radius: 6px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    }

    .lightbox-content .media-tagger {
        width: 100%;
        max-width: 600px;
        margin-top: 1rem;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        backdrop-filter: blur(8px);
    }

    .lightbox-content .media-tags-list {
        justify-content: center;
    }

    .lightbox-content .media-tag-chip {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.25);
        color: #fff;
    }

        .lightbox-content .media-tag-chip:hover {
            background: rgba(255, 255, 255, 0.25);
        }

    .lightbox-content .media-tag-remove:hover {
        color: #fca5a5;
    }

    .lightbox-content .btn-media-tag {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.3);
    }

        .lightbox-content .btn-media-tag:hover {
            background: rgba(255, 255, 255, 0.25);
        }

    .lightbox-content .media-tag-actions {
        justify-content: center;
    }

    .lightbox-content .media-tag-picker {
        background: rgba(30, 30, 50, 0.85);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .lightbox-content .media-tag-search {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.2);
    }

        .lightbox-content .media-tag-search::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

    .lightbox-content .media-tag-results {
        background: rgba(30, 30, 50, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .lightbox-content .media-tag-result {
        color: #e5e5e5;
    }

        .lightbox-content .media-tag-result:hover {
            background: rgba(255, 255, 255, 0.1);
        }

.upcoming-section {
    margin-top: 3rem;
}

/* ── Header row ── */
.upcoming-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.upcoming-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
}

.upcoming-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.btn-upcoming-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.1rem;
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s;
}

    .btn-upcoming-all:hover {
        background: var(--color-primary);
        color: #fff;
    }

/* ── List container ── */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* ── Individual row ── */
.upcoming-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

    .upcoming-row:hover {
        background: var(--color-card-bg);
        border-color: var(--color-primary-border);
        transform: translateX(4px);
    }

/* ── Date block ── */
.upcoming-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    flex-shrink: 0;
}

.upcoming-date-month {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
}

.upcoming-date-day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 2px;
}

/* ── Details column ── */
.upcoming-details {
    flex: 1;
    min-width: 0;
}

.upcoming-row-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Badges ── */
.upcoming-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.upcoming-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.upcoming-badge-tournament {
    background: var(--color-primary-tint);
    color: var(--color-primary);
}

.upcoming-badge-event {
    background: var(--color-primary-tint);
    color: var(--color-primary);
}

.upcoming-badge-fundraiser {
    background: var(--color-highlight-tint);
    color: var(--color-highlight-dark);
}

.upcoming-badge-league {
    background: var(--color-accent-tint);
    color: var(--color-accent);
}

.upcoming-status {
    font-size: 0.72rem;
    font-weight: 600;
    color: #2E7D32;
    background: #E8F5E9;
    padding: 2px 8px;
    border-radius: 12px;
}

/* ── Meta items (location, time, cost) ── */
.upcoming-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.upcoming-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.upcoming-meta-icon {
    font-size: 0.85rem;
}

/* ── Arrow ── */
.upcoming-arrow {
    font-size: 1.3rem;
    color: var(--color-primary);
    opacity: 0.3;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.upcoming-row:hover .upcoming-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .upcoming-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .upcoming-row {
        gap: 1rem;
        padding: 0.85rem 1rem;
    }

    .upcoming-date-block {
        min-width: 52px;
        height: 52px;
    }

    .upcoming-date-day {
        font-size: 1.25rem;
    }

    .upcoming-row-title {
        font-size: 0.92rem;
        white-space: normal;
    }

    .upcoming-meta {
        gap: 8px;
    }

    .upcoming-meta-item {
        font-size: 0.78rem;
    }

    .upcoming-arrow {
        display: none;
    }
}

.newest-members-section {
    margin-top: 3rem;
}

/* ── Header ── */
.newest-members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.newest-members-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
}

.newest-members-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

    .newest-members-subtitle a {
        color: var(--color-accent-hover) !important;
        font-weight: 600;
        text-decoration: none;
    }

        .newest-members-subtitle a:hover {
            text-decoration: underline;
            color: var(--color-accent) !important;
        }

.btn-newest-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.1rem;
    background: var(--color-surface);
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s;
}

    .btn-newest-all:hover {
        background: var(--color-accent);
        color: #fff;
    }

/* ── Horizontal scroll container ── */
.newest-members-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 1rem 0.25rem 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-border) transparent;
}

    .newest-members-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .newest-members-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .newest-members-scroll::-webkit-scrollbar-thumb {
        background: var(--color-primary-border);
        border-radius: 3px;
    }

        .newest-members-scroll::-webkit-scrollbar-thumb:hover {
            background: var(--color-primary);
        }

/* ── Card wrapper link ── */
.newest-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .newest-card-link:hover {
        transform: translateY(-10px);
    }

    /* Override PlayerCard hover so the parent handles it */
    .newest-card-link .player-card {
        pointer-events: none;
    }

/* ── Join date footer below card ── */
.newest-card-footer {
    margin-top: 0.5rem;
    text-align: center;
}

.newest-card-joined {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
}

/* ── CTA card ── */
.newest-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 195px;
    min-width: 195px;
    height: 278px;
    border-radius: 16px;
    border: 2px dashed var(--color-primary-border);
    background: var(--color-card-bg);
    color: var(--color-primary);
    text-decoration: none;
    gap: 0.75rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: border-color 0.2s, background-color 0.2s, transform 0.3s;
}

    .newest-cta-card:hover {
        border-color: var(--color-primary);
        background: var(--color-card-hover);
        transform: translateY(-6px);
    }

.newest-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px dashed var(--color-primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-primary);
    transition: border-color 0.2s;
}

.newest-cta-card:hover .newest-cta-icon {
    border-color: var(--color-primary);
}

.newest-cta-text {
    text-align: center;
    padding: 0 1rem;
}

    .newest-cta-text strong {
        display: block;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--color-primary);
    }

    .newest-cta-text span {
        display: block;
        font-size: 0.78rem;
        color: var(--color-text-muted);
        margin-top: 4px;
    }

/* ── Responsive ── */
@media (max-width: 767px) {
    .newest-members-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .newest-members-scroll {
        gap: 1rem;
        padding: 0.75rem 0.25rem 1.25rem;
    }

    /* Use small card size on mobile */
    .newest-card-link .player-card {
        width: 140px !important;
        height: 200px !important;
    }

    .newest-cta-card {
        width: 140px;
        min-width: 140px;
        height: 200px;
    }

    .newest-cta-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .newest-cta-text strong {
        font-size: 0.82rem;
    }

    .newest-cta-text span {
        font-size: 0.7rem;
    }
}

.player-cta-card {
    text-decoration: none !important;
}

.player-cta-card-inner {
    width: 140px;
    height: 200px;
    border-radius: 14px;
    border: 2px dashed var(--color-primary-border);
    background: var(--color-card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: border-color 0.2s, background-color 0.2s, transform 0.3s;
}

.player-cta-card:hover .player-cta-card-inner {
    border-color: var(--color-primary);
    background: var(--color-card-hover);
    transform: translateY(-4px);
}

.player-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px dashed var(--color-primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--color-primary);
    transition: border-color 0.2s;
}

.player-cta-card:hover .player-cta-icon {
    border-color: var(--color-primary);
}

.player-cta-text {
    text-align: center;
    padding: 0 0.75rem;
}

    .player-cta-text strong {
        display: block;
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--color-primary);
    }

    .player-cta-text span {
        display: block;
        font-size: 0.7rem;
        color: var(--color-text-muted);
        margin-top: 3px;
    }

.newest-members-section {
    margin-top: 3rem;
}

/* ── Header ── */
.newest-members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.newest-members-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
}

.newest-members-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

    .newest-members-subtitle a {
        color: var(--color-accent-hover) !important;
        font-weight: 600;
        text-decoration: none;
    }

        .newest-members-subtitle a:hover {
            text-decoration: underline;
            color: var(--color-accent) !important;
        }

.btn-newest-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.1rem;
    background: var(--color-surface);
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s;
}

    .btn-newest-all:hover {
        background: var(--color-accent);
        color: #fff;
    }

/* ── Horizontal scroll container ── */
.newest-members-scroll {
    cursor: grab;
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 1rem 0.25rem 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-border) transparent;
}

    .newest-members-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .newest-members-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .newest-members-scroll::-webkit-scrollbar-thumb {
        background: var(--color-primary-border);
        border-radius: 3px;
    }

        .newest-members-scroll::-webkit-scrollbar-thumb:hover {
            background: var(--color-primary);
        }

    .newest-members-scroll.dragging {
        cursor: grabbing;
        scroll-snap-type: none;
        user-select: none;
    }

        .newest-members-scroll.dragging .newest-card-link,
        .newest-members-scroll.dragging .newest-cta-card {
            pointer-events: none;
        }

/* ── Card wrapper link ── */
.newest-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .newest-card-link:hover {
        transform: translateY(-10px);
    }

    /* Override PlayerCard hover so the parent handles it */
    .newest-card-link .player-card {
        pointer-events: none;
    }

/* ── Join date footer below card ── */
.newest-card-footer {
    margin-top: 0.5rem;
    text-align: center;
}

.newest-card-joined {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
}

/* ── CTA card ── */
.newest-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 195px;
    min-width: 195px;
    height: 278px;
    border-radius: 16px;
    border: 2px dashed var(--color-primary-border);
    background: var(--color-card-bg);
    color: var(--color-primary);
    text-decoration: none;
    gap: 0.75rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: border-color 0.2s, background-color 0.2s, transform 0.3s;
}

    .newest-cta-card:hover {
        border-color: var(--color-primary);
        background: var(--color-card-hover);
        transform: translateY(-6px);
    }

.newest-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px dashed var(--color-primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-primary);
    transition: border-color 0.2s;
}

.newest-cta-card:hover .newest-cta-icon {
    border-color: var(--color-primary);
}

.newest-cta-text {
    text-align: center;
    padding: 0 1rem;
}

    .newest-cta-text strong {
        display: block;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--color-primary);
    }

    .newest-cta-text span {
        display: block;
        font-size: 0.78rem;
        color: var(--color-text-muted);
        margin-top: 4px;
    }

/* ── Responsive ── */
@media (max-width: 767px) {
    .newest-members-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .newest-members-scroll {
        cursor: grab;
        gap: 1rem;
        padding: 0.75rem 0.25rem 1.25rem;
    }

    /* Use small card size on mobile */
    .newest-card-link .player-card {
        width: 140px !important;
        height: 200px !important;
    }

    .newest-cta-card {
        width: 140px;
        min-width: 140px;
        height: 200px;
    }

    .newest-cta-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .newest-cta-text strong {
        font-size: 0.82rem;
    }

    .newest-cta-text span {
        font-size: 0.7rem;
    }
}
.checkin-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

/* ── Check-In Button ── */
.checkin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark, #5C0F24));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(122, 21, 48, 0.25);
}

    .checkin-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(122, 21, 48, 0.35);
    }

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

    .checkin-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.checkin-btn-icon {
    font-size: 1.3rem;
}

/* ── Success State ── */
.checkin-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    animation: checkin-pop 0.4s cubic-bezier(0.2, 0.8, 0.4, 1.2);
}

@keyframes checkin-pop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checkin-success-icon {
    font-size: 2rem;
    animation: checkin-bounce 0.5s ease 0.2s;
}

@keyframes checkin-bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.checkin-success-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

    .checkin-success-text strong {
        font-size: 1rem;
        color: #065f46;
    }

    .checkin-success-text span {
        font-size: 0.85rem;
        color: #059669;
        font-weight: 600;
    }

/* ── Already Checked In ── */
.checkin-done {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem;
    background: var(--color-card-bg);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.checkin-done-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkin-done-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* ── Stats Row ── */
.checkin-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.checkin-stat {
    text-align: center;
}

.checkin-stat-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
}

.checkin-stat-lbl {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ── Desktop: Inline pill button in navbar ── */
.nav-checkin-desktop {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.nav-checkin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 1rem;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-highlight, #D4A843), #B8922F);
    color: var(--color-primary-dark, #5C0F24);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.3);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

    .nav-checkin-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(212, 168, 67, 0.4);
    }

    .nav-checkin-btn:active {
        transform: scale(0.97);
    }

    .nav-checkin-btn:disabled {
        opacity: 0.7;
        cursor: wait;
        transform: none;
    }

.nav-checkin-done {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Pop animation for success */
.nav-checkin-pop {
    animation: nav-checkin-pop 0.4s cubic-bezier(0.2, 0.8, 0.4, 1.2);
}

@keyframes nav-checkin-pop {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Mobile: Floating Action Button ── */
.nav-checkin-fab {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 200;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--color-highlight, #D4A843), #B8922F);
    color: var(--color-primary-dark, #5C0F24);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(212, 168, 67, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: center;
    justify-content: center;
}

    .nav-checkin-fab:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3), 0 3px 12px rgba(212, 168, 67, 0.4);
    }

    .nav-checkin-fab:active {
        transform: scale(0.95);
    }

    .nav-checkin-fab:disabled {
        opacity: 0.8;
        cursor: wait;
    }

.nav-checkin-fab-done {
    background: #22c55e;
    color: #fff;
    cursor: default;
    font-size: 1.3rem;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    /* Hide desktop button on mobile */
    .nav-checkin-desktop {
        display: none;
    }

    /* Show FAB on mobile */
    .nav-checkin-fab {
        display: flex;
    }
}

/* ── Push FAB above admin bar when present ── */
.page:has(.admin-bar) .nav-checkin-fab {
    bottom: calc(1.25rem + 32px);
}
.join-card {
    max-width: 560px;
    margin: 3rem auto;
    text-align: center;
    background: var(--color-surface);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.join-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
}

.join-card h1 {
    margin: 0 0 0.35rem;
    font-size: 1.6rem;
    color: var(--color-primary);
}

.join-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

/* ── Choice: login vs register ── */
.join-choice {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 1.5rem;
}

.join-choice-option {
    flex: 1;
    padding: 1.5rem;
    background: var(--color-bg);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

    .join-choice-option h3 {
        margin: 0;
        font-size: 1rem;
        color: var(--color-text);
    }

    .join-choice-option p {
        margin: 0;
        font-size: 0.85rem;
        color: var(--color-text-muted);
        flex: 1;
    }

    .join-choice-option .btn {
        margin-top: 0.75rem;
        width: 100%;
        justify-content: center;
    }

.join-choice-divider {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

    .join-choice-divider span {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

/* ── Features list (success state) ── */
.join-features {
    text-align: left;
    margin: 1.5rem auto;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.join-feature {
    font-size: 0.88rem;
    color: var(--color-text);
    padding: 0.5rem 0.75rem;
    background: var(--color-bg);
    border-radius: 8px;
}

.join-actions {
    margin-top: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .join-card {
        margin: 1.5rem auto;
        padding: 1.75rem 1.25rem;
    }

    .join-choice {
        flex-direction: column;
        gap: 0;
    }

    .join-choice-divider {
        padding: 0.75rem 0;
        justify-content: center;
    }
}












