/* ========================================
   STYLE.CSS - Mafla Private Server
   Main Design System & Layout
======================================== */

/* ---- CSS Variables defined in palette.css ---- */

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page Transition Styles */
.fade-transition {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.fade-enter {
    opacity: 1;
}

.fade-leave {
    opacity: 0;
}

/* Slide Transition Styles */
.slide-transition {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.slide-enter {
    transform: translateY(0);
    opacity: 1;
}

.slide-leave {
    transform: translateY(20px);
    opacity: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
    /* Offset for fixed navbar */
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--neutral-dark);
    /* Add subtle animated-looking or static gradients to make it feel 'alive' */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(184, 138, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(184, 138, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(30, 30, 40, 0.5) 0%, transparent 100%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Utility Classes ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-glow {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(184, 138, 0, 0.5);
}

.glass-card {
    background: rgba(30, 30, 38, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glow-border {
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-darker);
    background: linear-gradient(135deg, var(--gold-base), var(--gold-highlight));
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 138, 0, 0.3);
}

.btn-glow {
    box-shadow: 0 0 15px var(--glow),
        0 0 30px rgba(184, 138, 0, 0.2);
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1.05rem;
}

/* ---- Section Layout ---- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   WELCOME POPUP OVERLAY
======================================== */
body.popup-active {
    overflow: hidden;
}

.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.welcome-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) brightness(0.3);
}

.welcome-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.welcome-popup {
    position: relative;
    z-index: 1;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 140, 0, 0.12);
    border-radius: var(--radius-lg);
    padding: 50px 48px;
    max-width: 620px;
    width: 90%;
    text-align: center;
    animation: popupEnter 0.7s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 140, 0, 0.05);
}

.welcome-overlay.hidden .welcome-popup {
    animation: popupExit 0.5s ease-in forwards;
}

.welcome-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 15px rgba(255, 140, 0, 0.4));
}

.welcome-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.welcome-desc {
    color: var(--subtext);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-ready {
    font-size: 0.9rem;
    color: var(--subtext);
    margin-bottom: 28px;
}

.welcome-btn {
    padding: 14px 48px;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .welcome-popup {
        padding: 36px 24px;
    }

    .welcome-title {
        font-size: 1.25rem;
    }

    .welcome-logo {
        width: 70px;
        height: 70px;
    }

    .welcome-desc {
        font-size: 0.88rem;
    }

    .welcome-btn {
        padding: 12px 36px;
        font-size: 0.9rem;
    }
}

/* ========================================
   NAVBAR - Professional Gaming Style
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    transition: all var(--transition);
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(184, 138, 0, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    z-index: 10;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    margin: 0 auto;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    padding: 12px 20px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
    margin: 0 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(184, 138, 0, 0.1);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(184, 138, 0, 0.15);
}

.nav-link.active::after {
    width: 100%;
}

/* Shop Nav Link - Consistent Style */
.nav-link-shop {
    color: var(--primary) !important;
    background: rgba(184, 138, 0, 0.15);
    font-weight: 600;
    border-radius: var(--radius);
}

.nav-link-shop::after {
    display: none;
}

.nav-link-shop:hover {
    background: rgba(184, 138, 0, 0.25);
    box-shadow: 0 0 15px rgba(184, 138, 0, 0.2);
}

.nav-link-shop.active {
    background: rgba(184, 138, 0, 0.3);
    box-shadow: 0 0 20px rgba(184, 138, 0, 0.3);
}

/* Sound Nav Link - Consistent Style */
.nav-link-sound {
    color: var(--primary) !important;
    background: rgba(184, 138, 0, 0.15);
    font-weight: 600;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    flex-shrink: 0;
}

.nav-link-sound:hover {
    background: rgba(184, 138, 0, 0.25);
    box-shadow: 0 0 15px rgba(184, 138, 0, 0.2);
}

.nav-link-sound.muted {
    color: #ff5555 !important;
    background: rgba(255, 60, 60, 0.15);
}

.nav-link-sound.muted:hover {
    background: rgba(255, 60, 60, 0.25);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: fixed;
    top: 18px;
    right: 20px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   FLOATING SOCIAL BUTTONS
======================================== */
.floating-socials {
    position: fixed;
    right: 24px;
    bottom: 30px;
    /* Moved from 50% to bottom */
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.floating-social-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.floating-social-btn.discord {
    background: #5865f2;
}

.floating-social-btn.discord:hover {
    background: #4752c4;
    transform: scale(1.1);
    box-shadow: 0 4px 25px rgba(88, 101, 242, 0.4);
}

.floating-social-btn.whatsapp {
    background: #25d366;
}

.floating-social-btn.whatsapp:hover {
    background: #1da851;
    transform: scale(1.1);
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.4);
}

/* ========================================
   1. HERO SECTION
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4);
    animation: bg-pan 60s linear infinite alternate, bg-pulse 8s ease-in-out infinite;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.05);
}

@keyframes bg-pan {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-10%, -10%) scale(1.1);
  }
}

@keyframes bg-pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.35;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(11, 11, 11, 0.2) 0%,
            rgba(11, 11, 11, 0.4) 50%,
            rgba(11, 11, 11, 0.95) 90%,
            rgba(11, 11, 11, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 220px;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 30px rgba(255, 140, 0, 0.3));
}

.hero-logo-large {
    width: 520px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 60px rgba(184, 138, 0, 0.7));
    animation: logo-pulse 4s ease-in-out infinite;
}

@keyframes logo-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 40px rgba(184, 138, 0, 0.5));
    }
    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 50px rgba(224, 184, 0, 0.7));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 40px rgba(184, 138, 0, 0.5));
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    color: var(--subtext);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

/* Outline button variant */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 2px solid rgba(255, 140, 0, 0.5);
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
    transform: translateY(-2px);
}

/* ---- Scroll Down Indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: var(--subtext);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 8px;
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrows i {
    font-size: 0.9rem;
    color: var(--primary);
    line-height: 1;
}

.scroll-arrows i:last-child {
    opacity: 0.5;
    margin-top: -4px;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

.particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-logo-large {
        width: 320px;
        max-height: 250px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-desc {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-buttons .btn,
    .hero-buttons .btn-outline {
        width: 100%;
        justify-content: center;
    }
}



.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4);
    animation: bg-pan 60s linear infinite alternate, bg-pulse 8s ease-in-out infinite;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.05);
}

@keyframes bg-pan {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-10%, -10%) scale(1.1);
  }
}

@keyframes bg-pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.35;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(11, 11, 11, 0.2) 0%,
            rgba(11, 11, 11, 0.4) 50%,
            rgba(11, 11, 11, 0.95) 90%,
            rgba(11, 11, 11, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 220px;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 30px rgba(255, 140, 0, 0.3));
}

.hero-logo-large {
    width: 520px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 60px rgba(184, 138, 0, 0.7));
    animation: logo-pulse 4s ease-in-out infinite;
}

@keyframes logo-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 40px rgba(184, 138, 0, 0.5));
    }
    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 50px rgba(224, 184, 0, 0.7));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 40px rgba(184, 138, 0, 0.5));
    }
}



.hero-desc {
    color: var(--subtext);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Outline button variant */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 2px solid rgba(255, 140, 0, 0.5);
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
    transform: translateY(-2px);
}

