:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --accent-color: #00AEEF;
    /* Pendleton Blue */
    --accent-secondary: #FFD700;
    /* Yellow */
    --glass-bg: rgba(15, 15, 15, 0.98);
    --glass-border: rgba(255, 255, 255, 0.15);
    --header-bg: rgba(10, 10, 10, 0.9);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.12);
    --font-display: 'Syncopate', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --invert-val: 0;
}

body.light-theme {
    --bg-color: #f5f5f5;
    --text-color: #1a1a1a;
    --accent-color: #FF4B2B;
    /* Warm Red/Coral */
    --accent-secondary: #FF8C00;
    /* Warm Orange */
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(0, 0, 0, 0.15);
    --header-bg: rgba(255, 255, 255, 0.9);
    --card-bg: rgba(0, 0, 0, 0.04);
    --card-hover-bg: rgba(0, 0, 0, 0.08);
    --invert-val: 1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor takes over */
}

html {
    overflow-x: hidden;
    overflow-y: auto; /* Ensure scrolling works on native html */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    /* Lenis handles scroll */
    transition: background-color 0.5s ease, color 0.5s ease;
    -webkit-user-select: none;
    /* Safari */
    user-select: none;
    /* Prevent text highlight on orb drag */
}

body.loading {
    overflow: hidden;
}

/* Accent Utility */
.accent-text {
    color: var(--accent-color) !important;
}
.accent-secondary-text {
    color: var(--accent-secondary) !important;
}

/* --- Navigation --- */
.v2-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5vw;
    z-index: 1000;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 2400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v2-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.v2-logo:hover {
    transform: scale(1.03);
}

.v2-logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
}

.v2-nav-links {
    display: flex;
    gap: 20px;
    /* Reduced from 40px to compensate for 10px padding on each side of links */
}

.v2-nav-link {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s;
    padding: 15px 10px;
    /* Added to increase clickable hitbox area */
}

.v2-nav-link:hover {
    opacity: 1;
}

.v2-nav-icons {
    display: flex;
    gap: 5px;
    /* Reduced from 25px to compensate for 10px padding */
    align-items: center;
}

.v2-icon-link {
    color: var(--text-color);
    opacity: 0.5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    /* Added to increase clickable hitbox area */
}

.v2-icon-link:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.v2-nav-btn {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 8px 20px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s;
}

.v2-nav-btn:hover {
    transform: scale(1.05);
}

/* --- Theme Toggle --- */
.theme-toggle {
    position: absolute;
    /* Changed from fixed */
    top: 115px;
    right: 5vw;
    z-index: 999;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.v2-switch-track {
    width: 34px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: background 0.3s;
}

body.light-theme .v2-switch-track {
    background: var(--accent-color);
}

.v2-switch-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

body.light-theme .v2-switch-thumb {
    transform: translateX(14px);
}

.toggle-label {
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--text-color);
}

/* --- Canvas --- */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- Cursor --- */
#cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 1000000;
    transform: translate(-50%, -50%);
}

#cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
}

.counter {
    font-family: var(--font-display);
    font-size: 8vw;
    font-weight: 700;
    color: var(--accent-color);
}

.loader-text {
    margin-top: 20px;
    letter-spacing: 0.2em;
    font-size: 14px;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 0.9;
    transition: color 0.5s ease;
}

/* --- Sections --- */
.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5vw;
}

/* --- Hero --- */
#hero {
    height: 100vh;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 10rem);
    max-width: 70vw;
    line-height: 0.95;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-title {
        max-width: 90vw;
        font-size: clamp(2rem, 9vw, 3rem);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 5vw;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-indicator .line {
    width: 2px;
    height: 40px; /* Reduced from 60px */
    background: var(--text-color);
    animation: bounce 2.5s infinite ease-in-out; /* Smoother timing */
}

@keyframes bounce {

    0%,
    100% {
        transform: scaleY(0.4);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* --- Narrative --- */
#narrative {
    align-items: flex-end;
    text-align: right;
}

.narrative-text {
    width: 100%;
    max-width: 42vw;
    /* Slightly adjusted for padding */
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.narrative-text p {
    font-size: clamp(1rem, 1.6vw, 2.5rem);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Featured (Dual Column Parallax) --- */
#featured {
    padding: 1.25vh 0;
    min-height: 105vh;
    overflow: visible;
}

.dual-column-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5vw;
    width: 86%; /* Adjusted from 90% to set left edge at 7vw */
    max-width: 2400px;
    margin: 0 auto;
    position: relative;
}

.column {
    width: 38.66%; /* Adjusted to set right edge at 40.25vw (7vw + 33.25vw) */
    display: flex;
    flex-direction: column;
    gap: 8vh;
}

/* --- Right Side Container (buttons + ad columns) --- */
.right-side-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2vh;
    min-width: 0;
}

/* --- Sidebar Columns Wrapper (Dual Column System) --- */
.sidebar-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.sidebar-column-primary,
.sidebar-column-secondary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3vh;
    min-width: 0;
}

/* Secondary column offset to avoid grid appearance */
.sidebar-column-secondary {
    margin-top: 100px;
}

/* Sidebar Billing Toggle */
.sidebar-billing-toggle {
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 3px;
    width: fit-content;
    margin: 0 auto 25px;
}

/* Ensure billing toggles are never shown on index.html */
#index-page .sidebar-billing-toggle,
#index-page .billing-toggle-bar {
    display: none !important;
}


.sidebar-billing-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 0.1em;
    cursor: pointer;
    background: transparent;
    color: var(--text-color);
    opacity: 0.5;
    transition: all 0.3s;
}

.sidebar-billing-btn.active {
    background: var(--accent-color);
    color: #fff;
    opacity: 1;
}

/* Your Ad Here Card */
.ad-here-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px dashed var(--glass-border) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    min-height: 150px;
    transition: all 0.3s ease;
}

