@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Help browsers render native widgets dark by default */
    color-scheme: dark;

    /* Colors */
    --bg-dark: #050505;
    --bg-card: rgba(0, 0, 0, 0.55);
    --bg-card-hover: rgba(0, 0, 0, 0.65);
    --primary: #F36C21;
    /* Bright Orange */
    --primary-glow: rgba(243, 108, 33, 0.5);
    --secondary: #B13A14;
    /* Dark Burnt Orange */
    --secondary-glow: rgba(177, 58, 20, 0.5);
    --accent: #ec4899;
    /* Pink */
    --text-main: #ffffff;
    --text-muted: #c8c8c8;
    --border: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Animation */
    --transition: all 0.3s ease;

    /* Footer */
    --footer-bg: rgba(0, 0, 0, 0.5);
    --footer-border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    /* Force Safari to respect light mode */
    color-scheme: light;

    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --text-main: #1e293b;
    --text-muted: #374151;
    --border: rgba(0, 0, 0, 0.1);
    --footer-bg: rgba(0, 0, 0, 0.05);
    --footer-border: rgba(0, 0, 0, 0.1);
    /* Keep primary/secondary similar but maybe slightly adjusted if needed,
       but for now keeping brand colors same creates good continuity */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport height for modern browsers/mobile */
    position: relative;
    -webkit-text-size-adjust: 100%;
    /* Prevent font size changes on orientation change */
}

/* Background & Hero Photo */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    /* Responsive height for Safari/Mobile */
    z-index: -1;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%),
        url('../logo/hero.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    pointer-events: none;
    /* Removed brightness filter to restore sunlight effect */
}

/* Hero Home Specific Visibility Fixes */
.hero-home,
.hero-home h1,
.hero-home h3,
.hero-home p {
    color: #ffffff !important;
    /* Force white for readability against dark photo */
}

@media (max-width: 768px) {
    .hero-home h1 {
        font-size: 1.8rem !important;
        /* Smaller title on mobile */
        line-height: 1.1;
    }

    .hero-home p {
        font-size: 0.9rem !important;
        /* Smaller desc on mobile */
        margin-bottom: 1.2rem !important;
    }

    .hero-home {
        padding-top: 40vh !important;
        /* Adjust padding for mobile to suit smaller text and handlebars */
        padding-bottom: 5vh !important;
    }
}