/* ---- Scroll Down Indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: var(--subtext);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 8px;
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrows i {
    font-size: 0.9rem;
    color: var(--primary);
    line-height: 1;
}

.scroll-arrows i:last-child {
    opacity: 0.5;
    margin-top: -4px;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

.particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* ========================================
   3. GUILD HALL / COMMUNITY
======================================== */
.about-community {
    background: var(--bg);
    position: relative;
    overflow: hidden;
    padding: 0;
    border-top: 2px solid transparent;
    background-clip: padding-box;
}

.about-community::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/background/background3.png') center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.3);
    z-index: 0;
}

.about-community::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(11, 11, 11, 0.95) 0%,
            rgba(11, 11, 11, 0.6) 15%,
            rgba(11, 11, 11, 0.6) 85%,
            rgba(11, 11, 11, 0.95) 100%);
    z-index: 1;
}

.about-anchor,
.community-anchor {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
    z-index: -1;
}

#about.about-anchor {
    top: 0;
}

#community.community-anchor {
    top: 50%;
}

.community-container {
    padding: 75px 14px 80px;
    position: relative;
    z-index: 2;
}

.community-container .container-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.community-header {
    text-align: center;
    margin-bottom: 40px;
}

.community-section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.highlight-underline {
    border-bottom: 4px solid var(--primary);
    padding-bottom: 4px;
}