.ad-here-item:hover {
    background: rgba(0, 174, 239, 0.05) !important;
    border-color: var(--accent-color) !important;
}

.ad-here-label {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.ad-here-price {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--accent-secondary);
}

/* Dynamic Clamp Scale — Balanced between original and calendar sizing */
.sidebar-column-primary .spotlight-item,
.sidebar-column-secondary .spotlight-item {
    width: clamp(150px, 20vw, 250px);
    margin: 0 auto;
}

/* Quick Actions Grid */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 5vh;
    margin-bottom: 2vh;
}

.quick-btn {
    position: relative;
    overflow: hidden;
    background: rgba(15, 15, 15, 0.85); /* Frank: More opaque base */
    -webkit-backdrop-filter: blur(40px); /* Frank: Heavier blur to wash out orb detail */
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    padding: clamp(15px, 2vw, 30px);
    border-radius: 16px;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: clamp(10px, 0.8vw, 14px);
    letter-spacing: 0.1em;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    text-shadow: 0 2px 15px rgba(0,0,0,1), 0 0 5px rgba(0,0,0,0.8); /* Ultimate readability shadow */
}

/* Base Sheen Layer */
.quick-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            var(--accent-color) 50%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    pointer-events: none;
    transition: none;
    opacity: 0.15;
}

.quick-btn:hover::after {
    animation: sheen-sweep 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.quick-btn:hover {
    background: var(--card-hover-bg);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Individual Button Theming */
#btn-calendar {
    background: rgba(0, 174, 239, 0.7);
    border-color: rgba(0, 174, 239, 0.8);
}

#btn-calendar:hover {
    background: rgba(0, 174, 239, 0.3);
}

#btn-newsletter {
    background: rgba(0, 80, 130, 0.8);
    border-color: rgba(0, 80, 130, 0.9);
}

#btn-newsletter:hover {
    background: rgba(0, 100, 150, 0.45);
}

#btn-sports {
    background: rgba(255, 215, 0, 0.7);
    border-color: rgba(255, 215, 0, 0.8);
}

#btn-sports:hover {
    background: rgba(255, 215, 0, 0.3);
}

#btn-camp {
    background: rgba(180, 130, 0, 0.8);
    border-color: rgba(180, 130, 0, 0.9);
}

#btn-camp:hover {
    background: rgba(200, 150, 0, 0.45);
}

.left-column {
    margin-top: 30vh;
}

.column-header {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 32px);
    letter-spacing: 0.3em;
    color: var(--accent-color);
    margin-bottom: 20px;
    position: sticky;
    top: 100px;
    z-index: 10;
    mix-blend-mode: exclusion;
    /* Color adaptation logic */
}

/* --- Column Items --- */
.column-item {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: clamp(20px, 3vw, 40px);
    border-radius: 32px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Sheen Effect */
.column-item::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            var(--accent-color) 50%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    pointer-events: none;
    transition: none;
    opacity: 0.2;
}

.sheen-active::after {
    animation: sheen-sweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sheen-sweep {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

/* Category hover — maintain transparency, add accent sheen */
.cat-item:hover {
    background: var(--glass-bg);
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: inset 0 0 60px rgba(0, 174, 239, 0.08), 0 15px 40px rgba(0, 0, 0, 0.3);
}

body.light-theme .cat-item:hover {
    box-shadow: inset 0 0 60px rgba(255, 75, 43, 0.08), 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Spotlight item hover — keep original behavior */
.spotlight-item:hover {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

/* General column-item hover fallback */
.column-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

/* Click Indicator Arrow */
.click-indicator {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.column-item:hover .click-indicator {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: rotate(-45deg);
}

.click-indicator::after {
    content: "→";
    font-size: 20px;
    color: #fff;
}

.cat-icon {
    font-size: clamp(2rem, 4vw, 4rem);
    margin-bottom: 20px;
    color: var(--accent-secondary);
}

.cat-name {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 3rem);
    margin-bottom: 10px;
}

/* --- Tiered Spotlight Spaces (V2) --- */
.spotlight-item {
    padding: 0 !important;
    /* Remove negative space */
    overflow: hidden;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Rotating Fire Border (Match Orb Premium) --- */
.fire-border {
    position: relative;
    padding: 2.5px !important; /* Thickness */
    background: #0a0a0a !important; /* Contrast base */
    border: none !important;
    overflow: hidden;
}

.fire-border::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        rgba(255, 215, 0, 0) 0%,
        #FFD700 35%,
        #FF4500 50%,
        #FFD700 65%,
        rgba(255, 215, 0, 0) 100%
    );
    animation: rotate-fire-sweep 4s linear infinite; /* Faster rotation for high impact */
    z-index: 0;
}

/* Ensure the image covers the center and stays on top */
.fire-border .spotlight-img-v2 {
    position: relative;
    z-index: 1;
    border-radius: 22px !important;
    width: 100%;
    height: 100%;
}

@keyframes rotate-fire-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.spotlight-item:hover {
    border-color: var(--accent-color);
    transform: scale(1.02);
    z-index: 5;
}

.spotlight-img-v2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the tiered space */
    display: block;
    transition: transform 0.5s ease;
}

.spotlight-item:hover .spotlight-img-v2 {
    transform: scale(1.05);
}

.spotlight-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.1em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spotlight-item:hover .spotlight-overlay {
    opacity: 1;
}

/* Tiered Sizes - Aspect Ratios */
.spotlight-sq {
    aspect-ratio: 1 / 1;
}

.spotlight-rect {
    aspect-ratio: 4 / 5;
}

/* Skybanner / Portrait */
.spotlight-tall {
    aspect-ratio: 1 / 2;
}

.spotlight-tag-v2 {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    font-size: 8px;
    font-family: var(--font-display);
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.1em;
}

/* --- Scrolling Spotlight Carousel (Reactive) --- */
.marquee-section {
    min-height: 0;
    padding: 1vh 0;
    overflow: hidden;
}

#marquee-track-right {
    transform: translateX(100%);
}

#marquee-track-left {
    transform: translateX(-100%);
}

