/* ============================================================
   (Frontend)       Common/CSS/navbar.css
   ============================================================ */

/* ========== Common/CSS/navbar.css ==========
 * Navbar + système de compte
 * Reset/body/background → Common/CSS/reset.css
 * ========================================== */

/* body → voir Common/CSS/reset.css — ne pas redéfinir ici */

/* ===== NAVBAR — liquid glass identique topbar panel admin ===== */
nav {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    height: 62px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 22px;
    border-radius: 18px;
    box-sizing: border-box;

    /* Liquid glass */
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(80px) saturate(100%) brightness(1.15);
    -webkit-backdrop-filter: blur(80px) saturate(100%) brightness(1.15);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

.nav-static-btn {
    background: none; border: 1px solid transparent; color: #fff;
    font-size: 12px; font-weight: 900; font-family: 'Arial Black', sans-serif;
    cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
    padding: 7px 14px; border-radius: 50px; transition: all 0.2s;
    white-space: nowrap; flex-shrink: 0;
}
.nav-static-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }

.nav-text-btn {
    background: none; border: 1px solid transparent; color: #fff;
    font-size: 12px; font-weight: 900; font-family: 'Arial Black', sans-serif;
    cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
    padding: 7px 14px; border-radius: 50px; transition: all 0.2s;
}
.nav-text-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }
.nav-game-btn.active { color: #33C6FF; }

#nav-coins-wrap, #nav-account-wrap, #nav-panel-wrap, #nav-notif-wrap {
    display: flex; align-items: center; flex-shrink: 0;
}
#nav-notif-wrap { margin-left: 8px; }
#nav-coins-wrap:empty, #nav-panel-wrap:empty, #nav-notif-wrap:empty { display: none; }

