/* Custom CSS for KIDO Table Tennis */

:root {
    --primary: #111111;
    --primary-light: #1a1a1a;
    --secondary: #005baa;
    --accent: #e62020;
    --text-main: #f0f0f0;
    --text-muted: #999999;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* Utilities */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}
.text-accent { color: #ffffff; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; }
.mt-4 { margin-top: 2rem; }
.mt-2 { margin-top: 1rem; }
.dark-bg { background-color: var(--primary-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.btn-primary {
    background-color: var(--accent);
    color: white;
}
.btn-primary:hover {
    background-color: #c71616;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 32, 32, 0.2);
}
.btn-secondary {
    background-color: var(--secondary);
    color: white;
}
.btn-secondary:hover {
    background-color: #004685;
    transform: translateY(-2px);
}
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}
.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--primary);
}
.btn-full { width: 100%; text-align: center; display: block; margin-top: 20px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 14px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-sizing: border-box;
}
.logo { font-size: 1.6rem; font-weight: 900; letter-spacing: 1px; white-space: nowrap; }
.nav-links { display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.nav-links a { font-weight: 600; font-size: 0.88rem; white-space: nowrap; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.phone-link { font-weight: 600; color: var(--text-main); font-size: 0.88rem; white-space: nowrap; }
.phone-link:hover { color: var(--accent); text-decoration: none; }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}
.hero-bg-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    perspective: 1000px;
}
.hero-bg-image {
    position: absolute;
    top: -5%; left: -5%; width: 110%; height: 110%;
    background-image: url('../images/bg-3d.png');
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.3) 100%);
    z-index: 1;
}
.hero-content {
    width: 100%;
    z-index: 2;
    position: relative;
}
.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 15px; }