.spotlight-marquee {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    /* Reduced padding to maintain overall banner height */
    white-space: nowrap;
    box-shadow: 0 0 40px rgba(0, 174, 239, 0.1);
}

.marquee-content {
    display: flex;
    /* Ensure center alignment works with flex */
    align-items: center;
    animation: marquee 10.4s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.marquee-content.reverse {
    animation: marquee-reverse 10.4s linear infinite;
}

.scrolling-spotlight {
    display: inline-flex;
    flex-shrink: 0; /* CRITICAL: Prevent flex compression of ads */
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0; /* Removed padding to allow image to fill */
    border-radius: 12px;
    margin: 0 15px;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    overflow: hidden; /* Ensure image corners are clipped by border-radius */
}

.scrolling-spotlight:hover {
    background: var(--card-hover-bg);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.scrolling-spotlight img {
    height: 140px;
    width: 100%;
    object-fit: contain; /* Professional look: prevents cropping while filling space */
    display: block;
    background: transparent;
    padding: 0;
}

/* Three Spotlight Sizes (Standardized to 140px height) */
.spotlight-sm {
    width: 140px; /* Compact: Perfect Square (1:1) */
}

.spotlight-md {
    width: 300px; /* Standard: Wide Rectangle (~2.1:1) */
}

.spotlight-lg {
    width: 600px; /* Horizon: Long Premium Banner (~4.3:1) */
}

/* Placeholder Styling for different sizes */
.scrolling-spotlight .spotlight-placeholder-box {
    height: 140px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-family: var(--font-display);
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 15px;
}

.spotlight-sm .spotlight-placeholder-box {
    width: 140px;
}

.spotlight-md .spotlight-placeholder-box {
    width: 300px; /* Aligned to ad-md width */
}

.spotlight-lg .spotlight-placeholder-box {
    width: 600px; /* Aligned to ad-lg width */
}

/* --- Events Section --- */
#events {
    padding: 20vh 5vw 10vh 5vw;
}

.section-header-v2 {
    font-size: clamp(2rem, 4vw, 6rem);
    margin-bottom: 60px;
    color: var(--accent-color);
    position: relative;
    z-index: 10;
    mix-blend-mode: exclusion;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vw;
    align-items: flex-start;
    /* Ensure columns don't stretch to equal height */
}

.event-col {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.col-title {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--accent-secondary);
}

.event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 20px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-card:hover {
    background: var(--card-hover-bg);
    transform: translateX(10px);
    border-color: var(--accent-color);
}

.event-time {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--accent-color);
}

.event-title {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.event-loc {
    font-size: 12px;
    opacity: 0.6;
}

/* Event Actions */
.event-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
}

.v2-action-btn {
    padding: 20px 40px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.v2-action-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
}

.v2-action-btn.accent-btn {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.v2-action-btn.accent-btn:hover {
    background: var(--accent-color);
    color: #000;
}

/* --- V2 Modal (Immersive) --- */
.v2-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 7000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.modal-container {
    width: 95%;
    max-width: 2200px;
    height: 90vh;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 30px clamp(30px, 5vw, 60px);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.modal-tools-row {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 3rem);
    color: var(--accent-color);
    letter-spacing: 0.1em;
}

.modal-close {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.2em;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 50px;
}

.modal-close:hover {
    opacity: 1;
    color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 40px clamp(30px, 5vw, 60px);
    overflow-y: auto;
    flex-grow: 1;
    /* Removed deprecated -webkit-overflow-scrolling */
}

/* V2 Modal Tools Styling */
.modal-search-v2 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    flex-grow: 1;
    max-width: 400px;
}

.modal-select-v2 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
}

.modal-select-v2 option {
    background-color: #1a1a1a;
    color: white;
}

.modal-view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-view-btn {
    border: none;
    background: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.modal-view-btn.active {
    background: var(--accent-color);
    color: white;
}

/* Business Cards in Modal */
.biz-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Default to 1 column (mobile) */
    gap: 25px;
    width: 100%;
}

/* Tier 4 Ad Cards in Modal */
.tier-4-ad {
    background: var(--card-bg);
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    min-height: 220px;
    gap: 15px;
}

.tier-4-ad.premium {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(0, 174, 239, 0.05));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 215, 0, 0.1);
}

.tier-4-ad:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 215, 0, 0.1);
}

.tier-4-ad .ad-badge {
    background: var(--accent-color);
    color: #000;
    padding: 5px 15px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tier-4-ad .ad-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: white;
    line-height: 1.2;
}

.tier-4-ad .ad-subtitle {
    font-size: 12px;
    opacity: 0.6;
    max-width: 200px;
}

.tier-4-ad .ad-cta {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--accent-color);
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.tier-4-ad:hover .ad-cta {
    border-bottom-color: var(--accent-color);
}

/* Ensure ad cards work in List Mode too */
.biz-modal-grid.mode-list .tier-4-ad {
    min-height: 120px;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 40px;
}

.biz-modal-grid.mode-list .tier-4-ad .ad-subtitle {
    display: none;
}

