/* =========================================================================
   RAPPELZ NETHERFALL (ÉPIC 9.9) — CONCEPT 1 : CITADELLE INFERNALE & OR MAGMATIQUE
   ========================================================================= */

:root {
    --bg-abyss: #0a0706;
    --bg-panel: rgba(20, 16, 16, 0.94);
    --bg-card: rgba(26, 21, 21, 0.92);
    --bg-card-hover: rgba(36, 28, 26, 0.96);
    --gold: #f59e0b;
    --gold-light: #fde047;
    --gold-dark: #b45309;
    --crimson: #ea580c;
    --crimson-light: #fb923c;
    --cyan: #38bdf8;
    --emerald: #10b981;
    --text-main: #faf5ef;
    --text-muted: #c2b2a8;
    --border-subtle: rgba(245, 158, 11, 0.22);
    --border-gold: rgba(251, 191, 36, 0.58);
    --border-crimson: rgba(234, 88, 12, 0.50);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 17.5px;
}

body {
    background-color: var(--bg-abyss);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
}

/* Arrière-plan Pierre Volcanique & Lueur Magmatique (Concept 1) */
.site-backdrop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(234, 88, 12, 0.16), transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(245, 158, 11, 0.14), transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(180, 83, 9, 0.12), transparent 55%),
        url('../images/volcanic_rock_side.jpg') center center / cover no-repeat;
    filter: brightness(0.45) contrast(1.18);
    z-index: -3;
}

.site-overlay {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 7, 6, 0.35) 0%, rgba(12, 9, 8, 0.86) 55%, #090605 100%),
        radial-gradient(circle at center, transparent 15%, rgba(8, 5, 4, 0.88) 92%);
    z-index: -2;
}

@keyframes slowBreath {
    0% { transform: scale(1.04) translate(0, 0); }
    100% { transform: scale(1.1) translate(-1%, -1%); }
}

#bgParticles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Bannière d'annonce supérieure */
.top-announcement {
    background: linear-gradient(90deg, rgba(136, 19, 55, 0.75), rgba(180, 83, 9, 0.75), rgba(136, 19, 55, 0.75));
    border-bottom: 1px solid rgba(253, 224, 71, 0.35);
    padding: 0.52rem 1.25rem;
    text-align: center;
    font-size: 0.83rem;
    font-weight: 600;
    color: #fef08a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Barre de Navigation RPG Ornementée — 100% sur une seule ligne */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(16, 11, 24, 0.96) 0%, rgba(9, 6, 14, 0.94) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--crimson), var(--gold-light), var(--crimson), transparent) 1;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8);
}

.navbar-inner {
    max-width: 1460px;
    margin: 0 auto;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.hub-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.36rem 0.68rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(253, 224, 71, 0.18);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hub-back-link:hover {
    color: var(--gold-light);
    border-color: var(--border-gold);
    background: rgba(245, 158, 11, 0.14);
}

.brand-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.22rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    background: linear-gradient(180deg, #ffffff 0%, #fde047 45%, #f59e0b 75%, #e11d48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    filter: drop-shadow(0 2px 14px rgba(245, 158, 11, 0.4));
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
    padding: 0.26rem;
    background: rgba(20, 14, 30, 0.75);
    border: 1px solid rgba(253, 224, 71, 0.16);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #d8cce6;
    padding: 0.42rem 0.78rem;
    border-radius: 9px;
    font-size: 0.81rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.nav-btn:hover {
    color: #fff;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
}

.nav-btn.active {
    color: var(--gold-light);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(225, 29, 72, 0.2));
    border-color: rgba(253, 224, 71, 0.55);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.nav-btn.admin-tab {
    color: #fda4af;
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.12);
}

.nav-btn.admin-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #e11d48, #9f1239);
    border-color: #fda4af;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.user-capsule {
    padding: 0.24rem 0.3rem;
    background: rgba(20, 14, 30, 0.82);
    border: 1px solid rgba(253, 224, 71, 0.22);
    border-radius: 12px;
    gap: 0.35rem;
}

.points-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.36rem 0.72rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(180, 83, 9, 0.28));
    border: 1px solid rgba(253, 224, 71, 0.45);
    color: var(--gold-light);
    font-weight: 800;
    font-size: 0.79rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.points-pill:hover {
    border-color: var(--gold-light);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.user-profile-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(253, 224, 71, 0.22);
    color: #f5f0ff;
    padding: 0.36rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.user-profile-btn:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.14);
}

.btn-logout-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.36rem 0.68rem;
    border-radius: 8px;
    background: rgba(225, 29, 72, 0.16);
    border: 1px solid rgba(244, 63, 94, 0.38);
    color: #fda4af;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-logout-icon:hover {
    background: rgba(225, 29, 72, 0.32);
    color: #fff;
    border-color: #fda4af;
}

.nav-compact-btn {
    padding: 0.44rem 0.9rem !important;
    font-size: 0.81rem !important;
    border-radius: 9px !important;
}

/* Boutons RPG */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.87rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.22s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #9f1239 100%);
    color: #fff;
    border-color: rgba(253, 224, 71, 0.55);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.32);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #be123c 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.5);
}

.btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #fff;
    border-color: rgba(110, 231, 183, 0.5);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(22, 15, 32, 0.82);
    color: #ede9fe;
    border-color: rgba(253, 224, 71, 0.22);
}

.btn-outline:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.12);
}

.btn-cyan {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    color: #fff;
    border-color: rgba(125, 211, 252, 0.45);
}

.btn-danger {
    background: rgba(225, 29, 72, 0.18);
    color: #fda4af;
    border-color: rgba(225, 29, 72, 0.45);
}

.btn-danger:hover {
    background: rgba(225, 29, 72, 0.35);
    color: #fff;
}

/* Conteneur Principal */
.main-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 3.5rem;
    flex: 1;
}

.tab-section {
    display: none;
    animation: fadeIn 0.32s ease;
}

.tab-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   HERO BANNER MONUMENTAL + WIDGET DE CODE CADEAU EN DIRECT
   ========================================================================= */
.hero-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(100deg, rgba(9, 6, 14, 0.96) 0%, rgba(16, 9, 24, 0.84) 52%, rgba(20, 10, 28, 0.68) 100%),
        url('../images/header_banner2.jpg') center/cover no-repeat;
    border: 1px solid var(--border-gold);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.8), 0 0 40px rgba(225, 29, 72, 0.15);
    padding: 3rem 2.8rem;
    margin-bottom: 1.85rem;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 2.2rem;
    align-items: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--crimson), var(--gold-light), var(--crimson), transparent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.25), rgba(245, 158, 11, 0.25));
    border: 1px solid rgba(253, 224, 71, 0.55);
    color: var(--gold-light);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.9rem;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.2rem, 4.2vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.85rem;
    background: linear-gradient(180deg, #ffffff 0%, #fef08a 45%, #f59e0b 80%, #e11d48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 24px rgba(245, 158, 11, 0.35));
}

