        :root {
            --primary-bg: #0a0a0a;
            --secondary-bg: #1a0a0a;
            --card-bg: rgba(30, 10, 10, 0.9);
            --lava-orange: #ff4500;
            --lava-red: #cc0000;
            --lava-yellow: #ff6a00;
            --ember-glow: #ff6600;
            --text-primary: #f5f5f5;
            --text-secondary: #b0b0b0;
            --text-dim: #707070;
            --border-color: #3d1515;
            --gradient-fire: linear-gradient(135deg, #ff4500, #cc0000, #ff6a00);
            --gradient-lava: linear-gradient(180deg, #ff4500, #8b0000, #2d0000);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Rajdhani', sans-serif;
            background: var(--primary-bg);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
        }

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Keeps the image static while scrolling */
	pointer-events: none !important;
}

.page#home {
    padding-top: 0 !important;
}

        .lava-particles {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
			pointer-events: none !important;
        }

        .ember {
            position: absolute;
            bottom: -10px;
            width: 4px;
            height: 4px;
            background: var(--ember-glow);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--lava-orange), 0 0 20px var(--lava-red);
            animation: rise linear infinite;
            opacity: 0;
        }

        @keyframes rise {
            0% {
                opacity: 0;
                transform: translateY(0) scale(1);
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 0.5;
            }
            100% {
                opacity: 0;
                transform: translateY(-100vh) scale(0.1);
            }
        }

        /* Header & Navigation */
        header {
            background: linear-gradient(180deg, rgba(20, 5, 5, 0.98), rgba(10, 5, 5, 0.95));
            border-bottom: 2px solid var(--lava-red);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 30px rgba(255, 69, 0, 0.3);
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0.5rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 1rem;
            text-decoration: none;
        }

        .logo img {
            width: 60px;
            height: 60px;
        }

        .logo-text h1 {
            font-family: 'Cinzel', serif;
            font-size: 1.8rem;
            font-weight: 700;
            background: var(--gradient-fire);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 0 30px rgba(255, 69, 0, 0.5);
        }

        .logo-text span {
            font-size: 0.75rem;
            color: var(--text-secondary);
            letter-spacing: 3px;
            text-transform: uppercase;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 0.5rem;
        }

        nav a {
            display: block;
            padding: 0.75rem 1.25rem;
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            border-radius: 4px;
            transition: all 0.3s ease;
            position: relative;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--gradient-fire);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        nav a:hover::after, nav a.active::after {
            width: 80%;
        }

        nav a:hover, nav a.active {
            color: var(--lava-orange);
            text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Main Content */
        main {
            margin-top: 85px;
            min-height: calc(100vh - 85px);
        }

        .page {
            display: none;
            padding: 2rem;
            max-width: 1400px;
            margin: 0 auto;
            animation: fadeIn 0.5s ease;
        }

        .page.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Hero Section */
        .hero {
			/* 100vh = 100% of the viewport height */
			/* If your header is 80px, we subtract it to fit perfectly */
			min-height: calc(100vh - 80px);
			display: flex;
			flex-direction: column;
			justify-content: center; /* Centers items vertically */
			align-items: center;     /* Centers items horizontally */
            text-align: center;
            padding: 2rem;
            background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.1) 0%, transparent 80%);
            border-radius: 20px;
            margin-bottom: 3rem;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
			pointer-events: none !important;
        }

        .hero h2 {
            font-family: 'Cinzel', serif;
            font-size: 3.5rem;
            margin-bottom: 1rem;
            background: var(--gradient-fire);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
        }

        .hero p {
            font-size: 1.3rem;
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto;
            position: relative;
        }

        /* Section Titles */
        .section-title {
            font-family: 'Cinzel', serif;
            font-size: 2rem;
            margin-bottom: 2rem;
            text-align: center;
            position: relative;
            display: inline-block;
            width: 100%;
        }

        .section-title::after {
            content: '';
            display: block;
            width: 100px;
            height: 3px;
            background: var(--gradient-fire);
            margin: 0.5rem auto;
            border-radius: 2px;
        }

        /* Cards */
        .card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 1.5rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-fire);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .card:hover::before {
            opacity: 1;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 40px rgba(255, 69, 0, 0.2);
            border-color: var(--lava-red);
        }

