/* ========= PALETTE & GLOBAL ========= */
:root {
    --blue: #007A8A;
    --blue-dark: #005F6A;
    --blue-soft: #E5F6F8;
    --gold: #F2C14F;
    --white: #ffffff;
    --text: #1F2933;
    --shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
    --transition: .25s ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F4F7FB;
    color: var(--text);
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========= HEADER ========= */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 99999;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

/* Logo */
.logo a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    color: var(--blue-dark);
    letter-spacing: .5px;
}

.logo span {
    color: var(--gold);
}

/* Desktop menu */
.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    color: #4B5563;
    font-size: 15px;
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--blue-dark);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--gold);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Auth buttons (desktop) */
.auth-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline {
    border-color: var(--blue);
    color: var(--blue);
    background: transparent;
}

.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
}

.btn-filled {
    background: var(--blue);
    color: var(--white);
}

.btn-filled:hover {
    background: var(--blue-dark);
}

/* ========= MOBILE NAV ========= */
.mobile-menu-btn {
    display: none;
    font-size: 26px;
    border: none;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    position: relative;
    z-index: 100000;
}

/* Sidebar */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 18px 18px 30px;
    transition: .35s ease;
    z-index: 200000;
    display: flex;
    flex-direction: column;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 18px;
    color: var(--blue-dark);
}

.close-btn {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: var(--blue);
}

.mobile-nav a {
    text-decoration: none;
    color: var(--blue-dark);
    font-weight: 600;
    padding: 10px 0;
    font-size: 16px;
}

.mobile-nav a:hover {
    color: var(--gold);
}

.mobile-login {
    margin-top: 6px;
}

.mobile-register {
    margin-top: 2px;
    color: var(--gold) !important;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 900px) {

    .main-nav,
    .auth-group {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-inner {
        justify-content: space-between;
    }
}

.user-info {
    font-weight: 600;
    color: #333;
    margin-right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mobile-user {
    padding: 10px;
    font-weight: bold;
    color: #444;
}
/* ===== FIX NOTIFY BAR KHÔNG ĐÈ MENU MOBILE ===== */
#auto-notify-bar,
.notification-bar,
.alert-top,
.top-notice {
    position: fixed !important;
    top: 60px !important;    /* nằm dưới header */
    left: 0;
    width: 100%;
    z-index: 90000 !important;   /* THẤP hơn header & menu */
}

/* Header luôn cao hơn notify */
.main-header {
    position: sticky;
    top: 0;
    z-index: 99999;
}

/* Menu mobile luôn TOP cao nhất */
.mobile-nav {
    z-index: 200000;
}

.mobile-menu-btn {
    z-index: 200001;
}