.hero-desc {
    color: #dcd2ea;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Boîte de saisie directe de Code Cadeau sur l'Accueil */
.hero-code-box {
    background: rgba(11, 7, 18, 0.9);
    border: 1px solid rgba(253, 224, 71, 0.5);
    border-radius: 20px;
    padding: 1.55rem 1.7rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), inset 0 0 25px rgba(245, 158, 11, 0.08);
    backdrop-filter: blur(14px);
    position: relative;
}

.hero-code-eyebrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-light);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero-code-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.35rem;
}

.hero-code-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 0.95rem;
}

.hero-code-input-row {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.hero-code-chips {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.code-chip {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(253, 224, 71, 0.45);
    color: #fde047;
    padding: 0.22rem 0.65rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.74rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-chip:hover {
    background: rgba(245, 158, 11, 0.32);
    transform: translateY(-1px);
}

/* =========================================================================
   BARRE DE STATUT SERVEUR & COMPTEURS
   ========================================================================= */
.status-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid rgba(245, 158, 11, 0.45);
    border-radius: 16px;
    padding: 1.15rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.stat-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(225, 29, 72, 0.18));
    border: 1px solid rgba(253, 224, 71, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.stat-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}

.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
}

/* =========================================================================
   PODIUM DES 3 CHAMPIONS SUR L'ACCUEIL
   ========================================================================= */
.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.podium-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.podium-card:hover {
    transform: translateY(-4px);
}

.podium-1 {
    border-color: rgba(253, 224, 71, 0.6);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(16, 11, 22, 0.92));
}

.podium-2 {
    border-color: rgba(226, 232, 240, 0.4);
}

.podium-3 {
    border-color: rgba(251, 146, 60, 0.45);
}

.podium-rank {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
}

/* =========================================================================
   GRILLES & PANNEAUX RPG
   ========================================================================= */
.home-grid {
    display: grid;
    grid-template-columns: 1.85fr 1.15fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.panel-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1.7rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
    position: relative;
}

.panel-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.55), transparent);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(253, 224, 71, 0.14);
    flex-wrap: wrap;
}

.panel-title {
    font-family: 'Cinzel', serif;
    font-size: 1.22rem;
    font-weight: 800;
    color: #fef08a;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

/* Cartes d'Actualités */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--gold);
    border-radius: 14px;
    padding: 1.25rem;
    transition: all 0.25s ease;
}

.news-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(245, 158, 11, 0.45);
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.news-badge {
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.71rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-gold { background: rgba(245, 158, 11, 0.22); color: #fde047; border: 1px solid rgba(245, 158, 11, 0.5); }
.badge-cyan { background: rgba(56, 189, 248, 0.22); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.5); }
.badge-crimson { background: rgba(225, 29, 72, 0.22); color: #fda4af; border: 1px solid rgba(225, 29, 72, 0.5); }

.news-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
}

.news-body {
    color: #d8cce6;
    font-size: 0.9rem;
}

/* Liste des Rates */
.rates-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.68rem 0.95rem;
    border-radius: 10px;
    background: rgba(11, 7, 18, 0.72);
    border: 1px solid rgba(253, 224, 71, 0.1);
    font-size: 0.87rem;
}

.rate-row strong {
    color: var(--gold-light);
    font-weight: 800;
}

/* Galerie des Territoires & Donjons Épic 9.9 */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
    margin-top: 1rem;
}

.zone-card {
    position: relative;
    height: 190px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.15rem;
    isolation: isolate;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.zone-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-light);
}

.zone-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.5s ease;
}

.zone-card:hover img {
    transform: scale(1.1);
}

.zone-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 5, 10, 0.15) 0%, rgba(7, 5, 10, 0.92) 90%);
    z-index: -1;
}

.zone-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-light);
}

.zone-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.zone-meta {
    font-size: 0.76rem;
    color: #cbd5e1;
}

/* Tableaux de Classements */
.sub-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.rappelz-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.rappelz-table th {
    text-align: left;
    padding: 0.9rem 1rem;
    background: rgba(11, 7, 18, 0.92);
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-gold);
}

.rappelz-table td {
    padding: 0.88rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #f3e8ff;
}

.rappelz-table tr:hover td {
    background: rgba(245, 158, 11, 0.08);
}

.rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.08);
}

.rank-1 { background: linear-gradient(135deg, #fde047, #ca8a04); color: #000; }
.rank-2 { background: linear-gradient(135deg, #e2e8f0, #64748b); color: #000; }
.rank-3 { background: linear-gradient(135deg, #fdba74, #9a3412); color: #000; }

/* Grille Boutique */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 1.25rem;
}

.shop-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.shop-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
}

.shop-card.featured {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.14);
}

.shop-item-head {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.shop-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    border: 2px solid var(--border-gold);
    background: #09060e;
    object-fit: cover;
    flex-shrink: 0;
}

.shop-cat {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    font-weight: 800;
}

.shop-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.shop-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.shop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.shop-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold-light);
}

/* Grille Téléchargements */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.35rem;
    margin-bottom: 2rem;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.download-icon {
    font-size: 2.5rem;
}

/* Formulaires */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #d8cce6;
    margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.72rem 0.95rem;
    border-radius: 10px;
    background: rgba(9, 6, 15, 0.92);
    border: 1px solid rgba(253, 224, 71, 0.22);
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* Modales */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 2, 8, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
}

.modal-backdrop.open,
.modal-backdrop.active {
    display: flex !important;
}

.modal-card {
    background: #110b18;
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 1.9rem;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9);
}

/* =========================================================================
   PIED DE PAGE OFFICIEL & COPYRIGHT (FOOTER)
   ========================================================================= */
.site-footer {
    background: rgba(8, 5, 13, 0.96);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--crimson), var(--gold-light), var(--crimson), transparent) 1;
    padding: 3rem 1.5rem 2rem;
    margin-top: auto;
    z-index: 10;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a, .footer-links button {
    background: none;
    border: none;
    padding: 0;
    color: #cbd5e1;
    font-size: 0.84rem;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.footer-links a:hover, .footer-links button:hover {
    color: var(--gold-light);
}

.copyright-bar {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #7e7191;
}

/* Notifications Toast */
#toastBox {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.toast {
    padding: 0.95rem 1.3rem;
    border-radius: 12px;
    background: rgba(17, 11, 24, 0.96);
    border: 1px solid rgba(253, 224, 71, 0.35);
    border-left: 4px solid var(--gold);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75);
    animation: fadeIn 0.25s ease;
}

.toast.error { border-left-color: var(--crimson); }
.toast.success { border-left-color: var(--emerald); }

/* Sécurité & Changement de Mot de Passe Renforcé */
.pass-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pass-input-wrap .form-input {
    padding-right: 2.8rem;
}

.pass-toggle-btn {
    position: absolute;
    right: 0.65rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
    transition: transform 0.15s ease;
}

.pass-toggle-btn:hover {
    transform: scale(1.12);
}

.pass-strength-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.45rem;
}

.pass-strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.25s ease, background 0.25s ease;
}

.pass-criteria-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.security-captcha-row {
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 0.65rem;
    align-items: center;
}