.event-time-row {
    font-size: 0.95rem;
    color: var(--lava-orange);
    font-weight: bold;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.event-info h4 {
    margin-bottom: 2px; /* Pull the time closer to the title */
}

/* Audit Logs Button Styling */
.audit-btn {
    background: rgba(255, 69, 0, 0.1);
    color: var(--lava-orange);
    border: 1px solid var(--lava-orange);
    padding: 10px 30px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audit-btn:hover {
    background: var(--gradient-fire);
    color: white;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
    transform: translateY(-2px);
    border-color: transparent;
}

.audit-btn i {
    font-size: 1.1rem;
}

        /* Grid Layouts */
        .grid-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .grid-4 {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
        }

/* Audit Logs Table specific tweaks */
.audit-card {
    border: 1px solid var(--border-color);
    background: rgba(10, 5, 5, 0.9);
    box-shadow: inset 0 0 20px rgba(255, 69, 0, 0.05);
}

#auditLogContainer tr {
    border-bottom: 1px solid rgba(255, 69, 0, 0.1);
    transition: background 0.2s ease;
}

#auditLogContainer tr:hover {
    background: rgba(255, 69, 0, 0.03);
}

#auditLogContainer td {
    padding: 15px;
    vertical-align: middle;
}

        /* Quick Links */
.quick-links {
    display: flex;
    gap: 1.5rem; /* Increased gap for larger items */
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
	position: relative;
    z-index: 50; /* Higher than background layers */
}

.quick-link {
    display: flex;
    flex-direction: column; /* Stacks icon on top of text */
    align-items: center;
    justify-content: center; /* Centers content vertically */
    gap: 1rem;
    
    /* Set equal width and height for a square look */
    width: 180px; 
    height: 140px;
    
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    
    /* Reduced radius for a sharper, squarer feel */
    border-radius: 6px; 
    
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
	
	position: relative;
    z-index: 51;
    cursor: pointer !important;
}

.quick-link i {
    /* Larger icon for the larger square */
    font-size: 2.5rem; 
}

.quick-link span {
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hover Adjustments */
.quick-link:hover {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.2), rgba(139, 0, 0, 0.2));
    border-color: var(--lava-orange);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.4);
}

