:root{
    --bg:#070b12;
    --bg2:#0c1320;
    --panel:#111827;
    --panel2:#151f32;
    --border:#263449;
    --text:#e5e7eb;
    --muted:#94a3b8;
    --gold:#d8a84e;
    --gold2:#f5d37b;
    --blue:#2563eb;
    --blue2:#1d4ed8;
    --green:#065f46;
    --red:#7f1d1d;
    --shadow:0 18px 50px rgba(0,0,0,.35);
}

*{
    box-sizing:border-box;
}

html,body{
    min-height:100%;
}

body{
    margin:0;
    color:var(--text);
    font-family:Inter,Segoe UI,Arial,sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.20), transparent 35%),
        radial-gradient(circle at top right, rgba(216,168,78,.13), transparent 30%),
        linear-gradient(135deg,#05070b 0%,#0b1220 45%,#080b12 100%);
}

a{
    color:#93c5fd;
    text-decoration:none;
}

a:hover{
    color:var(--gold2);
}

.layout{
    display:grid;
    grid-template-columns:280px 1fr;
    min-height:100vh;
}

.sidebar{
    position:sticky;
    top:0;
    height:100vh;
    padding:22px 18px;
    background:
        linear-gradient(180deg, rgba(10,15,25,.98), rgba(5,8,14,.98)),
        radial-gradient(circle at top, rgba(216,168,78,.20), transparent 35%);
    border-right:1px solid rgba(216,168,78,.22);
    box-shadow:var(--shadow);
    overflow-y:auto;
}

.brand{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    padding:10px 8px 22px;
    border-bottom:1px solid rgba(216,168,78,.25);
    margin-bottom:18px;
}

.brand img{
    width:220px;
    max-width:100%;
    height:auto;
    display:block;
}

.brand-title{
    font-family:Georgia,serif;
    color:var(--gold2);
    font-size:18px;
    font-weight:700;
    letter-spacing:.8px;
    text-align:center;
}

.brand-subtitle{
    color:var(--muted);
    font-size:12px;
    text-align:center;
}

.nav-title{
    color:#64748b;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1.4px;
    margin:18px 12px 8px;
}

.nav{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.nav a{
    display:flex;
    align-items:center;
    gap:10px;
    color:#dbeafe;
    padding:11px 12px;
    border-radius:12px;
    border:1px solid transparent;
    background:transparent;
    transition:.15s ease;
    font-weight:600;
}

.nav a:hover{
    background:rgba(37,99,235,.14);
    border-color:rgba(147,197,253,.25);
    color:white;
    transform:translateX(2px);
}

.nav a.active{
    background:linear-gradient(135deg, rgba(216,168,78,.22), rgba(37,99,235,.18));
    border-color:rgba(216,168,78,.45);
    color:var(--gold2);
}

.content{
    min-width:0;
}

.topbar{
    min-height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:22px 32px;
    border-bottom:1px solid rgba(148,163,184,.12);
    background:rgba(8,13,22,.55);
    backdrop-filter:blur(14px);
}

.page-title{
    margin:0;
    font-size:26px;
    letter-spacing:.2px;
}

.page-desc{
    margin:4px 0 0;
    color:var(--muted);
    font-size:14px;
}

.status-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:9px 13px;
    border-radius:999px;
    border:1px solid rgba(34,197,94,.28);
    background:rgba(6,95,70,.25);
    color:#bbf7d0;
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
}

.status-dot{
    width:9px;
    height:9px;
    border-radius:999px;
    background:#22c55e;
    box-shadow:0 0 16px #22c55e;
}

main{
    padding:28px 32px 44px;
    max-width:1600px;
}

.card{
    background:linear-gradient(180deg, rgba(17,24,39,.96), rgba(15,23,42,.96));
    border:1px solid rgba(148,163,184,.16);
    border-radius:18px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 12px 32px rgba(0,0,0,.22);
    overflow-x:auto;
}

.card h3{
    margin:0 0 14px;
    font-size:20px;
    color:#f8fafc;
}

.card h4{
    margin:20px 0 10px;
    color:var(--gold2);
}

.muted{
    color:var(--muted);
}

.grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

input,select,textarea{
    min-height:38px;
    padding:9px 11px;
    margin:4px;
    border-radius:10px;
    border:1px solid rgba(148,163,184,.28);
    background:#09111f;
    color:var(--text);
    outline:none;
}

input:focus,select:focus,textarea:focus{
    border-color:rgba(216,168,78,.65);
    box-shadow:0 0 0 3px rgba(216,168,78,.14);
}