.captcha-badge {
    padding: 0.68rem 0.8rem;
    border-radius: 10px;
    background: repeating-linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.16) 8px, rgba(225, 29, 72, 0.18) 8px, rgba(225, 29, 72, 0.18) 16px);
    border: 1px dashed rgba(253, 224, 71, 0.55);
    color: var(--gold-light);
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

/* Boutique Avancée & Modale d'Inspection de Statistiques Rappelz */
.shop-hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 1.85rem;
    margin-bottom: 1.4rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(24, 15, 36, 0.94) 0%, rgba(14, 9, 22, 0.96) 100%),
                url('../images/header_banner2.jpg') center/cover no-repeat;
    border: 1px solid rgba(253, 224, 71, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.shop-balance-card {
    min-width: 225px;
    padding: 0.95rem 1.25rem;
    border-radius: 14px;
    background: rgba(12, 8, 19, 0.88);
    border: 1px solid rgba(253, 224, 71, 0.45);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(253, 224, 71, 0.14);
}

.shop-search-sort {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 310px;
    justify-content: flex-end;
}

.shop-search-sort .form-input {
    max-width: 310px;
}

.shop-card-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.rarity-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid transparent;
    letter-spacing: 0.04em;
}

.slot-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #d8cce6;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.shop-card-stats {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(9, 6, 15, 0.78);
    border: 1px solid rgba(253, 224, 71, 0.16);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.shop-stat-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.77rem;
    color: #d8cce6;
}

.shop-stat-pill strong {
    color: #6ee7b7;
    font-weight: 800;
}

.item-inspector-modal {
    max-width: 780px !important;
    width: 95% !important;
    padding: 1.6rem !important;
    background: linear-gradient(180deg, rgba(22, 14, 34, 0.98) 0%, rgba(11, 7, 18, 0.99) 100%) !important;
    border: 1px solid rgba(253, 224, 71, 0.45) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.92) !important;
}

.inspector-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.2rem;
}

.inspector-icon {
    width: 66px;
    height: 66px;
    border-radius: 14px;
    border: 2px solid var(--gold-light);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65);
    object-fit: cover;
}

.inspector-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 900;
}

.inspector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
    margin-bottom: 1.15rem;
}

.inspector-sec-title {
    font-size: 0.79rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gold-light);
    margin-bottom: 0.55rem;
}

.inspector-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    background: rgba(10, 7, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}

.inspector-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.79rem;
    color: #b8a9c9;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    padding-bottom: 0.28rem;
}

.inspector-meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.inspector-meta-item strong {
    color: #fff;
    text-align: right;
}

.inspector-stats-box {
    background: rgba(10, 7, 16, 0.8);
    border: 1px solid rgba(253, 224, 71, 0.2);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.inspector-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #e2d9f3;
}

.inspector-lore-box {
    background: rgba(16, 11, 25, 0.85);
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1.05rem;
    margin-bottom: 1.2rem;
}

.inspector-buy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(253, 224, 71, 0.22);
}

.qty-selector-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    background: rgba(10, 7, 16, 0.9);
    border: 1px solid rgba(253, 224, 71, 0.35);
    border-radius: 9px;
    overflow: hidden;
}

.qty-controls input {
    width: 48px;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-weight: 800;
    font-size: 0.88rem;
    outline: none;
}

.qty-btn {
    background: rgba(245, 158, 11, 0.15);
    border: none;
    color: var(--gold-light);
    width: 30px;
    height: 32px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
}

.qty-btn:hover {
    background: rgba(245, 158, 11, 0.32);
}

.qty-preset {
    padding: 0.32rem 0.58rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(253, 224, 71, 0.25);
    color: #fde047;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.qty-preset:hover {
    background: rgba(245, 158, 11, 0.22);
}

/* Modale d'Inscription Complète & Récupération */
.auth-modal-wide {
    max-width: 680px !important;
    width: 95% !important;
    max-height: 92vh;
    overflow-y: auto;
}

.reg-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-light);
    padding-bottom: 0.35rem;
    margin-top: 0.45rem;
    margin-bottom: 0.65rem;
    border-bottom: 1px solid rgba(253, 224, 71, 0.2);
}

.avail-badge {
    font-size: 0.72rem;
    font-weight: 800;
}

.rules-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(253, 224, 71, 0.18);
    font-size: 0.8rem;
    color: #d8cce6;
    cursor: pointer;
    line-height: 1.45;
}

.rules-checkbox-row input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: #f59e0b;
    width: 16px;
    height: 16px;
}

@media (max-width: 1080px) {
    .hero-banner, .home-grid, .footer-inner, .inspector-grid, .shop-hero-header {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .status-strip, .podium-grid, .zones-grid, .form-grid-2, .form-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .status-strip, .podium-grid, .zones-grid, .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   ARCHITECTURE EXACTE CONCEPT 1 — CITADELLE INFERNALE & OR MAGMATIQUE
   ========================================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 1. BARRE DE NAVIGATION FLOTTANTE BISEAUTÉE AVEC BLASON CENTRAL & CRISTAL ÉMERAUDE */
.c1-navbar {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0.65rem 1.25rem 0.6rem;
    position: sticky;
    top: 0;
    z-index: 150;
    margin-bottom: 2.2rem;
}

.c1-navbar-inner {
    max-width: 1720px;
    width: 100%;
    margin: 0 auto;
    min-height: 70px;
    padding: 0.45rem 2.2rem;
    background: linear-gradient(180deg, rgba(58, 52, 50, 0.96) 0%, rgba(30, 25, 24, 0.98) 52%, rgba(20, 16, 15, 0.98) 100%);
    border: 2px solid #c29347;
    border-radius: 14px;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.88),
        inset 0 1px 0 rgba(255, 240, 200, 0.38),
        inset 0 -2px 8px rgba(234, 88, 12, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    position: relative;
    box-sizing: border-box;
}

/* Diamants décoratifs aux extrémités gauche et droite de la barre */
.c1-navbar-inner::before,
.c1-navbar-inner::after {
    content: '❖';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #34d399;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.c1-navbar-inner::before { left: 9px; }
.c1-navbar-inner::after  { right: 9px; }

.c1-navbar-inner.is-offline::before,
.c1-navbar-inner.is-offline::after {
    color: #f87171;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
}

.c1-nav-side {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.c1-nav-left {
    justify-content: flex-start;
}

.c1-nav-right {
    justify-content: flex-end;
}

.c1-navbar .nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #efe6dd;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.42rem 0.72rem;
    border-radius: 8px;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.c1-navbar .nav-btn:hover,
.c1-navbar .nav-btn.active {
    color: #fde047;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(251, 191, 36, 0.42);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.55);
}

.c1-navbar .user-capsule {
    padding: 0.24rem 0.55rem;
    gap: 0.45rem;
    flex-shrink: 0;
}

.c1-navbar .points-badge {
    padding: 0.26rem 0.62rem;
    font-size: 0.86rem;
}

.c1-navbar .user-name-btn {
    padding: 0.26rem 0.52rem;
    font-size: 0.88rem;
}

.c1-navbar .btn-logout-icon {
    padding: 0.26rem 0.52rem;
}

.c1-crest-center {
    position: relative;
    z-index: 5;
    margin: -24px 0.45rem -28px;
    cursor: pointer;
    transition: transform 0.22s ease, filter 0.22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c1-crest-center:hover {
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.75));
}

.c1-crest-img {
    height: 108px;
    width: auto;
    display: block;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.92));
}

/* Capsule Cristal Émeraude / Rubis (Server Status Online = VERT / Offline = ROUGE) */
.c1-emerald-capsule {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.28rem 0.88rem 0.28rem 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 42, 33, 0.95), rgba(9, 26, 21, 0.98));
    border: 1px solid rgba(52, 211, 153, 0.55);
    box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.25), 0 4px 12px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.c1-emerald-icon {
    width: 32px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.85));
    transition: filter 0.3s ease;
}

