:root {
    /* Prodigy-Inspired Palette */
    --primary-bg: #0D0D0D;
    --card-bg: #111111;
    --accent-green: #88DA22;
    /* Key Accent Color */
    --accent-glow: rgba(136, 218, 34, 0.4);
    --text-white: #FFFFFF;
    --text-muted: #9CA3AF;
    --border-color: #333333;
    --nav-bg: rgba(13, 13, 13, 0.9);

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Effects */
.bg-pattern {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image:
        linear-gradient(rgba(13, 13, 13, 0.7), #0D0D0D),
        url('../assets/bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0.25;
    /* Slightly increased visibility */
    transition: transform 0.1s ease-out;
    /* Smooth movement */
}

.ambient-glow {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(46, 102, 255, 0.15), transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
}

.accent {
    color: var(--accent-green);
}

.text-stroke {
    -webkit-text-stroke: 1px var(--text-white);
    color: transparent;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Floating Navbar */
.navbar {
    position: fixed;
    top: 20px;
    width: 100%;
    z-index: 1000;
    padding: 0 40px;
}

.nav-container {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-login {
    background: var(--accent-green);
    color: black;
    padding: 8px 24px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
    border: 1px solid var(--accent-green);
}

.btn-login:hover {
    background: transparent;
    color: var(--accent-green);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-green);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 5.5rem;
    line-height: 0.9;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    padding: 18px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-primary {
    background: var(--accent-green);
    color: black;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-glass:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Stats */
.server-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #333;
}

/* Visual Card */
.visual-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 600px;
    border: 1px solid var(--border-color);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0);
    transition: 0.5s;
}

.visual-card:hover .hero-img {
    filter: saturate(1);
}

.visual-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--primary-bg), transparent);
}

/* About Section */
.section {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 3rem;
}