/* Responsive Grid Breakpoints (Max 4 columns) */
@media (min-width: 600px) {
    .biz-modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .biz-modal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .biz-modal-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 2000px) {
    .biz-modal-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Force List mode to 1 column regardless of screen size */
.biz-modal-grid.mode-list {
    grid-template-columns: 1fr !important;
}

.biz-card-v2 {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: clamp(20px, 2vw, 30px);
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    min-height: 220px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 0 15px;
    min-width: 0;
    overflow-wrap: break-word;
}

.biz-card-v2:hover {
    background: var(--card-hover-bg);
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.biz-logo-v2 {
    grid-column: 2;
    grid-row: 1;
    width: clamp(60px, 6vw, 90px);
    height: clamp(60px, 6vw, 90px);
    background: none;
    border-radius: 8px;
    padding: 0;
    object-fit: contain;
    border: 1px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Branded CSS Placeholder */
.placeholder-v2 {
    background: var(--card-bg) !important;
    font-family: var(--font-display);
    font-size: 8px;
    color: var(--accent-color);
    text-align: center;
    text-transform: uppercase;
    line-height: 1.1;
    padding: 5px;
    letter-spacing: 0.05em;
}

.biz-card-v2 .biz-name {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    color: var(--accent-color);
    margin-bottom: 0;
    word-break: normal;
    overflow-wrap: break-word;
}

.biz-card-v2 .biz-desc {
    grid-column: 1 / -1;
    font-size: clamp(12px, 0.9vw, 14px);
    line-height: 1.6;
    opacity: 0.7;
    margin-top: 15px;
    margin-bottom: 20px;
    word-break: normal;
    overflow-wrap: break-word;
}

.biz-card-v2 .biz-meta {
    grid-column: 1 / -1;
    font-size: 12px;
    color: var(--accent-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.biz-link-v2 {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.biz-card-v2:hover .biz-link-v2 {
    opacity: 1;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .modal-container {
        height: 95vh;
        border-radius: 20px;
    }

    .modal-header,
    .modal-body {
        padding: 30px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .biz-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Single Business Playing Card --- */
.playing-card-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.biz-playing-card {
    width: clamp(300px, 30vw, 450px);
    height: clamp(500px, 50vw, 700px);
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
    position: relative;
}

.card-image-hero {
    width: 100%;
    height: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.card-image-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-info-footer {
    height: 50%;
    padding: 40px;
    background: var(--glass-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-info-footer .biz-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    line-height: 1.1;
}

.card-info-footer .biz-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.card-info-footer .biz-meta {
    margin-top: 20px;
    font-size: 12px;
    color: var(--accent-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.placeholder-card {
    background: var(--bg-color) !important;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--accent-color);
}

/* --- Ad Expansion Modal --- */
.ad-expand-container {
    width: 90%;
    max-width: 500px;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

#ad-expand-modal .modal-backdrop {
    background: rgba(0,0,0,0.9);
}

.ad-expand-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 24px;
    font-family: var(--font-display);
    cursor: pointer;
    background: var(--glass-bg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    z-index: 10;
}

.ad-expand-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding-top: 40px; /* Space for close button if overlapping */
}

#ad-expand-img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.ad-expand-btn {
    width: 100%;
    padding: 20px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
    border-radius: 15px;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.ad-expand-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.4);
}

@media (max-width: 500px) {
    .biz-playing-card {
        width: 90%;
        height: 80vh;
    }
}

/* --- Logo Fly-Through Section --- */
.fly-through-section {
    height: 300vh;
    /* Extra scroll depth for the animation */
    padding: 0;
    position: relative;
    overflow: visible;
    z-index: 20;
}

.fly-through-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    perspective: 1000px;
}

.fly-through-overlay {
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.fly-headline {
    font-size: clamp(3rem, 6vw, 10rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(50px);
}

.fly-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(150px, 15vw, 300px);
    height: clamp(150px, 15vw, 300px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 5;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.fly-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Footer --- */
.v2-footer {
    padding: 100px 5vw;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Staggered Calendar Layout (Vertical Sequential) --- */
.calendar-staggered-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* Reduced vertical space between ad-rows and calendar */
    width: 100%;
    padding: 40px 0;
}

.ad-row-v2 {
    display: flex;
    width: 100%;
    max-width: 2200px;
    position: relative;
    min-height: 150px;
}

/* Coordinate Mapping (x: -4 to x: 4) */
/* Assuming center is 50% */
.coord-x-m4 {
    left: 10%;
    position: absolute;
}

.coord-x-m2 {
    left: 30%;
    position: absolute;
}

.coord-x-m1 {
    left: 40%;
    position: absolute;
}

.coord-x-0 {
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
    z-index: 10;
}

.coord-x-1 {
    left: 60%;
    position: absolute;
}

.coord-x-2 {
    left: 65%;
    position: absolute;
}

.coord-x-3 {
    left: 75%;
    position: absolute;
}

.coord-x-4 {
    left: 85%;
    position: absolute;
}

.calendar-main-v2 {
    width: 100%;
    max-width: 100%;
    /* Ensure full width */
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 10px 0px;
    /* Reduced vertical padding from 40px to compress calendar UI */
    /* Zero side padding to remove leading visual space */
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3);
}

.week-grid-v3 {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    /* STRICT EQUAL WIDTH */
    gap: 10px;
    width: 100%;
}

.day-cell-v2 {
    min-height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.event-bar-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    background: var(--accent-color);
    color: white;
    border-radius: 6px;
    margin-bottom: 4px;
    padding: 6px 8px;
    font-size: clamp(9px, 0.7vw, 11px);
    font-weight: 600;
    line-height: 1.3;
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
}

.event-bar-v2:hover {
    background: var(--accent-secondary);
    color: #000;
}

/* Pendleton Round-Up Specific Event Styling */
.event-bar-v2.roundup-event-v2 {
    background: #d0202e !important;
    /* Authentic PRU Red */
    border-color: #d0202e !important;
    color: white !important;
}

.event-bar-v2.roundup-event-v2:hover {
    background: #a31823 !important;
    color: white !important;
    transform: scale(1.02);
}

.event-title-link {
    flex: 1;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    text-decoration: none;
    color: inherit;
}

.share-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 15px;
    height: 100%;
    min-height: 140px;
    line-height: 1.4;
    text-align: center;
    font-size: 11px;
    flex: 1;
}

@media (max-width: 600px) {
    .share-options-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .share-btn {
        min-height: 100px;
        flex-direction: row;
        padding: 20px;
        font-size: 13px;
        gap: 20px;
    }

    .share-btn span {
        font-size: 24px !important;
    }
}

.event-add-plus {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    font-size: 16px;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

/* Hitbox Buffer for Mobile */
.event-add-plus::after {
    content: "";
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
}

.event-add-plus:hover {
    background: var(--accent-secondary);
    color: #000;
    transform: scale(1.1);
}

.event-add-plus:active {
    transform: scale(0.9);
}

.staggered-ad-v2 {
    width: clamp(150px, 15vw, 300px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.staggered-ad-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staggered-ad-v2:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

/* --- Drawer Logic ... --- */
.itin-fab-v2 {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: clamp(60px, 6vw, 90px);
    height: clamp(60px, 6vw, 90px);
    background: #3e3e3e;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 174, 239, 0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 15px;
}

.itin-fab-v2:hover {
    transform: scale(1.1) rotate(5deg);
}

.itin-fab-v2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.itin-count-v2 {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-secondary);
    color: #000;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
}

.v2-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 6000;
    visibility: hidden;
    pointer-events: none;
}

.v2-drawer.open {
    visibility: visible;
    pointer-events: auto;
}

.drawer-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.v2-drawer.open .drawer-backdrop {
    opacity: 1;
}

.drawer-content-v2 {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(300px, 30vw, 500px);
    max-width: 100vw;
    height: 100%;
    background: var(--bg-color);
    border-left: 1px solid var(--glass-border);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 768px) {
    .drawer-content-v2 {
        padding: 40px 25px;
        width: 85vw; /* Slightly less than full width to show backdrop hint */
    }
}

.v2-drawer.open .drawer-content-v2 {
    transform: translateX(0);
}

.drawer-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.drawer-header-v2 h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-color);
}

.close-drawer {
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
}

.drawer-body-v2 {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 40px;
}

.itin-item-v2 {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    position: relative;
}

.itin-item-v2 h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: white;
}

.itin-item-v2 span {
    font-size: 11px;
    opacity: 0.5;
}

.remove-itin-v2 {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    opacity: 0.3;
}

.remove-itin-v2:hover {
    opacity: 1;
    color: var(--accent-color);
}

.drawer-footer-v2 {
    display: flex;
    gap: 15px;
}

.drawer-footer-v2 .v2-action-btn {
    flex: 1;
    font-size: 10px;
    padding: 15px;
}

/* --- GLOBAL FOOTER STYLES (Modern Business Standard) --- */
.global-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 100px 0 60px 0;
    color: #0f172a;
    margin-top: 120px;
    position: relative;
    z-index: 100;
    width: 100%;
}

.footer-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 5vw;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    /* Distributed columns */
    gap: 80px;
    margin-bottom: 80px;
    width: 100%;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Standard left align within columns */
}

.footer-logo {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-bottom: 25px;
    display: block;
    text-decoration: none;
    line-height: 1;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-mission {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 350px;
    margin-bottom: 30px;
}

.footer-stats {
    display: flex;
    gap: 15px;
    width: 100%;
}

.footer-stat {
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    flex: 1;
}

.footer-stat span {
    display: block;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.footer-stat label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    color: #0f172a;
    position: relative;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #64748b;
    font-size: 1rem;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-icon {
    background: #f1f5f9;
    color: #0f172a;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid #f1f5f9;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #0f172a;
}

/* Dark Theme Integration */
body:not(.light-theme) .global-footer {
    background: #0a0a0a;
    color: #e0e0e0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .footer-col h4 {
    color: #fff;
}

body:not(.light-theme) .footer-logo {
    color: #00AEEF;
}

body:not(.light-theme) .footer-stat {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .footer-stat span {
    color: #00AEEF;
}

body:not(.light-theme) .footer-col ul li a {
    color: #94a3b8;
}

body:not(.light-theme) .footer-col ul li a:hover {
    color: #00AEEF;
}

body:not(.light-theme) .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .social-icon {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 60px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer-col {
        align-items: center;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Form Input Styling */
.v2-input,
.v2-textarea,
.v2-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 12px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
}

.v2-input:focus,
.v2-textarea:focus,
.v2-select:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.1);
}

/* Fix Date/Time Picker Icons in Dark Mode */
.v2-input::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Turns black icons white */
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.v2-input[type="date"],
.v2-input[type="time"] {
    cursor: pointer;
}

.v2-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Light Theme Overrides */
body.light-theme .v2-input::-webkit-calendar-picker-indicator {
    filter: invert(0); /* Keep black icons on light background */
}
.ad-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Fluid responsive columns */
    grid-auto-rows: 200px; /* Base row height for square ads */
    grid-auto-flow: dense; /* Fill gaps efficiently */
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 40px;
    position: relative;
    justify-content: center; /* Center the puzzle board */
    background: rgba(255, 255, 255, 0.01);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

/* Option 1: The Blueprint (Step it up a notch - HUD Schematic) */
.ad-grid-v2::before {
    content: "";
    position: absolute;
    inset: 40px;
    pointer-events: none;
    /* Sharp 1px Blueprint Lines */
    background-image: 
        linear-gradient(to right, rgba(0, 174, 239, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 174, 239, 0.1) 1px, transparent 1px);
    background-size: 220px 220px;
    z-index: 0;
}

/* Technical HUD Layer: Corner Brackets and Coordinate Labels */
.ad-grid-v2::after {
    content: "";
    position: absolute;
    inset: 40px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg stroke='rgba(255, 215, 0, 0.25)' stroke-width='1' fill='none'%3E%3Cpath d='M0 8V0h8'/%3E%3Cpath d='M192 0h8v8'/%3E%3Cpath d='M200 192v8h-8'/%3E%3Cpath d='M8 200H0v-8'/%3E%3C/g%3E%3Ctext x='10' y='12' font-family='monospace' font-size='7' fill='rgba(0, 174, 239, 0.3)'%3ERT-SEC-SYS%3C/text%3E%3Ctext x='170' y='195' font-family='monospace' font-size='7' fill='rgba(0, 174, 239, 0.3)'%3EPHASE-V2%3C/text%3E%3C/svg%3E");
    background-size: 220px 220px;
    opacity: 0.8;
    z-index: 0;
}

.calendar-ad-space {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    will-change: transform;
    overflow: visible;
    position: relative;
    z-index: 1; /* Sit above ghost grid */
}

.calendar-ad-space.ad-sq { grid-row: span 1; grid-column: span 1; }
.calendar-ad-space.ad-rect { grid-row: span 2; grid-column: span 1; }
.calendar-ad-space.ad-tall { grid-row: span 3; grid-column: span 1; }

.calendar-ad-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--glass-border);
    padding: 10px; /* Internal padding to frame ad */
    transition: all 0.3s;
}
.calendar-ad-inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.calendar-ad-inner:hover {
    z-index: 10;
}

.calendar-ad-inner:hover img {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 174, 239, 0.15);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .v2-nav {
        padding: 10px 3vw;
    }

    .nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .v2-logo img {
        height: 35px;
        align-self: flex-start;
    }

    .v2-nav-links {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 4px;
        flex-wrap: nowrap;
    }

    .v2-nav-link {
        font-size: 11px;
        padding: 6px 0;
        text-align: center;
        flex: 1;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        border-radius: 6px;
    }
    
    body.light-theme .v2-nav-link {
        background: rgba(0, 0, 0, 0.03);
    }

    .v2-nav-icons {
        display: none;
    }

    .theme-toggle {
        top: 135px;
        right: 3vw;
        padding: 6px 10px;
    }

    .itin-fab-v2 {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        padding: 10px;
    }

    .dual-column-container {
        flex-direction: row;
        gap: 15px;
        padding: 0 4vw;
        align-items: flex-start;
    }

    .column {
        width: auto !important;
    }

    .left-column {
        width: 50% !important; /* Increased space for categories, but balanced for ads */
        margin-top: 0;
    }

    .right-side-container {
        width: 50% !important; /* Increased from 45% to make ads ~10% larger */
    }

    .right-side-container .column-header {
        display: none; /* Hide header on mobile to clean up space above the ad column */
    }

    /* Remove Monthly/Weekly toggle from index.html only */
    #index-page .sidebar-billing-toggle {
        display: none !important;
    }

    .ad-columns-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .ad-column-primary {
        margin-top: 60px; /* Offset the ad column from the category buttons */
        width: 100%;
    }
    
    .ad-item {
        width: 100% !important; /* Fill the 45% column width */
    }

    .cat-item {
        padding: 20px 15px; /* Frank: Breathing room for wrapping */
        border-radius: 16px;
        height: auto !important;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .cat-header {
        flex-direction: column !important; /* Frank: Stack icon and text for full visibility */
        align-items: flex-start !important;
        gap: 8px;
        width: 100%;
        margin-bottom: 0 !important;
    }

    .cat-name {
        font-size: 5.5vw;
        flex: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.2;
    }

    /* Frank: Specific fix for long category titles on mobile */
    #cat-recreation .cat-name {
        font-size: calc(5.5vw - 0.5pt) !important;
    }

    .cat-icon {
        font-size: 2rem;
        flex-shrink: 0;
        margin-bottom: 5px !important;
    }

    .click-indicator {
        bottom: auto !important;
        top: 45px;               /* Frank: Lowered further to 45px per final adjustment */
        right: 15px;
        width: 35px;
        height: 35px;
    }

    #hero {
        margin-bottom: 50vh; /* Frank: Reduced spacing to maintain scroll continuity */
    }

    /* Frank's Fix: Narrative Text Mobile Scaling */
    .narrative-text {
        max-width: 90vw;
        padding: 30px;
        text-align: left;
    }

    .narrative-text p {
        font-size: 1.2rem !important; /* Forces readable scale on mobile screens */
        line-height: 1.5;
    }

    .ad-company {
        font-size: 5vw;
    }

    /* --- Ad Grid System (V3 - Mobile) --- */
    .ad-grid-v2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* Force 2 strictly equal columns on mobile */
        grid-auto-rows: calc(45vw - 7.5px) !important; /* Mathematically perfect squares (90vw grid width / 2 cols - half gap) */
        gap: 15px !important;
        padding: 20px 5vw !important;
        width: 100% !important;
        margin: 0 auto !important;
        justify-content: center;
    }

    .calendar-ad-space {
        flex: 1;
        width: 100% !important;
        height: 100% !important;
    }

    /* Preserve vertical spanning on mobile */
    .calendar-ad-space.ad-sq { grid-row: span 1; }
    .calendar-ad-space.ad-rect { grid-row: span 2; }
    .calendar-ad-space.ad-tall { grid-row: span 3; }

    .calendar-ad-inner {
        border-radius: 12px !important;
        border-width: 1px !important;
    }
}