.c1-emerald-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.c1-emerald-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #a7f3d0;
    opacity: 0.92;
    transition: color 0.3s ease;
}

.c1-emerald-val {
    font-size: 0.86rem;
    font-weight: 800;
    color: #34d399;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* État HORS LIGNE (ROUGE RUBIS) */
.c1-emerald-capsule.is-offline {
    background: linear-gradient(135deg, rgba(58, 14, 18, 0.96), rgba(32, 8, 10, 0.98));
    border-color: rgba(248, 113, 113, 0.65);
    box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.28), 0 4px 12px rgba(0, 0, 0, 0.65);
}

.c1-emerald-capsule.is-offline .c1-emerald-icon {
    filter: drop-shadow(0 0 7px rgba(239, 68, 68, 0.9));
}

.c1-emerald-capsule.is-offline .c1-emerald-label {
    color: #fecaca;
}

.c1-emerald-capsule.is-offline .c1-emerald-val {
    color: #f87171;
}

/* 2. SCÈNE HÉROÏQUE PANORAMIQUE + FRISE RUNIQUE + BOUTON HEXAGONAL */
.main-wrapper {
    max-width: 1740px;
    width: 97%;
    margin: 0 auto;
    padding: 0.85rem 1.25rem 3.5rem;
}

/* Espace respirant pour tous les onglets centraux (Téléchargement, Classements, Boutique, Compte, Admin) */
.tab-section:not(#tab-home) {
    padding-top: 1.25rem;
}

.c1-hero-stage {
    position: relative;
    width: calc(100% + 2.5rem);
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    margin-top: 0;
    margin-bottom: 1.65rem;
    border-bottom: 2px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    background: #0b0706;
}

.c1-hero-art {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Bouton hexagonal doré détouré (zéro cadre rectangulaire au survol) */
.c1-cta-hotspot {
    position: absolute;
    left: 39.5%;
    top: 72.1%;
    width: 21.0%;
    height: 24.9%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c1-cta-hex-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.22s ease, filter 0.22s ease;
    pointer-events: none;
}

.c1-cta-hotspot:hover .c1-cta-hex-img {
    transform: translateY(-2px) scale(1.045);
    filter: brightness(1.12) drop-shadow(0 0 18px rgba(251, 191, 36, 0.92));
}

/* 3. GRILLE PRINCIPALE EN 3 COLONNES : ENCADREMENT GAUCHE | ANNONCES CENTRÉES AU MILIEU | ENCADREMENT DROITE */
.c1-dashboard-grid {
    display: grid;
    grid-template-columns: 330px 1fr 330px;
    gap: 1.45rem;
    align-items: stretch;
    margin-bottom: 1.85rem;
}

/* Cartes à coins dorés ciselés du Concept 1 */
.c1-ornate-card {
    position: relative;
    background: linear-gradient(180deg, rgba(26, 22, 22, 0.95) 0%, rgba(16, 13, 13, 0.97) 100%);
    border: 1.5px solid #b7873e;
    border-radius: 12px;
    padding: 1.35rem 1.25rem;
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.82),
        inset 0 0 22px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(253, 224, 71, 0.25);
    display: flex;
    flex-direction: column;
}

.c1-card-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: #fde047;
    border-style: solid;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
}
.c1-card-corner.tl { top: 4px; left: 4px; border-width: 2px 0 0 2px; }
.c1-card-corner.tr { top: 4px; right: 4px; border-width: 2px 2px 0 0; }
.c1-card-corner.bl { bottom: 4px; left: 4px; border-width: 0 0 2px 2px; }
.c1-card-corner.br { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; }

.c1-card-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #f8e7c1;
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 0.55rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.c1-card-subtitle {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1rem;
    font-weight: 800;
    color: #e7d3aa;
    text-align: center;
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
}

.c1-gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.65), transparent);
    margin: 0.9rem 0;
}

/* Colonne 1 : Server Rates & Quick Navigation */
.c1-rates-highlight {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.12rem;
    font-weight: 900;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 0.32rem;
}

.c1-rates-highlight span {
    color: #f97316;
}

.c1-rates-sub {
    font-size: 0.88rem;
    font-weight: 700;
    color: #d6c7bc;
    text-align: center;
    margin-bottom: 0.6rem;
}

.c1-rates-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.c1-rate-tag {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.24rem 0.65rem;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #fde047;
}

.c1-quick-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.c1-quick-nav li a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.48rem 0.75rem;
    border-radius: 7px;
    color: #e7ddd6;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.18s ease;
}

.c1-quick-nav li a:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fde047;
    transform: translateX(3px);
}

.c1-mini-cta {
    width: 100%;
    font-size: 0.9rem !important;
    padding: 0.62rem 0.8rem !important;
}

/* Colonne Centrale : Annonces au milieu et centrées entre les deux encadrements */
.c1-col-news {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.c1-news-item {
    display: grid;
    grid-template-columns: 154px 1fr;
    gap: 1.35rem;
    align-items: center;
    background: linear-gradient(180deg, rgba(28, 25, 27, 0.95) 0%, rgba(19, 17, 19, 0.97) 100%);
    border: 1.5px solid rgba(183, 135, 62, 0.65);
    border-radius: 12px;
    padding: 0.95rem 1.45rem 0.95rem 0.95rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
    flex: 1;
}

.c1-news-item:hover {
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.88), 0 0 14px rgba(245, 158, 11, 0.18);
}

.c1-news-thumb {
    width: 154px;
    height: 104px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.c1-news-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.36rem;
    min-width: 0;
}

.c1-news-header-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 0.6rem;
}

.c1-news-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.14rem;
    font-weight: 800;
    color: #fde047;
    text-align: center;
}

.c1-news-desc {
    font-size: 0.96rem;
    color: #dfd4cb;
    line-height: 1.5;
    text-align: center;
    max-width: 780px;
}

.c1-news-date {
    font-size: 0.84rem;
    color: #a89f96;
    font-weight: 600;
    text-align: center;
}

/* =========================================================================
   PANTHÉON DES HÉROS — REFONTE IMPÉRIALE AAA
   ========================================================================= */