button,.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:38px;
    padding:9px 14px;
    margin:4px;
    border-radius:10px;
    border:1px solid rgba(216,168,78,.36);
    background:linear-gradient(135deg,#1d4ed8,#2563eb);
    color:white;
    cursor:pointer;
    font-weight:800;
    box-shadow:0 8px 20px rgba(37,99,235,.25);
}

button:hover,.btn:hover{
    filter:brightness(1.08);
    color:white;
}

button.danger,.btn-danger{
    background:linear-gradient(135deg,#991b1b,#dc2626);
    border-color:rgba(248,113,113,.35);
}

table{
    border-collapse:separate;
    border-spacing:0;
    width:100%;
    margin-top:10px;
    overflow:hidden;
    border-radius:14px;
    border:1px solid rgba(148,163,184,.18);
}

th,td{
    padding:10px 11px;
    text-align:left;
    border-bottom:1px solid rgba(148,163,184,.12);
    vertical-align:middle;
}

th{
    background:rgba(2,6,23,.72);
    color:#cbd5e1;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.8px;
}

tr:nth-child(even) td{
    background:rgba(15,23,42,.38);
}

tr:hover td{
    background:rgba(37,99,235,.08);
}

.ok,.err{
    padding:13px 15px;
    border-radius:14px;
    margin-bottom:14px;
    border:1px solid rgba(255,255,255,.12);
}

.ok{
    background:rgba(6,95,70,.55);
    color:#dcfce7;
}

.err{
    background:rgba(127,29,29,.62);
    color:#fee2e2;
}

pre{
    white-space:pre-wrap;
    background:#050914;
    border:1px solid rgba(148,163,184,.16);
    padding:12px;
    border-radius:12px;
    color:#dbeafe;
}

.login-shell{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px;
}

.login-card{
    width:420px;
    max-width:100%;
}

.login-card .brand{
    border-bottom:0;
    margin-bottom:4px;
}

@media(max-width:980px){
    .layout{
        grid-template-columns:1fr;
    }

    .sidebar{
        position:relative;
        height:auto;
    }

    .nav{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .topbar{
        flex-direction:column;
        align-items:flex-start;
    }

    main{
        padding:20px;
    }

    .grid{
        grid-template-columns:1fr;
    }
}
/* =========================
   Public pages redesign
   ========================= */

.public-shell{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px;
}

.public-card{
    width:min(1080px, 100%);
    background:linear-gradient(180deg, rgba(8,13,22,.95), rgba(10,17,30,.96));
    border:1px solid rgba(148,163,184,.14);
    border-radius:24px;
    box-shadow:0 20px 60px rgba(0,0,0,.36);
    overflow:hidden;
}

.public-card-small{
    width:min(640px, 100%);
}

.public-grid{
    display:grid;
    grid-template-columns: 1.02fr .98fr;
}

.public-side{
    padding:34px 32px;
    background:
        radial-gradient(circle at top, rgba(37,99,235,.14), transparent 35%),
        linear-gradient(180deg, rgba(10,15,25,.96), rgba(7,10,18,.98));
    border-right:1px solid rgba(148,163,184,.10);
}

.public-form{
    padding:34px 32px;
}

.brand-hero{
    text-align:center;
    margin-bottom:28px;
}

.brand-hero img{
    width:250px;
    max-width:100%;
    height:auto;
    display:block;
    margin:0 auto 12px;
}

.section-head h2{
    margin:0 0 8px;
    font-size:28px;
    color:#f8fafc;
}

.public-section{
    background:rgba(255,255,255,.02);
    border:1px solid rgba(148,163,184,.10);
    border-radius:18px;
    padding:18px 18px;
    margin-top:18px;
}

.public-section.compact{
    margin-top:0;
}

.public-section h3{
    margin:0 0 10px;
    font-size:22px;
    color:#f8fafc;
}

.info-list{
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.info-list li{
    color:#dbe7f5;
    line-height:1.45;
}

.badge-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}

.pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:9px 12px;
    border-radius:999px;
    background:rgba(37,99,235,.13);
    border:1px solid rgba(147,197,253,.18);
    color:#dbeafe;
    font-size:13px;
    font-weight:700;
}

.form-stack{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.field label{
    font-weight:700;
    color:#f8fafc;
}

.field input{
    width:100%;
    min-height:46px;
    margin:0;
    padding:12px 14px;
    border-radius:12px;
}

.form-help{
    color:var(--muted);
    font-size:12px;
    line-height:1.4;
}

.btn-primary{
    min-height:46px;
    width:100%;
    font-size:15px;
}

.section-divider{
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(148,163,184,.18), transparent);
    margin:22px 0;
}

.link-row{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.mail-link{
    margin-top:10px;
}

.microcopy{
    margin-top:14px;
    font-size:13px;
}

.download-layout{
    padding:34px 32px;
}

.captcha-box{
    font-size:28px;
    font-weight:800;
    text-align:center;
    padding:18px 16px;
    border-radius:16px;
    background:#050c18;
    border:1px solid rgba(148,163,184,.12);
    color:#f8fafc;
    letter-spacing:.4px;
}

@media (max-width: 900px){
    .public-grid{
        grid-template-columns:1fr;
    }

    .public-side{
        border-right:0;
        border-bottom:1px solid rgba(148,163,184,.10);
    }

    .public-form,
    .public-side,
    .download-layout{
        padding:24px 20px;
    }

    .public-shell{
        padding:18px;
    }

    .section-head h2{
        font-size:24px;
    }
}

/* =========================================================
   Pages publiques WoW : register.php + download.php
   Ajouté sans casser le panel admin
   ========================================================= */

body.public-page{
    min-height:100vh;
    background:
        radial-gradient(circle at 12% 15%, rgba(59,130,246,.22), transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(216,168,78,.18), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(103,232,249,.08), transparent 24%),
        linear-gradient(135deg,#03060c 0%, #08111f 42%, #050912 100%);
    overflow-x:hidden;
}

body.public-page::before{
    content:"";
    position:fixed;
    inset:0;
    background:
        linear-gradient(rgba(3,6,12,.50), rgba(3,6,12,.82)),
        url("wow-logo.png") center 8% / 560px auto no-repeat;
    opacity:.10;
    pointer-events:none;
    z-index:0;
}

body.public-page::after{
    content:"";
    position:fixed;
    inset:-20%;
    background:
        radial-gradient(circle at 30% 20%, rgba(59,130,246,.16), transparent 18%),
        radial-gradient(circle at 70% 30%, rgba(216,168,78,.14), transparent 16%),
        radial-gradient(circle at 50% 80%, rgba(103,232,249,.08), transparent 16%);
    filter:blur(42px);
    animation:publicAmbientFloat 14s ease-in-out infinite alternate;
    pointer-events:none;
    z-index:0;
}

.public-shell{
    position:relative;
    z-index:1;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px;
}

.launcher-panel{
    width:min(1180px, 100%);
    display:grid;
    grid-template-columns:420px 1fr;
    gap:24px;
    align-items:stretch;
}

.glass-card{
    position:relative;
    background:linear-gradient(180deg, rgba(17,26,43,.74), rgba(9,15,27,.84));
    border:1px solid rgba(255,255,255,.10);
    border-radius:26px;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    box-shadow:0 24px 60px rgba(0,0,0,.45);
    overflow:hidden;
}

.glass-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(135deg, rgba(255,255,255,.055), transparent 28%, transparent 72%, rgba(255,255,255,.035));
    pointer-events:none;
}

.hover-lift{
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hover-lift:hover{
    transform:translateY(-5px);
    border-color:rgba(216,168,78,.24);
    box-shadow:0 28px 70px rgba(0,0,0,.48);
}

.launcher-hero{
    padding:28px 26px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    isolation:isolate;
}

.hero-glow{
    position:absolute;
    top:-80px;
    left:50%;
    width:260px;
    height:260px;
    transform:translateX(-50%);
    background:radial-gradient(circle, rgba(216,168,78,.20), transparent 60%);
    filter:blur(18px);
    pointer-events:none;
}

.hero-logo{
    width:270px;
    max-width:100%;
    height:auto;
    display:block;
    margin:0 auto 14px;
    position:relative;
    z-index:1;
    filter:drop-shadow(0 8px 24px rgba(0,0,0,.45));
}

.hero-kicker{
    text-transform:uppercase;
    letter-spacing:1.8px;
    font-size:12px;
    font-weight:800;
    color:#8ab7ff;
    text-align:center;
    margin-bottom:8px;
}

.hero-title{
    margin:0;
    text-align:center;
    font-size:32px;
    line-height:1.1;
    color:#f5d37b;
    font-family:Georgia,serif;
    text-shadow:0 0 18px rgba(216,168,78,.20);
}

.hero-subtitle{
    margin:10px auto 0;
    text-align:center;
    max-width:300px;
    color:#d7e3f4;
    line-height:1.55;
    font-size:15px;
}

.hero-box{
    margin-top:26px;
    padding:18px;
    border-radius:20px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(148,163,184,.11);
}

.hero-box h3{
    margin:0 0 14px;
    font-size:20px;
    color:#fff;
}

.feature-list{
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.feature-list li{
    color:#e6eef8;
    line-height:1.45;
}

.chip-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}

.chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:9px 13px;
    border-radius:999px;
    background:rgba(37,99,235,.13);
    border:1px solid rgba(147,197,253,.18);
    color:#dbeafe;
    font-size:13px;
    font-weight:700;
}

.launcher-main{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.form-card{
    padding:28px;
}

.section-head{
    margin-bottom:18px;
}

.section-head.centered{
    text-align:center;
}

.eyebrow{
    display:inline-block;
    margin-bottom:6px;
    color:#8ab7ff;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:1.6px;
}

.section-head h2{
    margin:0 0 8px;
    font-size:30px;
    line-height:1.1;
    color:#f8fafc;
}

.form-stack{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.field label{
    font-weight:700;
    color:#f8fafc;
}

.field.two-col{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.form-help{
    color:var(--muted);
    font-size:12px;
    line-height:1.45;
}

.microcopy{
    margin-top:16px;
    font-size:13px;
}

.card-grid-mini{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.info-card{
    padding:22px;
}

.info-card h3{
    margin:0 0 10px;
    font-size:22px;
    color:#fff;
}

.action-stack{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:14px;
}

.mail-link{
    color:#d6e7ff;
    font-weight:700;
}

.btn-primary{
    background:linear-gradient(135deg,#1d4ed8,#3b82f6);
}

.btn-secondary{
    background:linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
    border:1px solid rgba(148,163,184,.22);
    color:#eff6ff;
    box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.btn-block{
    width:100%;
}

.download-panel{
    width:min(680px, 100%);
    padding:30px;
}

.captcha-box{
    font-size:30px;
    font-weight:900;
    text-align:center;
    padding:20px 18px;
    border-radius:18px;
    background:linear-gradient(180deg, rgba(3,8,18,.90), rgba(6,14,28,.92));
    border:1px solid rgba(148,163,184,.12);
    color:#fff;
    letter-spacing:.6px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}

.divider-glow{
    height:1px;
    margin:22px 0 10px;
    background:linear-gradient(90deg, transparent, rgba(148,163,184,.22), transparent);
}

.center-links{
    text-align:center;
}

@keyframes publicAmbientFloat{
    0%{
        transform:translate3d(0,0,0) scale(1);
    }
    100%{
        transform:translate3d(0,-12px,0) scale(1.03);
    }
}

@media(max-width:980px){
    .launcher-panel{
        grid-template-columns:1fr;
    }

    .card-grid-mini{
        grid-template-columns:1fr;
    }

    .field.two-col{
        grid-template-columns:1fr;
    }

    .public-shell{
        padding:18px;
        align-items:flex-start;
    }

    .launcher-hero,
    .form-card,
    .info-card,
    .download-panel{
        padding:22px 18px;
    }

    .hero-title{
        font-size:28px;
    }

    .section-head h2{
        font-size:26px;
    }
}

/* =========================================================
   Dashboard : état Linux + serveurs WoW
   ========================================================= */

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin-bottom:20px;
}

.stat-card{
    min-height:120px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.stat-label{
    color:var(--muted);
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:1px;
}

.stat-value{
    margin-top:8px;
    font-size:38px;
    font-weight:900;
    color:var(--gold2);
}

.status-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.status-box{
    background:rgba(2,6,23,.38);
    border:1px solid rgba(148,163,184,.14);
    border-radius:16px;
    padding:16px;
}

.status-title{
    color:var(--muted);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:1px;
    font-weight:800;
    margin-bottom:8px;
}

.status-main{
    font-size:28px;
    font-weight:900;
    color:#f8fafc;
    margin-bottom:8px;
}

.bar{
    height:10px;
    background:#020617;
    border-radius:999px;
    overflow:hidden;
    border:1px solid rgba(148,163,184,.14);
    margin:8px 0;
}

.bar span{
    display:block;
    height:100%;
    background:linear-gradient(90deg,#22c55e,#f5d37b);
    border-radius:999px;
}

.mini-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 10px;
    border-radius:999px;
    font-weight:900;
    font-size:12px;
    border:1px solid rgba(255,255,255,.12);
}

.status-ok{
    background:rgba(6,95,70,.50);
    color:#bbf7d0;
}

.status-bad{
    background:rgba(127,29,29,.58);
    color:#fecaca;
}

@media(max-width:1100px){
    .dashboard-grid,
    .status-grid{
        grid-template-columns:1fr;
    }
}