.community-subtitle {
    color: var(--subtext);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.community-pill-links {
    display: flex;
    justify-content: center;
    margin: 0 auto 24px auto;
    width: fit-content;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    overflow: hidden;
    /* Ensure rounded corners clip children */
    padding: 4px;
    /* Small padding inside the pill container */
}

.community-pill {
    padding: 10px 24px;
    border-radius: 26px;
    /* Slightly smaller than container to fit inside padding */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: transparent;
    color: #dfdfdf;
    border: none;
    cursor: pointer;
}

.community-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Active states are managed via JS (discord-active, whatsapp-active, tiktok-active) */
.community-pill.discord-active {
    background: #5865f2;
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.community-pill.whatsapp-active {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.community-pill.tiktok-active {
    background: #fff;
    /* White background for TikTok tab to contrast dark icon/text */
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.community-widget {
    background: rgba(20, 20, 25, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 12px 24px;
    display: none;
    /* Hidden by default */
    grid-template-columns: 1.8fr 1fr;
    gap: 50px;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: fadeInWidget 0.4s ease-out forwards;
}

.community-widget.active {
    display: grid;
}

/* WhatsApp & TikTok: same card size as Discord, text fills full width */
.whatsapp-glass-card,
.tiktok-glass-card {
    min-height: 280px;
}

.whatsapp-glass-card .discord-card-left,
.tiktok-glass-card .discord-card-left {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


@keyframes fadeInWidget {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Discord Specifics (Overrides if needed, but inherits from .community-widget) */
.discord-glass-card {
    /* Kept for backwards compatibility if referenced elsewhere, but styles moved to .community-widget */
}

.discord-card-left {
    display: flex;
    flex-direction: column;
}

.discord-card-title {
    font-size: 1.6rem;
    /* Further reduced from 1.8rem */
    font-weight: 800;
    margin-bottom: 8px;
    /* Tighter spacing */
    line-height: 1.2;
}

.white-underline {
    border-bottom: 3px solid #fff;
    padding-bottom: 2px;
}

.discord-card-desc {
    color: #dfdfdf;
    font-size: 0.9rem;
    /* Further reduced from 0.95rem */
    line-height: 1.5;
    margin-bottom: 16px;
    /* Tighter spacing */
}

.btn-discord-blue {
    background: #5865f2;
    color: white;
    padding: 8px 22px;
    /* Even tighter padding */
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 16px;
    /* Reduced from 24px */
    transition: all 0.3s ease;
}

.btn-discord-blue:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.discord-card-footer {
    color: #999;
    font-size: 0.8rem;
    /* Reduced from 0.85rem */
    line-height: 1.4;
}

/* Discord Mockup Styling - Horizontal Layout */
.discord-mockup {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.d-mockup-header {
    background: #5865f2;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.d-logo {
    color: white;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.d-online {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

.d-mockup-body {
    background: #2b2d31;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: 120px 1fr;
    /* Split channels and users */
    gap: 20px;
}

.d-mockup-channels {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 15px;
}

.d-channel {
    color: #f2f3f5;
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.d-mockup-users {
    display: flex;
    flex-direction: column;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
    /* Room for scrollbar */
}

/* Custom Scrollbar for Discord Mockup Users */
.d-mockup-users::-webkit-scrollbar {
    width: 6px;
}

.d-mockup-users::-webkit-scrollbar-track {
    background: transparent;
}

.d-mockup-users::-webkit-scrollbar-thumb {
    background: #1a1b1e;
    border-radius: 4px;
}

.d-mockup-users::-webkit-scrollbar-thumb:hover {
    background: #4f545c;
}

.d-category {
    color: #949ba4;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.d-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.d-user:last-child {
    margin-bottom: 0;
}

.d-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: relative;
}

.d-name {
    color: #dbdee1;
    font-size: 0.9rem;
}

.d-mockup-footer {
    background: #232428;
    padding: 16px 24px;
    color: #80848e;
    font-size: 0.85rem;
}

/* ========================================
   WhatsApp Theme Overrides
======================================== */
.btn-whatsapp-green {
    background: #25D366;
    color: white;
    padding: 8px 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.btn-whatsapp-green:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-theme .d-mockup-header {
    background: #075E54;
    /* WhatsApp Dark Green */
}

.whatsapp-theme .d-mockup-body {
    background: #E5DDD5;
    /* WhatsApp Chat Background */
    color: #303030;
    grid-template-columns: 1fr;
    /* Single column for chat preview */
}

.whatsapp-theme .d-channel {
    color: #303030;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.whatsapp-theme .d-channel.active {
    background: #d9fdd3;
    /* WhatsApp outgoing message color */
    border: 1px solid #c6e8c0;
}

.whatsapp-theme .d-mockup-footer {
    background: #f0f2f5;
    color: #54656f;
    border-top: 1px solid #d1d7db;
}

/* ========================================
   TikTok Theme Overrides
======================================== */
.btn-tiktok-dark {
    background: #000000;
    color: white;
    padding: 8px 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-tiktok-dark:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4),
        -2px 0 10px rgba(0, 242, 254, 0.3),
        2px 0 10px rgba(254, 44, 85, 0.3);
}

.tiktok-theme .d-mockup-header {
    background: #000000;
    border-bottom: 1px solid #333;
}

.tiktok-theme .d-logo {
    text-shadow: 2px 2px 0 #fe2c55, -2px -2px 0 #00f2fe;
}

.tiktok-theme .d-mockup-body {
    background: #111;
    grid-template-columns: 1fr;
    padding: 0;
    /* Full bleed for video mockup */
}

.tiktok-theme .flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.tiktok-mock-video {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tiktok-mock-video .play-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.tiktok-mock-video:hover .play-icon {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0 0 15px rgba(254, 44, 85, 0.8);
}

.tiktok-theme .d-mockup-footer {
    background: #000;
    border-top: 1px solid #333;
}

@media (max-width: 768px) {
    .community-widget {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    
    .community-pill {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .discord-glass-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    
    .whatsapp-glass-card,
    .tiktok-glass-card {
        min-height: auto;
    }
    
    .whatsapp-glass-card .discord-card-left,
    .tiktok-glass-card .discord-card-left {
        grid-column: auto;
    }
}

.how-to-play::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/background/background2.png') center center / cover no-repeat;
    filter: brightness(0.3);
    z-index: 0;
}

.how-to-play::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(11, 11, 11, 0.6) 0%,
            rgba(11, 11, 11, 0.85) 100%);
    z-index: 1;
}

.how-to-play > .container {
    position: relative;
    z-index: 2;
}

.how-to-play .section-header {
    margin-top: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 8px;
}

.section-subtitle {
    color: var(--text);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.platform-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.platform-mini-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

i.platform-mini-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

i.platform-mini-icon.blue {
    color: #3b82f6;
}

i.platform-mini-icon.green {
    color: #10b981;
}

i.platform-mini-icon.red {
    color: #ef4444;
}

.platform-title {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0;
}

.platform-steps {
    list-style: decimal inside;
    color: var(--text);
    font-size: 0.95rem;
}

.platform-steps li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.platform-steps li::marker {
    color: var(--text);
    font-weight: normal;
}

.step-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.step-link:hover {
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.4);
}

.code-text {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.code-block {
    font-family: monospace;
    background: rgba(20, 20, 20, 0.8);
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 8px;
    margin-left: 18px;
    font-size: 0.85em;
    color: #ddd;
    border-left: 2px solid var(--primary);
}

/* ========================================
   3. FEATURES / WHY CHOOSE US
======================================== */
.features {
    background: var(--bg);
    overflow: hidden;
    /* Hide the scrolling overflow */
}

/* Container for the scrolling area */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    display: flex;
}

/* Fade edges for smooth entry/exit */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

/* The actual scrolling content track */
.marquee-content {
    display: flex;
    gap: 24px;
    /* Animation to move left continuously */
    animation: scrollMarquee 25s linear infinite;
    width: max-content;
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Translate left by half to start repeating exactly */
        transform: translateX(calc(-50% - 12px));
    }
}

.feature-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    width: 400px;
    /* Fixed width for the scroll cards */
    flex-shrink: 0;
    /* Prevent squishing */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 1.6rem;
    color: var(--primary);
}

.feature-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.feature-desc {
    color: #eeeeee;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.about-community {
    background: var(--bg);
    position: relative;
    overflow: hidden;
    padding: 0;
    border-top: 2px solid transparent;
    background-clip: padding-box;
}

.about-community::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/background/background3.png') center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.3);
    z-index: 0;
}

.about-community::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(11, 11, 11, 0.95) 0%,
            rgba(11, 11, 11, 0.6) 15%,
            rgba(11, 11, 11, 0.6) 85%,
            rgba(11, 11, 11, 0.95) 100%);
    z-index: 1;
}

.about-anchor,
.community-anchor {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
    z-index: -1;
}

#about.about-anchor {
    top: 0;
}

#community.community-anchor {
    top: 50%;
}

.about-container {
    background: var(--bg) !important;
    padding: 0 18px 55px;
    position: relative;
    z-index: 2;
    width: 100% !important;
    max-width: none !important;
}

/* Add an internal container to maintain the standard width */
.about-container .container-inner {
    max-width: 1400px;
    /* Increased from 1200px for a broader feel */
    margin: 0 auto;
}

/* Smooth fade transition at the bottom of About section */
.about-container::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.community-container {
    padding: 75px 14px 80px;
    position: relative;
    z-index: 2;
}

.community-container .container-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.merged-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.1), transparent);
    margin: 40px 0;
}

.about {
    background: transparent !important;
}

.about-grid {
    display: grid;
    grid-template-columns: 400px 1.8fr;
    /* Adjusted for wider description */
    gap: 60px;
    /* Increased gap for better framing */
    align-items: center;
}