.c1-pantheon-imperial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(22, 17, 16, 0.96) 0%, rgba(13, 10, 9, 0.98) 100%);
    border: 1.5px solid rgba(217, 119, 6, 0.45);
    border-radius: 14px;
    padding: 1.15rem 1.05rem 1rem;
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.88),
        inset 0 0 28px rgba(0, 0, 0, 0.75),
        0 0 22px rgba(245, 158, 11, 0.12),
        inset 0 1px 0 rgba(254, 240, 138, 0.22);
    overflow: hidden;
}

.c1-pantheon-imperial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fde047, transparent);
    opacity: 0.8;
    pointer-events: none;
}

/* En-tête impériale avec blason */
.c1-pantheon-header {
    text-align: center;
    margin-bottom: 0.75rem;
    position: relative;
}

.pantheon-crest-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0.2rem;
}

.pantheon-crest-badge .crest-icon {
    font-size: 1.15rem;
    filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.75));
    animation: pantheonCrownFloat 3s ease-in-out infinite;
}

.pantheon-crest-badge .crest-sparkle {
    font-size: 0.72rem;
    color: #fde047;
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.9);
}

@keyframes pantheonCrownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.c1-pantheon-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.24rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fef08a 45%, #f59e0b 85%, #b45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.c1-pantheon-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.25rem;
}

.c1-pantheon-sub .sub-flair {
    height: 1px;
    width: 28px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.65));
}

.c1-pantheon-sub .sub-flair.right {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.65), transparent);
}

.c1-pantheon-sub .sub-text {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #d6b882;
    text-transform: uppercase;
}

/* Scène du Podium avec les trophées 3D */
.c1-podium-stage {
    position: relative;
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: #0f0a09;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 290px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.85);
}

.c1-podium-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.c1-podium-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 9, 8, 0.25) 0%, rgba(12, 9, 8, 0.05) 45%, rgba(12, 9, 8, 0.85) 100%);
    pointer-events: none;
}

/* Grille de superposition des 3 cartes */
.c1-podium-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 6px;
    align-items: flex-start;
    padding: 0.55rem 0.45rem;
    pointer-events: none;
}

/* Cartes des héros individuelles */
.c1-podium-slot {
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(22, 16, 15, 0.86) 0%, rgba(12, 9, 8, 0.94) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 0.45rem 0.35rem 0.42rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.85);
    transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.c1-podium-slot:hover {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.08);
}

/* Slot 1 : Champion (Centre) */
.c1-podium-slot.slot-1 {
    margin-top: 0;
    border: 1.5px solid #fde047;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.45), 0 10px 22px rgba(0, 0, 0, 0.9);
    background: linear-gradient(180deg, rgba(32, 22, 16, 0.92) 0%, rgba(14, 10, 9, 0.96) 100%);
    z-index: 2;
}

.c1-podium-slot.slot-1:hover {
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.7), 0 12px 26px rgba(0, 0, 0, 0.95);
}

/* Slot 2 : Argent (Gauche) */
.c1-podium-slot.slot-2 {
    margin-top: 18px;
    border: 1.5px solid rgba(203, 213, 225, 0.65);
    box-shadow: 0 0 12px rgba(148, 163, 184, 0.25), 0 8px 18px rgba(0, 0, 0, 0.85);
}

.c1-podium-slot.slot-2:hover {
    border-color: #f1f5f9;
    box-shadow: 0 0 18px rgba(203, 213, 225, 0.5), 0 10px 22px rgba(0, 0, 0, 0.9);
}

/* Slot 3 : Bronze (Droite) */
.c1-podium-slot.slot-3 {
    margin-top: 24px;
    border: 1.5px solid rgba(251, 146, 60, 0.65);
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.25), 0 8px 18px rgba(0, 0, 0, 0.85);
}

.c1-podium-slot.slot-3:hover {
    border-color: #fdba74;
    box-shadow: 0 0 18px rgba(251, 146, 60, 0.5), 0 10px 22px rgba(0, 0, 0, 0.9);
}

/* Badge de rang */
.c1-slot-rank {
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 999px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.c1-slot-rank.rank-gold {
    color: #fffbeb;
    background: linear-gradient(135deg, #b45309, #d97706);
    border: 1px solid #fde047;
    box-shadow: 0 0 8px rgba(253, 224, 71, 0.5);
}

.c1-slot-rank.rank-silver {
    color: #f8fafc;
    background: linear-gradient(135deg, #475569, #64748b);
    border: 1px solid #cbd5e1;
    box-shadow: 0 0 6px rgba(203, 213, 225, 0.35);
}

.c1-slot-rank.rank-bronze {
    color: #fff7ed;
    background: linear-gradient(135deg, #7c2d12, #9a3412);
    border: 1px solid #fdba74;
    box-shadow: 0 0 6px rgba(251, 146, 60, 0.35);
}

/* Vignette avatar classe du Héros */
.c1-slot-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin: 2px 0 4px;
    border: 2px solid #b7873e;
    overflow: visible;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
}

.c1-podium-slot.slot-1 .c1-slot-avatar-wrap {
    width: 42px;
    height: 42px;
    border-color: #fde047;
    box-shadow: 0 0 10px rgba(253, 224, 71, 0.55), 0 4px 10px rgba(0, 0, 0, 0.8);
}

.c1-podium-slot.slot-2 .c1-slot-avatar-wrap {
    border-color: #cbd5e1;
    box-shadow: 0 0 8px rgba(203, 213, 225, 0.4);
}

.c1-podium-slot.slot-3 .c1-slot-avatar-wrap {
    border-color: #fdba74;
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.4);
}

.c1-slot-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: #000;
}

/* Pastille en ligne scintillante */
.c1-slot-online-pulse {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #140e0c;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
    animation: onlineGlowPulse 2s infinite ease-in-out;
}

@keyframes onlineGlowPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

/* Nom du joueur */
.c1-slot-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.90rem;
    font-weight: 800;
    color: #ffffff;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: 2px;
}

.c1-podium-slot.slot-1 .c1-slot-name {
    font-size: 0.96rem;
    color: #fffbeb;
    text-shadow: 0 0 8px rgba(253, 224, 71, 0.6), 0 2px 4px rgba(0, 0, 0, 0.95);
}

/* Meta informations (Niveau et Métier) */
.c1-slot-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 0.72rem;
    line-height: 1.15;
}

.c1-slot-lv {
    font-weight: 800;
    color: #fde047;
}

