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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #eee;
    background-color: #1a1a2e;
    background-image: url('../media/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-y: auto;
}

main {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
}

header {
    background: rgba(10, 15, 30, 0.82);
    backdrop-filter: blur(10px);
    padding: 0 40px;
    height: 64px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(226, 185, 111, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    color: #e2b96f;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.nav-right a {
    color: rgba(240, 236, 227, 0.6);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}

.nav-right a:hover {
    color: #f0ece3;
}

nav a {
    color: rgba(240, 236, 227, 0.6);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-left: 0;
    transition: color 0.2s;
    position: relative;
}

nav a:hover {
    color: #f0ece3;
}

nav a:hover::after, .nav-right a:hover::after {
    width: 100%;
}

nav a::after , .nav-right a::after{
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: #e2b96f;
    transition: width 0.25s;
}


/* ── Profile ── */
.auth-box-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    color: #e2b96f;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-box {
    max-width: 500px;
}

.profile-scores {
    border-top: 1px solid rgba(226,185,111,0.15);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.profile-scores-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: #e2b96f;
    margin-bottom: 1rem;
    text-align: center;
}

.profile-no-score {
    text-align: center;
    color: rgba(240,236,227,0.35);
    font-size: 0.85rem;
    margin-bottom: 0 !important;
    text-shadow: none !important;
}

.profile-logout {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-submit-outline {
    background: transparent !important;
    border: 1px solid rgba(226,185,111,0.3) !important;
    color: #e2b96f !important;
    text-decoration: none;
    display: inline-block;
}

.profile-avatar-wrap {
    text-align: center;
    margin-bottom: 1.2rem;
}
.profile-avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(226,185,111,0.4);
}
.profile-avatar-placeholder {
    font-size: 3rem;
    line-height: 1;
    text-align: center;
    margin-bottom: 0.5rem;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(145deg, #0f0f1e, #16213e);
    border: 1px solid rgba(226, 185, 111, 0.25);
    padding: 2rem 2.5rem;
    border-radius: 4px;
    width: 340px;
    color: #f0ece3;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.modal h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    color: #e2b96f;
    margin-bottom: 1.2rem;
}

.modal ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.modal ul li {
    font-size: 0.88rem;
    color: rgba(240,236,227,0.75);
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.modal ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #e2b96f;
}

.modal a {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(240,236,227,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.modal a:hover { color: #e2b96f; }

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(10, 15, 30, 0.82);
    color: #aaa;
    text-align: center;
    font-size: 0.75rem;
    z-index: 5;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}