.title-bar {
    width: 60px;
    height: 4px;
    background: var(--accent-green);
    margin-top: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    height: 400px;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.about-card:hover {
    border-color: var(--accent-green);
}

.about-card.large {
    grid-column: 1;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 0.2;
    transition: 0.5s;
}

.about-card:hover .card-bg {
    transform: scale(1.05);
    opacity: 0.4;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Features / Form Split */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.perks-list {
    list-style: none;
    margin-top: 40px;
}

.perks-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.perks-list i {
    color: var(--accent-green);
}

/* Prodigy Form Style */
.prodigy-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.form-header {
    background: #1A1A1A;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.form-body {
    padding: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-row {
    display: flex;
    gap: 20px;
}

.input-row .input-group {
    width: 100%;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    background: #080808;
    border: 1px solid var(--border-color);
    padding: 12px;
    color: white;
    font-family: var(--font-body);
    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-green);
    outline: none;
}

.btn-submit {
    width: 100%;
    background: var(--text-white);
    color: black;
    padding: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--accent-green);
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    margin-top: 100px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h2 {
    font-size: 2rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a,
.footer-social a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-social a {
    font-size: 1.2rem;
    margin-left: 20px;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--accent-green);
}

/* Animations (Reuse from old) */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hamburger {
    display: none;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Tablet & Small Desktop (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-container,
    .about-grid,
    .split-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .visual-card {
        height: 400px;
    }

    .about-card.large,
    .about-card {
        height: 300px;
    }

    .navbar {
        padding: 0 20px;
        top: 10px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        gap: 20px;
        backdrop-filter: blur(15px);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links.active a {
        font-size: 1.2rem;
        display: block;
        text-align: center;
        padding: 10px;
        border-radius: 6px;
    }

    .nav-links.active a:active {
        background: rgba(255, 255, 255, 0.05);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hamburger {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-white);
    }

    /* Queue Dashboard - Tablet */
    .queue-content {
        grid-template-columns: 300px 1fr;
    }

    .queue-sidebar {
        padding: 15px;
    }
}

/* Mobile Landscape & Small Tablets (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 0 15px;
        top: 10px;
    }

    .nav-container {
        height: 60px;
        padding: 0 15px;
        position: relative;
        /* Ensure context for menu */
        z-index: 1001;
        /* Stay above menu */
        background: var(--nav-bg);
        /* Ensure background is solid */
        justify-content: space-between;
    }

    .nav-brand .brand-text {
        font-size: 1.4rem;
    }

    .nav-links {
        position: fixed;
        /* Fixed relative to screen, not container */
        top: 80px;
        /* Below the nav container */
        left: 20px;
        /* Match container margin/padding */
        right: 20px;
        /* Match container margin/padding */
        width: auto;
        /* Allow right/left to dictate width */
        background: rgba(13, 13, 13, 0.98);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 20px;
        z-index: 1000;
        /* Just below nav container */
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    }

    /* Position the auth container properly next to hamburger */
    .nav-action {
        margin-left: auto;
        /* Push group to the right */
        margin-right: 10px;
        /* Reduced gap to hamburger */
        display: flex;
        align-items: center;
    }

    .btn-login {
        display: inline-flex;
        padding: 6px 14px;
        font-size: 0.75rem;
        margin: 0;
        /* Reset margins */
    }

    .hamburger {
        margin-left: 0;
    }

    /* ... (hero section skipped) ... */

    /* About Grid Mobile - FIXING SQUASHED CARDS */
    .about-grid {
        display: flex;
        /* Switch to flex column explicitly */
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .about-card.large,
    .about-card {
        height: auto;
        /* Allow content to dictate height */
        min-height: 250px;
        /* Minimum visual height */
        padding: 30px 20px;
        flex-shrink: 0;
        /* Prevent crushing */
    }

    .card-icon {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .about-card h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .about-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Form Mobile */
    .form-header,
    .form-body {
        padding: 20px;
    }

    .input-row {
        flex-direction: column;
        gap: 0;
    }

    .perks-list li {
        font-size: 1rem;
    }

    /* Footer Mobile */
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-social {
        margin-top: 20px;
    }

    /* Queue Dashboard - Mobile Landscape */
    .queue-container {
        width: 95%;
        height: 95vh;
    }

    .queue-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .queue-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
        max-height: 200px;
        overflow-y: auto;
    }

    .widget {
        margin-bottom: 20px;
    }

    .stream-preview {
        height: 120px;
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Navbar Mobile Portrait */
    .navbar {
        padding: 0 10px;
        top: 5px;
    }

    .nav-container {
        height: 55px;
        padding: 0 12px;
    }

    .nav-brand .brand-text {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    /* Hero Mobile Portrait */
    .hero-section {
        padding-top: 70px;
    }

    .hero-text h1 {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .visual-card {
        height: 250px;
        border-radius: 12px;
    }

    /* Stats Mobile Portrait */
    .server-stats {
        gap: 15px;
    }

    .stat-divider {
        display: none;
    }

    /* Sections Mobile Portrait */
    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    /* About Cards Mobile Portrait */
    .about-card {
        height: 220px;
        padding: 15px;
    }

    .about-card h3 {
        font-size: 1.1rem;
    }

    .about-card p {
        font-size: 0.8rem;
    }

    /* Form Mobile Portrait */
    .form-header h3 {
        font-size: 1rem;
    }

    .input-group label {
        font-size: 0.7rem;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Footer Mobile Portrait */
    .footer-brand h2 {
        font-size: 1.5rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    /* Queue Dashboard - Mobile Portrait */
    .queue-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .queue-header {
        height: 50px;
        padding: 0 15px;
    }

    .header-left {
        font-size: 0.9rem;
    }

    .queue-logo {
        height: 24px;
    }

    .queue-sidebar {
        padding: 10px;
        max-height: 150px;
    }

    .widget h4 {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .stream-preview {
        height: 100px;
    }

    /* Dashboard Views Mobile */
    .view-content {
        padding: 15px !important;
    }

    .btn-dashboard-large {
        padding: 15px 30px !important;
        font-size: 0.9rem !important;
    }

    .server-card {
        padding: 15px !important;
    }

    .server-name {
        font-size: 1rem !important;
    }

    .server-players {
        font-size: 0.8rem !important;
    }

    /* Queue Timer Mobile */
    .queue-timer,
    .accept-timer {
        font-size: 2rem !important;
    }

    .timer-label {
        font-size: 0.8rem !important;
    }

    /* Auth Modal Mobile */
    .auth-modal-content {
        width: 95% !important;
        max-width: none !important;
        padding: 20px !important;
    }

    .auth-steps {
        gap: 15px !important;
    }

    .auth-step {
        padding: 15px !important;
    }

    .step-title {
        font-size: 0.9rem !important;
    }

    .btn-steam,
    .btn-discord {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .btn,
    .btn-login,
    .btn-steam,
    .btn-discord,
    .btn-submit {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-links a {
        padding: 10px;
    }

    .hamburger {
        padding: 10px;
    }

    /* Remove hover effects on touch devices */
    .btn-primary:hover,
    .btn-glass:hover,
    .about-card:hover,
    .visual-card:hover .hero-img {
        transform: none;
        filter: none;
    }

    /* Improve tap feedback */
    .btn:active,
    .server-card:active {
        transform: scale(0.98);
    }
}

/* Steam Login & Profile */
.btn-steam {
    background: #171a21;
    /* Steam Dark Gray */
    color: #c5c3c0;
    padding: 8px 18px;
    /* Slightly Reduced Padding for Nav */
    border-radius: 2px;
    font-family: Arial, sans-serif;
    /* Standard Steam Font look */
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    border: 1px solid transparent;
    font-size: 0.85rem;
    /* Smaller font for nav */
}

.btn-steam:hover {
    background: #2a475e;
    /* Steam Blue */
    color: white;
    border-color: #66c0f4;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--accent-green);
}

.user-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.hidden {
    display: none !important;
}

/* Queue Dashboard Overlay */
.queue-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.queue-overlay.hidden {
    display: none;
}

.queue-container {
    width: 90%;
    max-width: 1400px;
    height: 90vh;
    background: #0A0A0A;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.queue-header {
    height: 60px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #111;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.queue-logo {
    height: 30px;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-close:hover {
    color: white;
}

.queue-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: 100%;
    overflow: hidden;
}

/* Sidebar Widgets */
.queue-sidebar {
    border-right: 1px solid var(--border-color);
    padding: 20px;
    background: #0D0D0D;
}

.widget {
    margin-bottom: 30px;
}

.widget h4 {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.streamer-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.stream-preview {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: 0.3s;
}

.stream-preview:hover .play-icon {
    opacity: 1;
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 2px;
    font-weight: 700;
}

.streamer-info {
    padding: 10px;
    background: #111;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Music Widget */
.music-widget {
    background: #111;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.genre-tags {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.genre-tags span {
    background: #222;
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.genre-tags span.active {
    background: var(--accent-green);
    color: black;
    font-weight: 700;
}

.now-playing {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.album-art {
    width: 60px;
    height: 60px;
    background: #333;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2260%22%20height%3D%2260%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%2260%22%20height%3D%2260%22%20fill%3D%22%23222%22%2F%3E%3Cpath%20d%3D%22M20%2020L40%2030L20%2040Z%22%20fill%3D%22%23444%22%2F%3E%3C%2Fsvg%3E');
}

.track-info {
    display: flex;
    flex-direction: column;
}

.track-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.artist-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
}

.volume-track {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--accent-green);
    border-radius: 2px;
    width: 60%;
}

.volume-handle {
    position: absolute;
    top: 50%;
    left: 60%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: scale 0.2s;
}

.volume-track:hover .volume-handle {
    scale: 1.2;
}

/* Main Content Area */
.queue-main {
    padding: 40px;
    background: #050505;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.queue-view {
    display: none;
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.3s ease-out;
}

.queue-view.active {
    display: block;
}

.queue-view h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-white);
    letter-spacing: 1px;
}

/* Server Cards */
.server-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server-card {
    background: #111;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
}

.server-card:hover {
    background: #151515;
    border-color: var(--text-muted);
}

.server-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #555;
    margin-top: 2px;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 5px var(--accent-green);
}

.status-dot.offline {
    background: #ff3333;
    box-shadow: 0 0 5px #ff3333;
}

.player-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Queue Status Box */
.queue-status-box {
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    padding: 30px;
    background: radial-gradient(circle at center, rgba(136, 218, 34, 0.05), transparent 70%);
    box-shadow: 0 0 20px rgba(136, 218, 34, 0.1);
    position: relative;
}

.queue-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-leave {
    background: #220000;
    color: #ff4444;
    border: 1px solid #550000;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    transition: 0.2s;
}

.btn-leave:hover {
    background: #440000;
}

.position-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-green);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 30px;
}

.total-pos {
    font-size: 2rem;
    color: var(--text-muted);
}

.queue-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Priority Box */
.prio-box {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prio-text strong {
    color: var(--text-white);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.prio-text p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

.btn-prio {
    background: transparent;
    border: 1px solid var(--text-white);
    color: var(--text-white);
    padding: 8px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
}

/* Ready State */
.ready-glow {
    background: radial-gradient(circle at center, rgba(136, 218, 34, 0.2), transparent 80%);
    box-shadow: 0 0 50px rgba(136, 218, 34, 0.15) inset;
    text-align: center;
}

.ready-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-label {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.accept-timer {
    font-size: 1.2rem;
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 20px;
}

.ready-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-white);
}

.ready-actions {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.btn-confirm {
    background: #111;
    border: 1px solid var(--accent-green);
    color: var(--text-white);
    padding: 10px 40px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.2s;
}

.btn-confirm:hover {
    background: var(--accent-green);
    color: black;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Error Toast */
.queue-error {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #330000;
    border-left: 4px solid #cc0000;
    padding: 15px 25px;
    border-radius: 4px;
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease-out;
}

.queue-error strong {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.queue-error span {
    font-size: 0.8rem;
    color: #ffaaaa;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- PRODIGY MUSIC WIDGET STYLES (Restored) --- */
.music-widget {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
}

.music-widget h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Genre Tags */
.genre-tags {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background: #1a1a1a;
    color: #888;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.tag:hover {
    color: #fff;
    background: #222;
}

.playlist-item {
    cursor: pointer;
    transition: 0.2s;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Player Layout */
.player-container {
    display: flex;
    gap: 15px;
    background: #141414;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #222;
}

/* Album Art Button */
.album-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.album-wrapper:hover {
    transform: scale(1.02);
}

.album-art {
    width: 100%;
    height: 100%;
    background-image: url('../assets/logo.png');
    background-color: #000;
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

/* Play Overlay Icon */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.play-overlay i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    transition: 0.3s ease;
}

.album-wrapper:hover i {
    color: var(--accent-green);
    transform: scale(1.1);
}

.album-wrapper:hover .album-art {
    filter: brightness(0.4);
}

/* Controls Right Side */
.player-controls-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.artist-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.artist-name {
    font-size: 0.8rem;
    color: #888;
}

/* Volume Row */
.volume-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.volume-row i {
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    width: 15px;
    /* Fixed width */
}

.volume-track {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    /* Default 50% */
    background: #50c800;
    border-radius: 2px;
}

.volume-handle {
    position: absolute;
    left: 50%;
    /* Matches width */
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}

.volume-track:hover .volume-handle {
    transform: translate(-50%, -50%) scale(1.2);
}


/* --- RELEASE COUNTDOWN --- */
.hero-countdown {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--accent-green);
    display: inline-flex;
    /* Keep it inline like a badge */
    backdrop-filter: blur(5px);
}

/* --- DASHBOARD PLAYLIST --- */
.playlist-container {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

/* Custom Scrollbar */
.playlist-container::-webkit-scrollbar {
    width: 4px;
}

.playlist-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.playlist-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #222;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
}

.playlist-item:hover,
.playlist-item.active {
    background: rgba(80, 200, 0, 0.1);
}

.playlist-item.active .track-title {
    color: var(--accent-green);
}

.track-details {
    display: flex;
    flex-direction: column;
}

.track-title {
    font-weight: 600;
    color: #eee;
    font-size: 0.9rem;
}

.track-artist {
    font-size: 0.75rem;
    color: #888;
}

.track-duration {
    font-size: 0.8rem;
    color: #666;
    font-family: monospace;
}

/* --- DASHBOARD HOME VIEW --- */
.dashboard-greeting h3 {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 5px;
}

.dashboard-greeting p {
    color: #888;
    margin-bottom: 30px;
}

.btn-dashboard-large {
    width: 100%;
    padding: 25px;
    background: linear-gradient(135deg, var(--accent-green) 0%, rgba(80, 200, 0, 0.5) 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    /* Dark text on bright background */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(80, 200, 0, 0.2);
}

.btn-dashboard-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(80, 200, 0, 0.3);
    color: #fff;
    /* Keep text dark or go white? Let's try white on hover */
    background: var(--accent-green);
}

.dashboard-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns */
    gap: 15px;
}

.dash-stat {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-stat i {
    font-size: 1.5rem;
    color: var(--accent-green);
    background: rgba(80, 200, 0, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.dash-stat .stat-info {
    display: flex;
    flex-direction: column;
}

.dash-stat .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.dash-stat .stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

/* --- SERVER LIST REDESIGN --- */
.view-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.view-header h3 {
    margin: 0;
    padding-top: 10px;
    /* Moves text lower to align with center of button */
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-back:hover {
    background: rgba(136, 218, 34, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.server-card.wide {
    width: 100%;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    /* Icon, Info, Status */
    gap: 20px;
    padding: 20px;
    align-items: center;
    text-align: left;
    /* Override centering */
}

.server-icon-large {
    width: 80px;
    height: 80px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.server-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-info-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.server-desc {
    font-size: 0.85rem;
    color: #666;
}

.server-status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-badge.online {
    background: rgba(80, 200, 0, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(80, 200, 0, 0.3);
}

.server-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
}

/* Queue Status Indicator */
.queue-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: #666;
}

.pulse-dot {
    font-size: 8px;
    color: var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
}

.dashboard-greeting {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.dashboard-greeting h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.dashboard-greeting p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}


.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.time-block span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
}

.time-block small {
    font-size: 0.6rem;
    color: #aaa;
    margin-top: 3px;
    letter-spacing: 1px;
}

.sep {
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
    /* Align more with numbers */
}

/* Undercity Sneak Peek Banner */
.undercity-banner {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('../assets/2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid var(--accent-green);
    border-bottom: 1px solid var(--accent-green);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.undercity-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--primary-bg) 100%);
}

.undercity-banner div {
    position: relative;
    z-index: 5;
}

.undercity-banner h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
    text-shadow: 0 0 20px var(--accent-green);
}

.undercity-banner p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn-undercity {
    padding: 20px 50px;
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(136, 218, 34, 0.2);
}

.btn-undercity:hover {
    background: var(--accent-green);
    color: #000;
    box-shadow: 0 0 40px var(--accent-green);
    transform: scale(1.1);
}

/* Gallery Section Grid Re-Design */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-card {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(80, 200, 0, 0.15);
    border-color: var(--accent-green);
}

.gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

/* Overlay Logic - Reveal Description on Hover */
.gallery-image::after {
    /* Dark gradient at bottom always there for text readability */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
    z-index: 2;
}

.gallery-icon {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 15px;
    transform: translateY(0);
    transition: transform 0.3s;
}

.gallery-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    margin: 0;
    margin-bottom: 5px;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.gallery-overlay p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

/* Hover Effects */
.gallery-card:hover .gallery-overlay p {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    margin-bottom: 10px;
}

.gallery-card:hover .gallery-overlay h3 {
    transform: translateY(0);
}

.gallery-card:hover .gallery-icon {
    transform: translateY(-5px) scale(1.1);
}

.gallery-card:hover .gallery-image::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 1;
}

/* Rules Section */
.rules-section {
    background: #0a0a0a;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.rule-card {
    background: linear-gradient(135deg, #111, #0d0d0d);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #222;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.rule-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: 0 5px 20px rgba(80, 200, 0, 0.1);
}

.rule-icon {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: var(--font-heading);
}

.rule-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.rule-card p {
    color: #888;
    line-height: 1.6;
}

.rules-footer {
    text-align: center;
    margin-top: 50px;
}

/* Nav Buttons */
.nav-btn-discord {
    background: #5865F2;
    padding: 8px 16px;
    border-radius: 4px;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.nav-btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    color: white !important;
}

.user-auth {
    display: flex;
    align-items: center;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.btn-login:hover {
    background: var(--accent-green);
    color: #000;
}

/* Auth Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    width: 600px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}

.modal.hidden .modal-content {
    transform: scale(0.9);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.close-modal:hover {
    color: var(--accent-green);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.auth-steps {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.auth-step {
    flex: 1;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    opacity: 0.5;
    transition: all 0.3s;
}

.auth-step.active {
    opacity: 1;
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(80, 200, 0, 0.1);
}

.auth-step.completed {
    border-color: #50c800;
    /* Success Green */
    background: rgba(80, 200, 0, 0.05);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.btn-steam {
    background: #171a21;
    /* Steam Blue/Black */
    color: #c5c3c0;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-steam:hover {
    background: #2a475e;
    color: white;
}

.btn-discord-auth {
    background: #5865F2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-discord-auth:disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-discord-auth:not(:disabled):hover {
    background: #4752c4;
}

/* User Dropdown */
.user-profile {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 6px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    /* JS will toggle block/none for click */
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #222;
    font-weight: bold;
    color: #fff;
    font-family: var(--font-heading);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: none;
    border: none;
    color: #aeaeae;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.dropdown-item.logout {
    border-top: 1px solid #222;
    color: #ff4444;
}

.dropdown-item.logout:hover {
    background: rgba(255, 68, 68, 0.1);
}

.auth-status {
    margin-top: 20px;
    text-align: center;
    height: 20px;
    font-weight: bold;
}

/* =========================================
   Categorized Rules Page Styles
   ========================================= */

.rules-section {
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.rule-category {
    margin-bottom: 70px;
    position: relative;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 5px solid var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(136, 218, 34, 0.3);
    position: relative;
}

/* Optional: Add a subtle underline to titles */
.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-green), transparent);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.rule-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-green);
    opacity: 0;
    transition: 0.3s;
}

.rule-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(136, 218, 34, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.rule-card:hover::before {
    opacity: 1;
}

.rule-icon {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 20px;
    opacity: 0.8;
}

.rule-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.rule-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: #aaa;
    margin-bottom: 0;
}