.c1-slot-job {
    font-weight: 700;
    max-width: 105px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pied de carte avec CTA Classement Complet */
.c1-pantheon-footer {
    margin-top: 0.85rem;
}

.c1-pantheon-cta-btn {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.6rem 0.9rem;
    background: linear-gradient(180deg, #2a1f17 0%, #17100d 100%);
    border: 1px solid rgba(245, 158, 11, 0.55);
    border-radius: 8px;
    color: #fef08a;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(254, 240, 138, 0.2);
}

.c1-pantheon-cta-btn .cta-content {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.c1-pantheon-cta-btn .cta-icon {
    font-size: 0.95rem;
    color: #fde047;
}

.c1-pantheon-cta-btn .cta-arrow {
    color: #f59e0b;
    transition: transform 0.2s ease;
}

.c1-pantheon-cta-btn:hover {
    background: linear-gradient(180deg, #3d2b1f 0%, #221712 100%);
    border-color: #fde047;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.45), 0 6px 16px rgba(0, 0, 0, 0.7);
    transform: translateY(-1px);
}

.c1-pantheon-cta-btn:hover .cta-arrow {
    transform: translateX(4px);
    color: #fde047;
}

/* Colonne 4 : Top PvP & Guildes + Statut Siège */
.c1-top-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.c1-top-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.46rem 0.65rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.94rem;
}

.c1-top-rank {
    font-size: 1.02rem;
    text-align: center;
}

.c1-top-name {
    font-weight: 700;
    color: #f3eae2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c1-top-score {
    font-weight: 800;
    color: #fde047;
    font-size: 0.9rem;
}

.c1-siege-box {
    margin-top: auto;
    text-align: center;
    padding: 0.55rem 0.45rem 0.2rem;
}

.c1-siege-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: #e7d3aa;
    margin-bottom: 0.48rem;
}

.c1-siege-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 9px;
    padding: 0.55rem 0.68rem;
}

.c1-siege-icon {
    font-size: 1.45rem;
}

.c1-siege-main {
    font-size: 0.94rem;
    font-weight: 800;
    color: #fde047;
}

.c1-siege-sub {
    font-size: 0.8rem;
    color: #6ee7b7;
    font-weight: 700;
}

/* 4. RANGÉE INFÉRIEURE : PANTHÉON DES HÉROS (EN BAS À GAUCHE) + BOUTIQUE (À DROITE) */
.c1-bottom-row-grid {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 1.45rem;
    align-items: stretch;
    margin-top: 1.65rem;
}

.c1-armory-section {
    position: relative;
    margin-top: 0;
    padding-top: 18px;
    display: flex;
    flex-direction: column;
}

.c1-armory-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: linear-gradient(180deg, #2a1d17 0%, #160f0c 100%);
    border: 2px solid #d49b4b;
    border-radius: 9px;
    padding: 0.4rem 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
}

.c1-armory-ribbon span {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.22rem;
    font-weight: 900;
    color: #f8e7c1;
    letter-spacing: 0.06em;
}

.c1-armory-frame {
    position: relative;
    flex: 1;
    background:
        linear-gradient(90deg, rgba(14, 10, 16, 0.85) 0%, rgba(14, 10, 16, 0.45) 50%, rgba(14, 10, 16, 0.85) 100%),
        url('../images/armory_bg.jpg') center center / cover no-repeat;
    border: 2px solid #b7873e;
    border-radius: 12px;
    padding: 2.5rem 3.5rem 1.65rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.9), inset 0 0 35px rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.c1-armory-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(20, 14, 12, 0.88);
    border: 1px solid #d49b4b;
    color: #fde047;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 4;
}
.c1-armory-arrow.left { left: 14px; }
.c1-armory-arrow.right { right: 14px; }
.c1-armory-arrow:hover {
    background: #d49b4b;
    color: #120a06;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.7);
}

.c1-armory-TooltipsGrid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.35rem;
}

/* Infobulle d'objet Rappelz authentique (Violet/Or avec vraies stats Arcadia) */
.c1-tooltip-card {
    background: linear-gradient(180deg, rgba(22, 16, 30, 0.94) 0%, rgba(13, 10, 18, 0.97) 100%);
    border: 1.5px solid rgba(192, 132, 252, 0.45);
    border-top: 2px solid #fbbf24;
    border-radius: 10px;
    padding: 1.05rem 1.15rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.88), inset 0 0 18px rgba(147, 51, 234, 0.14);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.c1-tooltip-card:hover {
    transform: translateY(-3px);
    border-color: #fde047;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.92), 0 0 20px rgba(245, 158, 11, 0.32);
}

.c1-tt-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.55rem;
}

.c1-tt-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 1.5px solid #fbbf24;
    object-fit: cover;
    background: #09060c;
}

.c1-tt-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.02rem;
    font-weight: 800;
    color: #fde047;
    line-height: 1.25;
}

.c1-tt-sub {
    font-size: 0.82rem;
    color: #c084fc;
    font-weight: 700;
}

.c1-tt-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.88rem;
    color: #e2e8f0;
}

.c1-tt-stat-line {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.c1-tt-stat-val {
    color: #6ee7b7;
    font-weight: 700;
}

.c1-tt-lore {
    font-size: 0.84rem;
    color: #34d399;
    font-style: italic;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 0.45rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 1180px) {
    .c1-navbar-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.5rem;
    }
    .c1-crest-center {
        order: -1;
        margin: -6px 0 2px;
    }
    .c1-dashboard-grid,
    .c1-bottom-row-grid {
        grid-template-columns: 1fr;
    }
    .c1-armory-TooltipsGrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .c1-dashboard-grid,
    .c1-bottom-row-grid {
        grid-template-columns: 1fr;
    }
    .c1-nav-side {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================================================
   CONTENEUR EMBARQUÉ DE L'ONGLET GUIDE DES CRAFTS & CODEX
   ========================================================================= */
.guide-container-wrapper {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.98) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 14px;
    padding: 0.25rem;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), inset 0 0 25px rgba(0, 0, 0, 0.65);
    position: relative;
    overflow: hidden;
}

.guide-iframe {
    width: 100%;
    min-height: 980px;
    border: none;
    border-radius: 10px;
    display: block;
    background: #020617;
    transition: height 0.2s ease;
}

/* =========================================================================
   REFONTE MAJEURE : PANTHÉON DES HÉROS & CLASSEMENTS AAA
   ========================================================================= */
.rankings-podium-wrapper {
    background: linear-gradient(180deg, rgba(20, 14, 28, 0.96) 0%, rgba(10, 7, 16, 0.98) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: 1.75rem 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), inset 0 0 35px rgba(245, 158, 11, 0.05);
    position: relative;
    overflow: hidden;
}

.rankings-podium-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(253, 224, 71, 0.8), transparent);
}

.podium-top-bar {
    text-align: center;
    margin-bottom: 1.75rem;
}

.podium-badge-epic {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fde047;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.podium-grand-title {
    font-family: 'Cinzel', serif;
    font-size: 1.65rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.35rem 0;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.podium-subtitle {
    font-size: 0.88rem;
    color: #c4b5fd;
    margin: 0;
}

.rankings-podium-cards {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 1.25rem;
    align-items: end;
}

.podium-hero-card {
    background: rgba(15, 10, 22, 0.85);
    border-radius: 16px;
    padding: 1.35rem 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.podium-hero-card:hover {
    transform: translateY(-5px);
}

/* Carte Or (1er) */
.podium-card-gold {
    border: 2px solid rgba(253, 224, 71, 0.85);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.18) 0%, rgba(18, 12, 26, 0.95) 100%);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.25), inset 0 0 25px rgba(245, 158, 11, 0.08);
    transform: translateY(-8px);
}

.podium-card-gold:hover {
    transform: translateY(-13px);
    box-shadow: 0 16px 45px rgba(245, 158, 11, 0.35), inset 0 0 30px rgba(245, 158, 11, 0.12);
}