.hero-home .text-gradient {
    /* Ensure gradient text is still visible but bright */
    background: linear-gradient(135deg, var(--primary), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Force "Explore Events" outline button to be visible */
.hero-home .btn-outline {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.hero-home .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff !important;
}

/* Home Page Section Visibility Over Dark Photo */
.home-page .section-title,
.home-page .section-header h2,
.home-page h2.section-title {
    color: #ffffff !important;
}

.home-page .section-desc {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Home Page Footer Visibility */
.home-page .site-footer,
.home-page .site-footer h3,
.home-page .site-footer h4,
.home-page .site-footer p,
.home-page .site-footer li,
.home-page .site-footer a {
    color: #ffffff !important;
}

.home-page .site-footer a:hover {
    color: var(--primary) !important;
}

.home-page .site-footer {
    background: rgba(0, 0, 0, 0.8) !important;
    /* Darker footer for better contrast */
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Home Page Navbar Visibility on dark background */
.home-page .navbar:not(.scrolled) .nav-link,
.home-page .navbar:not(.scrolled) .nav-logo {
    color: #ffffff !important;
}

.home-page .navbar:not(.scrolled) .mobile-nav-toggle span {
    background-color: #ffffff !important;
}

/* Light mode fixes for mobile nav */
/* Fix 1: X close button — white spans become invisible on white panel in light mode */
[data-theme="light"] .mobile-nav-toggle.active span {
    background-color: var(--text-main) !important;
}

/* Fix 2: Nav links inside open panel — force dark color so they're readable on white panel */
[data-theme="light"] .nav-links .nav-link {
    color: var(--text-main) !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* Glassmorphism Components */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    /* Prevent overflow of long words */
    overflow-wrap: break-word;
}

/* Safari-only fix: overflow:hidden causes card content to be cut off on iOS Safari */
@supports (-webkit-touch-callout: none) {
    .glass-card {
        overflow: visible;
    }
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(243, 108, 33, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Light mode: make cards clearly white with visible edges so text and boxes are readable */
[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(243, 108, 33, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(243, 108, 33, 0.5);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(243, 108, 33, 0.05);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Inputs */
.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-field {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    /* Lighter background in dark mode */
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
    color-scheme: dark;
    /* Force dark browser widgets */
}

[data-theme="light"] .input-field {
    color-scheme: light;
}

/* Ensure dropdown options are readable in all themes */
select option {
    background-color: #1a1a1a;
    color: #ffffff;
}

[data-theme="light"] select option {
    background-color: #ffffff;
    color: #1e293b;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.input-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    background: transparent;
}

.input-field:focus+.input-label,
.input-field:not(:placeholder-shown)+.input-label,
.input-group.has-value .input-label {
    transform: translateY(-2.2rem) scale(0.85);
    left: 0;
    color: var(--primary);
    opacity: 1;
}

/* Date Input Enhancements */
.date-input-container {
    position: relative;
    width: 100%;
}

.date-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
    background: transparent;
    border: none;
    font-size: 1.1rem;
}

.date-icon:hover {
    color: var(--primary);
}

.native-picker-overlay {
    position: absolute !important;
    right: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 20 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Force the native picker indicator to fill the overlay area */
.native-picker-overlay::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

/* Hide native date icon to use our own */
.input-field::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 3rem;
    height: 100%;
    cursor: pointer;
}

/* Navigation */
.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: var(--transition);
    padding: 0 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--bg-dark);
    /* Fallback or base */
    background: color-mix(in srgb, var(--bg-dark), transparent 10%);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    margin-right: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.role-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Membership Card */
.membership-card {
    position: relative;
    padding: 3rem 2rem;
    text-align: center;
}

.membership-card.featured {
    background: linear-gradient(180deg, var(--bg-card-hover), var(--bg-card));
    border-color: var(--primary);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--text-main);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.check-icon {
    color: var(--primary);
}

/* Wall / Community */
.wall-post {
    height: 100%;
}

.wall-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wall-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
}

.wall-meta h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.wall-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.wall-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.wall-image {
    width: 100%;
    height: 200px;
    background: #222;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    object-fit: cover;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1.5rem;
    }

    /* Hide the horizontal desktop links by default on mobile */
    /* Instead of display: none, we position it off-screen for animation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        /* Better for mobile Safari */
        background: var(--bg-dark);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        /* Safari support */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 100;
        border-left: 1px solid var(--border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    /* Hamburger Toggle Button Styling */
    .mobile-nav-toggle {
        display: block;
        cursor: pointer;
        z-index: 101;
        background: transparent;
        border: none;
        padding: 0.5rem;
    }

    .mobile-nav-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text-main);
        margin: 5px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    /* Transform hamburger to X when active */
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    h1 {
        font-size: 2.5rem;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    /* Card padding optimization for small screens */
    .glass-card {
        padding: 1.25rem;
    }

    /* Event card text truncation */
    .event-card p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        /* Standard property for future compatibility */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        max-height: 4.2em;
        /* 1.4 * 3 */
    }

    /* Global Table Responsiveness */
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }

    table {
        min-width: 600px;
        /* Force scroll on very small screens instead of squishing */
    }
}

/* Add desktop styling for the toggle to ensure it's hidden */
@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none !important;
    }
}

/* Event Card - Early Bird & Offer Styles */
.early-bird-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
    color: #22c55e;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(34, 197, 94, 0.3);
    margin-bottom: 0.75rem;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.price-discounted {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
}

.savings-tag {
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.countdown-timer i {
    color: var(--primary);
    font-size: 1rem;
}

.countdown-timer.ending-soon {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.countdown-timer.ending-soon i {
    color: #ef4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Floating Theme Toggle */
.theme-toggle-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Safari support */
    border: 2px solid var(--border);
    color: var(--text-main);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

/* Light mode specific styling for better visibility */
[data-theme="light"] .theme-toggle-fab {
    background: #ffffff;
    border: 3px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle-fab:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--bg-card-hover);
    color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .theme-toggle-fab:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-color: var(--primary);
}

/* Event Alert Popup */
.event-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 320px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    /* Safari support */
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--primary);
    cursor: pointer;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Site Footer */
.site-footer {
    padding: 4rem 0;
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    margin-top: 0;
    transition: var(--transition);
}

.event-popup.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.event-popup:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.2);
    border-color: var(--primary);
}

.event-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.event-popup-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.event-popup-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.event-popup-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.timer-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.event-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
    background: transparent;
    border: none;
    cursor: pointer;
}

.event-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ef4444;
}

@media (max-width: 768px) {
    .event-popup {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
        max-width: none;
    }
}

/* PWA Install Popup Modal */
.install-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.install-content {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.install-header {
    margin-bottom: 1.5rem;
}

.install-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 24px rgba(243, 108, 33, 0.3);
    animation: float 3s ease-in-out infinite;
}

.install-content h2 {
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-size: 1.75rem;
}

.install-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.install-content .btn {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    gap: 0.5rem;
}

.install-content .btn i {
    font-size: 1.1rem;
}

.install-content .btn-outline {
    background: transparent;
    border: 1px solid var(--border);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .install-content {
        padding: 2rem 1.5rem;
        border-radius: 1.25rem;
    }

    .install-icon {
        width: 70px;
        height: 70px;
    }

    .install-content h2 {
        font-size: 1.5rem;
    }

    .install-content p {
        font-size: 0.9rem;
    }
}

/* PWA Update Notification */
.update-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99998;
    display: none;
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.update-content {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(243, 108, 33, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    color: white;
}

.update-icon {
    font-size: 2rem;
    color: white;
    animation: bounce 2s infinite;
}

.update-text {
    flex: 1;
}

.update-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: white;
}

.update-text p {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.update-notification .btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
    font-weight: 600;
}

.update-notification .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .update-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .update-content {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .update-notification .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}