.about-img-wrapper {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.flat-dark-card {
    background: rgba(20, 20, 25, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.about-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.about-card-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-main-title {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.about-subtitle {
    font-family: monospace;
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-mini-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

.about-welcome-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.about-text-content p {
    color: #dfdfdf;
    font-size: 0.80rem;
    /* Reduced from 0.92rem for a cleaner look */
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   5. SERVER COMMUNITY
======================================== */
.community {
    background: transparent !important;
}

.community-header {
    text-align: center;
    margin-bottom: 40px;
}

.community-section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.highlight-underline {
    border-bottom: 4px solid var(--primary);
    padding-bottom: 4px;
}

.community-subtitle {
    color: var(--subtext);
    font-size: 1.05rem;
}

.community-pill-links {
    display: flex;
    justify-content: center;
    margin: 0 auto 24px auto;
    width: fit-content;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    overflow: hidden;
    /* Ensure rounded corners clip children */
    padding: 4px;
    /* Small padding inside the pill container */
}

.community-pill {
    padding: 10px 24px;
    border-radius: 26px;
    /* Slightly smaller than container to fit inside padding */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: transparent;
    color: #dfdfdf;
    border: none;
    cursor: pointer;
}

.community-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Active states are managed via JS (discord-active, whatsapp-active, tiktok-active) */
.community-pill.discord-active {
    background: #5865f2;
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.community-pill.whatsapp-active {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.community-pill.tiktok-active {
    background: #fff;
    /* White background for TikTok tab to contrast dark icon/text */
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.community-widget {
    background: rgba(20, 20, 25, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 12px 24px;
    display: none;
    /* Hidden by default */
    grid-template-columns: 1.8fr 1fr;
    gap: 50px;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: fadeInWidget 0.4s ease-out forwards;
}

.community-widget.active {
    display: grid;
}

/* WhatsApp & TikTok: same card size as Discord, text fills full width */
.whatsapp-glass-card,
.tiktok-glass-card {
    min-height: 280px;
}

.whatsapp-glass-card .discord-card-left,
.tiktok-glass-card .discord-card-left {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


@keyframes fadeInWidget {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Discord Specifics (Overrides if needed, but inherits from .community-widget) */
.discord-glass-card {
    /* Kept for backwards compatibility if referenced elsewhere, but styles moved to .community-widget */
}

.discord-card-left {
    display: flex;
    flex-direction: column;
}

.discord-card-title {
    font-size: 1.6rem;
    /* Further reduced from 1.8rem */
    font-weight: 800;
    margin-bottom: 8px;
    /* Tighter spacing */
    line-height: 1.2;
}

.white-underline {
    border-bottom: 3px solid #fff;
    padding-bottom: 2px;
}

.discord-card-desc {
    color: #dfdfdf;
    font-size: 0.9rem;
    /* Further reduced from 0.95rem */
    line-height: 1.5;
    margin-bottom: 16px;
    /* Tighter spacing */
}

.btn-discord-blue {
    background: #5865f2;
    color: white;
    padding: 8px 22px;
    /* Even tighter padding */
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 16px;
    /* Reduced from 24px */
    transition: all 0.3s ease;
}

.btn-discord-blue:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.discord-card-footer {
    color: #999;
    font-size: 0.8rem;
    /* Reduced from 0.85rem */
    line-height: 1.4;
}

/* Discord Mockup Styling - Horizontal Layout */
.discord-mockup {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.d-mockup-header {
    background: #5865f2;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.d-logo {
    color: white;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.d-online {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

.d-mockup-body {
    background: #2b2d31;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: 120px 1fr;
    /* Split channels and users */
    gap: 20px;
}

.d-mockup-channels {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 15px;
}

.d-channel {
    color: #f2f3f5;
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.d-mockup-users {
    display: flex;
    flex-direction: column;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
    /* Room for scrollbar */
}

/* Custom Scrollbar for Discord Mockup Users */
.d-mockup-users::-webkit-scrollbar {
    width: 6px;
}

.d-mockup-users::-webkit-scrollbar-track {
    background: transparent;
}

.d-mockup-users::-webkit-scrollbar-thumb {
    background: #1a1b1e;
    border-radius: 4px;
}

.d-mockup-users::-webkit-scrollbar-thumb:hover {
    background: #4f545c;
}

.d-category {
    color: #949ba4;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.d-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.d-user:last-child {
    margin-bottom: 0;
}

.d-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: relative;
}

.d-name {
    color: #dbdee1;
    font-size: 0.9rem;
}

.d-mockup-footer {
    background: #232428;
    padding: 16px 24px;
    color: #80848e;
    font-size: 0.85rem;
}

/* ========================================
   WhatsApp Theme Overrides
======================================== */
.btn-whatsapp-green {
    background: #25D366;
    color: white;
    padding: 8px 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.btn-whatsapp-green:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-theme .d-mockup-header {
    background: #075E54;
    /* WhatsApp Dark Green */
}

.whatsapp-theme .d-mockup-body {
    background: #E5DDD5;
    /* WhatsApp Chat Background */
    color: #303030;
    grid-template-columns: 1fr;
    /* Single column for chat preview */
}

.whatsapp-theme .d-channel {
    color: #303030;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.whatsapp-theme .d-channel.active {
    background: #d9fdd3;
    /* WhatsApp outgoing message color */
    border: 1px solid #c6e8c0;
}

.whatsapp-theme .d-mockup-footer {
    background: #f0f2f5;
    color: #54656f;
    border-top: 1px solid #d1d7db;
}

/* ========================================
   TikTok Theme Overrides
======================================== */
.btn-tiktok-dark {
    background: #000000;
    color: white;
    padding: 8px 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-tiktok-dark:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4),
        -2px 0 10px rgba(0, 242, 254, 0.3),
        2px 0 10px rgba(254, 44, 85, 0.3);
}

.tiktok-theme .d-mockup-header {
    background: #000000;
    border-bottom: 1px solid #333;
}

.tiktok-theme .d-logo {
    text-shadow: 2px 2px 0 #fe2c55, -2px -2px 0 #00f2fe;
}

.tiktok-theme .d-mockup-body {
    background: #111;
    grid-template-columns: 1fr;
    padding: 0;
    /* Full bleed for video mockup */
}

.tiktok-theme .flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.tiktok-mock-video {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tiktok-mock-video .play-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.tiktok-mock-video:hover .play-icon {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0 0 15px rgba(254, 44, 85, 0.8);
}

.tiktok-theme .d-mockup-footer {
    background: #000;
    border-top: 1px solid #333;
}

/* ========================================
/* ========================================
   6. SERVER TEAM (v2 Marquee)
======================================== */
.team {
    padding: 150px 0 100px 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.team::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/background/background6.png') center center / cover no-repeat;
    filter: brightness(0.4);
    z-index: 0;
}

.team::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(11, 11, 11, 0.95) 0%,
            rgba(11, 11, 11, 0.6) 15%,
            rgba(11, 11, 11, 0.6) 85%,
            rgba(11, 11, 11, 0.95) 100%);
    z-index: 1;
}

.team > .container {
    position: relative;
    z-index: 2;
}

.team-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 20px 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.team-marquee-row {
    display: flex;
    white-space: nowrap;
    width: max-content;
}

.marquee-content {
    display: flex;
    gap: 24px;
    padding-right: 24px;
}

.team-card-v2 {
    --card-ornament: rgba(255, 240, 180, 0.28);
    --card-accent-soft: rgba(184, 138, 0, 0.26);
    --card-accent-strong: rgba(255, 210, 92, 0.65);
    position: relative;
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 224, 132, 0.14), transparent 46%),
        radial-gradient(circle at 86% 80%, rgba(122, 92, 62, 0.2), transparent 55%),
        linear-gradient(155deg, rgba(30, 30, 38, 0.96), rgba(18, 18, 24, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 228, 156, 0.18);
    border-radius: var(--radius-lg);
    padding: 34px 34px 30px;
    width: 100%;
    flex-shrink: 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255, 226, 160, 0.08),
        inset 0 -22px 38px rgba(0, 0, 0, 0.38),
        0 14px 34px rgba(0, 0, 0, 0.5);
}

.team-card-v2::before,
.team-card-v2::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.team-card-v2::before {
    inset: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 228, 156, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 228, 156, 0.05);
}

.team-card-v2::after {
    width: 150px;
    height: 150px;
    right: -40px;
    top: -56px;
    background: radial-gradient(circle, var(--card-accent-soft) 0%, rgba(184, 138, 0, 0) 70%);
    filter: blur(4px);
}

.rules-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../assets/background/background5.png') center center / cover no-repeat;
    filter: brightness(0.4);
}

.rules-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(9, 8, 9, 0.3) 0%,
        rgba(9, 8, 9, 0) 30%,
        rgba(9, 8, 9, 0) 70%,
        rgba(9, 8, 9, 0.5) 100%);
}

.section.rules {
    position: relative;
    padding-top: 160px; /* Increase padding to account for navbar */
    min-height: calc(100vh - 80px); /* Adjust for navbar height */
    overflow: hidden;
}

.team-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../assets/background/background6.png') center center / cover no-repeat;
    filter: brightness(0.4);
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(9, 8, 9, 0.3) 0%,
        rgba(9, 8, 9, 0) 30%,
        rgba(9, 8, 9, 0) 70%,
        rgba(9, 8, 9, 0.5) 100%);
}


.section.team {
    position: relative;
    padding-top: 160px; /* Increase padding to account for navbar */
    min-height: calc(100vh - 80px); /* Adjust for navbar height */
    overflow: hidden;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.team-card-v2:hover {
    border-color: rgba(255, 219, 133, 0.45);
    transform: translateY(-8px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 226, 160, 0.15),
        inset 0 -18px 30px rgba(0, 0, 0, 0.34),
        0 18px 42px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(184, 138, 0, 0.22);
}

.team-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.team-info > .team-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: #f4ca64;
    background: radial-gradient(circle at 28% 24%, rgba(255, 232, 160, 0.2), rgba(33, 27, 19, 0.85));
    border: 1px solid rgba(255, 221, 132, 0.34);
    margin-bottom: 0;
    text-shadow: 0 0 12px rgba(250, 189, 47, 0.48);
    box-shadow: inset 0 0 14px rgba(255, 221, 132, 0.08), 0 8px 16px rgba(0, 0, 0, 0.35);
}

.team-info .team-name-role {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-name-v2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #dfb030;
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(184, 138, 0, 0.22);
}

.team-role-v2 {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f3d892;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border: 1px solid rgba(255, 221, 142, 0.2);
    background: rgba(52, 38, 22, 0.4);
    border-radius: 999px;
}

.team-icon {
    font-size: 1.8rem;
    color: #f4ca64;
    text-shadow: 0 0 12px rgba(250, 189, 47, 0.48);
}

.team-quote-v2 {
    position: relative;
    z-index: 1;
    color: #e8dcc4;
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
    max-height: 112px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 221, 142, 0.16);
}

.team-quote-v2::before {
    content: "*";
    margin-right: 10px;
    color: var(--card-ornament);
    font-size: 1rem;
}

.team-card-v2:nth-child(2) {
    --card-accent-soft: rgba(153, 100, 44, 0.28);
}

.team-card-v2:nth-child(3) {
    --card-accent-soft: rgba(112, 84, 58, 0.3);
}

.team-card-v2:nth-child(4) {
    --card-accent-soft: rgba(106, 126, 74, 0.24);
}

/* Animations */
.row-left .marquee-content {
    animation: marquee-left 40s linear infinite;
}

.row-right .marquee-content {
    animation: marquee-right 40s linear infinite;
}

.team-marquee-row:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .team-card-v2 {
        width: 340px;
        padding: 26px;
    }

    .team-name-v2 {
        font-size: 1.18rem;
    }

    .team-quote-v2 {
        font-size: 0.93rem;
        max-height: 140px;
    }

    .team-info > .team-icon {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/background/background1.png') center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.3);
    z-index: 0;
}

.team::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(11, 11, 11, 0.95) 0%,
            rgba(11, 11, 11, 0.6) 15%,
            rgba(11, 11, 11, 0.6) 85%,
            rgba(11, 11, 11, 0.95) 100%);
    z-index: 1;
}

.team > .container {
    position: relative;
    z-index: 2;
}

.team-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 20px 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.team-marquee-row {
    display: flex;
    white-space: nowrap;
    width: max-content;
}

.marquee-content {
    display: flex;
    gap: 24px;
    padding-right: 24px;
}

.team-card-v2 {
    --card-ornament: rgba(255, 240, 180, 0.28);
    --card-accent-soft: rgba(184, 138, 0, 0.26);
    --card-accent-strong: rgba(255, 210, 92, 0.65);
    position: relative;
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 224, 132, 0.14), transparent 46%),
        radial-gradient(circle at 86% 80%, rgba(122, 92, 62, 0.2), transparent 55%),
        linear-gradient(155deg, rgba(30, 30, 38, 0.96), rgba(18, 18, 24, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 228, 156, 0.18);
    border-radius: var(--radius-lg);
    padding: 34px 34px 30px;
    width: 100%;
    flex-shrink: 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255, 226, 160, 0.08),
        inset 0 -22px 38px rgba(0, 0, 0, 0.38),
        0 14px 34px rgba(0, 0, 0, 0.5);
}

.team-card-v2::before,
.team-card-v2::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.team-card-v2::before {
    inset: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 228, 156, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 228, 156, 0.05);
}

