/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Colors */
    --neon-blue: #00f3ff;
    --electric-purple: #b500ff;
    --neon-red: #ff3333;
    --dark-bg: #050508;
    --darker-bg: #020204;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, var(--neon-blue), var(--electric-purple));
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Utilities */
    --section-padding: 100px 0;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography Headings */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title span {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* ==========================================================================
   Background Particles
   ========================================================================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   Glassmorphism Cards
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 20px;
}

/* Animated Gradient Borders (Premium Esports Feel) */
.premium-border {
    position: relative;
    border: none !important;
}

.premium-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--electric-purple), var(--neon-blue));
    background-size: 400%;
    z-index: -1;
    border-radius: 14px;
    animation: gradientShift 5s ease infinite;
}

.premium-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-bg);
    z-index: -1;
    border-radius: 12px;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    outline: none;
    text-align: center;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 0 15px rgba(181, 0, 255, 0.4);
}

.glow-btn:hover {
    box-shadow: 0 0 25px var(--neon-blue), 0 0 45px var(--electric-purple) !important;
    transform: translateY(-3px) scale(1.02);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
}

.btn-secondary:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--neon-blue);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--electric-purple);
    color: var(--electric-purple);
    box-shadow: 0 0 20px rgba(181, 0, 255, 0.4);
}

/* Pulse Hover Effect */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 243, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 243, 255, 0);
    }
}

.pulse-glow-btn {
    animation: pulse-glow 2s infinite;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.logo span {
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
}

.site-logo {
    height: 110px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.site-logo:hover {
    filter: drop-shadow(0 0 10px var(--neon-red));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    color: var(--text-muted);
}

.nav-links li a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-blue);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
    box-shadow: 0 0 10px var(--neon-blue);
}

.nav-links li a.active {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: var(--transition);
}

.text-warning {
    color: #ffaa00 !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.05) 0%, transparent 50%);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--electric-purple);
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(181, 0, 255, 0.5);
}

.glitch {
    font-size: 5rem;
    font-weight: 900;
    position: relative;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.8), 0 0 40px rgba(181, 0, 255, 0.6);
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: var(--text-muted);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
        color: var(--neon-blue);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* ==========================================================================
   Counters Section (Bonus)
   ========================================================================== */
.counters-section {
    padding: 2rem 0;
    background: linear-gradient(to right, transparent, rgba(181, 0, 255, 0.05), rgba(0, 243, 255, 0.05), transparent);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.counter-box {
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.counter-box:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.counter-box i {
    font-size: 2.5rem;
    color: var(--electric-purple);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(181, 0, 255, 0.5);
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.counter-label {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg));
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text .highlight {
    font-size: 1.4rem;
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.stats-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stats-list li {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.stats-list li i {
    font-size: 2rem;
    color: var(--electric-purple);
    margin-bottom: 0.5rem;
}

.stats-list li:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    transform: translateY(-3px);
}

/* ==========================================================================
   Streams Section & LIVE Badge
   ========================================================================== */
.streams {
    background-color: var(--darker-bg);
}

/* Live Stream Banner */
.live-banner {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid var(--neon-red);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.2);
    position: relative;
    overflow: hidden;
}

.live-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-red);
    box-shadow: 0 0 15px var(--neon-red);
}

.live-header {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.live-badge {
    background: var(--neon-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    animation: livePulse 1.5s infinite;
    display: flex;
    align-items: center;
    gap: 5px;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 51, 51, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0);
    }
}

