:root {
    --primary: #ff00ea;
    /* Hot Pink */
    --primary-glow: rgba(255, 0, 234, 0.4);
    --secondary: #00e5ff;
    /* Cyan */
    --secondary-glow: rgba(0, 229, 255, 0.3);
    --tertiary: #a600ff;
    /* Purple */
    --bg-dark: #0a050f;
    --bg-card: rgba(15, 10, 20, 0.7);
    --text-main: #ffffff;
    --text-muted: #d0c0e0;
    --transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Gaming Fonts */
    --font-main: 'Outfit', sans-serif;
    --font-gaming: 'Chakra Petch', sans-serif;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

body.loading {
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    /* Shrunk padding */
    background: rgba(10, 5, 15, 0.85);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 0, 234, 0.2);
}

.navbar.scrolled {
    background: rgba(10, 5, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--primary-glow);
    padding: 5px 0;
}

.navbar .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative; /* Base for centering links */
}

.nav-logo {
    text-decoration: none;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 60px;
    /* Shrunk logo */
    width: auto;
    filter: drop-shadow(0 0 15px var(--primary-glow));
    transition: var(--transition);
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 20px; /* Reduced gap */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px; /* Smaller font */
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
}

/* Mobile Menu Button - Hidden on desktop */
.mobile-menu-btn {
    display: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-size: 15px;
    text-decoration: none;
    /* Removed underline */
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Custom Animation Classes */
.rotate-360 {
    animation: rotate360 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-pop {
    animation: btnPop 0.3s ease-out;
}

@keyframes btnPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.btn-store {
    background: rgba(166, 0, 255, 0.1);
    color: #a600ff;
    border: 2px solid #a600ff;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(166, 0, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-store:hover {
    background: #a600ff;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(166, 0, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.btn-glow {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.discord-nav-icon {
    font-size: 24px;
    /* Slightly smaller to fit better */
    display: flex;
    align-items: center;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
    padding: 0;
    margin: 0 10px;
    /* Added horizontal spacing */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Increased gap */
    margin-left: 20px;
}

.discord-nav-icon:hover {
    color: #5865F2;
    filter: drop-shadow(0 0 15px #5865F2);
    transform: scale(1.1);
}

/* User Profile in Nav */
.user-nav-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-discord-login {
    background: #5865F2;
    color: white !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 10px rgba(88, 101, 242, 0.3) !important;
    border: none !important;
}

.user-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-display img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.user-display span {
    font-size: 13px;
    font-weight: 600;
}

.btn-logout {
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    padding: 0;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-logout:hover {
    color: #ff4d4d;
}

.discord-nav-icon::after,
.discord-nav-icon::before {
    display: none !important;
    content: none !important;
}

/* Discord Page Styling */
.discord-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.discord-widget-container {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.discord-widget-container iframe {
    display: block;
    max-width: 100%;
}

.rule-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Pages & SPA Routing */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
    animation: fadeIn 0.8s ease forwards;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - 80px); /* Changed to min-height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Moved to top */
    align-items: center;
    text-align: center;
    padding: 15vh 20px 80px; /* Top padding defines position */
}

.hero-content {
    max-width: 900px; /* Enlarged container */
    z-index: 2;
    margin-top: 0;
}

.badge {
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--primary-glow);
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-family: var(--font-gaming);
    font-size: 130px;
    /* Extra Large */
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-style: italic;
    background: linear-gradient(to bottom, #fff 30%, var(--primary) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    letter-spacing: -3px;
}

.hero h1 span {
    display: block;
    font-size: 0.4em;
    font-style: normal;
    background: var(--secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-stats {
    margin-top: 80px;
    display: flex;
    gap: 60px;
    z-index: 2;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-gaming);
    font-size: 42px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-value::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #00ff62;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff62;
    display: inline-block;
}

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

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 234, 0.05) 0%, transparent 70%),
        linear-gradient(rgba(10, 5, 15, 0.7), rgba(10, 5, 15, 0.5));
    backdrop-filter: brightness(0.8);
    z-index: 2;
}

.video-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 255, 0, 0.03));
    background-size: 100% 3px, 3px 100%;
    opacity: 0.4;
    pointer-events: none;
}

/* Sections Global */
.pb-section {
    padding-bottom: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

/* HUD Rules Redesigned */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.rule-card {
    background: rgba(15, 10, 20, 0.4);
    backdrop-filter: blur(15px);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 234, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.rule-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--secondary);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.15);
}

.rule-card:hover::before {
    opacity: 1;
}

.rule-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rule-tag {
    font-family: var(--font-gaming);
    font-size: 11px;
    color: var(--secondary);
    background: rgba(0, 229, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.rule-icon {
    font-size: 20px;
    /* Shrunk icon */
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: var(--transition);
}

.rule-card:hover .rule-icon {
    transform: rotate(5deg) scale(1.1);
    color: var(--secondary);
    filter: drop-shadow(0 0 12px var(--secondary-glow));
}

.rule-card h3 {
    font-family: var(--font-gaming);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
}

.rule-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    z-index: 1;
}

/* Team Dashboard - Rank Groups */
.team-dashboard {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1000px;
    margin: 60px auto 0;
}

.rank-group {
    position: relative;
    padding-left: 0;
}

.rank-header {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-gaming);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.rank-header i {
    font-size: 20px;
    filter: drop-shadow(0 0 10px currentColor);
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.member-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 25px;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    gap: 20px;
    text-align: left;
}

.member-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-gaming);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    overflow: hidden;
    /* Ensure image doesn't bleed out */
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.member-role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Recruitment Card Specifics */
.member-card.recruitment {
    border: 1px dashed rgba(88, 101, 242, 0.3);
    background: rgba(88, 101, 242, 0.02);
}