.team-card-v2::after {
    width: 150px;
    height: 150px;
    right: -40px;
    top: -56px;
    background: radial-gradient(circle, var(--card-accent-soft) 0%, rgba(184, 138, 0, 0) 70%);
    filter: blur(4px);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .rule-card {
        padding: 20px;
    }
    
    .rule-header {
        gap: 14px;
    }
    
    .rule-seal {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .rule-number {
        font-size: 1.4rem;
    }
    
    .rule-title {
        font-size: 1.1rem;
    }
    
    .rule-content {
        font-size: 0.85rem;
    }
    
    .rule-clients {
        flex-direction: column;
        gap: 16px;
    }
    
    .server-warning {
        flex-direction: column;
        text-align: center;
        padding: 22px;
        gap: 16px;
        margin-top: 30px;
    }
    
    .warning-icon {
        font-size: 1.6rem;
        width: 48px;
        height: 48px;
    }
    
    .warning-content h3 {
        font-size: 1.2rem;
    }
    
    .warning-content p {
        font-size: 0.9rem;
    }
}
    
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ========================================
   5. SERVER RULES
======================================== */
.rules {
    background: var(--bg);
    position: relative;
    overflow: hidden;
    padding: 150px 0 100px 0;
}

.rules::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/background/background5.png') center center / cover no-repeat;
    filter: brightness(0.4);
    z-index: 0;
}