.offline-banner {
    text-align: center;
    padding: 20px;
    border: 1px dashed var(--text-muted);
    border-radius: 8px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.yt-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.yt-catalog-grid .video-container {
    max-width: 100%;
    padding: 1rem;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 8px;
    overflow: hidden;
}

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

.mt-4 {
    margin-top: 2rem;
}

.center-btn {
    text-align: center;
}

/* ==========================================================================
   Tournaments Section
   ========================================================================== */
.tournaments {
    position: relative;
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.tourney-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.tourney-card:hover {
    border-color: var(--electric-purple);
    box-shadow: 0 10px 30px rgba(181, 0, 255, 0.15);
    transform: translateY(-5px);
}

.tourney-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-Open {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

.status-Closed {
    background: rgba(255, 51, 51, 0.1);
    color: var(--neon-red);
    border: 1px solid var(--neon-red);
}

.status-Ongoing {
    background: rgba(181, 0, 255, 0.1);
    color: var(--electric-purple);
    border: 1px solid var(--electric-purple);
}

.status-Completed {
    background: rgba(160, 160, 160, 0.1);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.tourney-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    padding-right: 60px;
    color: #fff;
}

.tourney-game {
    color: var(--neon-blue);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tourney-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tourney-meta i {
    margin-right: 5px;
    color: var(--electric-purple);
}

.tourney-desc {
    flex-grow: 1;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.no-tourneys {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   Community Section
   ========================================================================== */
.community {
    background: linear-gradient(to top, var(--dark-bg), var(--darker-bg));
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.social-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.animated-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: var(--transition);
    pointer-events: none;
}

.social-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    color: var(--text-muted);
}

.social-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #fff;
    transition: var(--transition);
}

.social-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hover Effects */
.social-card.youtube:hover .animated-border {
    border-color: #FF0000;
    box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.2);
}

.social-card.youtube:hover i {
    color: #FF0000;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
}

.social-card.instagram:hover .animated-border {
    border-color: #E1306C;
    box-shadow: inset 0 0 20px rgba(225, 48, 108, 0.2);
}

.social-card.instagram:hover i {
    color: #E1306C;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(225, 48, 108, 0.6));
}

.social-card.facebook:hover .animated-border {
    border-color: #1877F2;
    box-shadow: inset 0 0 20px rgba(24, 119, 242, 0.2);
}

.social-card.facebook:hover i {
    color: #1877F2;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(24, 119, 242, 0.6));
}

.social-card.discord:hover .animated-border {
    border-color: #5865F2;
    box-shadow: inset 0 0 20px rgba(88, 101, 242, 0.2);
}

.social-card.discord:hover i {
    color: #5865F2;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.6));
}

.social-card.tiktok:hover .animated-border {
    border-color: #ff0050;
    box-shadow: inset 0 0 20px rgba(255, 0, 80, 0.2);
}

.social-card.tiktok:hover i {
    color: #ff0050;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 0, 80, 0.6));
}

.social-card.email:hover .animated-border {
    border-color: var(--neon-blue);
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.2);
}

.social-card.email:hover i {
    color: var(--neon-blue);
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.6));
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    padding: 2.5rem;
}

.contact-info h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--electric-purple);
    font-size: 1.5rem;
}

.info-item a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

.contact-form-container {
    padding: 2.5rem;
}

/* Forms Structure */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.half {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

label span {
    color: var(--neon-red);
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

select option {
    background: var(--darker-bg);
    color: #fff;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
    display: none;
}

.form-status.success {
    display: block;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    padding: 10px;
    border-radius: 4px;
    opacity: 1;
}

.form-status.error {
    display: block;
    color: #ff3333;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid #ff3333;
    padding: 10px;
    border-radius: 4px;
    opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--darker-bg);
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
}

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

.site-logo-footer {
    height: 70px;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.site-logo-footer:hover {
    filter: drop-shadow(0 0 15px var(--neon-red));
    transform: scale(1.05);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
}

.footer-socials a:hover {
    color: var(--electric-purple);
    transform: translateY(-3px);
}

.admin-trigger {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.admin-trigger:hover {
    color: var(--neon-blue);
}


/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--brand-gradient);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Modals & Admin Panel
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background: var(--dark-bg);
    margin: auto;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--glass-border);
}

.close-modal {
    color: var(--text-muted);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--neon-red);
}

.modal-content h2 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

/* ADMIN PANEL STYLES */
.admin-panel {
    max-width: 900px !important;
    background: var(--darker-bg);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
}

.admin-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    margin: 0;
    color: var(--neon-blue);
    font-size: 1.5rem;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: var(--neon-blue);
    border-bottom: 2px solid var(--neon-blue);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--glass-border);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.toggle-switch-wrapper {
    display: flex;
    align-items: center;
}

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    margin-right: 5px;
}

.live-dot.active {
    background: var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
}

/* Admin Lists & Tables */
.admin-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-list-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-list-actions button {
    padding: 5px 10px;
    margin-left: 5px;
    font-size: 0.8rem;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    background: rgba(0, 0, 0, 0.5);
    color: var(--neon-blue);
    font-weight: 600;
}


/* ==========================================================================
   Scroll Animations 
   ========================================================================== */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.show-element {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero .glitch {
        font-size: 4rem;
    }

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

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-dropdown img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--primary-accent);
    transition: var(--transition);
}

.user-dropdown:hover img {
    box-shadow: 0 0 10px var(--primary-accent);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: rgba(15, 12, 18, 0.95);
    backdrop-filter: blur(10px);
    width: 151px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    z-index: 1000;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content span {
    display: block;
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-align: center;
}

.dropdown-content hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

.dropdown-content a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    display: block;
    padding: 5px;
    text-align: center;
    border-radius: 4px;
}

.dropdown-content a:hover {
    color: #fff;
    background: rgba(58, 134, 255, 0.2);
}

/* Auth UI Extras */
.divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    position: relative;
    background: #1a1a2e;
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.btn-google {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-google img {
    margin-right: 10px;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-table img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}

/* Custom glowing badge animation */
@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(5, 5, 8, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }

    .hero .glitch {
        font-size: 3rem;
    }

    .counters-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .admin-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-list-actions {
        align-self: flex-end;
    }
}