/* Carte Argent (2e) */
.podium-card-silver {
    border: 1.5px solid rgba(203, 213, 225, 0.65);
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.12) 0%, rgba(16, 12, 24, 0.92) 100%);
}

/* Carte Bronze (3e) */
.podium-card-bronze {
    border: 1.5px solid rgba(251, 146, 60, 0.65);
    background: linear-gradient(180deg, rgba(234, 88, 12, 0.14) 0%, rgba(16, 12, 24, 0.92) 100%);
}

.podium-rank-tag {
    position: absolute;
    top: -12px;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.22rem 0.9rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.podium-rank-tag.gold {
    background: linear-gradient(135deg, #fde047, #ca8a04);
    color: #1a0f00;
}

.podium-rank-tag.silver {
    background: linear-gradient(135deg, #f1f5f9, #64748b);
    color: #0f172a;
}

.podium-rank-tag.bronze {
    background: linear-gradient(135deg, #fed7aa, #c2410c);
    color: #2a0b00;
}

.podium-class-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0.85rem auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.7));
    position: relative;
    border: 2px solid var(--border-gold);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.podium-card-gold .podium-class-avatar {
    width: 78px;
    height: 78px;
    border-color: #fde047;
    box-shadow: 0 0 22px rgba(253, 224, 71, 0.5);
}

.podium-card-silver .podium-class-avatar {
    border-color: #cbd5e1;
    box-shadow: 0 0 16px rgba(203, 213, 225, 0.35);
}

.podium-card-bronze .podium-class-avatar {
    border-color: #fdba74;
    box-shadow: 0 0 16px rgba(251, 146, 60, 0.35);
}

.podium-class-img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.podium-race-mini {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #140e1c;
    background: #0f0a17;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.podium-hero-name {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.2rem;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.podium-card-gold .podium-hero-name {
    font-size: 1.45rem;
    color: #fde047;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.podium-hero-job {
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.podium-stats-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.4rem;
}

.podium-chip {
    font-size: 0.78rem;
    padding: 0.22rem 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e2e8f0;
    font-weight: 600;
}

.podium-chip.gold-chip {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fde047;
    font-weight: 700;
}

/* Toolbar & Contrôles Classement */
.rankings-main-panel {
    border-radius: 18px;
}

.rankings-control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rankings-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0;
}

.rankings-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 290px;
}

.rankings-search-icon {
    position: absolute;
    left: 0.9rem;
    font-size: 0.95rem;
    color: #94a3b8;
    pointer-events: none;
}

.rankings-search-field {
    width: 100%;
    padding: 0.55rem 2.2rem 0.55rem 2.4rem;
    background: rgba(14, 10, 20, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 10px;
    font-size: 0.88rem;
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rankings-search-field:focus {
    outline: none;
    border-color: #fde047;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.rankings-search-clear {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.2rem;
    line-height: 1;
}

.rankings-search-clear:hover {
    color: #fde047;
}

/* Table Version 2 */
.rankings-table-wrapper {
    background: rgba(10, 7, 15, 0.85);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rankings-table-v2 {
    width: 100%;
    border-collapse: collapse;
}

.rankings-table-v2 th {
    background: rgba(18, 12, 28, 0.95);
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1rem 0.9rem;
    border-bottom: 2px solid rgba(245, 158, 11, 0.4);
    white-space: nowrap;
}

.rankings-table-v2 td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.89rem;
    vertical-align: middle;
}

.rankings-table-v2 tr:hover td {
    background: rgba(245, 158, 11, 0.07);
}

/* Cellules stylisées */
.table-class-box {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.class-icon-thumb {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 2px;
    object-fit: contain;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.class-cell-title {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    display: block;
}

.class-cell-sub {
    font-size: 0.73rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
}

.table-race-box {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: #e2e8f0;
}

.race-icon-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: contain;
}

/* Badge Rupy Compact & Tooltip */
.rupy-tag-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(180, 83, 9, 0.12));
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 8px;
    padding: 0.3rem 0.65rem;
    cursor: help;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rupy-tag-gold:hover {
    border-color: #fde047;
    background: rgba(245, 158, 11, 0.28);
    transform: scale(1.04);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

.rupy-coin {
    font-size: 0.95rem;
    line-height: 1;
}

.rupy-val {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fde047;
    letter-spacing: 0.03em;
}

/* =========================================================================
   FENÊTRE / MODULE FLOTTANT TRÉSORERIE RUPY (MMORPG TOOLTIP)
   ========================================================================= */
.rupy-wealth-tooltip {
    position: absolute;
    z-index: 999999;
    width: 340px;
    background: linear-gradient(180deg, rgba(24, 16, 36, 0.98) 0%, rgba(12, 8, 18, 0.99) 100%);
    border: 1.5px solid rgba(253, 224, 71, 0.75);
    border-radius: 14px;
    padding: 1.15rem 1.25rem 1rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(245, 158, 11, 0.3), inset 0 0 20px rgba(245, 158, 11, 0.08);
    pointer-events: none;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center bottom;
    opacity: 0;
    transform: translateY(6px);
}

.rupy-wealth-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.rupy-wealth-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(253, 224, 71, 0.9);
}

.rupy-wealth-tooltip.placement-bottom::after {
    bottom: auto;
    top: -8px;
    border-top: none;
    border-bottom: 8px solid rgba(253, 224, 71, 0.9);
}

.rupy-tooltip-glow {
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fde047, transparent);
}

.rupy-tooltip-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.rupy-tooltip-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.28), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(253, 224, 71, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
}

.rupy-tooltip-title-group {
    flex: 1;
    min-width: 0;
}

.rupy-tooltip-tag {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fde047;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.rupy-tooltip-owner {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.03em;
}

.rupy-tooltip-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rupy-tooltip-amount-card {
    background: rgba(8, 5, 12, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    text-align: center;
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.75);
}

.rupy-tooltip-label {
    display: block;
    font-size: 0.7rem;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.rupy-tooltip-exact-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.rupy-tooltip-digits {
    font-family: 'Cinzel', serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: #fde047;
    letter-spacing: 0.04em;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.55);
}

.rupy-tooltip-currency {
    font-size: 0.82rem;
    font-weight: 800;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rupy-tooltip-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.rupy-tooltip-meta-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    text-align: center;
}

.rupy-tooltip-meta-box .meta-label {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.rupy-tooltip-meta-box .meta-val {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    color: #e2e8f0;
}

.rupy-tooltip-meta-box .meta-val.gold {
    color: #fde047;
    font-family: 'Cinzel', serif;
}

.rupy-tooltip-footer {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
    color: #94a3b8;
    justify-content: center;
}

.rupy-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* Barre de progression Niveau */
.level-cell-box {
    min-width: 110px;
}

.level-text {
    font-weight: 800;
    color: #fde047;
    font-size: 0.92rem;
}

.level-jlv-text {
    font-size: 0.75rem;
    color: #a89bb9;
    margin-left: 0.25rem;
}

.level-meter {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-top: 0.3rem;
    overflow: hidden;
}

.level-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fde047);
    border-radius: 4px;
}