.rules::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(11, 11, 11, 0.95) 0%,
            rgba(11, 11, 11, 0.6) 15%,
            rgba(11, 11, 11, 0.6) 85%,
            rgba(11, 11, 11, 0.95) 100%);
    z-index: 1;
}

.rules > .container {
    position: relative;
    z-index: 2;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.rule-card {
    --card-ornament: rgba(255, 240, 180, 0.28);
    --card-accent-soft: rgba(184, 138, 0, 0.26);
    --card-accent-strong: rgba(255, 210, 92, 0.65);
    position: relative;
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 224, 132, 0.14), transparent 46%),
        radial-gradient(circle at 86% 80%, rgba(122, 92, 62, 0.2), transparent 55%),
        linear-gradient(155deg, rgba(30, 30, 38, 0.96), rgba(18, 18, 24, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 228, 156, 0.18);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255, 226, 160, 0.08),
        inset 0 -22px 38px rgba(0, 0, 0, 0.38),
        0 14px 34px rgba(0, 0, 0, 0.5);
}

.rule-card::before,
.rule-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.rule-card::before {
    inset: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 228, 156, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 228, 156, 0.05);
}

.rule-card::after {
    width: 120px;
    height: 120px;
    right: -30px;
    top: -40px;
    background: radial-gradient(circle, var(--card-accent-soft) 0%, rgba(184, 138, 0, 0) 70%);
    filter: blur(4px);
}

.rule-card:hover {
    border-color: rgba(255, 219, 133, 0.45);
    transform: translateY(-5px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 226, 160, 0.15),
        inset 0 -18px 30px rgba(0, 0, 0, 0.34),
        0 18px 42px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(184, 138, 0, 0.22);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 228, 156, 0.15);
}

.rule-seal {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 232, 160, 0.3), rgba(33, 27, 19, 0.9));
    border: 2px solid rgba(255, 221, 132, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #f4ca64;
    text-shadow: 0 0 12px rgba(250, 189, 47, 0.7);
    box-shadow: 0 0 25px rgba(184, 138, 0, 0.3), inset 0 0 20px rgba(255, 221, 132, 0.15);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rule-card:hover .rule-seal {
    transform: scale(1.1);
    box-shadow: 0 0 35px rgba(184, 138, 0, 0.5), inset 0 0 25px rgba(255, 221, 132, 0.25);
}

.rule-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rule-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.85;
    line-height: 1;
    text-shadow: 0 0 10px rgba(250, 189, 47, 0.3);
}

.rule-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    letter-spacing: 0.5px;
}

.rule-content {
    color: #e8e8e8;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.rule-content p {
    margin-bottom: 12px;
}

.rule-content ul {
    margin: 8px 0 12px 20px;
    padding-left: 0;
}

.rule-content li {
    margin-bottom: 8px;
    list-style-type: disc;
    color: #d0d0d0;
    font-size: 0.85rem;
}

.rule-clients {
    display: flex;
    gap: 20px;
    margin: 12px 0;
}

.clients-allowed,
.clients-not-allowed {
    flex: 1;
}

.clients-allowed p:first-child,
.clients-not-allowed p:first-child {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.warning {
    color: #ff5555;
    font-weight: 600;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 85, 85, 0.25);
    font-size: 0.85rem;
}

/* Server Warning Box */
.server-warning {
    --card-ornament: rgba(255, 240, 180, 0.28);
    --card-accent-soft: rgba(184, 138, 0, 0.26);
    --card-accent-strong: rgba(255, 210, 92, 0.65);
    position: relative;
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 224, 132, 0.14), transparent 46%),
        radial-gradient(circle at 86% 80%, rgba(122, 92, 62, 0.2), transparent 55%),
        linear-gradient(155deg, rgba(30, 30, 38, 0.96), rgba(18, 18, 24, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 228, 156, 0.18);
    border-radius: var(--radius-lg);
    padding: 34px 34px 30px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 226, 160, 0.08),
        inset 0 -22px 38px rgba(0, 0, 0, 0.38),
        0 14px 34px rgba(0, 0, 0, 0.5);
    margin-top: 50px;
}

.server-warning::before,
.server-warning::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.server-warning::before {
    inset: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 228, 156, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 228, 156, 0.05);
}

.server-warning::after {
    width: 150px;
    height: 150px;
    right: -40px;
    top: -56px;
    background: radial-gradient(circle, var(--card-accent-soft) 0%, rgba(184, 138, 0, 0) 70%);
    filter: blur(4px);
}

.server-warning:hover {
    border-color: rgba(255, 219, 133, 0.45);
    transform: translateY(-5px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 226, 160, 0.15),
        inset 0 -18px 30px rgba(0, 0, 0, 0.34),
        0 18px 42px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(184, 138, 0, 0.22);
}

