html, body {
    height: 100%;
    min-height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}
body, .main-bg {
    min-height: 100vh;
    background: #101117;
    color: #e0e0ff;
    display: flex;
    flex-direction: column;
}

/* HEADER LAYOUT */
.site-header {
    background: #161925;
    box-shadow: 0 4px 28px 0 #1b1f3840;
    margin-bottom: 2.5em;
    border-bottom: none;
}
.header-top {
    padding: 2em 0 0.8em 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 2px solid #2196f3;
    width: 100%;
}

/* LOGO - NO GLOW */
.logo-glow {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.19em;
    padding: 0.12em 1.3em 0.12em 0.3em;
    background: transparent;
    color: #fff;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    filter: none;
    margin-left: 0;
    text-decoration: none;
    transition: background 0.2s;
}
.logo-glow:hover {
    box-shadow: none;
    background: #23244a22;
    filter: none;
}
.logo-svg {
    margin-right: 0.6em;
    filter: none;
    background: transparent;
    border-radius: 0;
    display: inline-block;
    vertical-align: middle;
}
.logo-text {
    display: inline-block;
    vertical-align: middle;
}
.logo-part1 {
    color: #5ea8ff;
    font-weight: 900;
    letter-spacing: 0.22em;
    filter: none;
    margin-right: 0.10em;
    text-shadow: none;
}
.logo-part2 {
    color: #d1c7ff;
    font-weight: 600;
    margin-left: 0.18em;
    letter-spacing: 0.08em;
    filter: none;
    text-shadow: none;
}

/* NAV BAR UNDER LOGO */
.header-nav-bar {
    width: 100%;
    background: #191b24;
    border-top: 2px solid #23244a;
    border-bottom: 3px solid #2196f3;
    box-shadow: 0 3px 16px #2196f326;
    padding: 0.4em 0;
    margin-bottom: 1.2em;
    display: flex;
    align-items: center;
    overflow-x: auto;
}
.nav-group {
    display: flex;
    align-items: center;
    gap: 2.2em;
    width: 100%;
    justify-content: flex-start;
    margin: 0 auto;
    max-width: 1100px;
}
.nav-link {
    color: #b7c7e6;
    padding: 0.4em 1.3em;
    border-radius: 7px;
    font-size: 1.08em;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    background: transparent;
    transition: color 0.15s, background 0.18s, text-shadow 0.18s, box-shadow 0.18s;
    display: flex;
    align-items: center;
}
.nav-link:hover, .nav-link:focus {
    color: #fff;
    background: #1936a7;
    text-shadow: none;
    box-shadow: none;
}

/* CARDS & FORMS */
.card, .bg-panel, .p-4, .sm\:p-8 {
    background: rgba(22, 25, 37, 0.98);
    border: 1.5px solid #5ea8ff;
    border-radius: 16px;
    box-shadow: 0 0 32px 0 #5ea8ff22, 0 2px 24px #10111722;
    margin-bottom: 2.4em;
    padding: 2em 2.5em !important;
}
.card:hover {
    border-color: #2196f3;
    box-shadow: 0 0 36px #2196f322, 0 4px 28px #10111722;
    transition: box-shadow 0.2s, border-color 0.2s;
}

input, textarea, select {
    background: #161925;
    color: #e0e0ff;
    border: 1px solid #2196f3;
    border-radius: 4px;
    padding: 0.7em 1.1em;
    margin-bottom: 1.1em;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #5ea8ff;
    box-shadow: 0 0 6px #5ea8ff33, 0 0 2px #d1c7ff22;
}

button, .btn {
    background: linear-gradient(90deg, #1f3b6c 0%, #5ea8ff 100%);
    color: #fff;
    border: none;
    padding: 0.65em 2.2em;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.13em;
    letter-spacing: 0.08em;
    cursor: pointer;
    margin-top: 1em;
    margin-bottom: 0.8em;
    box-shadow: none;
    text-shadow: none;
    transition: background 0.2s, box-shadow 0.2s;
}
button:hover, .btn:hover {
    background: linear-gradient(90deg, #2196f3 0%, #6c3483 100%);
    box-shadow: none;
}

.profile-avatar, .rounded-full {
    border: 3px solid #5ea8ff;
    box-shadow: none;
}

.neon-text {
    color: #5ea8ff;
    text-shadow: none;
    font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
}

/* Footer always at bottom */
.site-footer {
    background: #181a22;
    color: #5ea8ff;
    box-shadow: none;
    padding: 1.5em 0 1em 0;
    border-top: 2px solid #2196f3;
    text-align: center;
    font-size: 1.08em;
    letter-spacing: 1px;
    margin-top: auto;
    width: 100%;
}

/* Main container */
.container {
    max-width: 1100px;
    margin: 0 auto;
}

main {
    flex: 1;
    width: 100%;
    min-width: 0;
}

/* Prevent horizontal scroll on everything */
* {
    box-sizing: border-box;
}