.member-card.recruitment:hover {
    border-style: solid;
    border-color: #5865F2;
    background: rgba(88, 101, 242, 0.05);
}

.member-card.recruitment .member-avatar {
    border-color: #5865F2;
    color: #5865F2;
    background: rgba(88, 101, 242, 0.1);
}

.recruitment-link {
    font-size: 11px;
    color: #5865F2;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: inline-block;
    transition: var(--transition);
}

.recruitment-link:hover {
    color: white;
    text-shadow: 0 0 10px #5865F2;
}

.member-details h3 {
    margin-bottom: 2px;
}

.rank-owner .member-avatar {
    border-color: #ff4d4d;
    color: #ff4d4d;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.2);
}

.rank-management .member-avatar {
    border-color: #8b0000;
    color: #8b0000;
}

.rank-supervisor .member-avatar {
    border-color: #ffff00;
    color: #ffff00;
}

.rank-senior .member-avatar {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.rank-developer .member-avatar {
    border-color: #3399ff;
    color: #3399ff;
}

.rank-staff .member-avatar {
    border-color: #ff33ff;
    color: #ff33ff;
}

.rank-support .member-avatar {
    border-color: #ff00ff;
    color: #ff00ff;
}

.rank-test .member-avatar {
    border-color: #ff00ff;
    color: #ff00ff;
}

.member-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.member-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

/* Rank Specific HUD Colors */
.rank-owner .rank-header {
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.3);
}

.rank-management .rank-header {
    color: #8b0000;
    border-color: rgba(139, 0, 0, 0.3);
}

.rank-supervisor .rank-header {
    color: #ffff00;
    border-color: rgba(255, 255, 0, 0.3);
}

.rank-senior .rank-header {
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.3);
}

.rank-developer .rank-header {
    color: #3399ff;
    border-color: rgba(51, 153, 255, 0.3);
}

.rank-staff .rank-header {
    color: #ff33ff;
    border-color: rgba(255, 51, 255, 0.3);
}

.rank-support .rank-header {
    color: #ff00ff;
    border-color: rgba(255, 0, 255, 0.3);
}

.rank-test .rank-header {
    color: #ff00ff;
    border-color: rgba(255, 0, 255, 0.3);
}

@media (max-width: 900px) {
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .member-grid {
        grid-template-columns: 1fr;
    }
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(90deg, var(--tertiary), var(--primary));
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    font-family: var(--font-gaming);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 30px rgba(166, 0, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(166, 0, 255, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 50px rgba(255, 0, 234, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(166, 0, 255, 0.4);
    }
}

/* About Us Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(166, 0, 255, 0.05), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.about-text p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item i {
    color: var(--secondary);
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-item h4 {
    margin-bottom: 5px;
}

/* Footer Contacts & Legal */
.footer {
    background: #030307;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
    margin-top: 50px;
    clear: both;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    align-items: start;
}

.footer-column h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.contact-item i {
    color: var(--secondary);
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }

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

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

/* Footer Secret Promo */
.footer-promo {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-gaming);
    transition: var(--transition);
}

.footer-promo:hover {
    color: var(--secondary);
}

.footer-promo strong {
    color: var(--primary);
    opacity: 0.8;
}

/* Legal Pages Styling */
.legal-container {
    max-width: 900px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.legal-container h1 {
    color: var(--text-main);
    font-size: 34px;
    margin-bottom: 10px;
}

.last-updated {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 40px;
    font-weight: 600;
}

.legal-content h3 {
    color: var(--secondary);
    margin: 30px 0 15px;
    font-size: 20px;
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-muted);
}

.legal-content ul li {
    margin-bottom: 10px;
}

/* Jobs / Recruitment Section */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Larger min-width for better spacing */
    gap: 50px; /* Increased gap */
    margin-top: 60px;
}

.job-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
    border-color: var(--primary-glow);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.job-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.job-icon {
    font-size: 30px;
    color: var(--primary);
    background: rgba(138, 43, 226, 0.1);
    padding: 15px;
    border-radius: 15px;
}

.job-title-pill {
    flex: 1;
}

.job-title-pill h3 {
    font-size: 24px;
    margin-bottom: 8px;
    font-family: var(--font-gaming);
}

.status-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-badge.open {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

.status-badge.open::before {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.status-badge.closed {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

.status-badge.closed::before {
    background: rgba(255, 255, 255, 0.2);
}

.job-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    flex: 1;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.job-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}

.job-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .legal-container {
        padding: 30px 20px;
    }
}

/* Whitelist Form */
.whitelist-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 0, 234, 0.2);
}

.form-group select option {
    background: #111;
}

.auth-gate {
    animation: fadeIn 0.5s ease-out;
}
    .nav-container {
        padding: 0 15px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        transform: none;
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 10, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .nav-link {
        font-size: 20px;
    }

    .mobile-menu-btn {
        display: flex; /* Visible on mobile */
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        float: none;
        margin: 0;
    }

    .mobile-menu-btn span {
        display: block;
        width: 22px; /* Smaller width */
        height: 2px;
        background: var(--text-main);
        transition: var(--transition);
        border-radius: 2px;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-stats {
        gap: 30px;
        margin-top: 50px;
    }

    .stat-value {
        font-size: 24px;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
}