/* Héros & Statut */
.hero-cell-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-cell-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
}

.status-pill-online {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.status-pill-offline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 600;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.rankings-footer-note {
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: right;
}

@media (max-width: 900px) {
    .rankings-podium-cards {
        grid-template-columns: 1fr;
    }
    .podium-card-gold {
        order: -1;
        transform: none;
    }
}

/* =============================================================================
   PANEL D'ADMINISTRATION CENTRAL (AAA MASTERBOARD)
   ============================================================================= */

.admin-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* En-tête Topbar */
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, rgba(20, 10, 24, 0.95), rgba(35, 12, 30, 0.95));
    border: 1px solid rgba(225, 29, 72, 0.35);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.admin-topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e11d48, #f59e0b, #fbbf24, #e11d48);
    background-size: 300% 100%;
    animation: goldShimmer 4s infinite linear;
}

.admin-topbar-info {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.admin-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e11d48, #9f1239);
    border: 1px solid rgba(251, 113, 133, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.45);
    flex-shrink: 0;
}

.admin-main-title {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 12px rgba(244, 63, 94, 0.5);
}

.admin-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-session-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6ee7b7;
}

/* Barre de Sous-Onglets Admin */
.admin-tabs-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.15rem;
    background: rgba(20, 15, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-tab-btn:hover {
    background: rgba(35, 20, 45, 0.9);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fde047;
    transform: translateY(-1px);
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(245, 158, 11, 0.2));
    border-color: rgba(245, 158, 11, 0.65);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.admin-tab-icon {
    font-size: 1.05rem;
}

.admin-tab-count {
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fde047;
}

.admin-tab-btn.active .admin-tab-count {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

.admin-tab-badge-alert {
    padding: 0.15rem 0.5rem;
    background: #e11d48;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    animation: alertBlink 2s infinite;
}

@keyframes alertBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.92); }
}

/* Conteneurs de Sous-Onglets */
.admin-tab-content {
    display: none;
    animation: adminFadeIn 0.25s ease-out forwards;
}

.admin-tab-content.active {
    display: block;
}

@keyframes adminFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grille KPI Statistiques */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-kpi-card {
    background: linear-gradient(135deg, rgba(20, 16, 32, 0.9), rgba(30, 20, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.admin-kpi-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.admin-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.admin-kpi-data {
    display: flex;
    flex-direction: column;
}

.admin-kpi-val {
    font-family: 'Cinzel', serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}

.admin-kpi-label {
    font-size: 0.74rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

/* Monitoring Services */
.admin-monitoring-box {
    background: rgba(15, 12, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-monitoring-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: #cbd5e1;
}

/* Tableau Admin */
.admin-table-container {
    background: rgba(15, 12, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow-x: auto;
    margin-top: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.admin-table th {
    background: rgba(30, 20, 42, 0.95);
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fde047;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* Badges de Statut Admin */
.admin-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6ee7b7;
}

.admin-badge-blocked {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    background: rgba(225, 29, 72, 0.2);
    border: 1px solid rgba(225, 29, 72, 0.5);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fda4af;
}

.admin-badge-role {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

.role-admin {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fde047;
}

.role-gm {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #7dd3fc;
}

.role-player {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}

/* Boutons d'Action Admin */
.admin-btn-group {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-action-btn {
    padding: 0.32rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.admin-action-inspect {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}

.admin-action-inspect:hover {
    background: rgba(56, 189, 248, 0.3);
    color: #fff;
}

.admin-action-points {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde047;
}

.admin-action-points:hover {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

.admin-action-ban {
    background: rgba(225, 29, 72, 0.15);
    border-color: rgba(225, 29, 72, 0.35);
    color: #fda4af;
}

.admin-action-ban:hover {
    background: rgba(225, 29, 72, 0.35);
    color: #fff;
}

.admin-action-unban {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.admin-action-unban:hover {
    background: rgba(16, 185, 129, 0.35);
    color: #fff;
}

/* Barre de Recherche Admin */
.admin-search-toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(20, 15, 30, 0.6);
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.admin-search-input {
    flex: 1;
    min-width: 220px;
}

/* Carte Code Cadeau */
.admin-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1rem;
}

.admin-code-card {
    background: linear-gradient(135deg, rgba(24, 18, 36, 0.9), rgba(35, 22, 45, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.admin-code-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
}

.admin-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-code-string {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fde047;
    letter-spacing: 0.08em;
}

.admin-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.admin-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #e11d48);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Modale Inspection Joueur */
.admin-player-inspect-modal {
    max-width: 820px !important;
}

.admin-char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
    max-height: 420px;
    overflow-y: auto;
}

.admin-char-card {
    background: rgba(18, 14, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-char-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.admin-char-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    object-fit: cover;
}

.admin-char-race-mini {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #000;
}

.admin-char-meta {
    flex: 1;
    min-width: 0;
}

.admin-char-name {
    font-weight: 800;
    color: #fff;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.admin-char-class {
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.1rem;
}

.admin-char-details {
    font-size: 0.74rem;
    color: #94a3b8;
    margin-top: 0.2rem;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

/* =============================================================================
   MODULES INTERACTIFS DU PANEL ADMIN (FENÊTRES / DIALOGS)
   ============================================================================= */

.admin-dialog-modal {
    max-width: 520px !important;
    animation: adminModalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes adminModalScale {
    from { opacity: 0; transform: scale(0.93) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.25rem;
}

.admin-dialog-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-dialog-subtitle {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.admin-target-hero-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.admin-target-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(225, 29, 72, 0.3));
    border: 1px solid rgba(245, 158, 11, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.admin-target-name {
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
}

.admin-target-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

/* Grille de montants rapides (Points) */
.quick-points-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.quick-point-btn {
    padding: 0.45rem 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: #fde047;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}

.quick-point-btn:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    color: #fff;
    transform: translateY(-1px);
}

.quick-point-btn.negative {
    background: rgba(225, 29, 72, 0.1);
    border-color: rgba(225, 29, 72, 0.3);
    color: #fda4af;
}

.quick-point-btn.negative:hover {
    background: rgba(225, 29, 72, 0.25);
    border-color: #e11d48;
    color: #fff;
}

/* Grille de sélection de Rôles */
.role-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.role-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: rgba(20, 15, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-option-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(30, 20, 42, 0.85);
}

.role-option-card.selected {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(225, 29, 72, 0.1));
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.role-option-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.role-option-icon {
    font-size: 1.4rem;
}

.role-option-title {
    font-weight: 800;
    color: #fff;
    font-size: 0.9rem;
}

.role-option-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

/* Modale de Confirmation Générale */
.admin-confirm-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(225, 29, 72, 0.15);
    border: 2px solid rgba(225, 29, 72, 0.4);
    box-shadow: 0 0 25px rgba(225, 29, 72, 0.3);
}

.admin-confirm-icon-box.gold {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3);
}

.admin-confirm-message {
    font-size: 0.92rem;
    color: #e2e8f0;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.admin-dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