/* Maintain your custom brand colors */
.quick-link.discord i { color: #5865F2; }
.quick-link.teamspeak i { color: #2580c3; }
.quick-link.donate i { color: #ff6600; }
.quick-link.steam i { color: #66c0f4; /* Darker Steam theme color, Or use #66c0f4 for a brighter Steam blue */}

        /* Events Calendar */
        .calendar-widget {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            overflow: hidden;
        }

        .calendar-header {
            background: linear-gradient(135deg, rgba(255, 69, 0, 0.3), rgba(139, 0, 0, 0.3));
            padding: 1rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .calendar-header h3 {
            font-family: 'Cinzel', serif;
            color: var(--lava-orange);
        }

        .calendar-nav {
            display: flex;
            gap: 0.5rem;
        }

        .calendar-nav button {
            background: rgba(255, 69, 0, 0.2);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .calendar-nav button:hover {
            background: var(--lava-red);
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 1px;
            background: var(--border-color);
            padding: 1px;
        }

        .calendar-day-header {
            background: rgba(139, 0, 0, 0.3);
            padding: 0.75rem;
            text-align: center;
            font-weight: 600;
            color: var(--lava-orange);
            font-size: 0.85rem;
        }

        .calendar-day {
            background: var(--secondary-bg);
            padding: 0.75rem;
            min-height: 80px;
            text-align: center;
            position: relative;
            transition: background 0.3s ease;
        }

        .calendar-day:hover {
            background: rgba(255, 69, 0, 0.1);
        }

        .calendar-day.today {
            background: rgba(255, 69, 0, 0.2);
        }

        .calendar-day.has-event::after {
            content: '';
            position: absolute;
            bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
            width: 6px;
            height: 6px;
            background: var(--lava-orange);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--lava-orange);
        }

        .calendar-day.other-month {
            opacity: 0.3;
        }

        /* Events List */
        .event-item {
            display: flex;
            gap: 1rem;
            padding: 1rem;
            background: rgba(255, 69, 0, 0.05);
            border-left: 3px solid var(--lava-orange);
            margin-bottom: 1rem;
            border-radius: 0 8px 8px 0;
            transition: all 0.3s ease;
        }

        .event-item:hover {
            background: rgba(255, 69, 0, 0.1);
            transform: translateX(5px);
        }

        .event-date {
            text-align: center;
            min-width: 70px;
        }

        .event-date .day {
            font-size: 2rem;
            font-weight: 700;
            color: var(--lava-orange);
        }

        .event-date .month {
            font-size: 0.85rem;
            color: var(--text-secondary);
            text-transform: uppercase;
        }

        .event-info h4 {
            color: var(--text-primary);
            margin-bottom: 0.25rem;
        }

        .event-info .game-tag {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            background: rgba(255, 69, 0, 0.2);
            border-radius: 20px;
            font-size: 0.75rem;
            color: var(--lava-orange);
            margin-bottom: 0.5rem;
        }

        .event-info p {
            color: var(--text-secondary);
            font-size: 0.9rem;
			margin-bottom: 4px;
        }

 /* Base Card Design */

.staff-card:hover {
    transform: translateY(-5px);
    border-color: var(--lava-orange);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.2);
}

.staff-avatar {
    font-size: 2.5rem;
    color: var(--lava-orange);
    margin-bottom: 15px;
}

.staff-card h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

/* Role Badges */
.staff-role {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Update your staff grid to allow side-by-side boxes */
.staff-grid, #staffGrid {
    display: grid;
    /* Adjust 280px to make boxes wider or thinner */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px;
    padding: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    /* This forces items to be at least 280px, but fits as many as possible per row */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
}

/* Avatar Styling */
.avatar-circle {
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    border: 2px solid var(--lava-orange); 
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.member-list-avatar {
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    border: 1px solid var(--lava-orange);
}

.staff-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    /* Ensure cards don't stretch too wide on huge screens */
    max-width: 100%; 
}

        .staff-card p {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        /* Member List */
        .member-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .member-badge {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 25px;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .member-badge:hover {
            border-color: var(--lava-orange);
            box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
        }

        .member-badge .avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--lava-red), var(--lava-orange));
        }

		/* The Animation Keyframes */
		@keyframes fadeInUp {
			from {
				opacity: 0;
				transform: translateY(20px);
			}
			to {
				opacity: 1;
				transform: translateY(0);
			}
		}
        /* Server Status */
        .server-card {
			opacity: 0; /* Start hidden */
			animation: fadeInUp 0.5s ease forwards;
			transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            padding: 1.5rem;
			box-shadow: inset 0 0 100px rgba(0,0,0,0.5); /* This dulle/greys the background image */
        }

		.server-card:hover {
			transform: translateY(-8px) scale(1.01);
			border-color: var(--lava-orange);
			box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 69, 0, 0.2);
		}

		.btn-join:hover {
			transform: scale(1.05);
			filter: brightness(1.2);
		}

/* Ensure the grid keeps them all the same size */
#serverStatusGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}
        .server-game-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--lava-red), var(--lava-orange));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .server-info {
            flex: 1;
        }

        .server-info h4 {
            font-size: 1.2rem;
            margin-bottom: 0.25rem;
        }

        .server-info p {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .server-status {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.85rem;
        }

        .server-status.online {
            background: rgba(0, 255, 100, 0.2);
            color: #00ff64;
        }

        .server-status.offline {
            background: rgba(255, 0, 0, 0.2);
            color: #ff4444;
        }

        .server-status i {
            font-size: 0.6rem;
        }

        .server-widget-placeholder {
            margin-top: 1rem;
            padding: 2rem;
            background: rgba(0, 0, 0, 0.3);
            border: 2px dashed var(--border-color);
            border-radius: 8px;
            text-align: center;
            color: var(--text-dim);
        }

        /* Admin Panel */
        .admin-section {
            margin-bottom: 2rem;
        }

        .admin-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .admin-header h3 {
            color: var(--lava-orange);
            font-family: 'Cinzel', serif;
        }

        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.95rem;
        }

        .btn-primary {
            background: var(--gradient-fire);
            color: white;
        }

        .btn-primary:hover {
            box-shadow: 0 5px 20px rgba(255, 69, 0, 0.4);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-primary);
        }

        .btn-secondary:hover {
            border-color: var(--lava-orange);
            background: rgba(255, 69, 0, 0.1);
        }

        .btn-danger {
            background: linear-gradient(135deg, #cc0000, #880000);
            color: white;
        }

        .admin-table {
            width: 100%;
            border-collapse: collapse;
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
        }

        .admin-table th {
            background: rgba(255, 69, 0, 0.2);
            padding: 1rem;
            text-align: left;
            font-weight: 600;
            color: var(--lava-orange);
        }

        .admin-table td {
            padding: 1rem;
            border-bottom: 1px solid var(--border-color);
        }

        .admin-table tr:hover td {
            background: rgba(255, 69, 0, 0.05);
        }

        .admin-table .actions {
            display: flex;
            gap: 0.5rem;
        }

        .admin-table .btn-sm {
            padding: 0.5rem 1rem;
            font-size: 0.85rem;
        }

        /* Modal */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999; /* Ensures it is on top */
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex; /* This makes it visible */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-header h3 { color: var(--lava-orange); margin: 0; }

.close-btn {
    background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
}

.guide-list { color: #ccc; line-height: 1.6; padding-left: 20px; }
.guide-list li { margin-bottom: 10px; }
.guide-list code { background: #333; padding: 2px 6px; border-radius: 4px; color: #fff; }

.modal-note {
    background: rgba(255, 69, 0, 0.1);
    padding: 10px;
    border-left: 3px solid var(--lava-orange);
    font-size: 0.85rem;
    color: #bbb;
    margin-top: 15px;
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* The Background Overlay */
.modal {
    display: none; 
    position: fixed; 
    z-index: 10000; /* Higher than nav/footer */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(4px);
    
    /* Using Flexbox to perfectly center the content */
    align-items: center; 
    justify-content: center;
}

/* The Actual Form Box */
.modal-content {
    background: #1a0a0a; /* Matches your theme */
    border: 1px solid var(--lava-orange);
    padding: 2.5rem;
    border-radius: 12px;
    width: 95%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

/* Make sure the close button is visible inside the content */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-dim);
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.close:hover {
    color: var(--lava-orange);
}

/* Ensure the title inside looks correct */
.modal h2, .modal h3 {
    font-family: 'Cinzel', serif;
    color: var(--lava-orange);
    margin-bottom: 1.5rem;
}

        .form-group {
            margin-bottom: 1.25rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 0.75rem 1rem;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-family: 'Rajdhani', sans-serif;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--lava-orange);
            box-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
        }

        .modal-actions {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
            margin-top: 1.5rem;
        }

        /* About Page */
        .about-hero {
            display: flex;
            grid-template-columns: 1fr;
            gap: 3rem;
            align-items: center;
            margin-bottom: 3rem;
        }

        .about-content h2 {
            font-family: 'Cinzel', serif;
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            background: var(--gradient-fire);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .about-content p {
            color: #fff;
            line-height: 1.8;
            margin-bottom: 1rem;
        }

        .about-image {
            border-radius: 16px;
            overflow: hidden;
            border: 2px solid var(--border-color);
            box-shadow: 0 10px 40px rgba(255, 69, 0, 0.2);
        }

        .about-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-top: 3rem;
        }

        .feature-card {
            text-align: center;
            padding: 2rem;
        }

        .feature-card i {
            font-size: 3rem;
            color: var(--lava-orange);
            margin-bottom: 1rem;
        }

        .feature-card h4 {
            font-family: 'Cinzel', serif;
            margin-bottom: 0.5rem;
        }

        .feature-card p {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        /* Games Section */
        .games-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        .game-card {
            position: relative;
            overflow: hidden;
            text-align: center;
            padding: 2rem;
        }

        .game-card img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 1rem;
            filter: grayscale(30%);
            transition: all 0.3s ease;
        }

        .game-card:hover img {
            filter: grayscale(0%);
            transform: scale(1.05);
        }

        .game-card h4 {
            font-family: 'Cinzel', serif;
            margin-bottom: 0.5rem;
        }

/* Event Status Badges */
.event-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

/* Specific Themes */
.event-badge.upcoming {
    background: rgba(255, 165, 0, 0.15);
    color: #ffae00;
    border-color: #ffae00;
}

.event-badge.active {
    background: rgba(0, 255, 100, 0.2);
    color: #00ff64;
    border-color: #00ff64;
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.2);
}

.event-badge.completed {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    border-color: #444;
}

/* Make completed events look faded out */
.event-item.is-completed {
    opacity: 0.5;
}
.event-item.is-completed:hover {
    opacity: 0.8;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 100, 0.2); }
    50% { box-shadow: 0 0 15px rgba(0, 255, 100, 0.5); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 100, 0.2); }
}

        /* Platform Notice */
        .platform-notice {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.5rem;
            background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(139, 0, 0, 0.1));
            border: 1px solid var(--lava-red);
            border-radius: 12px;
            margin-bottom: 2rem;
        }

        .platform-notice i {
            font-size: 2rem;
            color: var(--lava-orange);
        }

        .platform-notice p {
            color: var(--text-secondary);
        }

        .platform-notice strong {
            color: var(--text-primary);
        }

        /* Footer */
        footer {
            background: linear-gradient(180deg, transparent, rgba(20, 5, 5, 0.95));
            border-top: 2px solid var(--lava-red);
            padding: 3rem 2rem;
            margin-top: 4rem;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
        }

        .footer-section h4 {
            font-family: 'Cinzel', serif;
            color: var(--lava-orange);
            margin-bottom: 1rem;
        }

        .footer-section a {
            display: block;
            color: var(--text-secondary);
            text-decoration: none;
            margin-bottom: 0.5rem;
            transition: color 0.3s ease;
        }

        .footer-section a:hover {
            color: var(--lava-orange);
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 2rem auto 0;
            padding-top: 2rem;
            border-top: 1px solid var(--border-color);
            text-align: center;
            color: var(--text-dim);
        }