.warning-icon {
    font-size: 2.2rem;
    color: #f4ca64;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 232, 160, 0.3), rgba(33, 27, 19, 0.9));
    border: 2px solid rgba(255, 221, 132, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 12px rgba(250, 189, 47, 0.7);
    box-shadow: 0 0 25px rgba(184, 138, 0, 0.3), inset 0 0 20px rgba(255, 221, 132, 0.15);
    transition: all 0.3s ease;
}

.server-warning:hover .warning-icon {
    transform: scale(1.1);
    box-shadow: 0 0 35px rgba(184, 138, 0, 0.5), inset 0 0 25px rgba(255, 221, 132, 0.25);
}

.warning-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.warning-content p {
    color: #e8e8e8;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .rule-card {
        padding: 26px;
    }
    
    .rule-header {
        gap: 18px;
    }
    
    .rule-seal {
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }
    
    .rule-number {
        font-size: 1.8rem;
    }
    
    .rule-title {
        font-size: 1.3rem;
    }
    
    .rule-content {
        font-size: 0.95rem;
    }
    
    .rule-clients {
        flex-direction: column;
        gap: 20px;
    }
    
    .server-warning {
        flex-direction: column;
        text-align: center;
        padding: 26px;
        gap: 20px;
        margin-top: 40px;
    }
    
    .warning-icon {
        font-size: 1.9rem;
        width: 54px;
        height: 54px;
    }
    
    .warning-content h3 {
        font-size: 1.3rem;
    }
    
    .warning-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .rule-card {
        padding: 26px;
    }
    
    .rule-header {
        gap: 18px;
    }
    
    .rule-seal {
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }
    
    .rule-number {
        font-size: 1.8rem;
    }
    
    .rule-title {
        font-size: 1.3rem;
    }
    
    .rule-content {
        font-size: 0.95rem;
    }
    
    .rule-clients {
        flex-direction: column;
        gap: 20px;
    }
    
    .server-warning {
        flex-direction: column;
        text-align: center;
        padding: 26px;
        gap: 20px;
        margin-top: 40px;
    }
    
    .warning-icon {
        font-size: 1.9rem;
        width: 54px;
        height: 54px;
    }
    
    .warning-content h3 {
        font-size: 1.3rem;
    }
    
    .warning-content p {
        font-size: 1rem;
    }
}

/* ========================================
   FEATURED SECTION
======================================== */
/* Featured section styles removed as per simplification */

@media (max-width: 768px) {
    /* Featured section responsive styles removed as per simplification */
}

.featured-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/background/background2.png') center center / cover no-repeat;
    filter: brightness(0.2);
    z-index: 0;
}

.featured-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(11, 11, 11, 0.95) 0%,
            rgba(11, 11, 11, 0.7) 50%,
            rgba(11, 11, 11, 0.95) 100%);
    z-index: 1;
}

.featured-section .container {
    position: relative;
    z-index: 2;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.featured-card {
    background: rgba(30, 30, 38, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.8;
}

.featured-card:hover {
    border-color: var(--border-light);
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(184, 138, 0, 0.2);
}

.featured-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 232, 160, 0.3), rgba(33, 27, 19, 0.9));
    border: 2px solid rgba(255, 221, 132, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #f4ca64;
    text-shadow: 0 0 12px rgba(250, 189, 47, 0.7);
    box-shadow: 0 0 25px rgba(184, 138, 0, 0.3), inset 0 0 20px rgba(255, 221, 132, 0.15);
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.featured-card:hover .featured-icon {
    transform: scale(1.1);
    box-shadow: 0 0 35px rgba(184, 138, 0, 0.5), inset 0 0 25px rgba(255, 221, 132, 0.25);
}

.featured-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.featured-desc {
    color: #e8e8e8;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   STATS SECTION
======================================== */
/* Stats section styles removed as per simplification */

/* ========================================
   NEWS SECTION
======================================== */
/* News section styles removed as per simplification */

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-card {
        padding: 26px 20px;
    }
    
    .featured-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .featured-title {
        font-size: 1.2rem;
    }
    
    .featured-desc {
        font-size: 0.9rem;
    }
}

/* ========================================
   SECTION SEPARATOR
======================================== */
.section-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    position: relative;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 228, 156, 0.3), 
        transparent);
}

.separator-icon {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator-icon i {
    background: rgba(20, 20, 25, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 228, 156, 0.2);
}

.team-card-v2:hover {
    border-color: rgba(255, 219, 133, 0.45);
    transform: translateY(-8px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 226, 160, 0.15),
        inset 0 -18px 30px rgba(0, 0, 0, 0.34),
        0 18px 42px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(184, 138, 0, 0.22);
}

.team-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.team-info > .team-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: #f4ca64;
    background: radial-gradient(circle at 28% 24%, rgba(255, 232, 160, 0.2), rgba(33, 27, 19, 0.85));
    border: 1px solid rgba(255, 221, 132, 0.34);
    margin-bottom: 0;
    text-shadow: 0 0 12px rgba(250, 189, 47, 0.48);
    box-shadow: inset 0 0 14px rgba(255, 221, 132, 0.08), 0 8px 16px rgba(0, 0, 0, 0.35);
}

.team-info .team-name-role {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-name-v2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #dfb030;
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(184, 138, 0, 0.22);
}

.team-role-v2 {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f3d892;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border: 1px solid rgba(255, 221, 142, 0.2);
    background: rgba(52, 38, 22, 0.4);
    border-radius: 999px;
}

.team-icon {
    font-size: 1.8rem;
    color: #f4ca64;
    text-shadow: 0 0 12px rgba(250, 189, 47, 0.48);
}

.team-quote-v2 {
    position: relative;
    z-index: 1;
    color: #e8dcc4;
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0;
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
    max-height: 112px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 221, 142, 0.16);
}

.team-quote-v2::before {
    content: "*";
    margin-right: 10px;
    color: var(--card-ornament);
    font-size: 1rem;
}

.team-card-v2:nth-child(2) {
    --card-accent-soft: rgba(153, 100, 44, 0.28);
}

.team-card-v2:nth-child(3) {
    --card-accent-soft: rgba(112, 84, 58, 0.3);
}

.team-card-v2:nth-child(4) {
    --card-accent-soft: rgba(106, 126, 74, 0.24);
}

/* Animations */
.row-left .marquee-content {
    animation: marquee-left 40s linear infinite;
}

.row-right .marquee-content {
    animation: marquee-right 40s linear infinite;
}