.nav-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    position: relative;
}
/* Colonne gauche : jeux */
.nav-games-col {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    z-index: 1;
}
/* Colonne centre : logo — centré absolument */
.nav-logo-col {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
    z-index: 0;
}
.nav-logo-col img { height: 40px; }
.nav-logo-col .nav-logo-text { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: 2px; }
.nav-logo-col:hover .nav-logo-text { color: #33C6FF; }
/* Colonne droite */
.nav-right-col {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    z-index: 1;
}

.nav-games {
    display: flex; align-items: center; gap: 8px; justify-content: flex-start;
}

.nav-logo {
    display: flex; align-items: center; gap: 15px;
    cursor: pointer; justify-content: center; white-space: nowrap;
}
.nav-logo img { height: 46px; }
.nav-logo-text { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: 2px; transition: color 0.3s; }
.nav-logo:hover .nav-logo-text { color: #33C6FF; }

.nav-right {
    display: flex; align-items: center; gap: 8px; justify-content: flex-end;
}
.nav-right-dynamic { display: flex; align-items: center; gap: 8px; order: -1; }
.nav-right-static { display: flex; align-items: center; gap: 8px; }
.nav-right-profile { display: flex; align-items: center; gap: 8px; }

#nav-coins-wrap, #nav-account-wrap, #nav-panel-wrap, #nav-notif-wrap {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#nav-coins-wrap:empty, #nav-account-wrap:empty, #nav-panel-wrap:empty, #nav-notif-wrap:empty { display: none; }

.nav-avatar-btn {
    width: 46px; height: 46px; border-radius: 50%;
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 0; outline: none;
    box-shadow: none; transition: opacity 0.2s;
}
.nav-avatar-btn::before { display: none; }
.nav-avatar-btn:hover { opacity: 0.8; }
.nav-avatar-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.nav-avatar-initials { font-size: 15px; font-weight: 900; color: #fff; font-family: Arial, sans-serif; }

.nav-coins-btn {
    width: 62px; height: 42px; background: rgba(255,183,0,0.1);
    border: 1px solid rgba(255,183,0,0.4); border-radius: 8px;
    color: #FFB700; font-size: 12px; font-weight: 900;
    font-family: Arial, sans-serif; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.nav-coins-btn:hover { background: #FFB700; color: #000; }

.btn-panel-admin-nav {
    padding: 7px 14px;
    background: linear-gradient(135deg, #33C6FF, #8B5CF6);
    border: none; border-radius: 50px; color: #fff;
    font-size: 12px; font-weight: 900; font-family: Arial, sans-serif;
    cursor: pointer; transition: opacity 0.2s; text-transform: uppercase;
    letter-spacing: 0.5px; white-space: nowrap;
}
.btn-panel-admin-nav:hover { opacity: 0.85; }

.nav-notif-btn {
    position: relative; width: 38px; height: 38px;
    border-radius: 50%; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); color: #fff;
    font-size: 16px; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.nav-notif-btn:hover { border-color: #33C6FF; }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    background: #dc3545; color: #fff; font-size: 10px;
    font-weight: 900; font-family: Arial, sans-serif;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #000;
}

.account-popup {
    position: fixed; top: 80px;
    background: #0d0d0d; border: 1px solid #3a3a3a;
    border-radius: 12px; padding: 20px;
    z-index: 2000; min-width: 300px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    animation: popupIn 0.15s ease;
}
@keyframes popupIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-tabs {
    display: flex; gap: 4px; margin-bottom: 20px;
    background: #141414; border: 1px solid #3a3a3a;
    border-radius: 50px; padding: 3px;
}
.auth-tab {
    flex: 1; padding: 7px; background: transparent; border: none;
    color: #888; font-size: 12px; font-weight: 700;
    font-family: Arial, sans-serif; cursor: pointer;
    border-radius: 50px; transition: all 0.2s; text-transform: uppercase;
}
.auth-tab.active { background: #33C6FF; color: #000; }

.auth-field { margin-bottom: 10px; }
.auth-field input {
    width: 100%; padding: 10px 14px; background: #141414;
    border: 1px solid #3a3a3a; border-radius: 8px;
    color: #fff; font-size: 13px; font-family: Arial, sans-serif;
    outline: none; transition: border-color 0.2s;
}
.auth-field input:focus { border-color: #33C6FF; }
.auth-field input::placeholder { color: #555; }
.auth-field-row { display: flex; gap: 8px; }
.auth-field-row .auth-field { flex: 1; }
.auth-error { font-size: 11px; color: #dc3545; font-family: Arial, sans-serif; margin-bottom: 8px; }

.auth-btn-main {
    display: block; width: 100%; padding: 11px;
    background: #33C6FF; border: none; border-radius: 8px;
    color: #000; font-size: 13px; font-weight: 900;
    font-family: Arial, sans-serif; cursor: pointer;
    transition: opacity 0.2s; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 12px;
}
.auth-btn-main:hover { opacity: 0.85; }
.auth-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 12px 0; color: #555; font-family: Arial, sans-serif; font-size: 12px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #3a3a3a; }
.auth-btn-social {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 10px; border-radius: 8px;
    font-size: 13px; font-weight: 700; font-family: Arial, sans-serif;
    cursor: pointer; transition: all 0.2s; margin-bottom: 8px;
}
.auth-btn-social.google { background: #fff; border: 1px solid #ddd; color: #333; }
.auth-btn-social.google:hover { background: #f5f5f5; }
.auth-btn-social.apple { background: #000; border: 1px solid #3a3a3a; color: #fff; }
.auth-btn-social.apple:hover { background: #1a1a1a; }

.account-popup-header {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 16px; border-bottom: 1px solid #3a3a3a; margin-bottom: 12px;
}
.account-popup-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: none; border: none;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.account-popup-avatar span { font-size: 16px; font-weight: 900; color: #33C6FF; font-family: Arial, sans-serif; }
.account-popup-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.account-popup-pseudo { font-size: 15px; font-weight: 900; color: #fff; }
.account-popup-email { font-size: 11px; color: #666; font-family: Arial, sans-serif; margin-top: 2px; }
.account-popup-menu { display: flex; flex-direction: column; gap: 2px; }
.account-popup-menu button {
    display: block; width: 100%; padding: 9px 12px;
    background: none; border: none; border-radius: 8px;
    color: #ccc; font-size: 13px; font-family: Arial, sans-serif;
    cursor: pointer; transition: all 0.2s; text-align: left;
}
.account-popup-menu button:hover { background: #1a1a1a; color: #fff; }
.account-popup-divider { height: 1px; background: #3a3a3a; margin: 6px 0; }
.account-popup-logout { color: #dc3545 !important; }
.account-popup-logout:hover { background: rgba(220,53,69,0.1) !important; }

.btn-panel-admin {
    display: block; width: 100%; padding: 14px;
    background: linear-gradient(135deg, #33C6FF, #8B5CF6);
    border: none; border-radius: 10px; color: #fff;
    font-size: 14px; font-weight: 900; font-family: Arial, sans-serif;
    cursor: pointer; transition: opacity 0.2s; text-transform: uppercase; letter-spacing: 1px;
}
.btn-panel-admin:hover { opacity: 0.85; }

.nav-account-wrap { position: relative; display: flex; align-items: center; }

.nav-pseudo {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    font-family: 'Arial Black', Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}
.nav-pseudo:hover { color: #33C6FF; }

#nav-account-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-profile-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
}
.nav-avatar-inner {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.nav-avatar-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nav-avatar-inner .nav-avatar-initials { font-size: 12px; font-weight: 900; color: #fff; font-family: Arial, sans-serif; }

.topbar-icon-btn {
    position: relative;
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s; flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    color: inherit;
}
.topbar-icon-btn svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.6); fill: none; }
.topbar-icon-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.topbar-badge {
    position: absolute; top: -4px; right: -4px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #ef4444; font-size: 9px; font-weight: 700; color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(8,11,19,0.9);
}
.topbar-badge-msg { background: #6366f1; }
.topbar-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.1); margin: 0 4px; flex-shrink: 0; }

.nav-topbar-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 8px rgba(99,102,241,0.45);
    cursor: pointer; flex-shrink: 0; overflow: hidden;
    transition: opacity 0.2s;
}
.nav-topbar-avatar:hover { opacity: 0.85; }
.nav-topbar-name {
    font-size: 14px; font-weight: 600;
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', Arial, sans-serif;
    cursor: pointer; white-space: nowrap;
    transition: color 0.2s;
}
.nav-topbar-name:hover { color: #fff; }

.nav-coins-btn-v2 {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: rgba(255,183,0,0.08);
    border: 1px solid rgba(255,183,0,0.3);
    border-radius: 10px;
    cursor: pointer; transition: all 0.15s;
    flex-shrink: 0;
}
.nav-coins-btn-v2:hover { background: rgba(255,183,0,0.15); border-color: rgba(255,183,0,0.5); }
.nav-coins-val { font-size: 13px; font-weight: 700; color: #fbbf24; font-family: 'Inter', Arial, sans-serif; }

.side-nav-profile-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 10px rgba(99,102,241,0.5);
    flex-shrink: 0; overflow: hidden;
}
.side-nav-profile-role {
    font-size: 10px; color: rgba(255,255,255,0.35);
    margin-top: 1px; letter-spacing: 0.5px;
    font-family: 'Inter', Arial, sans-serif;
}
.side-nav-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80; flex-shrink: 0;
    box-shadow: 0 0 8px #4ade80, 0 0 16px rgba(74,222,128,0.4);
    margin-left: auto;
}

.topbar-contact-btn {
    width: auto !important;
    padding: 0 12px !important;
    gap: 7px;
}

.topbar-icon-btn {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    color: inherit;
}
.topbar-icon-btn:focus { outline: none; }
.topbar-icon-btn:active { background: rgba(255,255,255,0.1); }
#nav-notif-btn:focus svg,
#nav-notif-btn:active svg { stroke: rgba(255,255,255,0.7); }

.nav-game-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 700;
    font-family: 'Arial Black', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-game-pill img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}
.nav-game-pill:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
}
.nav-game-pill.active {
    background: rgba(99,102,241,0.15);
    border-color: rgba(129,140,248,0.35);
    color: #c7d2fe;
}

.nav-panel-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    height: 36px;
    background: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(139,92,246,0.5));
    border: 1px solid rgba(139,92,246,0.5);
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Arial Black', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-panel-btn svg {
    width: 14px; height: 14px;
    stroke: rgba(255,255,255,0.85);
    flex-shrink: 0;
}
.nav-panel-btn:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.75), rgba(139,92,246,0.75));
    border-color: rgba(167,139,250,0.6);
}

.nav-profile-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.nav-profile-pill:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
}
.nav-profile-pill-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #000;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.nav-profile-pill-avatar img { width:100%;height:100%;object-fit:cover;border-radius:50%;background:#000; }
.nav-profile-pill-avatar span { font-size:12px;font-weight:700;color:#fff;font-family:Arial,sans-serif; }
.nav-profile-pill-name {
    font-size: 13px; font-weight: 700;
    color: rgba(255,255,255,0.85);
    font-family: 'Arial Black', Arial, sans-serif;
    white-space: nowrap; letter-spacing: 0.3px;
}

#nav-notif-btn,
#nav-notif-btn:hover,
#nav-notif-btn:focus,
#nav-notif-btn:active,
#nav-notif-btn:visited {
    color: inherit !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}
#nav-notif-btn svg,
#nav-notif-btn:hover svg,
#nav-notif-btn:focus svg,
#nav-notif-btn:active svg {
    stroke: rgba(255,255,255,0.7) !important;
    fill: none !important;
    color: inherit !important;
}

/* ===== MODIF: BOUTON BOUTIQUE TOPNAV ===== */
.nav-boutique-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    height: 36px;
    background: rgba(255,183,0,0.1);
    border: 1px solid rgba(255,183,0,0.3);
    border-radius: 10px;
    color: #FFB700;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Arial Black', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-boutique-btn:hover {
    background: rgba(255,183,0,0.18);
    border-color: rgba(255,183,0,0.5);
}