/* ==========================================
   HEADER AAA MMO / AION STYLE
========================================== */

.header{
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 9999;

    background: linear-gradient(
        180deg,
        rgba(5,10,20,.85),
        rgba(5,10,20,.55),
        rgba(5,10,20,.35)
    );

    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255,255,255,.06);

    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

/* ==========================================
   ICÔNES BAR
========================================== */

.header-icons{
    display: flex;
    justify-content: center;
    padding: 14px 10px 8px;
}

.icons-row{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ICONS STYLE */
.icons-row img{
    width: 46px;
    height: 46px;

    object-fit: contain;

    transition: .25s ease;

    filter: brightness(1.2) saturate(1.3);
}

.icons-row img:hover{
    transform: translateY(-4px) scale(1.15);
    filter: brightness(1.6) saturate(1.8) drop-shadow(0 0 10px rgba(255,255,255,.25));
}

/* ==========================================
   SPRITE CENTER (AURA)
========================================== */

.sprite{
    width: 100px;
    height: 100px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 6px;
}

.sprite img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;

    opacity: 0;
    filter: brightness(3);

    transition: opacity 80ms linear;
}

/* ==========================================
   NAV AAA
========================================== */

.main-nav{
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 14px;

    padding: 10px 0;
    flex-wrap: wrap;
}

.main-nav a{
    position: relative;

    min-width: 150px;

    text-align: center;

    padding: 12px 20px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;

    color: #dbe9ff;

    border-radius: 12px;

    background: linear-gradient(
        180deg,
        rgba(90,130,190,.25),
        rgba(10,15,30,.85)
    );

    border: 1px solid rgba(120,180,255,.18);

    box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 0 15px rgba(74,166,255,.08);

    transition: .25s ease;

    overflow: hidden;
}

.main-nav a:hover{
    transform: translateY(-3px);

    color: #ffffff;

    border-color: rgba(120,200,255,.6);

    box-shadow:
    0 0 20px rgba(74,166,255,.25),
    0 0 40px rgba(74,166,255,.12);
}

/* shine effect */
.main-nav a::before{
    content: "";
    position: absolute;
    top: 0;
    left: -120%;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.15),
        transparent
    );

    transition: .5s;
}

.main-nav a:hover::before{
    left: 120%;
}

/* ==========================================
   STATUS BAR AAA
========================================== */

.server-status-bar{
    text-align: center;

    padding: 10px 0 14px;

    border-top: 1px solid rgba(255,255,255,.06);

    background-size: cover;
    background-position: center;

    transition: .4s ease;

    position: relative;
}

/* overlay readability */
.server-status-bar::before{
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.35);
}

.server-status-bar > *{
    position: relative;
    z-index: 2;
}

/* ONLINE / OFFLINE BACKGROUND */
.server-status-bar.online{
    background-image: url("assets/img/header/online.png");
}

.server-status-bar.offline{
    background-image: url("assets/img/header/offline.png");
}

/* TEXT */
.status-main{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    font-weight: 700;
    font-size: 15px;
}

.status-sub{
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 4px;
}

/* DOT */
.status-dot{
    width: 10px;
    height: 10px;

    background: url("assets/img/header/dot.png") center/contain no-repeat;

    animation: blink 1s infinite;
}

@keyframes blink{
    0% { opacity: .2; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: .2; transform: scale(.9); }
}

/* LATENCY BAR */
.latency-bar{
    width: 180px;
    height: 5px;

    margin: 8px auto 0;

    background: rgba(255,255,255,.08);

    border-radius: 20px;

    overflow: hidden;
}

.latency-fill{
    height: 100%;
    width: 0%;

    background: linear-gradient(90deg, #4ade80, #facc15, #ef4444);

    transition: width .4s ease;
}

/* ONLINE OFFLINE TEXT */
.is-online{
    color: #4ade80;
}

.is-offline{
    color: #ef4444;
}

.server-rates {
    color: #fff; /* ou la couleur souhaitée */
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width: 768px){

    .icons-row img{
        width: 36px;
        height: 36px;
    }

    .main-nav a{
        min-width: 120px;
        font-size: 12px;
        padding: 10px 14px;
    }

    .latency-bar{
        width: 140px;
    }
}

/* ==========================================
   AUTH MODAL
========================================== */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
}