/* --- Donate Modal --- */
#donate-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.donate-modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 45px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.donate-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 12px;
    opacity: 0.6;
}

.donate-heart-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.donate-modal-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.donate-modal-desc {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.7;
    margin-bottom: 30px;
}

.donate-amounts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.donate-amt {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.donate-other-input {
    display: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.donate-submit-btn {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 11px;
    cursor: pointer;
    transition: transform 0.3s;
}

.donate-footer-text {
    font-size: 11px;
    opacity: 0.4;
    margin-top: 15px;
}

/* --- Extracted Inline Styles (advertise.html) --- */
.submit-event-cta-container {
    text-align: center;
    padding: 50px;
}

.submit-event-cta-btn {
    padding: 25px 60px;
    font-size: 1.2rem;
}

.form-contact-header {
    text-align: center;
    border: none;
    padding: 0;
}

.form-contact-title {
    font-size: 2.5rem;
}

.form-contact-desc {
    margin: 0 auto;
}

.form-contact-body {
    margin-top: 40px;
}

.form-contact-message-field {
    grid-column: 1 / -1;
}

.form-contact-message-input {
    height: 120px;
}

/* --- Extracted Inline Styles (submit-event.html) --- */
.submit-event-disclaimer-text {
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.6;
}

.schedule-type-label {
    font-family: var(--font-display);
    font-size: 9px;
    opacity: 0.6;
}

.recurring-toggle-container {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recurring-toggle-input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.recurring-toggle-label {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    opacity: 0.8;
}

.recurring-field-container {
    background: rgba(0, 174, 239, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
}

.custom-recurrence-ui-container {
    margin-top: 30px;
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
}

.custom-recurrence-ui-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 14px;
}

.custom-interval-input {
    width: 80px;
    text-align: center;
}

.pattern-summary-field {
    margin-top: 25px;
}

.pattern-summary-field {
    margin-top: 25px;
}

.time-grid-container {
    margin-top: 30px;
}

.form-contact-interest-field {
    justify-content: flex-end;
}

.enrollment-options-grid {
    grid-template-columns: 1fr;
}

/* --- Extracted Inline Styles (calendar.html) --- */
.calendar-bottom-section {
    align-items: flex-end;
    text-align: right;
    min-height: 60vh;
}
.day-head-weekend {
    color: var(--accent-secondary);
}
.marquee-section-auto {
    min-height: unset;
}

/* --- Extracted Inline Styles (index.html) --- */
.hero-scroll-indicator {
    bottom: 90px; /* Lifted to prevent overlap */
}

.v2-scroll-hint {
    bottom: 30px; /* Lowered below the bouncing line */
    opacity: 0.7;
}

.v2-scroll-hint span {
    font-size: 10px; /* Make the hint text slightly smaller to establish hierarchy */
    letter-spacing: 0.15em;
}

/* --- Extracted Inline Styles (newsletter.html) --- */
.newsletter-orb-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px auto;
}
.newsletter-orb-canvas {
    width: 100%;
    height: 100%;
}
.success-modal-logo {
    height: 48px;
    width: auto;
    display: block;
}

/* --- Extracted Inline Styles (General/privacy.html/terms.html) --- */
.text-link-accent {
    color: var(--accent-color);
}

/* --- Promotional Banner & Bundle Alert --- */
.bundle-promo-banner {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    color: var(--bg-color);
    text-align: center;
    padding: 15px 20px;
    font-family: var(--font-body);
    font-size: 16px;
    border-radius: 8px;
    margin-bottom: 30px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: gradientShift 5s ease infinite alternate;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.bundle-promo-banner strong {
    font-weight: 800;
}

body.light-theme .bundle-promo-banner {
    color: white; 
}

.bundle-alert-container {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.bundle-alert-15 {
    background: rgba(0, 174, 239, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.bundle-alert-20 {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
}

body.light-theme .bundle-alert-15 {
    background: rgba(255, 75, 43, 0.1);
}

body.light-theme .bundle-alert-20 {
    background: rgba(255, 140, 0, 0.1);
}
/* Fun Holiday Specific Styling */
.holiday-event-v2 {
    background: #FF69B4 !important; /* Hot Pink */
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2);
}

.event-bar-v2.no-itin .event-add-plus {
    display: none !important;
}

/* --- Registration Portal Specific Styles --- */
.registration-card {
    border: 1px solid var(--accent-color);
    background: rgba(0, 174, 239, 0.05);
}

.registration-card .biz-name {
    color: var(--accent-secondary) !important;
}

/* Premium Register Button (applied globally via .register-btn) */
.register-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, #e6b800 100%) !important;
    color: #000 !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-family: var(--font-display) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-decoration: none !important;
    opacity: 1 !important;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1) !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
    white-space: nowrap;
    margin: 0 !important;
}

.register-btn:hover {
    background: linear-gradient(135deg, #fff 0%, var(--accent-secondary) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35) !important;
}

.registration-card .biz-link-v2 {
    /* Overrides handled by .register-btn above */
}

body.light-theme .registration-card {
    background: rgba(255, 75, 43, 0.05);
    border-color: var(--accent-color);
}

body.light-theme .registration-card .biz-name {
    color: var(--accent-color) !important;
}

body.light-theme .register-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c62828 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(221, 58, 31, 0.2);
}

body.light-theme .register-btn:hover {
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%) !important;
    color: #000 !important;
    box-shadow: 0 6px 20px rgba(221, 58, 31, 0.4) !important;
}



#modal-dir-subcat { display: none; }


/* --- Calendar Ad Sizes (Handled dynamically) --- */

/* =============================================================================
   PWA INSTALL HUD
   ============================================================================= */
.pwa-hud {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 420px;
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 174, 239, 0.4);
    border-radius: 20px;
    z-index: 10001;
    padding: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: bottom 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-display);
    color: white;
}