.role-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    transition: 0.3s;
}

.staff-card:hover .role-icon-box {
    background: #ff4444;
    color: #fff;
    transform: scale(1.1);
}

/* MOTD Banner Container */
#motdArea {
    position: sticky;
	top: var(--header-height, 70px); /* Defaults to 0px if JS fails */
    z-index: 999; /* Slightly lower than nav so it slides 'under' if needed */
    width: 100%;
	display: block;
}
/* MOTD Banner - Full Width & Scaled Up */
.motd-banner {
    width: 100%;           /* Takes up full screen width */
    min-height: 80px;      /* Increased height */
    padding: 20px 40px;    /* More breathing room */
	margin: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.1); /* Optional separator line */
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the text for a cinematic look */
    gap: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;     /* Larger font size */
    font-weight: 700;      /* Bold for authority */
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Adds depth below the banner */
}

.motd-banner i {
    font-size: 2rem;       /* Larger icon to match font */
}

/* Updated 3 Settings with distinct bottom borders */
.motd-info {
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.1), rgba(0, 212, 255, 0.2), rgba(0, 123, 255, 0.1));
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

.motd-warning {
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.1), rgba(255, 174, 0, 0.2), rgba(255, 165, 0, 0.1));
    color: #ffae00;
    border-bottom-color: #ffae00;
}