.team-marquee-row:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee-right {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .team-card-v2 {
        width: 340px;
        padding: 26px;
    }

    .team-name-v2 {
        font-size: 1.18rem;
    }

    .team-quote-v2 {
        font-size: 0.93rem;
        max-height: 140px;
    }

    .team-info > .team-icon {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
}

/* ========================================
   7. FOOTER
======================================== */
.footer {
    background: var(--neutral-darker);
    border-top: 1px solid rgba(184, 138, 0, 0.15);
    padding: 48px 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablet - 768px */
@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Navbar Mobile */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(18, 18, 22, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 20px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border);
        border-radius: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 15px 24px;
        width: 100%;
        text-align: center;
        margin: 0;
        border-radius: var(--radius);
    }

    .nav-link:hover {
        background: rgba(184, 138, 0, 0.2);
    }

    .nav-link.active {
        background: rgba(184, 138, 0, 0.3);
    }
    
    .nav-link-sound {
        position: fixed;
        top: 18px;
        right: 20px;
        z-index: 10000;
    }
}

.nav-link-sound {
    width: 100%;
    height: auto;
    padding: 15px 24px;
}

    /* Hero */
    .hero-logo {
        width: 160px;
        max-height: 130px;
    }

    .hero-desc-bar {
        padding: 20px 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-outline {
        width: 100%;
        justify-content: center;
    }

    /* Floating socials */
    .floating-socials {
        right: 14px;
        bottom: 20px;
        /* Slightly higher on mobile */
        gap: 10px;
    }

    .floating-social-btn {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    /* Grids */
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .discord-glass-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-logo {
        width: 130px;
        max-height: 110px;
    }

    .hero-card {
        padding: 28px 18px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 14px 32px;
        font-size: 0.9rem;
    }

    .platform-grid,
    .features-grid,
    .team-grid,
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .community-section-title {
        font-size: 1.8rem;
    }

    .community-pill {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .discord-glass-card {
        padding: 24px 16px;
        gap: 24px;
        border-radius: 16px;
    }

    .discord-card-title {
        font-size: 1.5rem;
    }

    .about-card {
        padding: 24px;
    }

    .footer-links {
        gap: 16px;
    }
    
    .rule-card {
        padding: 18px 16px;
    }
    
    .team-card-v2 {
        width: 340px;
        padding: 26px;
    }

    .team-name-v2 {
        font-size: 1.18rem;
    }

    .team-quote-v2 {
        font-size: 0.93rem;
        max-height: 140px;
    }

    .team-info > .team-icon {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
    
    .rule-header {
        gap: 12px;
    }
    
    .rule-seal {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .rule-number {
        font-size: 1.2rem;
    }
    
    .rule-title {
        font-size: 1rem;
    }
    
    .rule-content {
        font-size: 0.8rem;
    }
    
    .server-warning {
        padding: 20px;
        gap: 14px;
    }
    
    .warning-icon {
        font-size: 1.4rem;
        width: 42px;
        height: 42px;
    }
    
    .warning-content h3 {
        font-size: 1.1rem;
    }
    
    .warning-content p {
        font-size: 0.85rem;
    }
}

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-logo {
        width: 130px;
        max-height: 110px;
    }





    .hero-card {
        padding: 28px 18px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 14px 32px;
        font-size: 0.9rem;
    }

    .platform-grid,
    .features-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .community-section-title {
        font-size: 1.8rem;
    }

    .community-pill {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .discord-glass-card {
        padding: 24px 16px;
        gap: 24px;
        border-radius: 16px;
    }

    .discord-card-title {
        font-size: 1.5rem;
    }

    .about-card {
        padding: 24px;
    }

    .footer-links {
        gap: 16px;
    }
}

/* Large Desktop - 1200px+ */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

/* ========================================
   AUDIO MUTE TOGGLE BUTTON
======================================== */
#audioMuteToggle {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 10000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 228, 156, 0.2);
    color: #f4ca64;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#audioMuteToggle:hover {
    background: rgba(184, 138, 0, 0.2);
    border-color: rgba(255, 228, 156, 0.5);
    transform: scale(1.1);
}

#audioMuteToggle.muted {
    color: #ff5555;
    border-color: rgba(255, 60, 60, 0.3);
}

#audioMuteToggle.muted:hover {
    background: rgba(255, 60, 60, 0.15);
    border-color: rgba(255, 60, 60, 0.5);
}

@media (max-width: 768px) {
    #audioMuteToggle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        top: 14px;
        right: 60px;
    }
}

/* ========================================
   PAGE POLISH - AMBIENT + GLASS CONSISTENCY
======================================== */
.upload-container,
.section.team > .container,
.section.rules > .container,
.about-community .community-container {
    position: relative;
    z-index: 2;
}

.upload-header,
.coming-soon-content,
.team-card-v2,
.rule-card,
.server-warning,
.community-widget {
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 224, 132, 0.14), transparent 46%),
        radial-gradient(circle at 86% 80%, rgba(122, 92, 62, 0.2), transparent 55%),
        linear-gradient(155deg, rgba(30, 30, 38, 0.94), rgba(18, 18, 24, 0.88));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 228, 156, 0.22);
    box-shadow:
        inset 0 0 0 1px rgba(255, 226, 160, 0.08),
        inset 0 -22px 38px rgba(0, 0, 0, 0.35),
        0 12px 34px rgba(0, 0, 0, 0.45);
}

.community-pill-links {
    background: rgba(15, 15, 22, 0.55);
    border: 1px solid rgba(255, 228, 156, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 8px;
}

.rule-info {
    flex: 1;
}

.rule-title {
    margin-top: 6px;
    font-size: 1rem;
    letter-spacing: 0.4px;
    color: #f2d58e;
}

.rule-meta {
    margin-bottom: 10px;
}

.rule-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rule-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.25px;
    border: 1px solid rgba(255, 228, 156, 0.24);
    background: rgba(15, 15, 20, 0.55);
}

.rule-badge.ok {
    color: #8ce9ac;
    border-color: rgba(140, 233, 172, 0.4);
}

.rule-badge.banned {
    color: #ff9e9e;
    border-color: rgba(255, 158, 158, 0.45);
}

@media (max-width: 768px) {
    .rule-title {
        font-size: 0.9rem;
    }

    .rule-badge {
        width: 100%;
        justify-content: flex-start;
    }
}

.discord-glass-card {
    grid-template-columns: 1fr;
}

.discord-embed-wrap {
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 228, 156, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 226, 160, 0.08);
}

/* Force teams layout to 2x2 on desktop */
.section.team .team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .section.team .team-grid {
        grid-template-columns: 1fr !important;
    }
}