.pwa-hud.visible {
    bottom: 25px;
}

.pwa-hud-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.pwa-hud-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border: 1px solid rgba(0, 174, 239, 0.3);
    color: var(--accent-color);
}

.pwa-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.pwa-icon img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.pwa-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pwa-text strong {
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.pwa-text span {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.4;
    font-family: var(--font-main);
    color: #e0e0e0;
}

.pwa-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3);
}

.pwa-btn:active {
    transform: scale(0.92);
}

@media (min-width: 1024px) {
    .pwa-hud {
        display: none !important;
    }
}

/* =============================================================================
   ABOUT US HUD / BLUEPRINT STYLES
   ============================================================================= */
.about-page-v2 {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(0, 174, 239, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 174, 239, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
}

.about-hero-v2 {
    padding: 240px 5vw 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero-v2::before {
    content: "COORD: 45.6721° N, 118.7886° W";
    position: absolute;
    top: 150px;
    left: 5vw;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0.3;
    color: var(--accent-color);
}

.about-hero-v2 .headline-large {
    font-size: clamp(3.5rem, 8vw, 9rem);
    line-height: 0.85;
    margin-bottom: 30px;
    font-weight: 700;
}

.about-content-v2 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5vw 120px;
    position: relative;
    z-index: 10;
}

.about-section-v2 {
    margin-bottom: 120px;
}

.blueprint-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 60px;
    position: relative;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.blueprint-card::after {
    content: "";
    position: absolute;
    top: -1px; left: 50px; right: 50px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.blueprint-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.blueprint-id {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 6px 12px;
    border-radius: 4px;
    opacity: 0.7;
}

.blueprint-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 2px;
    margin: 0;
}

.blueprint-body p {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 30px;
    max-width: 800px;
}

.blueprint-body p strong {
    color: var(--accent-color);
}

.values-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

@media (max-width: 991px) {
    .values-grid-v2 {
        grid-template-columns: 1fr;
    }
    .blueprint-card {
        padding: 40px 30px;
    }
}

.value-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s ease;
}

