/* 
   VexRP Premium CSS - Obsidian Tech Theme
   Design Style: Deep obsidian background, sleek neon-blue/teal highlights, glassmorphism, and responsive layouts.
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Sora:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Colors */
    --bg-base: #050608;
    --bg-surface: #0a0c10;
    --bg-surface-hover: #10141b;
    --border-color: rgba(255, 255, 255, 0.04);
    --border-color-hover: rgba(255, 255, 255, 0.08);
    
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --accent: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.2);
    --discord-color: #5865f2;
    --discord-glow: rgba(88, 101, 242, 0.15);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #475569;
    
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
}

/* Base Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--bg-base);
    transition: background-color 0.4s ease;
}

body.home-active {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 50% -10%, rgba(14, 165, 233, 0.1) 0px, transparent 60%),
        radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

::selection {
    background: var(--primary-glow);
    color: #fff;
}

/* Background Glowing Ambiance */
.bg-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.glow-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation: pulseGlow 15s infinite alternate;
}

.glow-2 {
    bottom: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: pulseGlow 20s infinite alternate-reverse;
}

.glow-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.5) 0%, transparent 70%);
    opacity: 0.05;
}

@keyframes pulseGlow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.12;
    }
    100% {
        transform: translate(40px, -40px) scale(1.15);
        opacity: 0.2;
    }
}

/* Header & Navigation */
header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    background: rgba(6, 8, 12, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Brand */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
}
.logo-img {
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.25));
    transition: var(--transition-smooth);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.4));
}

/* Menu Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.25rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    padding: 0.5rem 0;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
}

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

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: #fff;
}

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

/* Server Status Mini Badge in Nav */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-mini {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    font-weight: 500;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    position: relative;
}