.motd-critical {
    background: linear-gradient(90deg, rgba(204, 0, 0, 0.2), rgba(255, 0, 0, 0.3), rgba(204, 0, 0, 0.2));
    color: #ff4444;
    border-bottom-color: #ff0000;
    animation: pulse-red-full 2s infinite;
}

@keyframes pulse-red-full {
    0% { background-color: rgba(255, 0, 0, 0.1); }
    50% { background-color: rgba(255, 0, 0, 0.3); }
    100% { background-color: rgba(255, 0, 0, 0.1); }
}




        /* Responsive */
        @media (max-width: 1024px) {
            .grid-3, .grid-4, .games-grid, .features-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .about-hero {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }
            
            nav {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: rgba(10, 5, 5, 0.98);
                padding: 1rem;
                display: none;
                border-top: 1px solid var(--border-color);
            }
            
            nav.active {
                display: block;
            }
            
            nav ul {
                flex-direction: column;
            }
            
            .grid-2, .grid-3, .grid-4, .games-grid, .features-grid {
                grid-template-columns: 1fr;
            }


            .hero h2 {
                font-size: 2rem;
            }
            
            .quick-links {
                flex-direction: column;
            }
            
            .footer-content {
                grid-template-columns: 1fr 1fr;
            }
            
            .admin-table {
                display: block;
                overflow-x: auto;

.mainNav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background: rgba(20, 20, 20, 0.95);
        padding: 1rem 0;
        z-index: 1000;
    }

    /* This is the key: when JS adds 'active', show the menu */
    .mainNav.active {
        display: flex !important;
    }
            }
        }