/* Sections Base */
.section { padding: 100px 0; }
.section-header { margin-bottom: 3rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* Tournaments */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.t-card {
    background: var(--primary-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}
.t-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.t-card p { color: var(--text-muted); margin-bottom: 25px; }
.link-arrow { color: var(--secondary); font-weight: 600; }
.link-arrow:hover { color: #fff; }
.t-card.highlight { border-color: var(--accent); }
.badge {
    position: absolute; top: -12px; right: 20px;
    background: var(--accent); color: white;
    padding: 4px 12px; font-size: 0.8rem; font-weight: bold; border-radius: 20px;
}

/* Club & Coaches */
.club-content {
    display: block; margin-top: 2rem; width: 100%;
}
.club-text { display: none; }
.image-masonry {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.image-masonry .img-box {
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
}
.image-masonry .img-box img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.image-masonry .img-box img:hover {
    transform: scale(1.04);
    filter: brightness(1.1);
}
.image-masonry .img-box:nth-child(1) { grid-column: auto; }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}
.price-card {
    background: var(--primary-light);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
}
.price-card h3,
.price-card h4 { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 15px; }
.price-card .price { font-size: 3.5rem; font-family: 'Outfit', sans-serif; font-weight: 900; color: #fff; margin-bottom: 20px;}
.price-card .price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-card ul { list-style: none; margin-bottom: 30px; text-align: left; }
.price-card ul li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); }

/* Footer */
.footer {
    background: #080a0f;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}
.footer-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 15px;
}
.footer-brand .logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}
.footer-brand .logo span {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer-hours {
    color: #ffdb3c;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.5;
}
.footer-hours span {
    color: #ccc;
    font-weight: 400;
}
.footer-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 18px;
    font-family: 'Outfit', sans-serif;
}
.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.92rem;
}
.footer-links-list a,
.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s ease;
    text-decoration: none;
}
.footer-links-list a:hover,
.footer-links a:hover {
    color: #fff;
}
.footer-contact p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 10px;
    line-height: 1.5;
}
.footer-contact a {
    color: inherit;
    transition: color 0.2s ease;
}
.footer-contact a:hover {
    color: #fff;
}
.footer-social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}
.social-btn:hover {
    transform: translateY(-2px);
}
.social-ig {
    background: rgba(225, 48, 108, 0.14);
    border: 1px solid rgba(225, 48, 108, 0.35);
    color: #fff;
}
.social-ig:hover {
    background: rgba(225, 48, 108, 0.25);
    border-color: rgba(225, 48, 108, 0.6);
}
.social-fb {
    background: rgba(24, 119, 242, 0.12);
    border: 1px solid rgba(24, 119, 242, 0.3);
    color: #fff;
}
.social-yt {
    background: rgba(255, 0, 0, 0.12);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #fff;
}
.social-store {
    background: rgba(230, 32, 32, 0.12);
    border: 1px solid rgba(230, 32, 32, 0.3);
    color: #fff;
}
.social-tm {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-bottom a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.footer-bottom a:hover {
    color: #fff;
}

/* Animations initial state */
.animate-up { opacity: 1; transform: none; }
.gsap-reveal { opacity: 1; }
.gsap-card { opacity: 1; transform: none; }

/* Rankings / Leaderboard */
.leaderboard-wrapper {
    margin-top: 3rem;
    overflow-x: auto;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
}
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.leaderboard-table th {
    padding: 15px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    font-size: 0.85rem;
}
.leaderboard-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}
.leaderboard-table tbody tr:hover td {
    background: rgba(255,255,255,0.02);
}
.rank-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    color: #111;
}
.rank-badge.gold { background: linear-gradient(135deg, #ffd700, #ffb300); }
.rank-badge.silver { background: linear-gradient(135deg, #e0e0e0, #9e9e9e); }
.rank-badge.bronze { background: linear-gradient(135deg, #cd7f32, #a0522d); }
.leaderboard-table .points {
    font-weight: 700;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
}
.streak {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}
.streak.win { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.streak.loss { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

/* Location & Partners */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.map-wrapper iframe {
    border-radius: 12px;
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(85%);
    min-height: 350px;
}
.html5-banner {
    display: block;
    position: relative;
    background: linear-gradient(135deg, #111111, #005baa);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 350px;
    padding: 40px;
    overflow: hidden;
    color: white;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.html5-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 91, 170, 0.4);
    border-color: rgba(255,255,255,0.3);
}
.banner-badge {
    background: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}
.html5-banner h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.html5-banner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    max-width: 90%;
}
.banner-btn {
    display: inline-block;
    padding: 12px 25px;
    background: white;
    color: #005baa;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background 0.3s;
}
.html5-banner:hover .banner-btn {
    background: var(--text-main);
}
.banner-bg {
    position: absolute;
    right: -10%;
    bottom: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

/* Floating Chat Action Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent), #ff4d4d);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(230, 32, 32, 0.4);
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
}
.floating-chat-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 32, 32, 0.6);
}
.chat-icon {
    font-size: 1.4rem;
}

/* Mobile Menu Toggle Base */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Responsive */
@media(max-width: 1180px) {
    .hide-mobile { display: none; }
    .nav-links { display: none; }
    .phone-link { display: none; }
    .hero-section { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero-content { width: 100%; margin-bottom: 50px; }
    .hero-actions { justify-content: center; }
    .hero-asset { position: relative; width: 100%; transform: none; right: 0; height: 40vh; }
    .club-content { flex-direction: column; }
    .price-card.featured { transform: scale(1); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .location-grid { grid-template-columns: 1fr; }
    
    .floating-chat-btn {
        bottom: 20px;
        right: 20px;
        padding: 15px;
        border-radius: 50%;
    }
    .chat-text { display: none; }
    .mobile-menu-toggle { display: flex !important; }
}

@media(max-width: 768px) {
    .nav-actions .btn {
        display: none !important;
    }
    .navbar {
        padding: 12px 18px;
        height: 60px;
    }
    .mobile-menu-toggle {
        display: flex !important;
    }
}

@media(max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .hero-section {
        min-height: auto;
        padding-top: 95px;
        padding-bottom: 40px;
    }
    .hero-title {
        font-size: 2.1rem;
        line-height: 1.25;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 1.8rem;
    }
    .hero-phone {
        display: inline-block;
        white-space: nowrap;
        font-size: 0.95rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-actions .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 14px 20px;
    }
    .floating-chat-btn {
        bottom: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 8px 20px rgba(230, 32, 32, 0.5);
    }
    .footer {
        padding: 40px 0 25px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 25px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .footer-bottom div {
        justify-content: center;
    }
}

/* Mobile Drawer Styling */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #0f131d;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.95);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.drawer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: #8899a6;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 6px;
    transition: color 0.2s;
}

.drawer-close:hover {
    color: #fff;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.drawer-link {
    color: #cbd5e1;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s, transform 0.2s;
}

.drawer-link:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.drawer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 10px 0;
}

.drawer-btn {
    text-align: center;
    width: 100%;
}
/* Live Section: News & Events */
.live-section {
    background: linear-gradient(to bottom, var(--primary), #0d0d0d);
}
.live-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 2rem;
}
.news-item {
    background: rgba(255,255,255,0.02);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: transform 0.3s;
}
.news-item:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.04);
}
.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.news-item h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}
.news-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.live-calendar h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 5px;
}
.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.event-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: var(--primary-light);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    background: var(--secondary);
    color: white;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
}
.event-date .day {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
}
.event-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
}
.event-info h5 {
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: #fff;
}
.event-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.calendar-hint {
    margin-top: 20px;
    color: var(--text-muted);
    font-style: italic;
}

.loading {
    color: var(--text-muted);
    font-style: italic;
    padding: 20px 0;
}

@media(max-width: 900px) {
    .live-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Booking System Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal-content {
    background: #111;
    margin: 5vh auto;
    padding: 30px;
    border: 1px solid #333;
    width: 95%;
    max-width: 1550px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}
.close-modal:hover { color: white; }

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-top: 20px;
}

@media (max-width: 950px) {
    .booking-grid { grid-template-columns: 1fr; }
    .modal-content { margin: 2vh auto; padding: 20px; }
}

/* Hall Container & Map Styles moved to 17 Tables Layout section below */

/* Новая графическая схема резервации столов (из tables_reservations_scheme.png) */
.hall-map-scheme {
    background: #0d1217;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.9);
    margin-bottom: 25px;
    overflow: visible;
}

.hall-main-grid {
    display: grid;
    grid-template-columns: 230px 1fr 170px;
    grid-template-rows: auto auto;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Комнаты / Залы с белой окантовкой по границе фона */
.zala-box {
    border-radius: 16px;
    border: 2px solid #ffffff !important;
    position: relative;
    padding: 42px 14px 14px 14px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.12), 0 8px 30px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}

.room-title-badge {
    position: absolute;
    top: 10px;
    left: 14px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 3px 12px;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #ffdb3c;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Цветовые оттенки полов залов из схемы */
.zala-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
    background: linear-gradient(135deg, rgba(27, 45, 58, 0.65), rgba(16, 28, 38, 0.65));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.zala-1-top-row {
    display: flex;
    gap: 10px;
    justify-content: space-around;
    width: 100%;
}
.zala-1-bottom-row {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
}

.zala-2 {
    grid-column: 2;
    grid-row: 1;
    background: linear-gradient(135deg, rgba(48, 32, 36, 0.65), rgba(30, 20, 24, 0.65));
}

.zala-3 {
    grid-column: 2;
    grid-row: 2;
    background: linear-gradient(135deg, rgba(28, 44, 34, 0.65), rgba(18, 28, 22, 0.65));
}

.zala-right {
    grid-column: 3;
    grid-row: 1 / span 2;
    background: linear-gradient(135deg, rgba(24, 34, 44, 0.65), rgba(14, 22, 30, 0.65));
    padding: 14px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zala-tables-row {
    display: flex;
    gap: 8px;
    justify-content: space-around;
    width: 100%;
}

.right-tables-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-around;
    width: 100%;
    height: 100%;
}

.zala-tables-row {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
}

.right-tables-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
    width: 100%;
}

.table-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

/* Стилизация карточек столов */
.table-node {
    position: relative;
    background: linear-gradient(180deg, #1b3d4f 0%, #0e2430 100%);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
    user-select: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.7);
    box-sizing: border-box;
    flex-shrink: 0;
}

.table-node.vertical-table {
    width: 92px;
    height: 142px;
    aspect-ratio: 92 / 142;
}

.table-node.horizontal-table {
    width: 142px;
    height: 92px;
    aspect-ratio: 142 / 92;
    flex-direction: row;
    padding: 4px 6px;
}

.court-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 6px;
    overflow: hidden;
}

/* Сетка стола по центру */
.vertical-table .court-net {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
    transform: translateY(-50%);
}

.horizontal-table .court-net {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
    transform: translateX(-50%);
}

/* Бейджи статусов внутри стола */
.table-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.table-available .table-badge {
    background: rgba(16, 185, 129, 0.25);
    color: #00ff88;
    border: 1px solid #10b981;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.table-occupied .table-badge {
    background: rgba(245, 158, 11, 0.25);
    color: #ff9800;
    border: 1px solid #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.table-selected .table-badge {
    background: rgba(255, 215, 0, 0.35);
    color: #ffd700;
    border: 1px solid #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}

/* Избранный стол - ЖЕЛТЫЙ ЦВЕТ */
.table-selected {
    border: 2.5px solid #ffd700 !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8) !important;
    transform: scale(1.05);
}

/* Горен хоризонтален панел с контроли за резервация */
.booking-top-bar {
    background: linear-gradient(180deg, rgba(32, 38, 46, 0.95), rgba(18, 22, 28, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.booking-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.booking-input-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.booking-input-field {
    background: #14181d;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}
.booking-input-field:focus {
    border-color: var(--accent);
}
.booking-summary-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.88rem;
    color: #ccc;
}
.booking-summary-box strong {
    color: #00ff88;
}

/* Половины стола для отображения информации о бронировании и номера */
.vertical-table .table-top-half {
    height: 50%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    box-sizing: border-box;
    z-index: 2;
    overflow: hidden;
}

.vertical-table .table-bottom-half {
    height: 50%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.horizontal-table .table-top-half {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    box-sizing: border-box;
    z-index: 2;
    overflow: hidden;
}

.horizontal-table .table-bottom-half {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Занятый стол - СЕРЫЙ ЦВЕТ */
.table-occupied {
    background: linear-gradient(180deg, #3d434d 0%, #242930 100%) !important;
    border: 2px solid #5a6472 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    opacity: 0.95;
    cursor: not-allowed;
}

.table-occupied .table-badge {
    background: rgba(120, 130, 145, 0.3);
    color: #cbd5e1;
    border: 1px solid #64748b;
}

/* Информация о бронировании в верхней половине */
.occupied-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    line-height: 1.15;
}

.occ-name {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.occ-time {
    font-size: 0.62rem;
    font-weight: 700;
    color: #ffdb3c;
    margin-top: 1px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* Номер стола */
.table-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Подсказки времени */
.live-countdown, .live-until {
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.68rem;
    font-weight: bold;
    color: #ff4d4d;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 0;
    z-index: 3;
}

.res-tooltip {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #1c1c1c;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 9999;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* Booking Modal Layout */
.booking-main-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
}

@media (max-width: 950px) {
    .booking-main-layout { grid-template-columns: 1fr; }
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.any-table-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.any-table-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

.any-table-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Form Styles */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #ccc; font-size: 0.9rem; }
.form-input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 6px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}
.form-input:focus { border-color: var(--secondary); outline: none; }

.time-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* Booking Modal Layout & Legend (Added above, but ensuring consistency) */
.map-legend {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #888;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.available { background: #00ff41; box-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
.dot.occupied { background: #ff4d4d; box-shadow: 0 0 10px rgba(255, 77, 77, 0.5); }
.dot.selected { background: var(--secondary); box-shadow: 0 0 10px rgba(0, 191, 255, 0.5); }

/* Updated Summary */
.booking-summary {
    margin-top: 30px;
    padding: 25px;
    background: #0a0a0a;
    border-radius: 15px;
    border: 1px solid #222;
    border-left: 4px solid var(--secondary);
}

.booking-summary h4 {
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 1.1rem;
    font-family: 'Outfit';
}

.booking-summary p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #aaa;
}

.booking-summary p span {
    font-weight: 700;
    color: #fff;
}

.btn-full { width: 100%; padding: 15px; margin-top: 15px; }

/* Live Stream Section */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 800;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(230, 32, 32, 0.4);
    animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 32, 32, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(230, 32, 32, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230, 32, 32, 0); }
}

.streaming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.stream-card {
    background: var(--primary-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}
.stream-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
}
.video-wrapper iframe, .video-wrapper .placeholder-stream {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}
.placeholder-stream {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #111, #222);
    color: var(--text-muted);
}
.stream-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stream-info h3 { font-size: 1.2rem; margin: 0; }
.stream-status {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: #e62020;
    color: var(--accent);
    border-radius: 20px;
    border: 1px solid var(--accent);
}

@media (max-width: 768px) {
    .streaming-grid { grid-template-columns: 1fr; }
}

/* Coaches Grid (Diagonal Zigzag Full-Width Layout) */
.coaches-grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 45px;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}
.coach-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 290px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
/* Alternating Diagonal Layout */
.coach-card:nth-child(even) {
    flex-direction: row-reverse;
}
.coach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(230, 32, 32, 0.12);
    border-color: rgba(230, 32, 32, 0.35);
}
.coach-image-wrapper {
    flex: 0 0 340px;
    width: 340px;
    position: relative;
    overflow: hidden;
    background: #0c0c10;
}
.coach-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
    display: block;
}
.coach-card:hover .coach-image-wrapper img {
    transform: scale(1.04);
    filter: brightness(1.06);
}
/* Coach Placeholder / Stylized Visual */
.coach-avatar-placeholder {
    height: 100%;
    width: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(230, 32, 32, 0.15) 0%, rgba(12, 12, 16, 0.98) 75%);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.coach-avatar-icon {
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 14px rgba(230, 32, 32, 0.4));
    transition: transform 0.35s ease;
}
.coach-card:hover .coach-avatar-icon {
    transform: scale(1.1) rotate(5deg);
}
.coach-avatar-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(230, 32, 32, 0.3);
}
.coach-avatar-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.coach-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.coach-header {
    background: linear-gradient(135deg, rgba(230, 32, 32, 0.08), transparent);
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.coach-header h3,
.coach-header h4 {
    margin: 0 0 6px 0;
    font-size: 1.45rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
}
.coach-title {
    font-size: 0.92rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.coach-body {
    padding: 24px 30px;
    flex: 1;
}
.coach-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.coach-body ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    color: #ddd;
    font-size: 0.96rem;
    line-height: 1.6;
}
.coach-body ul li:last-child {
    margin-bottom: 0;
}
.coach-body ul li::before {
    content: '▪';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 1.1rem;
}
@media (max-width: 860px) {
    .coach-card,
    .coach-card:nth-child(even) {
        flex-direction: column !important;
    }
    .coach-image-wrapper {
        flex: none;
        width: 100%;
        height: 560px;
        aspect-ratio: 9 / 14;
        max-height: 82vh;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .coach-image-wrapper:has(.coach-avatar-placeholder) {
        height: auto;
        aspect-ratio: auto;
        max-height: none;
    }
    .coach-avatar-placeholder {
        min-height: 200px;
        height: 200px;
    }
    .coach-header {
        padding: 18px 20px;
    }
    .coach-body {
        padding: 18px 20px;
    }
}

/* ---------------------------------------------------- */
/* ИНТЕРАКТИВЕН КАЛЕНДАР И ПЛАВАЩИ ОПИСАНИЯ НА СЪБИТИЯ */
/* ---------------------------------------------------- */
.calendar-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.calendar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.cal-nav-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.cal-nav-btn:hover {
    background: var(--accent);
    color: #fff;
}
.cal-month-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    min-width: 110px;
    text-align: center;
}
.calendar-widget {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.cal-weekdays div {
    color: #ffffff;
}
.cal-weekdays div.weekend {
    color: #ff3b3b;
}
.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cal-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.cal-day-cell.weekend {
    color: #ff3b3b;
}
.cal-day-cell.other-month {
    color: #9e9e9e;
    background: transparent;
    cursor: default;
}
.cal-day-cell.other-month.weekend {
    color: #ff8585;
}
.cal-day-cell.today {
    border: 2px solid #ff3b3b;
    color: #ffffff;
}
.cal-day-cell.today.weekend {
    color: #ff3b3b;
}
.cal-day-cell.has-event {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.6);
    border: 1px solid #ff6b6b;
}
.cal-day-cell.has-event::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}
.cal-day-cell:hover:not(.other-month) {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Плаващо прозорец (Popover) описание на събития */
.event-floating-popover {
    position: fixed;
    z-index: 99999;
    width: 290px;
    background: #1c1c1c;
    border: 1px solid rgba(255, 77, 77, 0.5);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
    color: #fff;
    animation: popoverFadeIn 0.2s ease-out;
}
@keyframes popoverFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}
.popover-date-badge {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
}
.popover-close {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #aaa;
    line-height: 1;
}
.popover-close:hover { color: #fff; }
.popover-event-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.popover-event-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.popover-event-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}
.popover-event-desc {
    font-size: 0.82rem;
    color: #ccc;
    margin: 0 0 6px 0;
    line-height: 1.35;
}
.popover-event-time {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
}

/* Club Event Modal & Pulse Styling */
.club-event-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

.club-event-content {
    background: #14181f;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    margin: 5% auto;
    padding: 32px;
    width: 90%;
    max-width: 680px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    position: relative;
    color: #fff;
    animation: fadeIn 0.22s ease-out;
}

.event-modal-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.badge-pulse {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.badge-calendar {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.event-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.event-modal-date {
    font-size: 0.95rem;
    color: #8899a6;
    font-weight: 600;
    margin-bottom: 20px;
}

.event-modal-img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.event-modal-description {
    font-size: 1rem;
    line-height: 1.65;
    color: #e2e8f0;
    white-space: pre-line;
    margin-bottom: 25px;
}

.event-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.pulse-card-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.22s ease;
}

.pulse-card-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: #ff9800;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.pulse-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pulse-item-date {
    font-size: 0.78rem;
    color: #ff9800;
    font-weight: 800;
}

.pulse-item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px 0;
}

.pulse-item-summary {
    font-size: 0.88rem;
    color: #aaa;
    line-height: 1.45;
    margin-bottom: 10px;
}

.pulse-item-click-hint {
    font-size: 0.78rem;
    color: #00ff88;
    font-weight: 700;
    display: inline-block;
}

/* ==========================================================================
   Club Event Modal & Pulse Details Overlay Styling
   ========================================================================== */
.club-event-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.club-event-modal.active,
.club-event-modal[style*="display: block"],
.club-event-modal[style*="display: flex"] {
    display: flex !important;
}

.club-event-content {
    background: #141824;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 35px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 255, 136, 0.15);
    position: relative;
    color: #ffffff;
    animation: modalPopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.event-modal-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.badge-pulse {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.badge-calendar {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.event-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.event-modal-date {
    font-size: 0.95rem;
    color: #ffdb3c;
    font-weight: 700;
    margin-bottom: 20px;
}

.event-modal-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.event-modal-description {
    font-size: 1rem;
    line-height: 1.65;
    color: #d1d5db;
    margin-bottom: 25px;
    white-space: pre-wrap;
}

.event-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

