* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
body {
    background-color: #4d2f1f;
    background-image: url('../assets/images/main-bg.svg');
    background-repeat: repeat;
    background-position: left top;
    color: #f3e5d6;
}
header {
    background-color: #333;
    background-image: url('../assets/images/navbar-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 20px;
    text-align: center;
}
.normal-header {
    display: block;
}
.hamburger-header {
    display: none;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: #443624; */
    
    /* background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
    padding: 10px 20px;
}
nav .logo {
    height: 60px;

}
nav .logo img {
    height: 100%;
}
nav .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
a {
    color: #fff;
    text-decoration: none !important;
    font-size: 18px;
}
li {
    list-style: none;
    margin: 0 auto;
}
main {
    padding: 20px;
}

.profile-info {
    max-width: 520px;
    margin: 36px auto;
    padding: 28px 30px;
    background-image: url('../assets/images/profile-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.profile-info::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19, 10, 6, 0.24), rgba(19, 10, 6, 0.6));
    pointer-events: none;
}

.profile-info h2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 2rem;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    margin-bottom: 12px;
}

.profile-info p {
    position: relative;
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    /* text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); */
}

.profile-info .profile-picture {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.12);
}

.level-summary {
    display: inline-block;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 14px;
}

.level-badge {
    display: inline-block;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.xp-total {
    display: inline-block;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    /* margin: 0; */
    color: #f3e5d6;
    opacity: 0.88;
}

.level-box {
    margin: 18px 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
}

.level-progress-bar {
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f6cd5a, #f3e5d6);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.level-detail,
.level-next {
    margin: 0;
    font-size: 0.95rem;
    color: #f3e5d6;
    opacity: 0.9;
}

.auth-card {
    position: relative;
    max-width: 480px;
    margin: 64px auto;
    padding: 32px 28px 26px;
    background: linear-gradient(180deg, #f9e3bc 0%, #e2c28b 100%);
    border: 1px solid #7a542f;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    color: #4c2f18;
}

.auth-card::before {
    content: 'Bounty Access';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #7a4b24;
    color: #fbe8b3;
    padding: 8px 22px;
    border-radius: 16px;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.auth-card h2 {
    margin-bottom: 16px;
    color: #6d3d1f;
    letter-spacing: 0.08em;
}

.auth-card p {
    margin-bottom: 20px;
    color: #4b3221;
}

.edit-profile-form {
    max-width: 480px;
    margin: 64px auto;
    padding: 32px 28px 26px;
    background: linear-gradient(180deg, #f9e3bc 0%, #e2c28b 100%);
    border: 1px solid #7a542f;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    color: #4c2f18;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #5f3f25;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #b6956f;
    background: rgba(255, 255, 255, 0.95);
    color: #4f3220;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08);
}

.form-control:focus {
    outline: none;
    border-color: #8e5b2d;
    box-shadow: 0 0 0 4px rgba(143, 79, 33, 0.12);
}

.invalid-feedback {
    color: #b3302f;
    margin-top: 8px;
    display: block;
}

.alert {
    background: rgba(173, 60, 44, 0.12);
    border: 1px solid rgba(173, 60, 44, 0.2);
    color: #7a241f;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
}

/* .form-group .btn {
    width: 100%;
} */

.form-group p {
    margin-top: 12px;
    color: #4f3020;
}

.form-group .profile-picture {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.12);
}

form {
    margin: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.bounty-board {
    max-width: 1080px;
    margin: 36px auto 0;
    padding: 40px 36px 32px;
    background-image: url('../assets/images/bounty-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 18px 50px rgba(0, 0, 0, 0.28);
}

.bounty-board h2 {
    margin-top: 0;
    color: #f9d68e;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.12em;
}

.bounty-card {
    position: relative;
    margin-bottom: 24px;
    padding: 32px 28px 26px;
    background: linear-gradient(180deg, #f8e3b5 0%, #e0c491 100%);
    background-image: linear-gradient(180deg, #f7e1b2 0%, #ddc18b 100%), repeating-linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.04) 1px, transparent 1px, transparent 14px);
    border: 2px solid #7a542f;
    border-radius: 22px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
    color: #462d16;
    overflow: visible;
}

.bounty-card::before {
    content: 'WANTED';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding: 6px 18px;
    background: #8f4d20;
    color: #f8e3a0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.bounty-card h3 {
    margin: 0 0 10px;
    color: #5a301c;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bounty-card p {
    margin: 0 0 16px;
    line-height: 1.6;
    color: #52361d;
}

.bounty-card span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(112, 62, 22, 0.14);
    color: #5e3316;
    font-size: 0.95rem;
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 12px;
    /* border: 2px solid rgba(255, 255, 255, 0.35); */
    background-image: url('../assets/images/button-bg.svg');
    background-size: 400px 100%;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.btn.btn-primary {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 3px 8px rgba(0, 0, 0, 0.25);
}

.btn.btn-secondary {
    background-color: rgba(70, 44, 28, 0.9);
    background-blend-mode: multiply;
}

.btn:hover {
    opacity: 0.95;
}

/* .profile-info {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #4c2f18;
    background-image: url('../assets/images/profile-bg.svg');
    background-size: cover;
} */

.profile-picture {
    height: 1em;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #7a542f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-master-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 300px;
    /* padding: 0 !important; */
}

.game-master-actions a {
    width: 100%;
    text-align: center;
    background-size: cover;
}

.bounty-review-card {
    position: relative;
    margin-bottom: 24px;
    padding: 32px 28px 26px;
    background: linear-gradient(180deg, #f8e3b5 0%, #e0c491 100%);
    background-image: linear-gradient(180deg, #f7e1b2 0%, #ddc18b 100%), repeating-linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.04) 1px, transparent 1px, transparent 14px);
    border: 2px solid #7a542f;
    border-radius: 22px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
    color: #462d16;
    overflow: visible;
}

.manage-bounty-card {
    position: relative;
    margin-bottom: 24px;
    padding: 32px 28px 26px;
    background: linear-gradient(180deg, #f8e3b5 0%, #e0c491 100%);
    background-image: linear-gradient(180deg, #f7e1b2 0%, #ddc18b 100%), repeating-linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.04) 1px, transparent 1px, transparent 14px);
    border: 2px solid #7a542f;
    border-radius: 22px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
    color: #462d16;
    overflow: visible;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}
.leaderboard-table th, .leaderboard-table td {
    border: 1px solid white;
    padding: 0.5vh 0.5vw;
    text-align: left;
}
.leaderboard-table img {
    height: 1em;
    border-radius: 1em;
}

.manage-user-card {
    position: relative;
    margin-bottom: 24px;
    padding: 32px 28px 26px;
    background: linear-gradient(180deg, #f8e3b5 0%, #e0c491 100%);
    background-image: linear-gradient(180deg, #f7e1b2 0%, #ddc18b 100%), repeating-linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.04) 1px, transparent 1px, transparent 14px);
    border: 2px solid #7a542f;
    border-radius: 22px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
    color: #462d16;
    overflow: visible;
}

@media (max-width: 700px) {
    .normal-header {
        display: none;
    }

    .hamburger-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .navbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 20px;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
    }

    .hamburger-menu .bar {
        height: 3px;
        width: 100%;
        background: linear-gradient(180deg, #f8e3b5 0%, #e0c491 100%);
        background-image: linear-gradient(180deg, #f7e1b2 0%, #ddc18b 100%), repeating-linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.04) 1px, transparent 1px, transparent 14px);
        border-radius: 2px;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav .nav-links {
        display: none;
        flex-direction: column;
        /* position: absolute; */
        /* top: 50%; */
        /* right: 0; */
        /* background-color: #443624; */
        width: 100%;
        /* max-width: 240px; */
        /* padding: 20px; */
        gap: 12px;
    }

    nav .nav-links.active {
        display: flex !important;
    }

    nav .nav-links li {
        width: 100%;
    }

    nav .nav-links .btn {
        width: 100%;
        text-align: center;
        /* max-width: 240px; */
        background-size: cover;
    }

    .profile-info {
        padding: 24px 20px;
    }

    .profile-info h2 {
        font-size: 1.75rem;
    }
    
    .profile-info .profile-picture {
        width: 72px;
        height: 72px;
    }
}