.auth-modal.hidden {
    display: none;
}

.auth-box {
    width: 380px;
    background: rgba(10,12,18,0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 18px;
    color: white;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

/* =========================
   TABS BUTTONS
========================= */

.auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.auth-tabs button {
    flex: 1;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ddd;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-tabs button:hover {
    background: rgba(74,222,255,0.08);
    border-color: rgba(74,222,255,0.3);
    color: #4adeff;
}

/* =========================
   PANELS (IMPORTANT FIX)
========================= */

.auth-tab {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.auth-tab:not(.hidden) {
    display: flex;
}

/* =========================
   INPUTS
========================= */

.auth-tab input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    outline: none;
    transition: 0.2s;
}

.auth-tab input:focus {
    border-color: #4adeff;
    box-shadow: 0 0 10px rgba(74,222,255,0.2);
}

/* =========================
   BUTTON ACTION
========================= */

.auth-tab button {
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg,#4adeff,#7cf7ff);
    color: #001018;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-tab button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74,222,255,0.25);
}

/* =========================
   SUCCESS REGISTER
========================= */
.success-box {
    background: rgba(10, 12, 20, 0.9);
    border: 1px solid rgba(214, 179, 106, 0.4);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: #fff;
    animation: fadeIn 0.3s ease;
}

.success-icon {
    font-size: 40px;
    color: #d6b36a;
    margin-bottom: 10px;
}

.success-box h2 {
    color: #d6b36a;
    margin-bottom: 10px;
}

.success-box p {
    font-size: 13px;
    opacity: 0.85;
}

.success-box .small {
    font-size: 11px;
    opacity: 0.6;
}

/* =========================
   BOUTON DECONNEXION (RED NEON)
========================= */
.btn-logout {
    display: inline-block;
    padding: 10px 18px;

    color: #ff4d4d;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;

    border: 1px solid #ff4d4d;
    border-radius: 50px;

    background: transparent;

    position: relative;
    overflow: hidden;

    transition: 0.3s ease;

    box-shadow: 0 0 8px rgba(255, 77, 77, 0.2);
}

/* hover */
.btn-logout:hover {
    color: #000;
    background: #ff4d4d;

    box-shadow:
        0 0 10px #ff4d4d,
        0 0 25px #ff4d4d,
        0 0 40px rgba(255, 77, 77, 0.8);

    transform: translateY(-2px);
}

/* effet lumière glissante */
.btn-logout::before {
    content: "";
    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 77, 77, 0.4),
        transparent
    );

    transition: 0.5s;
}

.btn-logout:hover::before {
    left: 100%;
}


/* =========================
   LIVE BUTTON - FIRE EFFECT
========================= */

.nav-live {
    position: relative;
    padding: 6px 14px;
    border-radius: 8px;

    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;

    background: linear-gradient(90deg, #ff3b1f, #ff7a18);
    box-shadow: 0 0 12px rgba(255, 80, 0, 0.4);

    text-decoration: none;

    overflow: hidden;
    transition: 0.25s ease;
}

/* hover glow intense */
.nav-live:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 80, 0, 0.8);
}

/* FIRE SHIMMER */
.nav-live::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );

    transform: rotate(25deg);
    animation: fireSweep 2.5s infinite;
}

/* FLAME GLOW PULSE */
.nav-live::after {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at 50% 50%,
        rgba(255,120,0,0.35),
        transparent 70%
    );

    animation: firePulse 1.5s infinite;
}

/* ANIMATIONS */
@keyframes fireSweep {
    0% { left: -80%; }
    100% { left: 140%; }
}

@keyframes firePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

