* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e27;
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.4);
    pointer-events: none;
}
/* Hide dynamic nav links until nav-auth.js has run (avoids menu "loading after" the page) */
html.nav-auth-pending #nav-dashboard-link,
html.nav-auth-pending #nav-login-link,
html.nav-auth-pending #nav-admin-link {
    visibility: hidden;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 40px;
    width: 100%;
    max-width: min(1680px, 95vw);
    margin: 0 auto;
}
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 950px;
    margin: 0 auto 20px;
    padding: 14px 20px;
    background: rgba(10, 14, 39, 0.10);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
}
.main-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.main-nav .nav-links a {
    color: #e0e0e0 !important;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    font-size: 0.95rem;
}
.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
    background: rgba(0, 217, 255, 0.15);
    color: #00D9FF !important;
}
.main-nav .nav-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.4);
    pointer-events: none;
    z-index: 0;
}

.nav-menu {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.10);
    backdrop-filter: blur(12px);
    margin-bottom: 20px;
    border-radius: 16px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 950px !important;
    margin: 0 auto;
    padding: 14px 20px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00D9FF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-link {
    color: #e0e0e0 !important;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(0, 217, 255, 0.15);
    color: #00D9FF !important;
}

.nav-link.discord-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link.discord-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Override Bootstrap .container: always full width of parent so it matches admin-subnav (no min/max shrink from Bootstrap breakpoints) */
.page-wrapper .container,
.page-wrapper .main-content .container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

.site-footer {
    margin-top: auto;
    margin-bottom: 20px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    padding: 14px 20px;
    background: rgba(10, 14, 39, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-left {
    align-items: flex-start;
}

.footer-right {
    align-items: flex-end;
}

.footer-label {
    color: #00D9FF;
    font-size: 1rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-section a {
    color: #e4e7ff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: #00D9FF;
}

.footer-separator {
    color: #9ca5c4;
    font-size: 0.95rem;
}

.footer-copyright {
    color: #9ca5c4;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-right {
        align-items: flex-start;
    }
}