.value-item:hover {
    background: rgba(0, 174, 239, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.value-icon-v2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    display: block;
}

.value-item h3 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--accent-secondary);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.value-item p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.6;
}

.mission-statement {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4vw, 3rem);
    line-height: 1.1;
    color: #fff;
    margin-top: 40px;
}

.about-cta-v2 {
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0, 174, 239, 0.1));
    padding: 120px 5vw;
    border-radius: 60px 60px 0 0;
}

.cta-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
}


/* ==========================================================================
   Fisk: B2B Conversion Elements — Subtle Strategic Placements
   ========================================================================== */

/* --- Hero Sub-Text Micro-CTA (index + calendar) --- */
.fisk-hero-cta {
    position: absolute;
    bottom: 110px;
    right: 5vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    z-index: 5;
    opacity: 0;
    animation: fisk-fade-in 1.5s ease 3s forwards;
}

.fisk-hero-cta span {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.05em;
    opacity: 0.4;
    color: var(--text-color);
}

.fisk-hero-cta a {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.fisk-hero-cta a:hover {
    opacity: 1;
    border-bottom-color: var(--accent-color);
    transform: translateX(-3px);
}

@keyframes fisk-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- B2B Contextual Hook (below Event Actions) --- */
.fisk-b2b-hook {
    text-align: center;
    margin-top: 40px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    opacity: 0.65;
    transition: all 0.4s ease;
}

.fisk-b2b-hook:hover {
    opacity: 1;
    border-color: var(--accent-color);
    background: rgba(0, 174, 239, 0.03);
}

.fisk-b2b-hook p {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    color: var(--text-color);
}

.fisk-b2b-hook p strong {
    color: var(--accent-secondary);
    font-weight: 700;
}

.fisk-b2b-hook a {
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.fisk-b2b-hook a:hover {
    text-decoration: underline;
}

/* --- Ghost Card Enhancements (Featured sidebar) --- */
.fisk-ghost-card {
    min-height: 180px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.fisk-ghost-card:hover {
    border-color: var(--accent-color) !important;
    background: rgba(0, 174, 239, 0.06) !important;
    transform: translateY(-5px) scale(1.01);
}

.fisk-ghost-desc {
    font-family: var(--font-body);
    font-size: 12px;
    opacity: 0.5;
    line-height: 1.5;
    max-width: 200px;
    color: var(--text-color);
}

/* --- Calendar Action Bar --- */
.fisk-cal-action-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 5vw 0;
    flex-wrap: wrap;
}

.fisk-cal-action-bar .v2-action-btn {
    padding: 15px 30px;
    font-size: 10px;
}

/* --- Mid-Grid B2B Breakout (Calendar) --- */
.fisk-mid-breakout {
    padding: 30px 20px;
    text-align: center;
    margin: 20px 0;
}

.fisk-breakout-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 0 auto;
    max-width: 600px;
}

.fisk-breakout-text {
    font-family: var(--font-body);
    font-size: 13px;
    opacity: 0.55;
    line-height: 1.8;
    padding: 15px 0;
    color: var(--text-color);
    transition: opacity 0.3s ease;
}

.fisk-mid-breakout:hover .fisk-breakout-text {
    opacity: 0.85;
}

.fisk-breakout-link {
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.fisk-breakout-link:hover {
    border-bottom-color: var(--accent-color);
}

/* --- Empty State (Calendar search no results) --- */
.fisk-empty-state {
    text-align: center;
    padding: 60px 30px;
    opacity: 0.6;
}

.fisk-empty-state p {
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.fisk-empty-state a {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-color);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.fisk-empty-state a:hover {
    border-bottom-style: solid;
    opacity: 1;
}

/* Submit Event button theming (Quick Action Grid) */
#btn-submit-event {
    background: rgba(0, 174, 239, 0.15);
    border-color: rgba(0, 174, 239, 0.4);
    border-style: dashed;
}

#btn-submit-event:hover {
    background: rgba(0, 174, 239, 0.3);
    border-style: solid;
}

/* --- Fisk Mobile Responsiveness --- */
@media (max-width: 768px) {
    .fisk-hero-cta {
        position: relative;
        bottom: auto;
        right: auto;
        align-items: center;
        text-align: center;
        margin-top: 30px;
    }

    .fisk-cal-action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 20px 5vw 0;
    }

    .fisk-cal-action-bar .v2-action-btn {
        text-align: center;
        width: 100%;
    }

    .fisk-b2b-hook {
        margin: 30px 5vw 0;
    }

    .fisk-mid-breakout {
        padding: 20px 15px;
    }

    #fisk-ledger-column {
        margin-top: 0 !important;
    }
}