/* ==========================================================================
   Woxo YouTube Social Feed Integration
   ========================================================================== */
[data-mc-src] {
    width: 100%;
    margin-top: 2rem;
    min-height: 400px;
}

/* Woxo Base Overrides (targeting common mc/woxo classes) */
.mc-post-container,
.mc-card {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 12px !important;
    box-shadow: var(--neon-glow) !important;
    transition: all 0.3s ease !important;
}

.mc-post-container:hover {
    border-color: var(--neon-blue) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4) !important;
    pointer-events: auto !important;
    /* Ensure children remain clickable */
}

.mc-post-title,
.mc-author-name {
    color: #fff !important;
    font-family: var(--font-heading) !important;
}

.mc-post-text {
    color: var(--text-muted) !important;
}

/* Hide Woxo branding if possible via generic selector */
[class*="woxo-branding"],
[class*="mc-powered-by"] {
    display: none !important;
}

@media (max-width: 768px) {

    /* Target the actual WOXO container using more specific selectors */
    [data-mc-src],
    [data-mc-cmp-id],
    .woxo-container {
        margin-top: 1rem;
        min-height: 600px !important;
        height: auto !important;
    }

    /* Force height on internal WOXO elements */
    [data-mc-src] iframe,
    [data-mc-src]>div,
    [data-mc-cmp-id] iframe,
    [data-mc-cmp-id]>div,
    .woxo-container iframe {
        height: 600px !important;
    }

    /* Force single column layout if possible via generic class matching */
    [class*="woxo-grid"],
    [class*="mc-grid"],
    .mc-post-container {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
}

/* Match Latest Content to Website Aesthetic (SociableKit) */
.latest-content-wrapper {
    background: rgba(20, 20, 25, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    margin-top: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-content-wrapper:hover {
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.2);
    transform: translateY(-5px);
}

/* Ensure SociableKit fits container naturally without breaking thumbnail colors */
.latest-content-wrapper .sk-ww-youtube-playlist-videos,
.latest-content-wrapper iframe {
    border-radius: 15px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.latest-content-wrapper:hover .sk-ww-youtube-playlist-videos,
.latest-content-wrapper:hover iframe {
    opacity: 1;
}

/* Ensure the widget is visible and properly sized */
[data-mc-src] {
    background: transparent !important;
}

/* Removed SociableKit branding hiding to prevent anti-tamper loading blocks */
[id^="embedvidio"]+a,
[id^="embedvidio"] a,
a[href*="embedvid.io"],
a[href*="embedvidio"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   Yunite Side Badge
   ========================================================================== */
.yunite-side-badge {
    position: absolute;
    right: -95px;
    /* Overlap slightly for integration */
    top: 55%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.9), rgba(181, 0, 255, 0.9));
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 25px 25px 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
}

.yunite-side-badge:hover {
    right: -105px;
    box-shadow: 0 0 30px var(--neon-blue);
    background: linear-gradient(135deg, var(--neon-blue), var(--electric-purple));
}

.yunite-badge-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.yunite-badge-inner i {
    font-size: 1rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Ensure tourney card doesn" \t clip the badge if overflow is set */
.tourney-card {
    overflow: visible !important;
}

/* Responsiveness for Side Badge */
@media (max-width: 1400px) {
    .yunite-side-badge {
        right: -10px;
        opacity: 0.9;
    }

    .yunite-side-badge:hover {
        right: 0;
    }
}

@media (max-width: 768px) {
    .yunite-side-badge {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        writing-mode: horizontal-tb;
        text-orientation: initial;
        border-radius: 8px;
        margin-top: 15px;
        padding: 10px;
        width: 100%;
        border-left: 1px solid var(--glass-border);
    }

    .yunite-side-badge:hover {
        transform: translateY(-3px);
        right: auto;
    }

    .yunite-badge-inner {
        flex-direction: row;
        justify-content: center;
    }
}

/* Extreme Mobile Overrides */
@media (max-width: 768px) {
  #yt-video-container { padding: 10px !important; margin: 0 10px !important; }
  #yt-video-container iframe { border-radius: 4px; }
  .hero-buttons { flex-direction: column; width: 90%; margin: 0 auto; gap: 10px; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .glass-card { padding: 1rem !important; }
  .counters-grid { grid-template-columns: 1fr !important; }
  .hero .glitch { font-size: 2.5rem !important; }
  .section-title { font-size: 2rem !important; }
}


@media (max-width: 768px) {
  .site-logo { height: 60px !important; }
  .navbar { padding: 10px 5% !important; }
  .nav-container { justify-content: space-between; }
}


body, html { max-width: 100vw; overflow-x: hidden; }