/* --- FORCE FONT CHANGE --- */
.page#staff .staff-card h3, 
.page#staff .member-name {
    font-family: 'Cinzel', serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: none !important;
}

/* --- FORCE ROLE BOXES --- */
.staff-card .role-title, 
.member-badge .member-role-tag {
    display: inline-block !important;
    padding: 6px 15px !important;
    border-radius: 4px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* --- THE GRADIENT LIST (Universal Fix) --- */
/* Leadership */
.role-overlord .role-title, .role-overlord .member-role-tag { background: linear-gradient(135deg, #ff0000, #8b0000) !important; border-color: #ff0000 !important; }
.role-archdemon .role-title, .role-archdemon .member-role-tag { background: linear-gradient(135deg, #cc0000, #660000) !important; border-color: #cc0000 !important; }
.role-inquisitor .role-title, .role-inquisitor .member-role-tag { background: linear-gradient(135deg, #aa0000, #440000) !important; border-color: #aa0000 !important; }

/* High Command */
.role-overseer .role-title, .role-overseer .member-role-tag { background: linear-gradient(135deg, #ff4500, #cc3300) !important; border-color: #ff4500 !important; }
.role-soulwarden .role-title, .role-soulwarden .member-role-tag { background: linear-gradient(135deg, #ff6600, #994400) !important; border-color: #ff6600 !important; }
.role-gatekeeper .role-title, .role-gatekeeper .member-role-tag { background: linear-gradient(135deg, #7a0000, #330000) !important; border-color: #7a0000 !important; }

/* Keepers & Guardians */
.role-demon-lord .role-title, .role-demon-lord .member-role-tag { background: linear-gradient(135deg, #ff8800, #aa5500) !important; border-color: #ff8800 !important; }
.role-executioner .role-title, .role-executioner .member-role-tag { background: linear-gradient(135deg, #ffaa00, #996600) !important; border-color: #ffaa00 !important; }
.role-flamekeeper .role-title, .role-flamekeeper .member-role-tag { background: linear-gradient(135deg, #ff4d00, #802b00) !important; border-color: #ff4d00 !important; }
.role-watcher .role-title, .role-watcher .member-role-tag { background: linear-gradient(135deg, #4d4d4d, #1a1a1a) !important; border-color: #4d4d4d !important; }

/* Specialists */
.role-harbinger .role-title, .role-harbinger .member-role-tag { background: linear-gradient(135deg, #ffcc00, #cc9900) !important; border-color: #ffcc00 !important; color: #000 !important; }
.role-ritual .role-title, .role-ritual .member-role-tag { background: linear-gradient(135deg, #8a2be2, #4b0082) !important; border-color: #8a2be2 !important; }
.role-herald .role-title, .role-herald .member-role-tag { background: linear-gradient(135deg, #ff3300, #992200) !important; border-color: #ff3300 !important; }
.role-runesmith .role-title, .role-runesmith .member-role-tag { background: linear-gradient(135deg, #00d4ff, #005577) !important; border-color: #00d4ff !important; }