.status-indicator-dot.online {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.status-indicator-dot.online::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Menu Toggle Button for Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Container and Pages SPA */
main.site-content {
    flex: 1;
    padding-top: 5.5rem; /* Navbar gap */
    display: flex;
    flex-direction: column;
}

.page {
    display: none;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem 2rem;
    will-change: opacity, transform;
}

.page.active {
    display: block;
    animation: pageFadeIn 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes pageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================================
   HOME PAGE (DOMŮ) - Launcher & HUD Layout
   ==================================================== */
.hero-section {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 3rem;
    height: calc(100vh - 5.5rem);
    min-height: 640px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 4rem 10% 2.5rem 10%;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    margin-top: -5.5rem; /* pull up to sit behind navbar */
    overflow: hidden;
}

.hero-top-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    width: 100%;
    align-items: center;
}

/* Left Column: Clean Premium Typography Column */
.hero-left {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    width: 100%;
    max-width: 620px;
    box-shadow: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: #ffffff;
    text-transform: uppercase;
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.25rem;
    max-width: 100%;
    border-left: none;
    padding-left: 0;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    width: 100%;
}

/* Premium Buttons (Sharp corners for gaming UI) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 4px; /* Sharp gaming style */
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-discord {
    background: linear-gradient(135deg, var(--discord-color) 0%, #4752c4 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px var(--discord-glow);
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.4);
    filter: brightness(1.1);
}

/* Sleek Auto-Switching Role Showcase Panel */
.role-showcase-panel {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background: rgba(10, 12, 16, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.role-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.role-tab {
    position: relative;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.role-tab:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.role-tab.active {
    background: rgba(59, 130, 246, 0.04);
    border-color: rgba(59, 130, 246, 0.15);
    color: #fff;
    box-shadow: inset 0 0 12px rgba(59, 130, 246, 0.05);
}

.role-tab-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.role-tab[data-role="state"] .role-tab-icon { color: #0ea5e9; }
.role-tab[data-role="crime"] .role-tab-icon { color: #ef4444; }
.role-tab[data-role="life"] .role-tab-icon { color: #f59e0b; }

.role-tab-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.tab-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent);
    transition: none;
}
.role-tab[data-role="state"].active .tab-progress { background: #0ea5e9; }
.role-tab[data-role="crime"].active .tab-progress { background: #ef4444; }
.role-tab[data-role="life"].active .tab-progress { background: #f59e0b; }

.role-contents {
    position: relative;
    width: 100%;
}

.role-content {
    display: none;
    animation: fadeTab 0.4s ease forwards;
    width: 100%;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.role-content.active {
    display: grid;
}

@keyframes fadeTab {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.role-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-title-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.25px;
}

.role-desc-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 820px;
}

.role-tag-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.role-tag-badge {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-tag-badge.crimson {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.role-tag-badge.amber {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}



/* CCTV / Character Display Right Column */
.hero-right {
    display: flex;
    justify-content: flex-end;
    position: relative;
    width: 100%;
}

.hero-right-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
}

.hero-status-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

/* Live Dashboard Widget */
.status-dashboard {
    width: 100%;
    background: rgba(9, 11, 16, 0.85);
    border: 1px solid rgba(14, 165, 233, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(14, 165, 233, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    position: relative;
    z-index: 5;
    animation: fadeInDashboard 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.status-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
    z-index: 1;
}

.status-dashboard::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

@keyframes fadeInDashboard {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.85rem;
    position: relative;
    z-index: 2;
}

.db-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.db-subtitle {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    opacity: 0.7;
}

.db-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.status-badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

.status-badge-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.dashboard-main-metric {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.metric-value-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
    position: relative;
    z-index: 2;
}

.metric-label-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.metric-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.metric-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.slots-gauge-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.slots-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
}

/* Dashboard Sub List (Latence, IP) */
.dashboard-sub-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.sub-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.sub-metric-row.clickable {
    cursor: pointer;
}

.sub-metric-row.clickable:hover {
    background: rgba(14, 165, 233, 0.03);
    border-color: rgba(14, 165, 233, 0.12);
}

.sub-metric-row.clickable:hover .copy-sub-icon {
    color: var(--accent);
}

.dashboard-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.sub-metric-box {
    background: rgba(255, 255, 255, 0.005);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: var(--transition-fast);
}

.sub-metric-box.clickable {
    cursor: pointer;
}

.sub-metric-box.clickable:hover {
    border-color: rgba(14, 165, 233, 0.2);
    background: rgba(14, 165, 233, 0.02);
}

.sub-metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.sub-metric-label i {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.sub-metric-value {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.copy-sub-icon {
    font-size: 0.72rem;
    color: var(--text-dim);
    transition: var(--transition-fast);
}

.sub-metric-box.clickable:hover .copy-sub-icon {
    color: var(--accent);
}

.dashboard-footer {
    width: 100%;
    position: relative;
    z-index: 2;
}

.btn-connect-server {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.25),
        0 0 20px rgba(14, 165, 233, 0.1);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.btn-connect-server:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.4),
        0 0 30px rgba(14, 165, 233, 0.15);
    filter: brightness(1.08);
}

/* Philosophy Quote Layout */
.philosophy-box {
    margin-top: 0.5rem;
    border-top: none;
    padding-top: 0;
    width: 100%;
    position: relative;
    z-index: 2;
}

.philosophy-text {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    border-left: 2px solid rgba(14, 165, 233, 0.4);
    padding-left: 0.85rem;
    font-style: normal;
    text-align: left;
}

.philosophy-text .highlight-nonprofit {
    color: #fff;
    font-weight: 700;
    display: inline-block;
}

/* ====================================================
   RULES PAGE (PRAVIDLA)
   ==================================================== */
.page-title-section {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}

.page-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.rules-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* Rules Index Navigation */
.rules-nav {
    position: sticky;
    top: 7.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rules-nav-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.rules-nav-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
}

.rules-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.rules-nav-link.active {
    color: var(--accent);
    background: rgba(14, 165, 233, 0.08);
}

/* Rules Content Panel */
.rules-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.rules-search-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rules-search-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.rules-search-input {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    width: 100%;
    font-family: var(--font-body);
}

.rules-search-input::placeholder {
    color: var(--text-dim);
}

/* Rules Block/Group */
.rules-group {
    scroll-margin-top: 8rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rules-group-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rules-group-title span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Rule Card - Simplified Minimalist Layout (title on top, description below) */
.rule-card {
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0;
    padding: 1.25rem 0;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    display: none;
}

.rule-card:hover {
    border-color: rgba(14, 165, 233, 0.15);
    transform: none;
    box-shadow: none;
}

.rule-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.rule-name {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.rule-badge {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--accent);
}

.rule-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.rule-text strong {
    color: #fff;
}

.rule-text p {
    margin-bottom: 0.5rem;
}

.rule-text p:last-child {
    margin-bottom: 0;
}

.rule-card.highlight {
    background: rgba(14, 165, 233, 0.02);
    border-bottom: 1px solid rgba(14, 165, 233, 0.3);
}

/* ====================================================
   SERVER INFORMACE (SERVER INFO)
   ==================================================== */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 5rem;
}

.info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-surface-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.info-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.info-card-title i {
    color: #ffffff;
    font-size: 1.15rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.info-card-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-top: 0;
}

/* F8 Command Copy Block */
.f8-connection-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.f8-connection-box::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.f8-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.f8-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.f8-console-bar {
    background: #030508;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.88rem 1.5rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 650px;
    width: 100%;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.f8-console-code {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    word-break: break-all;
    text-align: left;
}

.f8-console-code span {
    color: #fff;
    margin-right: 0.5rem;
    user-select: none;
}

.btn-copy-console {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy-console:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.f8-buttons-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ====================================================
   KOMUNITA (COMMUNITY)
   ==================================================== */
.discord-banner-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.discord-banner-card::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.discord-banner-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.discord-banner-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.discord-banner-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.discord-banner-right {
    display: flex;
    justify-content: center;
}

.discord-server-widget {
    background: #0c0f17;
    border: 1px solid rgba(88, 101, 242, 0.15);
    border-radius: var(--radius-md);
    padding: 2rem;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.widget-icon {
    font-size: 2.25rem;
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

.widget-name {
    font-weight: 700;
    font-size: 1.15rem;
}

.widget-status {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.widget-stats {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

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

.widget-stat-val {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
}

.widget-stat-val.online-count {
    color: #10b981;
}

.widget-stat-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.2rem;
}

/* ====================================================
   WHITELIST PAGE
   ==================================================== */
.whitelist-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.whitelist-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.5rem;
    display: flex;
    gap: 1.25rem;
    transition: var(--transition-smooth);
    align-items: center;
}

.step-card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.step-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.08rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.step-desc a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.step-desc a:hover {
    text-decoration: underline;
}

.whitelist-info-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wl-panel-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.wl-panel-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.wl-panel-desc strong {
    color: #fff;
}

.wl-highlight-box {
    background: rgba(14, 165, 233, 0.04);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.95rem;
    text-align: center;
}

.faction-notice {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-family: var(--font-body);
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    line-height: 1.5;
}

.faction-notice i {
    font-size: 1.25rem;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* ====================================================
   FOOTER
   ==================================================== */
footer.main-footer {
    border-top: 1px solid var(--border-color);
    background: #040508;
    padding: 4rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-rights {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: #fff;
}

/* ====================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ==================================================== */
@media (max-width: 1024px) {
    /* Navbar Toggle */
    .nav-links {
        display: none; /* Triggered via mobile menu toggle in app.js */
    }
    .menu-toggle {
        display: block;
    }
    .status-mini {
        display: none; /* Hide mini badge in navbar to avoid cluttering */
    }
    .nav-container {
        padding: 1rem 1.5rem;
    }

    /* Hero Section */
    .hero-section {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: initial;
        gap: 3rem;
        text-align: center;
        width: 100%;
        margin-left: 0;
        margin-top: 0;
        padding: 5rem 1.5rem;
        background-attachment: scroll; /* Disable parallax on tablets/mobiles */
    }
    .hero-top-row {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    .hud-corner {
        display: none;
    }
    .hero-left {
        align-items: center;
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }
    .hero-title {
        font-size: 3.25rem;
    }
    .hero-subtitle {
        max-width: 100%;
        border-left: none;
        padding-left: 0;
    }
    .hero-actions {
        justify-content: center;
    }

    /* Role showcase panel responsive overrides */
    .role-showcase-panel {
        padding: 1.25rem 1.5rem;
        gap: 1.5rem;
    }
    .role-tabs {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
    .role-tab {
        padding: 0.75rem 1rem;
    }
    .role-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    .role-tag-badges {
        justify-content: center;
    }
    .hero-right-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        gap: 1.25rem;
    }
    .philosophy-text {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        border-left: none;
        padding-left: 0;
    }

    /* Info grids layout (collapse to 2 columns on tablet) */
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* Rules Page */
    .rules-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .rules-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 0.75rem;
        gap: 0.75rem;
        -webkit-overflow-scrolling: touch;
    }
    .rules-nav-title {
        display: none;
    }
    .rules-nav-link {
        white-space: nowrap;
        width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Whitelist Page */
    .whitelist-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Discord Widget Banner */
    .discord-banner-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 1.5rem;
        gap: 2.5rem;
    }
    .discord-banner-left {
        align-items: center;
    }
}

@media (max-width: 768px) {
    /* General Padding Adjustments */
    .page {
        padding: 2rem 1rem 4rem 1rem;
    }

    /* Typography scale down */
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    .page-title {
        font-size: 2.25rem;
        letter-spacing: -1px;
    }

    /* Full-width Stacked Buttons */
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    /* Statement Block */
    .philosophy-box {
        margin-top: 2rem;
    }
    .philosophy-text {
        font-size: 0.95rem;
        padding-left: 1rem;
    }

    /* Collapse to 1 column on mobile width */
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .info-card {
        padding: 1rem 1.25rem;
    }

    /* Console Connect Bar stacking */
    .f8-console-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: stretch;
    }
    .f8-console-code {
        font-size: 0.9rem;
        text-align: center;
    }
    .btn-copy-console {
        align-self: center;
    }
    .f8-buttons-row {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .footer-links {
        flex-direction: column;
    }
}

/* ====================================================
   NATIVE CURSOR BEHAVIOR
   ==================================================== */
a, button, [role="button"], input[type="submit"], input[type="button"], select, textarea, .nav-link, .rules-nav-link, [onclick] {
    cursor: pointer !important;
}
