/* ========================================
   DayZ Ressources - Client Site Theme
   Dark gaming theme with customizable accent
   ======================================== */

/* CSS Variables - overridden per tenant in layout.php */
:root {
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.15);
    --bg-dark: #0a0a0f;
    --bg-secondary: #101018;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-input: #1a1a25;
    --border: #2a2a3a;
    --border-light: #353548;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --sidebar-width: 260px;
    --radius: 10px;
    --radius-sm: 6px;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* ========== LAYOUT ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background:
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-dark) 100%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}

/* ========== SIDEBAR v2 (refonte 2026-06-08) ========== */
.sidebar-header {
    padding: 1.6rem 1.2rem 1.2rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
    position: relative;
}
.sidebar-header::after {
    content: '';
    position: absolute;
    left: 20%; right: 20%; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}

.sidebar-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 2px solid var(--border-light);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    transition: transform 0.2s, border-color 0.2s;
}
.sidebar-logo:hover {
    transform: scale(1.04);
    border-color: var(--accent);
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.7rem 1.2rem;
}

/* Titre de section discret au-dessus d'un groupe */
.nav-section-label {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-muted);
    padding: 0.85rem 1rem 0.45rem;
    opacity: 0.7;
}
.nav-section-label:first-child { padding-top: 0; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, transform 0.18s;
    margin-bottom: 2px;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    transform: translateX(2px);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--accent-glow), transparent);
    color: var(--text-primary);
    font-weight: 700;
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: -0.7rem;
    top: 25%; bottom: 25%;
    width: 3px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px var(--accent);
}

.nav-item.active .nav-icon {
    stroke: var(--accent);
}

.nav-icon {
    flex-shrink: 0;
    stroke: var(--text-muted);
    transition: stroke 0.2s, transform 0.2s;
}

.nav-item:hover .nav-icon {
    stroke: var(--accent);
}

/* Sidebar footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.player-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.player-profile-link {
    font-size: 0.75rem;
    color: var(--accent);
}

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

.btn-logout {
    display: block;
    text-align: center;
    padding: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}
.btn-logout:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.btn-discord-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: #5865F2;
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
    margin-bottom: 0.75rem;
}
.btn-discord-login:hover { background: #4752C4; color: #fff; }

.btn-discord-join {
    display: block;
    text-align: center;
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #5865F2;
    color: #5865F2;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}
.btn-discord-join:hover { background: rgba(88, 101, 242, 0.1); }

/* Social links in sidebar */
.sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border);
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.2s;
}
.social-link:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
}

/* Player count badge */
.player-count-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Player count in sidebar top area */
.sidebar-player-count {
    margin: 0 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    justify-content: flex-start;
}

/* Sidebar search */
.sidebar-search {
    position: relative;
    margin: 0.5rem 0.75rem 0.25rem;
}
.sidebar-search-icon {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.sidebar-search-input {
    width: 100%;
    padding: 0.5rem 0.65rem 0.5rem 2.1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.sidebar-search-input::placeholder {
    color: var(--text-muted);
}
.sidebar-search-input:focus {
    border-color: var(--accent);
}

/* Footer text */
.footer-text {
    text-align: center;
    padding: 0.25rem 0.5rem;
}
.footer-text small {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.powered-by {
    text-align: center;
    padding-top: 0.5rem;
}
.powered-by small { color: var(--text-muted); font-size: 0.7rem; }
.powered-by a { color: var(--accent); }

/* ========== MOBILE ========== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 90;
}

@media (max-width: 992px) {
    .mobile-menu-btn { display: block; }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.open { transform: translateX(0); }

    .sidebar-overlay.open { display: block; }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem;
    }
}

/* ========== PAGE HEADER ========== */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.page-header p {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: var(--border-light);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

/* ========== STAT CARDS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ========== TABLES ========== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    white-space: nowrap;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover { background: var(--bg-card-hover); }

tbody tr.highlighted { background: var(--accent-glow); }

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.badge-platform {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    font-size: 0.65rem;
}

.badge-online {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.badge-offline {
    background: rgba(107, 107, 128, 0.15);
    color: var(--text-muted);
}

.badge-distance-close {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}
.badge-distance-mid {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}
.badge-distance-far {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* ========== RANK BADGES ========== */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.rank-gold { background: linear-gradient(135deg, #fbbf24, #d97706); color: #000; }
.rank-silver { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #000; }
.rank-bronze { background: linear-gradient(135deg, #d97706, #92400e); color: #fff; }

/* ========== PLAYER LINK ========== */
.player-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s;
}
.player-link:hover { color: var(--accent); }

/* ========== KILL ENTRY ========== */
.kill-entry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.kill-arrow {
    color: var(--danger);
    font-weight: 700;
}

.kill-weapon {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.kill-time {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); }

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab {
    padding: 0.6rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.tab:hover { color: var(--text-primary); }

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.pagination .active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ========== SEARCH ========== */
.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: var(--text-muted); }

.search-box svg {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    stroke: var(--text-muted);
}

/* ========== ONLINE PLAYERS LIST ========== */
.online-list {
    list-style: none;
}

.online-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}
.online-item:last-child { border-bottom: none; }

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 0.5rem;
}

/* ========== PROFILE PAGE ========== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-rank {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 1rem;
    stroke: var(--text-muted);
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

.hero-enhanced {
    padding: 3.5rem 2.5rem;
}

.hero-enhanced .hero-bg {
    opacity: 0.2;
    filter: blur(2px);
}

.hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

/* ========== GRID LAYOUTS ========== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ========== FACTION CARDS ========== */
.faction-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.2s;
}

.faction-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.faction-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faction-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========== MAP ========== */
.map-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.map-canvas {
    width: 100%;
    cursor: grab;
}

.map-canvas:active { cursor: grabbing; }

/* ========== SHOP ========== */
.shop-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.shop-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.shop-item-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shop-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.shop-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.shop-item-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex: 1;
}

.shop-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.shop-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.shop-item-stock {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.shop-item-stock.out-of-stock {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.badge-bundle {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ========== SITE ADMIN ========== */
.admin-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.admin-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.admin-form-group {
    margin-bottom: 1rem;
}

.admin-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.admin-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.admin-input:focus {
    border-color: var(--accent);
}

.admin-input::placeholder {
    color: var(--text-muted);
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .admin-form-row {
        grid-template-columns: 1fr;
    }
}

.admin-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.admin-color-picker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-color-picker input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: none;
    padding: 2px;
}

.admin-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.admin-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.admin-toggle:hover {
    background: var(--bg-card-hover);
}

.admin-toggle input[type="checkbox"] {
    display: none;
}

.admin-toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--border);
    border-radius: 999px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.admin-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.2s;
}

.admin-toggle input:checked + .admin-toggle-slider {
    background: var(--accent);
}

.admin-toggle input:checked + .admin-toggle-slider::after {
    left: 18px;
    background: #fff;
}

/* Admin header */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Config list */
.admin-config-list {
    display: flex;
    flex-direction: column;
}

.admin-config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.admin-config-item:last-child { border-bottom: none; }

/* Color card */
.admin-color-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

/* Feature list */
.admin-feature-list {
    display: flex;
    flex-direction: column;
}

.admin-feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    gap: 1rem;
    transition: border-color 0.2s;
}

.admin-feature-item:hover {
    border-color: var(--border-light);
}

.admin-feature-item:last-child { margin-bottom: 0; }

.admin-feature-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.admin-feature-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Mini toggle (pour feature list) */
.admin-toggle-mini {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    min-width: 44px;
}

.admin-toggle-mini input[type="checkbox"] {
    display: none;
}

.admin-toggle-mini .admin-toggle-slider {
    width: 44px;
    height: 24px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
    display: block;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.admin-toggle-mini .admin-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.admin-toggle-mini input:checked + .admin-toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(249,115,22,0.4);
}

.admin-toggle-mini input:checked + .admin-toggle-slider::after {
    left: 22px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ========== IMAGE UPLOAD ZONES ========== */
.img-upload-zone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}
.img-upload-zone:hover {
    border-color: var(--accent);
    background: rgba(249,115,22,0.03);
}
.img-upload-zone.drag-over {
    border-color: var(--accent);
    background: rgba(249,115,22,0.08);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.img-upload-zone.img-upload-small { height: 90px; }
.img-upload-zone.img-upload-banner { height: 160px; }

.img-upload-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.img-preview-logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.img-preview-favicon { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; }
.img-preview-banner { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.img-upload-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}
.img-upload-zone:hover .img-upload-overlay { opacity: 1; }

.img-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    padding: 1.5rem;
    text-align: center;
}
.img-upload-placeholder svg { opacity: 0.5; }
.img-upload-placeholder span { font-size: 0.8rem; font-weight: 600; }

.img-remove-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 0.5rem;
    cursor: pointer;
}
.img-remove-label input { width: auto; accent-color: var(--danger); }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ========== UTILITIES ========== */
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ============================================================================
 * HOME v2 — Refonte design (2026-06-08, LE REPAIR)
 * Hero pleine largeur + bandeau stats + sections animees.
 * Prefixe .h2-* pour eviter tout conflit avec l'ancien .hx-*.
 * ============================================================================ */

/* === HERO v2 : fond sombre uni + motif + logo XL a droite (2026-06-08) === */
.h2-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    background:
        radial-gradient(circle at 0% 0%, var(--accent-glow), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(168,85,247,0.06), transparent 55%),
        linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2.4rem 2.5rem;
    min-height: 280px;
}
/* Motif grille en transparence (style carte topo / radar) */
.h2-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: -1px -1px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}
.h2-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px);
    pointer-events: none;
    z-index: 1;
}
.h2-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 720px;
}
/* Logo XL a droite (l'ancienne banner_url ou logo_url devient un "embleme") */
.h2-hero-emblem {
    position: relative;
    z-index: 2;
    width: 220px;
    height: 220px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: 0 14px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
    background: var(--bg-dark);
    transition: transform 0.3s ease;
}
.h2-hero-emblem:hover { transform: scale(1.02); }
.h2-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    background: rgba(239,68,68,0.12);
    color: #fecaca;
    border: 1px solid rgba(239,68,68,0.35);
    margin-bottom: 1.2rem;
    backdrop-filter: blur(8px);
}
.h2-hero-badge .h2-pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
    animation: h2-pulse 1.8s ease-out infinite;
}
@keyframes h2-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
/* .h2-hero-logo : deprecated v2 (remplace par .h2-hero-emblem) */
.h2-hero-logo { display: none; }
.h2-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 0.6rem;
    text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.h2-hero-title .accent { color: var(--accent); }
.h2-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.78);
    max-width: 540px;
    margin: 0 0 1.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.h2-hero-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 1.8rem;
}
.h2-hero-tag {
    padding: 0.32rem 0.8rem;
    border-radius: 4px;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
}
.h2-hero-btns {
    display: flex; gap: 0.7rem; flex-wrap: wrap;
}
.h2-hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.75rem 1.6rem;
    border-radius: 8px;
    font-size: 0.88rem; font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid transparent;
}
.h2-hero-btn:hover { transform: translateY(-2px); }
.h2-hero-btn.primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 6px 18px var(--accent-glow);
}
.h2-hero-btn.primary:hover { box-shadow: 0 10px 26px var(--accent-glow); background: var(--accent-hover); color: #fff; }
.h2-hero-btn.ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
}
.h2-hero-btn.ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }
/* .h2-hero-scroll : deprecated v2 (hero plus court) */
.h2-hero-scroll { display: none; }

/* === BANDEAU STATS LIVE === */
.h2-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.h2-stat {
    background: var(--bg-card);
    padding: 1.4rem 1.2rem;
    display: flex; align-items: center; gap: 1rem;
    transition: background 0.18s;
    position: relative;
}
.h2-stat:hover { background: var(--bg-card-hover); }
.h2-stat::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--col, var(--accent));
    opacity: 0.85;
}
.h2-stat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04);
    color: var(--col, var(--accent));
    flex-shrink: 0;
}
.h2-stat-icon svg { width: 22px; height: 22px; }
.h2-stat-val {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--col, var(--text-primary));
    font-variant-numeric: tabular-nums;
}
.h2-stat-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* === KILLFEED TICKER agressif === */
.h2-ticker {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(239,68,68,0.28);
    background: linear-gradient(90deg, rgba(239,68,68,0.06) 0%, var(--bg-card) 25%);
    display: flex; align-items: center;
    height: 46px;
}
.h2-ticker-label {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0 1rem;
    height: 100%;
    background: rgba(239,68,68,0.14);
    border-right: 1px solid rgba(239,68,68,0.3);
    color: #fecaca;
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    white-space: nowrap;
}
.h2-ticker-label .h2-pulse { width: 7px; height: 7px; }
.h2-ticker-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}
.h2-ticker-track {
    display: flex; align-items: center;
    gap: 2rem;
    height: 100%;
    white-space: nowrap;
    animation: h2-marquee 60s linear infinite;
    padding-left: 1rem;
}
@keyframes h2-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.h2-ticker-item {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem;
}
.h2-ticker-item .killer { color: #fff; font-weight: 700; }
.h2-ticker-item .arrow { color: var(--danger); font-weight: 900; }
.h2-ticker-item .victim { color: var(--text-secondary); }
.h2-ticker-item .weapon {
    padding: 1px 6px; border-radius: 3px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* === MON ESPACE (carte gradient) === */
.h2-me {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    padding: 1.6rem;
    background:
        radial-gradient(circle at 0% 0%, var(--accent-glow), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(168,85,247,0.08), transparent 50%),
        linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.h2-me::before {
    content: '';
    position: absolute; right: -50px; top: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.h2-me-avatar {
    width: 64px; height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 900; color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.h2-me-info h4 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.h2-me-info p { margin: 2px 0 0; color: var(--text-muted); font-size: 0.78rem; }
.h2-me-stats { display: flex; gap: 1.2rem; }
.h2-me-stat { text-align: center; padding: 0 0.4rem; }
.h2-me-stat .v {
    font-size: 1.25rem; font-weight: 900;
    line-height: 1;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.h2-me-stat .l {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-top: 0.35rem;
    font-weight: 700;
}
.h2-me-cta {
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-light);
    color: #fff;
    font-size: 0.8rem; font-weight: 700;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.h2-me-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* === GRID 2 colonnes (podium + feed) + colonne 3 (online + liens) === */
.h2-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}
.h2-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.h2-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}
.h2-card-title {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.82rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.h2-card-title svg { width: 16px; height: 16px; color: var(--accent); }
.h2-card-action {
    font-size: 0.72rem; font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    border: 1px solid var(--border);
    transition: color 0.15s, border-color 0.15s;
}
.h2-card-action:hover { color: var(--accent); border-color: var(--accent); }

/* PODIUM */
.h2-podium {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 1.5rem 1.2rem 1rem;
    align-items: end;
}
.h2-podium-col { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.h2-podium-name {
    font-size: 0.82rem; font-weight: 800;
    color: #fff;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h2-podium-name:hover { color: var(--accent); }
.h2-podium-kills { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; }
.h2-podium-bar {
    width: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 900;
    color: #fff;
    border-radius: 8px 8px 0 0;
    position: relative;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.25);
}
.h2-podium-bar.p1 { height: 110px; background: linear-gradient(180deg, #ffd700, #b8860b); color: #1a1a1a; }
.h2-podium-bar.p2 { height: 80px;  background: linear-gradient(180deg, #c0c0c0, #707070); color: #1a1a1a; }
.h2-podium-bar.p3 { height: 60px;  background: linear-gradient(180deg, #cd7f32, #8b4513); color: #fff; }
.h2-podium-rest {
    padding: 0.5rem 1.1rem 1.1rem;
    display: flex; flex-direction: column; gap: 0.3rem;
}
.h2-podium-row {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    background: var(--bg-secondary);
    font-size: 0.82rem;
    transition: background 0.15s;
}
.h2-podium-row:hover { background: var(--bg-card-hover); }
.h2-podium-row .rank {
    width: 22px;
    font-weight: 800; color: var(--text-muted);
    text-align: center;
    font-size: 0.78rem;
}
.h2-podium-row .name { flex: 1; font-weight: 700; color: #fff; text-decoration: none; }
.h2-podium-row .name:hover { color: var(--accent); }
.h2-podium-row .kills { color: var(--text-muted); font-size: 0.78rem; font-weight: 600; }

/* FEED activite */
.h2-feed { padding: 0.4rem; }
.h2-feed-item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.7rem 0.8rem;
    border-radius: 7px;
    transition: background 0.15s;
}
.h2-feed-item:hover { background: var(--bg-card-hover); }
.h2-feed-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(239,68,68,0.12);
    color: var(--danger);
    flex-shrink: 0;
}
.h2-feed-icon svg { width: 14px; height: 14px; }
.h2-feed-body { flex: 1; min-width: 0; }
.h2-feed-body p { margin: 0; font-size: 0.82rem; }
.h2-feed-body p .killer { color: #fff; font-weight: 700; text-decoration: none; }
.h2-feed-body p .killer:hover { color: var(--accent); }
.h2-feed-body p .dim { color: var(--text-muted); }
.h2-feed-meta {
    display: flex; gap: 0.4rem; margin-top: 0.25rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.h2-feed-weapon {
    padding: 1px 6px; border-radius: 3px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}
.h2-feed-time { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

/* COLONNE 3 : online + liens */
.h2-col3 { display: flex; flex-direction: column; gap: 1.2rem; }
.h2-online-list { padding: 0.4rem; max-height: 360px; overflow-y: auto; }
.h2-online-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    transition: background 0.15s;
}
.h2-online-item:hover { background: var(--bg-card-hover); }
.h2-online-name { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; }
.h2-online-name a { color: #fff; text-decoration: none; }
.h2-online-name a:hover { color: var(--accent); }
.h2-online-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: h2-pulse 1.8s ease-out infinite;
}
.h2-online-time { font-size: 0.72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.h2-online-empty {
    padding: 1.5rem 1rem; text-align: center;
    font-size: 0.78rem; color: var(--text-muted);
}

.h2-links { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.4rem; }
.h2-link {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.75rem 0.85rem;
    border-radius: 7px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem; font-weight: 700;
    transition: background 0.15s, color 0.15s;
}
.h2-link:hover { background: var(--bg-card-hover); color: var(--accent); }
.h2-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.h2-link .chevron { margin-left: auto; opacity: 0.5; transition: transform 0.15s; }
.h2-link:hover .chevron { transform: translateX(3px); opacity: 1; }

/* QUICK STATS (bandeau detail serveur) */
.h2-quick { padding: 1rem 1.1rem; }
.h2-quick-row {
    display: flex; justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
}
.h2-quick-row:last-child { border-bottom: none; }
.h2-quick-row .lbl { color: var(--text-muted); }
.h2-quick-row .val { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .h2-grid { grid-template-columns: 1fr 1fr; }
    .h2-grid > .h2-col3 { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .h2-grid > .h2-col3 > * { flex: 1 1 300px; }
}
@media (max-width: 900px) {
    .h2-hero {
        grid-template-columns: 1fr;
        padding: 1.8rem 1.4rem;
        min-height: auto;
        text-align: left;
    }
    .h2-hero-emblem {
        width: 120px; height: 120px;
        justify-self: center;
        order: -1;
        margin-bottom: 0.5rem;
    }
}
@media (max-width: 768px) {
    .h2-stats { grid-template-columns: repeat(2, 1fr); }
    .h2-grid { grid-template-columns: 1fr; }
    .h2-grid > .h2-col3 { flex-direction: column; }
    .h2-me { grid-template-columns: auto 1fr; }
    .h2-me-stats, .h2-me-cta { grid-column: 1 / -1; }
    .h2-me-stats { justify-content: space-between; }
    .h2-podium-bar.p1 { height: 90px; }
    .h2-podium-bar.p2 { height: 65px; }
    .h2-podium-bar.p3 { height: 50px; }
}

/* ============================================================================
 * DESIGN SYSTEM V3 — Refonte complete (2026-06-08)
 * Style Faceit/Tracker.gg : navbar haut, sidebar etroite, hero clean.
 * Surcharge l'ancien design + introduit les nouvelles classes du mockup.
 * ============================================================================ */

/* === Palette V3 surcharge (Inter + JetBrains Mono via Google Fonts) === */
:root {
    --bg-0: #07070b;
    --bg-1: #0d0d14;
    --bg-2: #14141c;
    --bg-3: #1c1c26;
    --bg-hover: #232330;
    --v3-border: #25252f;
    --v3-border-bright: #34344a;
    --v3-text-0: #ffffff;
    --v3-text-1: #c5c5d2;
    --v3-text-2: #8b8b9c;
    --v3-text-3: #595969;
    --v3-success: #00e676;
    --v3-danger: #ff3b3b;
    --v3-warning: #ffb800;
    --v3-gold: #ffd700;
    --v3-silver: #c0c0c0;
    --v3-bronze: #cd7f32;
    --v3-radius: 12px;
    --v3-radius-sm: 8px;
}

/* === Base : on remap les variables existantes pour propager partout === */
body {
    background: var(--bg-0);
    color: var(--v3-text-1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.mono, .v3-mono { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; font-variant-numeric: tabular-nums; }

/* === APP GRID : navbar haut + sidebar etroite + main === */
.v3-app {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 64px 1fr;
    min-height: 100vh;
}

/* === NAVBAR ===  */
.v3-navbar {
    grid-column: 1 / -1;
    background: var(--bg-1);
    border-bottom: 1px solid var(--v3-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.v3-nav-brand {
    display: flex; align-items: center; gap: 0.7rem;
    font-weight: 900; font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--v3-text-0);
    text-decoration: none;
}
.v3-nav-brand:hover { color: var(--accent); }
.v3-nav-logo {
    width: 36px; height: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.v3-nav-logo.placeholder {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.v3-nav-search {
    flex: 1; max-width: 480px; position: relative;
}
.v3-nav-search input {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-sm);
    padding: 0.55rem 0.9rem 0.55rem 2.3rem;
    color: var(--v3-text-0);
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.v3-nav-search input:focus { outline: none; border-color: var(--accent); background: var(--bg-3); }
.v3-nav-search svg {
    position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%);
    color: var(--v3-text-3); width: 16px; height: 16px;
}
.v3-nav-actions { display: flex; align-items: center; gap: 0.8rem; margin-left: auto; }
.v3-nav-status {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    background: rgba(0,230,118,0.08);
    border: 1px solid rgba(0,230,118,0.25);
    border-radius: 999px;
    font-size: 0.72rem; font-weight: 700;
    color: var(--v3-success);
    white-space: nowrap;
}
.v3-nav-status .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--v3-success);
    box-shadow: 0 0 8px var(--v3-success);
    animation: v3-pulse 1.8s ease-out infinite;
}
@keyframes v3-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,230,118,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(0,230,118,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,230,118,0); }
}
.v3-nav-btn {
    padding: 0.5rem 1.1rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--v3-radius-sm);
    font-weight: 700; font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
    border: none; cursor: pointer;
}
.v3-nav-btn:hover { background: var(--accent-hover); transform: translateY(-1px); color: #fff; }
.v3-nav-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff;
    cursor: pointer;
    text-decoration: none;
}
.v3-nav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* === SIDEBAR V3 (surcharge .sidebar existant) === */
.sidebar {
    position: static !important;       /* on est dans la grille, pas fixed */
    width: auto !important;
    height: auto !important;
    background: var(--bg-1) !important;
    border-right: 1px solid var(--v3-border) !important;
    padding: 1.2rem 0.7rem !important;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    overflow-y: auto;
    box-shadow: none !important;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--v3-border); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--v3-border-bright); }

/* Bloc identite (logo + nom serveur dans la sidebar) — masque on est navbar */
.sidebar-header { display: none !important; }
.sidebar-player-count { display: none !important; }
.sidebar-search { display: none !important; }
.sidebar-socials { display: none !important; }
.sidebar-footer { display: none !important; }

.sidebar-nav { flex: 1; padding: 0 !important; display: flex; flex-direction: column; gap: 1.4rem; }
.nav-section-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--v3-text-3);
    padding: 0 0.85rem 0.4rem;
    opacity: 1;
}
.nav-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.55rem 0.85rem !important;
    border-radius: 8px !important;
    color: var(--v3-text-1) !important;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600 !important;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    margin-bottom: 2px;
    position: relative;
    background: transparent !important;
}
.nav-item:hover {
    background: var(--bg-2) !important;
    color: var(--v3-text-0) !important;
    transform: translateX(2px);
}
.nav-item.active {
    background: linear-gradient(90deg, var(--accent-glow), transparent 80%) !important;
    color: var(--v3-text-0) !important;
}
.nav-item.active::before {
    content: ''; position: absolute; left: 0; top: 22%; bottom: 22%;
    width: 3px; background: var(--accent); border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px var(--accent);
}
.nav-item.active .nav-icon { stroke: var(--accent) !important; }
.nav-icon { stroke: var(--v3-text-2) !important; width: 18px !important; height: 18px !important; flex-shrink: 0; }
.nav-item:hover .nav-icon { stroke: var(--accent) !important; }

/* === MAIN === */
.main-content {
    margin-left: 0 !important;
    padding: 1.8rem 2.2rem !important;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 80% 0%, var(--accent-glow), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(0,212,255,0.07), transparent 40%);
    min-height: calc(100vh - 64px);
}

/* === HERO V3 === */
.v3-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    align-items: center;
    background:
        radial-gradient(circle at 0% 50%, rgba(255,106,0,0.08), transparent 50%),
        linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 2.2rem 2.4rem;
    margin-bottom: 1.8rem;
    position: relative;
    overflow: hidden;
}
.v3-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    mask-image: radial-gradient(circle at 20% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 20% 50%, black 20%, transparent 70%);
}
.v3-hero-content { position: relative; z-index: 1; max-width: 640px; }
.v3-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.3rem 0.8rem;
    background: rgba(255,59,59,0.1);
    border: 1px solid rgba(255,59,59,0.3);
    border-radius: 999px;
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.3px;
    color: #ffb0b0;
    margin-bottom: 1.2rem;
}
.v3-hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--v3-danger);
    animation: v3-pulse-red 1.8s ease-out infinite;
}
@keyframes v3-pulse-red {
    0%   { box-shadow: 0 0 0 0 rgba(255,59,59,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(255,59,59,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); }
}
.v3-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 0.5rem;
    color: #fff;
}
.v3-hero h1 .accent { color: var(--accent); }
.v3-hero-sub {
    font-size: 1rem;
    color: var(--v3-text-1);
    margin-bottom: 1.3rem;
    max-width: 520px;
    line-height: 1.55;
}
.v3-hero-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.v3-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-3);
    border: 1px solid var(--v3-border-bright);
    border-radius: 6px;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--v3-text-1);
}
.v3-tag.xbox { color: #74e25b; border-color: #2c4a2a; background: rgba(116,226,91,0.08); }
.v3-tag.ps   { color: #5b8df0; border-color: #2a3a5e; background: rgba(91,141,240,0.08); }
.v3-hero-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.v3-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.7rem 1.4rem;
    border-radius: var(--v3-radius-sm);
    font-weight: 700; font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
    border: 1px solid transparent;
    cursor: pointer;
}
.v3-btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 6px 20px var(--accent-glow);
}
.v3-btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); color: #fff; box-shadow: 0 10px 28px var(--accent-glow); }
.v3-btn-ghost {
    background: var(--bg-2); color: var(--v3-text-0);
    border-color: var(--v3-border-bright);
}
.v3-btn-ghost:hover { background: var(--bg-3); border-color: var(--accent); color: var(--accent); }
.v3-hero-emblem {
    width: 200px; height: 200px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
    position: relative; z-index: 1;
    background: var(--bg-2);
}

/* === STATS RAIL === */
.v3-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.8rem;
}
.v3-stat {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 1.2rem 1.3rem;
    display: flex; align-items: center; gap: 1rem;
    transition: border-color 0.18s, transform 0.18s;
    position: relative; overflow: hidden;
}
.v3-stat:hover { border-color: var(--v3-border-bright); transform: translateY(-2px); }
.v3-stat .icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    background: var(--bg-3);
    display: flex; align-items: center; justify-content: center;
    color: var(--col, var(--accent));
    flex-shrink: 0;
}
.v3-stat .icon svg { width: 22px; height: 22px; }
.v3-stat .v {
    font-size: 1.7rem; font-weight: 900; line-height: 1;
    color: #fff;
    font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums;
}
.v3-stat .l {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.1px;
    font-weight: 700; color: var(--v3-text-3);
    margin-top: 0.35rem;
}

/* === LIVE TICKER === */
.v3-ticker {
    display: flex; align-items: center;
    background: linear-gradient(90deg, rgba(255,59,59,0.06), var(--bg-1) 30%);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-sm);
    overflow: hidden;
    margin-bottom: 1.8rem;
    height: 44px;
}
.v3-ticker-label {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0 1rem; height: 100%;
    background: rgba(255,59,59,0.12);
    border-right: 1px solid rgba(255,59,59,0.25);
    color: #ffb0b0;
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    white-space: nowrap;
}
.v3-ticker-label .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--v3-danger); animation: v3-pulse-red 1.8s ease-out infinite;
}
.v3-ticker-scroll { flex: 1; overflow: hidden; height: 100%; padding-left: 1rem; }
.v3-ticker-track {
    display: flex; align-items: center; gap: 2.5rem; height: 100%;
    white-space: nowrap;
    animation: v3-marquee 50s linear infinite;
}
@keyframes v3-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.v3-ticker-item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.v3-ticker-item .killer { color: #fff; font-weight: 700; text-decoration: none; }
.v3-ticker-item .killer:hover { color: var(--accent); }
.v3-ticker-item .arrow { color: var(--v3-danger); font-weight: 900; }
.v3-ticker-item .victim { color: var(--v3-text-2); text-decoration: none; }
.v3-ticker-item .victim:hover { color: var(--v3-text-0); }
.v3-ticker-item .weapon {
    padding: 1px 6px; background: var(--bg-3); border-radius: 4px;
    color: var(--v3-text-2); font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
}

/* === GRID 3 colonnes (podium + feed + col3) === */
.v3-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.85fr;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}
.v3-card {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    overflow: hidden;
}
.v3-card-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--v3-border);
}
.v3-card-title {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--v3-text-0);
}
.v3-card-title svg { width: 16px; height: 16px; color: var(--accent); }
.v3-card-action {
    font-size: 0.72rem; font-weight: 700;
    color: var(--v3-text-2); text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    border: 1px solid var(--v3-border);
    transition: color 0.15s, border-color 0.15s;
}
.v3-card-action:hover { color: var(--accent); border-color: var(--accent); }

/* PODIUM */
.v3-podium {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 0.6rem;
    padding: 1.6rem 1.3rem 1.1rem;
    align-items: end;
}
.v3-podium-col { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; min-width: 0; }
.v3-podium-avatar {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}
.v3-podium-avatar.gold   { background: linear-gradient(135deg, var(--v3-gold), #c69500); color: #1a1a1a; }
.v3-podium-avatar.silver { background: linear-gradient(135deg, var(--v3-silver), #707070); color: #1a1a1a; }
.v3-podium-avatar.bronze { background: linear-gradient(135deg, var(--v3-bronze), #6b3915); color: #fff; }
.v3-podium-col .name {
    font-size: 0.85rem; font-weight: 800; color: #fff;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    text-decoration: none;
}
.v3-podium-col .name:hover { color: var(--accent); }
.v3-podium-col .kills { font-size: 0.72rem; color: var(--v3-text-2); font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.v3-podium-bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem; font-weight: 900;
    position: relative;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.3);
}
.v3-podium-bar.p1 { height: 110px; background: linear-gradient(180deg, var(--v3-gold), #c69500); color: #1a1a1a; }
.v3-podium-bar.p2 { height: 78px;  background: linear-gradient(180deg, var(--v3-silver), #707070); color: #1a1a1a; }
.v3-podium-bar.p3 { height: 56px;  background: linear-gradient(180deg, var(--v3-bronze), #6b3915); color: #fff; }
.v3-podium-rest { padding: 0.4rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.v3-podium-row {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 7px;
    background: var(--bg-2);
    font-size: 0.82rem;
    transition: background 0.15s;
}
.v3-podium-row:hover { background: var(--bg-3); }
.v3-podium-row .rank { width: 22px; color: var(--v3-text-2); font-weight: 800; font-size: 0.75rem; text-align: center; }
.v3-podium-row .name { flex: 1; color: #fff; font-weight: 700; text-decoration: none; }
.v3-podium-row .name:hover { color: var(--accent); }
.v3-podium-row .kills { color: var(--v3-text-2); font-size: 0.78rem; font-family: 'JetBrains Mono', monospace; }

/* FEED */
.v3-feed { padding: 0.4rem; }
.v3-feed-item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    transition: background 0.15s;
}
.v3-feed-item:hover { background: var(--bg-2); }
.v3-feed-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(255,59,59,0.12);
    color: var(--v3-danger);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.v3-feed-icon svg { width: 14px; height: 14px; }
.v3-feed-body { flex: 1; min-width: 0; }
.v3-feed-body p { font-size: 0.84rem; margin: 0; }
.v3-feed-body p .killer { color: #fff; font-weight: 700; text-decoration: none; }
.v3-feed-body p .killer:hover { color: var(--accent); }
.v3-feed-body p .dim { color: var(--v3-text-2); text-decoration: none; }
.v3-feed-meta { display: flex; gap: 0.45rem; margin-top: 0.3rem; font-size: 0.7rem; color: var(--v3-text-2); }
.v3-feed-weapon {
    padding: 1px 6px; border-radius: 4px;
    background: var(--bg-3); font-family: 'JetBrains Mono', monospace;
}
.v3-feed-time { font-size: 0.7rem; color: var(--v3-text-3); white-space: nowrap; font-family: 'JetBrains Mono', monospace; }

/* COL3 */
.v3-col3 { display: flex; flex-direction: column; gap: 1.2rem; }
.v3-online-list { padding: 0.4rem; max-height: 340px; overflow-y: auto; }
.v3-online-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: 7px;
    transition: background 0.15s;
}
.v3-online-item:hover { background: var(--bg-2); }
.v3-online-name { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; }
.v3-online-name a { color: #fff; text-decoration: none; }
.v3-online-name a:hover { color: var(--accent); }
.v3-online-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--v3-success);
    box-shadow: 0 0 6px var(--v3-success);
}
.v3-online-time { font-size: 0.72rem; color: var(--v3-text-2); font-family: 'JetBrains Mono', monospace; }
.v3-online-empty { padding: 1.4rem 1rem; text-align: center; font-size: 0.78rem; color: var(--v3-text-2); }

.v3-quick { padding: 1rem 1.2rem; }
.v3-quick-row {
    display: flex; justify-content: space-between;
    padding: 0.45rem 0; font-size: 0.84rem;
    border-bottom: 1px solid var(--v3-border);
}
.v3-quick-row:last-child { border-bottom: none; }
.v3-quick-row .lbl { color: var(--v3-text-2); }
.v3-quick-row .val { color: #fff; font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* CTA cards bas de home */
.v3-cta-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.v3-cta {
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 1.4rem;
    display: flex; align-items: center; gap: 1rem;
    text-decoration: none; color: inherit;
    transition: border-color 0.18s, transform 0.18s;
}
.v3-cta:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.v3-cta .ico {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.v3-cta .ico svg { width: 24px; height: 24px; }
.v3-cta h4 { font-size: 0.92rem; font-weight: 800; color: #fff; margin: 0 0 0.15rem; }
.v3-cta p { font-size: 0.78rem; color: var(--v3-text-2); margin: 0; }

/* "Mon espace" carte joueur connecte */
.v3-me {
    margin-bottom: 1.5rem;
    border-radius: var(--v3-radius);
    padding: 1.5rem 1.8rem;
    background:
        radial-gradient(circle at 0% 0%, var(--accent-glow), transparent 50%),
        linear-gradient(135deg, var(--bg-1), var(--bg-2));
    border: 1px solid var(--v3-border-bright);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.3rem; align-items: center;
}
.v3-me-avatar {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 900; color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.v3-me-info h4 { font-size: 1.02rem; font-weight: 800; margin: 0; color: #fff; }
.v3-me-info p { font-size: 0.78rem; color: var(--v3-text-2); margin: 2px 0 0; }
.v3-me-stats { display: flex; gap: 1.2rem; }
.v3-me-stat { text-align: center; padding: 0 0.3rem; }
.v3-me-stat .v {
    font-size: 1.25rem; font-weight: 900; line-height: 1;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums;
}
.v3-me-stat .l { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--v3-text-2); margin-top: 0.35rem; font-weight: 700; }
.v3-me-cta {
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    background: var(--bg-3);
    border: 1px solid var(--v3-border-bright);
    color: #fff;
    font-size: 0.8rem; font-weight: 700;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.v3-me-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Link banner (compte non lie) */
.link-banner {
    background: rgba(255,184,0,0.08) !important;
    border: 1px solid rgba(255,184,0,0.25) !important;
    color: #ffd57a !important;
    border-radius: var(--v3-radius-sm) !important;
}
.link-banner-content code { background: rgba(255,255,255,0.08) !important; }

/* Powered by */
.v3-powered {
    text-align: center;
    padding: 1.4rem 0 0.6rem;
    font-size: 0.72rem;
    color: var(--v3-text-3);
    letter-spacing: 0.5px;
}
.v3-powered a { color: var(--v3-text-2); text-decoration: none; font-weight: 600; }
.v3-powered a:hover { color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
    .v3-grid { grid-template-columns: 1.5fr 1fr; }
    .v3-grid > .v3-col3 { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .v3-grid > .v3-col3 > * { flex: 1 1 280px; }
}
@media (max-width: 900px) {
    .v3-hero { grid-template-columns: 1fr; padding: 1.8rem 1.4rem; gap: 1.2rem; }
    .v3-hero-emblem { width: 120px; height: 120px; justify-self: start; order: -1; }
    .v3-stats { grid-template-columns: repeat(2, 1fr); }
    .v3-cta-cards { grid-template-columns: 1fr; }
    .v3-me { grid-template-columns: auto 1fr; }
    .v3-me-stats, .v3-me-cta { grid-column: 1 / -1; }
    .v3-me-stats { justify-content: space-between; }
}
/* ============================================================================
 * V3 — Restyle des classes generiques utilisees par TOUTES les pages
 * Sans toucher au HTML : leaderboard, killfeed, profile, players, factions,
 * shop, bounties, battlepass, xp, missions, rivalries, whitelist, rules, etc.
 * Toutes les pages heritent du nouveau look graceau aux selecteurs partages.
 * ============================================================================ */

/* Page header (titre de page H1 + sous-titre) */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--v3-border);
}
.page-header h1, .page-title {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--v3-text-0);
    margin: 0 0 0.4rem;
    line-height: 1.1;
}
.page-header p {
    font-size: 0.88rem;
    color: var(--v3-text-2);
    margin: 0;
}

/* Tabs (categories de leaderboard, navigations internes) */
.tabs {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin-bottom: 1.4rem;
    padding: 0.4rem;
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-sm);
}
.tab {
    padding: 0.55rem 1rem;
    border-radius: 7px;
    color: var(--v3-text-2);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.tab:hover { background: var(--bg-2); color: var(--v3-text-0); }
.tab.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-glow);
}
.tab.active:hover { background: var(--accent-hover); color: #fff; }

/* Cards generiques */
.card {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    overflow: hidden;
    margin-bottom: 1.2rem;
}
.card-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--v3-border);
    background: var(--bg-1);
    display: flex; align-items: center; justify-content: space-between;
}
.card-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--v3-text-0);
    margin: 0;
}
.card-body, .card > :not(.card-header):not(.card-footer) {
    padding: 1.2rem;
}
.card-body table, .card > table { margin: -1.2rem; width: calc(100% + 2.4rem); }

/* Tables */
.table-container {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.table-container table, table {
    width: 100%;
    border-collapse: collapse;
}
.table-container thead, table thead {
    background: var(--bg-2);
    border-bottom: 1px solid var(--v3-border);
}
.table-container th, table th {
    text-align: left;
    padding: 0.85rem 1.1rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--v3-text-2);
}
.table-container td, table td {
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    color: var(--v3-text-1);
    border-bottom: 1px solid var(--v3-border);
}
.table-container tr:last-child td, table tr:last-child td { border-bottom: none; }
.table-container tr:hover td, table tbody tr:hover td { background: var(--bg-2); }
tr.highlighted td {
    background: var(--accent-glow) !important;
    color: #fff;
    font-weight: 700;
}
tr.highlighted td:first-child {
    border-left: 3px solid var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: var(--v3-radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 6px 20px var(--accent-glow); }
.btn-secondary {
    background: var(--bg-2);
    color: var(--v3-text-0);
    border-color: var(--v3-border-bright);
}
.btn-secondary:hover { background: var(--bg-3); border-color: var(--accent); color: var(--accent); }
.btn-danger {
    background: var(--v3-danger);
    color: #fff;
}
.btn-danger:hover { background: #d52a2a; color: #fff; }
.btn-success {
    background: var(--v3-success);
    color: #0a0a0f;
}
.btn-success:hover { background: #00c468; color: #0a0a0f; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.78rem; }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 0.95rem; }

/* Badges generiques */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--bg-3);
    color: var(--v3-text-1);
    border: 1px solid var(--v3-border-bright);
}
.badge.success { background: rgba(0,230,118,0.1); color: var(--v3-success); border-color: rgba(0,230,118,0.25); }
.badge.danger  { background: rgba(255,59,59,0.1); color: var(--v3-danger);  border-color: rgba(255,59,59,0.25); }
.badge.warning { background: rgba(255,184,0,0.1); color: var(--v3-warning); border-color: rgba(255,184,0,0.25); }
.badge.accent  { background: var(--accent-glow); color: var(--accent); border-color: rgba(255,106,0,0.3); }

/* Empty state */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-1);
    border: 1px dashed var(--v3-border-bright);
    border-radius: var(--v3-radius);
}
.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--v3-text-1);
    margin: 0 0 0.5rem;
}
.empty-state p {
    color: var(--v3-text-2);
    font-size: 0.88rem;
    margin: 0;
}

/* Player link (pseudo cliquable vers profil) */
.player-link {
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.15s;
}
.player-link:hover { color: var(--accent) !important; }
.player-link.dim { color: var(--v3-text-2) !important; }
.player-link.dim:hover { color: #fff !important; }

/* Grids generiques */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 0.5rem 0.9rem;
    border-radius: 7px;
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    color: var(--v3-text-1);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pagination a:hover {
    background: var(--bg-2);
    border-color: var(--accent);
    color: var(--accent);
}
.pagination .active {
    background: var(--accent) !important;
    border-color: var(--accent);
    color: #fff !important;
}
.pagination .disabled {
    opacity: 0.4; cursor: not-allowed;
}

/* Utilitaires couleurs */
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--v3-success) !important; }
.text-danger  { color: var(--v3-danger) !important; }
.text-warning { color: var(--v3-warning) !important; }
.text-muted   { color: var(--v3-text-2) !important; }
.fw-bold      { font-weight: 800 !important; }

/* Formulaires */
input[type="text"], input[type="email"], input[type="number"], input[type="password"],
input[type="search"], input[type="url"], textarea, select {
    background: var(--bg-2);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-sm);
    color: var(--v3-text-0);
    padding: 0.65rem 0.9rem;
    font-family: inherit;
    font-size: 0.88rem;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-3);
}
input::placeholder, textarea::placeholder { color: var(--v3-text-3); }
.form-group { margin-bottom: 1rem; }
.form-group label, label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--v3-text-1);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Killfeed entries (.kill-entry, .kill-time, .kill-weapon) */
.kill-entry {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: var(--v3-radius-sm);
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    margin-bottom: 0.4rem;
    transition: background 0.15s, border-color 0.15s;
}
.kill-entry:hover { background: var(--bg-2); border-color: var(--v3-border-bright); }
.kill-time { font-size: 0.72rem; color: var(--v3-text-2); font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.kill-weapon {
    padding: 1px 6px; background: var(--bg-3); border-radius: 4px;
    color: var(--v3-text-2); font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
}
.kill-arrow { color: var(--v3-danger); font-weight: 900; }

/* Profile (.pf-*) — restyle global */
.pf-header {
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 1.6rem 1.8rem;
    margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 1.5rem;
    flex-wrap: wrap;
}
.pf-avatar {
    width: 80px; height: 80px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 900; color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.pf-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 0.25rem 0.7rem;
    background: var(--bg-3);
    border: 1px solid var(--v3-border-bright);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--v3-text-1);
}
.pf-badge.online  { background: rgba(0,230,118,0.1); color: var(--v3-success); border-color: rgba(0,230,118,0.25); }
.pf-badge.offline { background: var(--bg-3); color: var(--v3-text-2); }
.pf-badge.faction { background: var(--accent-glow); color: var(--accent); border-color: rgba(255,106,0,0.3); }
.pf-content-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
@media (max-width: 900px) { .pf-content-grid { grid-template-columns: 1fr; } }
.pf-chart {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 1.3rem;
}
.pf-chart-title {
    font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--v3-text-1);
    margin-bottom: 1rem;
}
.pf-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.pf-bar-col { display: flex; align-items: center; gap: 0.8rem; }
.pf-bar-label { font-size: 0.82rem; color: var(--v3-text-1); min-width: 100px; }
.pf-bar {
    flex: 1; height: 10px;
    background: var(--bg-3);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}
.pf-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 5px;
}

/* Factions (.faction-card) */
.faction-card {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 1.4rem;
    transition: border-color 0.15s, transform 0.15s;
}
.faction-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.faction-name { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.faction-stats {
    display: flex; gap: 1rem;
    font-size: 0.82rem; color: var(--v3-text-2);
}
.faction-stats strong { color: var(--accent); font-family: 'JetBrains Mono', monospace; }

/* Distance badge inline */
.distance-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--bg-3);
    color: var(--v3-text-2);
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
}

/* rank-badge (top 3 = gold/silver/bronze sur leaderboard) */
.rank-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-3);
    color: var(--v3-text-1);
}
.rank-badge.gold   { background: linear-gradient(135deg, var(--v3-gold), #c69500); color: #1a1a1a; }
.rank-badge.silver { background: linear-gradient(135deg, var(--v3-silver), #707070); color: #1a1a1a; }
.rank-badge.bronze { background: linear-gradient(135deg, var(--v3-bronze), #6b3915); color: #fff; }

/* Code inline */
code {
    background: var(--bg-3);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
}

/* Bouton hamburger : visible mobile seulement */
.v3-navbar .mobile-menu-btn { display: none; }
@media (max-width: 800px) {
    .v3-app { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .sidebar.open { display: flex !important; position: fixed !important; top: 64px; left: 0; right: 0; bottom: 0; z-index: 99; width: 100% !important; }
    .v3-grid { grid-template-columns: 1fr; }
    .v3-grid > .v3-col3 { flex-direction: column; }
    .v3-podium-bar.p1 { height: 90px; }
    .v3-podium-bar.p2 { height: 65px; }
    .v3-podium-bar.p3 { height: 50px; }
    .main-content { padding: 1.2rem 1rem !important; }
    .v3-nav-search { display: none; }
    .v3-navbar .mobile-menu-btn { display: flex; align-items: center; }
    .v3-nav-status { display: none; }
}

/* ============================================================================
 * V3 — Refonte 2026-06-08
 * Composants partages par les pages Bounties / Battlepass / XP / Missions /
 * Rivalries / Whitelist / Rules / Site-admin / Landing / Maintenance / 404.
 * Prefixe .v3-* uniquement, reutilise les variables (--accent, --v3-*, --bg-*).
 * ============================================================================ */

/* === Stat tiles : grille de petites statistiques (utilisee par toutes ces pages) === */
.v3-stat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}
.v3-stat-tile {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 1rem 1.1rem;
    text-align: center;
    transition: border-color 0.15s, transform 0.15s;
}
.v3-stat-tile:hover { border-color: var(--v3-border-bright); transform: translateY(-1px); }
.v3-stat-tile .val {
    font-size: 1.45rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: var(--v3-text-0);
    line-height: 1;
    letter-spacing: -0.02em;
}
.v3-stat-tile .lbl {
    font-size: 0.68rem;
    color: var(--v3-text-2);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.v3-stat-tile.accent .val { color: var(--accent); }
.v3-stat-tile.success .val { color: var(--v3-success); }
.v3-stat-tile.danger .val { color: var(--v3-danger); }
.v3-stat-tile.warning .val { color: var(--v3-warning); }
.v3-stat-tile.gold .val { color: var(--v3-gold); }

/* === Tabs internes v3 (filtres dans page : Active / Completed / Daily / Weekly...) === */
.v3-pill-tabs {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 1.2rem;
}
.v3-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--v3-radius-sm);
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    color: var(--v3-text-2);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.v3-pill:hover { border-color: var(--v3-border-bright); color: var(--v3-text-0); }
.v3-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.v3-pill .v3-pill-count {
    font-size: 0.7rem;
    opacity: 0.8;
    font-family: 'JetBrains Mono', monospace;
}

/* === Grille de cards (Bounties, Missions, Rivalites) === */
.v3-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* === Bounties cards === */
.v3-bounty-card {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    overflow: hidden;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.v3-bounty-card:hover { transform: translateY(-2px); border-color: var(--v3-danger); box-shadow: 0 10px 28px rgba(255,59,59,0.18); }
.v3-bounty-card.online { border-left: 3px solid var(--v3-success); }
.v3-bounty-card.offline { opacity: 0.7; }
.v3-bounty-card.offline:hover { opacity: 1; }
.v3-bounty-head {
    background: rgba(255,59,59,0.07);
    padding: 0.6rem 1rem;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--v3-border);
}
.v3-bounty-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--v3-gold);
}
.v3-bounty-time {
    font-size: 0.72rem;
    color: var(--v3-text-2);
    display: flex; align-items: center; gap: 0.35rem;
    font-family: 'JetBrains Mono', monospace;
}
.v3-bounty-time .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--v3-danger);
    animation: v3-pulse-red 1.8s ease-out infinite;
}
.v3-bounty-body {
    padding: 1rem 1.1rem;
    display: flex; flex-direction: column; gap: 0.8rem;
}
.v3-bounty-target {
    display: flex; align-items: center; gap: 0.75rem;
}
.v3-bounty-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,59,59,0.13);
    color: var(--v3-danger);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.v3-bounty-target-name {
    font-size: 0.95rem; font-weight: 800; color: #fff; text-decoration: none;
    display: block;
}
.v3-bounty-target-name:hover { color: var(--accent); }
.v3-bounty-target-meta {
    font-size: 0.72rem; color: var(--v3-text-2);
    margin-top: 0.15rem;
}
.v3-bounty-stats-row {
    display: flex; gap: 1rem; flex-wrap: wrap;
    font-size: 0.78rem; color: var(--v3-text-2);
}
.v3-bounty-stats-row .val {
    font-weight: 800; color: #fff;
    font-family: 'JetBrains Mono', monospace;
}
.v3-bounty-foot {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--v3-border);
    font-size: 0.7rem;
    color: var(--v3-text-2);
    display: flex; justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
}
.v3-bounty-foot .contributors { color: var(--v3-gold); font-weight: 700; }
.v3-bounty-status {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.72rem; font-weight: 700;
}
.v3-bounty-status.online { color: var(--v3-success); }
.v3-bounty-status.offline { color: var(--v3-text-3); }

/* Bounty completed list (item style) */
.v3-bounty-completed {
    display: flex; flex-direction: column; gap: 0.5rem;
}
.v3-bounty-done {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-sm);
    padding: 0.75rem 1rem;
    display: flex; align-items: center; gap: 0.75rem;
    transition: border-color 0.15s, background 0.15s;
}
.v3-bounty-done:hover { background: var(--bg-2); border-color: var(--v3-success); }
.v3-bounty-done .check { color: var(--v3-success); font-size: 1.05rem; flex-shrink: 0; }
.v3-bounty-done .info { flex: 1; min-width: 0; }
.v3-bounty-done .target {
    font-weight: 800; color: #fff; text-decoration: none;
}
.v3-bounty-done .target:hover { color: var(--accent); }
.v3-bounty-done .by { display: block; color: var(--v3-text-2); font-size: 0.78rem; }
.v3-bounty-done .amount {
    color: var(--v3-gold); font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}
.v3-bounty-done .date {
    color: var(--v3-text-3); font-size: 0.72rem; white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
}

/* === Battlepass === */
.v3-bp-banner {
    margin-bottom: 1.5rem;
    border-radius: var(--v3-radius);
    overflow: hidden;
    border: 1px solid var(--v3-border);
}
.v3-bp-banner img { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.v3-bp-selector {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 1.2rem;
}
.v3-bp-progress {
    background: var(--bg-1);
    border: 1px solid var(--v3-border-bright);
    border-radius: var(--v3-radius);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.5rem;
}
.v3-bp-progress-head {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem;
}
.v3-bp-progress-head h3 { margin: 0; font-size: 1rem; font-weight: 800; color: #fff; }
.v3-bp-progress-sub { font-size: 0.82rem; color: var(--v3-text-2); display: block; margin-top: 0.2rem; }
.v3-bp-tier-num {
    font-size: 1.5rem; font-weight: 900; color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}
.v3-bp-tier-xp { font-size: 0.78rem; color: var(--v3-text-2); }
.v3-bp-bar {
    background: var(--bg-3); border-radius: 999px; height: 22px;
    overflow: hidden; position: relative;
}
.v3-bp-bar-fill {
    background: linear-gradient(90deg, var(--accent), var(--v3-gold));
    height: 100%; border-radius: 999px;
    transition: width 0.3s;
}
.v3-bp-bar-text {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    font-family: 'JetBrains Mono', monospace;
}
.v3-bp-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.v3-bp-tier {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-sm);
    padding: 0.85rem 0.9rem;
    transition: border-color 0.15s, transform 0.15s;
    position: relative;
}
.v3-bp-tier.unlocked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow); }
.v3-bp-tier.unlocked:hover { transform: translateY(-2px); }
.v3-bp-tier-row1 {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.5rem;
}
.v3-bp-tier-label {
    font-weight: 800; font-size: 0.85rem;
    color: var(--v3-text-1);
    font-family: 'JetBrains Mono', monospace;
}
.v3-bp-tier.unlocked .v3-bp-tier-label { color: var(--accent); }
.v3-bp-tier-unlocked-tag {
    color: var(--v3-success); font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.v3-bp-tier-reward {
    font-size: 0.8rem; margin-bottom: 4px;
    display: flex; align-items: center; gap: 0.35rem;
    color: var(--v3-text-1);
}
.v3-bp-tier-reward.free { color: var(--v3-text-1); }
.v3-bp-tier-reward.premium { color: var(--v3-gold); }
.v3-bp-tier-reward .lbl { color: var(--v3-text-2); font-weight: 600; }
.v3-bp-tier-reward .val { font-weight: 800; }
.v3-bp-tier-empty {
    font-size: 0.78rem; color: var(--v3-text-3); font-style: italic;
}
.v3-bp-footer {
    text-align: center; margin: 2rem 0 1rem;
    color: var(--v3-text-2); font-size: 0.85rem;
}
.v3-bp-footer strong { color: var(--v3-text-0); }

/* === XP & Niveaux === */
.v3-xp-list {
    display: flex; flex-direction: column; gap: 0.45rem;
}
.v3-xp-row {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-sm);
    padding: 0.8rem 1rem;
    display: flex; align-items: center; gap: 1rem;
    transition: border-color 0.15s, background 0.15s;
}
.v3-xp-row:hover { border-color: var(--v3-border-bright); background: var(--bg-2); }
.v3-xp-row.highlighted {
    border-color: var(--accent);
    background: var(--accent-glow);
}
.v3-xp-rank {
    min-width: 40px; text-align: center;
}
.v3-xp-level {
    display: flex; flex-direction: column; align-items: center; min-width: 58px;
}
.v3-xp-level-num {
    font-size: 1.5rem; font-weight: 900; color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}
.v3-xp-level-lbl {
    font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--v3-text-2); margin-top: 2px; font-weight: 700;
}
.v3-xp-info { flex: 1; min-width: 0; }
.v3-xp-name {
    font-size: 0.92rem; font-weight: 800; color: #fff; text-decoration: none;
}
.v3-xp-name:hover { color: var(--accent); }
.v3-xp-meta {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.7rem; margin-top: 0.2rem;
    font-size: 0.78rem; color: var(--v3-text-2);
    font-family: 'JetBrains Mono', monospace;
}
.v3-xp-title-tag {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 0.1em 0.5em;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
}
.v3-xp-bar {
    width: 120px; height: 6px;
    background: var(--bg-3);
    border-radius: 3px;
    overflow: hidden;
}
.v3-xp-bar > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--v3-gold));
    border-radius: 3px;
    transition: width 0.3s ease;
}
.v3-xp-total {
    font-size: 0.8rem; color: var(--v3-text-2);
    text-align: right; min-width: 88px;
    font-family: 'JetBrains Mono', monospace;
}
@media (max-width: 640px) {
    .v3-xp-bar { display: none; }
    .v3-xp-meta { font-size: 0.7rem; }
}

/* === Missions === */
.v3-ms-card {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    overflow: hidden;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.v3-ms-card:hover { transform: translateY(-2px); border-color: var(--v3-border-bright); box-shadow: 0 10px 24px rgba(0,0,0,0.3); }
.v3-ms-card.completed { border-color: rgba(0,230,118,0.35); }
.v3-ms-head {
    padding: 0.85rem 1rem;
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    border-bottom: 1px solid var(--v3-border);
    background: var(--bg-1);
}
.v3-ms-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 800; font-size: 0.92rem; color: #fff;
}
.v3-ms-emoji { font-size: 1.15rem; }
.v3-ms-pill {
    font-size: 0.68rem; padding: 0.2rem 0.55rem;
    border-radius: 999px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
    white-space: nowrap;
}
.v3-ms-pill.active { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.v3-ms-pill.completed { background: rgba(0,230,118,0.15); color: var(--v3-success); border: 1px solid rgba(0,230,118,0.25); }
.v3-ms-body { padding: 0.85rem 1rem; }
.v3-ms-desc {
    font-size: 0.8rem; color: var(--v3-text-2);
    margin-bottom: 0.8rem; line-height: 1.45;
}
.v3-ms-progress { margin-bottom: 0.5rem; }
.v3-ms-progress-bar {
    height: 8px;
    background: var(--bg-3);
    border-radius: 999px;
    overflow: hidden;
}
.v3-ms-progress-fill {
    height: 100%; border-radius: 999px;
    transition: width 0.5s ease;
    min-width: 2px;
}
.v3-ms-progress-txt {
    display: flex; justify-content: space-between;
    font-size: 0.72rem; color: var(--v3-text-2);
    margin-top: 0.3rem;
    font-family: 'JetBrains Mono', monospace;
}
.v3-ms-progress-pct { font-weight: 800; color: #fff; }
.v3-ms-foot {
    padding: 0.55rem 1rem;
    border-top: 1px solid var(--v3-border);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.78rem;
}
.v3-ms-objective { color: var(--v3-text-2); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; }
.v3-ms-reward {
    font-weight: 800; color: var(--v3-gold);
    display: flex; align-items: center; gap: 0.3rem;
    font-family: 'JetBrains Mono', monospace;
}
.v3-ms-notice {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 1.2rem 1.4rem;
    text-align: center;
    margin-bottom: 1.4rem;
}
.v3-ms-notice h3 { font-size: 1rem; font-weight: 800; color: #fff; margin: 0 0 0.4rem; }
.v3-ms-notice p { font-size: 0.85rem; color: var(--v3-text-2); margin: 0; }

/* === Rivalries === */
.v3-rv-card {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.v3-rv-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.4); }
.v3-rv-head {
    padding: 0.55rem 1rem;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--v3-border);
}
.v3-rv-level {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
    border: 1px solid var(--v3-border-bright);
}
.v3-rv-level.naissante  { color: var(--v3-text-2); background: var(--bg-3); border-color: var(--v3-border-bright); }
.v3-rv-level.etablie    { color: #60a5fa; background: rgba(96,165,250,0.1);  border-color: rgba(96,165,250,0.3); }
.v3-rv-level.intense    { color: var(--accent); background: var(--accent-glow); border-color: rgba(255,106,0,0.3); }
.v3-rv-level.legendaire { color: var(--v3-gold); background: rgba(255,215,0,0.1); border-color: rgba(255,215,0,0.3); }
.v3-rv-encounters {
    font-size: 0.72rem; color: var(--v3-text-2);
    font-family: 'JetBrains Mono', monospace;
}
.v3-rv-body {
    padding: 1rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.v3-rv-player {
    flex: 1; text-align: center; min-width: 0;
}
.v3-rv-player-name {
    display: block;
    font-size: 0.88rem; font-weight: 800; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-decoration: none;
}
.v3-rv-player-name:hover { color: var(--accent); }
.v3-rv-player-kills {
    font-size: 1.5rem; font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 0.3rem; line-height: 1;
}
.v3-rv-player-kills.winner { color: var(--accent); }
.v3-rv-player-kills.loser  { color: var(--v3-text-2); }
.v3-rv-player-kills.tied   { color: var(--v3-text-1); }
.v3-rv-player-lbl {
    font-size: 0.62rem; color: var(--v3-text-2);
    text-transform: uppercase; letter-spacing: 1px;
    margin-top: 0.2rem; font-weight: 700;
}
.v3-rv-vs {
    font-size: 0.85rem; font-weight: 900; color: var(--v3-text-2);
    text-transform: uppercase;
    width: 38px; text-align: center; flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}
.v3-rv-bar-wrap { padding: 0 1rem 0.75rem; }
.v3-rv-bar {
    height: 6px; border-radius: 3px;
    background: var(--bg-3);
    display: flex; overflow: hidden;
}
.v3-rv-bar-p1 { background: var(--accent); transition: width 0.3s; border-radius: 3px 0 0 3px; }
.v3-rv-bar-p2 { background: var(--v3-danger); transition: width 0.3s; border-radius: 0 3px 3px 0; }
.v3-rv-foot {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--v3-border);
    font-size: 0.7rem; color: var(--v3-text-2);
    display: flex; justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
}

/* === Whitelist === */
.v3-wl-status {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 1.4rem;
    margin-bottom: 1.4rem;
    display: flex; align-items: flex-start; gap: 1rem;
}
.v3-wl-status.pending  { border-color: rgba(255,184,0,0.3); }
.v3-wl-status.approved { border-color: rgba(0,230,118,0.3); }
.v3-wl-status.rejected { border-color: rgba(255,59,59,0.3); }
.v3-wl-status-ico {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.v3-wl-status.pending  .v3-wl-status-ico { background: rgba(255,184,0,0.15); color: var(--v3-warning); }
.v3-wl-status.approved .v3-wl-status-ico { background: rgba(0,230,118,0.15); color: var(--v3-success); }
.v3-wl-status.rejected .v3-wl-status-ico { background: rgba(255,59,59,0.15); color: var(--v3-danger); }
.v3-wl-status-body { flex: 1; min-width: 0; }
.v3-wl-status-body h3 {
    font-size: 1.05rem; font-weight: 800; color: #fff; margin: 0 0 0.3rem;
}
.v3-wl-status-body p {
    font-size: 0.88rem; color: var(--v3-text-2); margin: 0 0 0.5rem;
}
.v3-wl-status-tag-pending  { color: var(--v3-warning); font-weight: 800; }
.v3-wl-status-tag-approved { color: var(--v3-success); font-weight: 800; }
.v3-wl-status-tag-rejected { color: var(--v3-danger); font-weight: 800; }
.v3-wl-details {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.7rem;
}
.v3-wl-detail {
    background: var(--bg-2);
    border-radius: var(--v3-radius-sm);
    padding: 0.7rem 0.85rem;
}
.v3-wl-detail-lbl {
    font-size: 0.65rem;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--v3-text-2);
    margin-bottom: 0.25rem; font-weight: 700;
}
.v3-wl-detail-val {
    font-size: 0.92rem; font-weight: 800; color: #fff;
    font-family: 'JetBrains Mono', monospace;
}
.v3-wl-reject {
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    background: rgba(255,59,59,0.08);
    border: 1px solid rgba(255,59,59,0.25);
    border-radius: var(--v3-radius-sm);
    font-size: 0.85rem;
    color: #ffa5a5;
}
.v3-wl-form {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 1.4rem;
    margin-bottom: 1.4rem;
}
.v3-wl-form h2 {
    font-size: 1.05rem; font-weight: 800; color: #fff;
    margin: 0 0 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.v3-wl-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 768px) { .v3-wl-row { grid-template-columns: 1fr; } }
.v3-wl-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem; color: var(--v3-text-3);
}
.v3-wl-required { color: var(--accent); }
.v3-wl-alert {
    padding: 0.85rem 1rem;
    border-radius: var(--v3-radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: 0.55rem;
    border: 1px solid var(--v3-border);
}
.v3-wl-alert.success {
    background: rgba(0,230,118,0.1);
    border-color: rgba(0,230,118,0.3);
    color: #6cf09a;
}
.v3-wl-alert.error {
    background: rgba(255,59,59,0.1);
    border-color: rgba(255,59,59,0.3);
    color: #ff8b8b;
}
.v3-wl-notice {
    background: var(--bg-1);
    border: 1px dashed var(--v3-border-bright);
    border-radius: var(--v3-radius);
    padding: 1.2rem 1.4rem;
    text-align: center;
    margin-bottom: 1.4rem;
}
.v3-wl-notice h3 { font-size: 1rem; font-weight: 800; color: #fff; margin: 0 0 0.4rem; }
.v3-wl-notice p { font-size: 0.85rem; color: var(--v3-text-2); margin: 0; }

/* === Rules : accordeon sections === */
.v3-rules-hero {
    text-align: center; margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--v3-border);
}
.v3-rules-hero h1 {
    font-size: 1.7rem; font-weight: 900;
    display: inline-flex; align-items: center; gap: 0.6rem;
    color: #fff; margin: 0 0 0.5rem;
}
.v3-rules-hero h1 svg { width: 26px; height: 26px; color: var(--accent); }
.v3-rules-hero p { color: var(--v3-text-2); font-size: 0.88rem; margin: 0; }
.v3-rules-stats {
    display: inline-flex; gap: 2rem;
    margin-top: 1rem;
}
.v3-rules-stat { text-align: center; }
.v3-rules-stat .val {
    font-size: 1.4rem; font-weight: 900; color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}
.v3-rules-stat .lbl {
    font-size: 0.65rem; color: var(--v3-text-2);
    text-transform: uppercase; letter-spacing: 1px;
    font-weight: 700;
}
.v3-rule-section {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: border-color 0.15s;
}
.v3-rule-section:hover { border-color: var(--v3-border-bright); }
.v3-rule-section-head {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 1rem 1.2rem;
    cursor: pointer; user-select: none;
    transition: background 0.15s;
}
.v3-rule-section-head:hover { background: var(--bg-2); }
.v3-rule-section-ico {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.05rem; flex-shrink: 0;
    box-shadow: 0 6px 14px var(--accent-glow);
}
.v3-rule-section-ico svg { width: 20px; height: 20px; }
.v3-rule-section-title { flex: 1; min-width: 0; }
.v3-rule-section-title h3 {
    font-size: 1rem; font-weight: 800; color: #fff;
    margin: 0 0 2px;
}
.v3-rule-section-title span {
    font-size: 0.72rem; color: var(--v3-text-2);
    font-family: 'JetBrains Mono', monospace;
}
.v3-rule-section-chevron {
    color: var(--v3-text-3); flex-shrink: 0;
    transition: transform 0.3s;
}
.v3-rule-section-chevron svg { width: 20px; height: 20px; }
.v3-rule-section.open .v3-rule-section-chevron { transform: rotate(180deg); }
.v3-rule-section-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
}
.v3-rule-section.open .v3-rule-section-body { max-height: 2000px; }
.v3-rule-section-content {
    padding: 0.5rem 1.2rem 1.2rem;
    border-top: 1px solid var(--v3-border);
}
.v3-rule-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.65rem 0;
    font-size: 0.88rem;
    color: var(--v3-text-1);
    line-height: 1.5;
}
.v3-rule-item:not(:last-child) { border-bottom: 1px solid var(--v3-border); }
.v3-rule-item-num {
    width: 26px; height: 26px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 900;
    flex-shrink: 0; margin-top: 1px;
    font-family: 'JetBrains Mono', monospace;
}
.v3-rules-fallback {
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 2rem;
    line-height: 1.8;
    font-size: 0.92rem;
    color: var(--v3-text-1);
}

/* === Standalone pages (Landing, Maintenance, 404) === */
.v3-standalone {
    min-height: 100vh;
    background: var(--bg-0, #0a0a0f);
    color: var(--v3-text-1);
    font-family: 'Inter', -apple-system, sans-serif;
    display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased;
    position: relative;
}
.v3-standalone-bg {
    position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.v3-standalone-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,106,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,106,0,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}
.v3-standalone-bg .orb {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5;
}
.v3-standalone-bg .orb-1 {
    width: 500px; height: 500px; top: -10%; right: 10%;
    background: var(--accent);
    opacity: 0.12;
}
.v3-standalone-bg .orb-2 {
    width: 380px; height: 380px; bottom: 5%; left: -5%;
    background: var(--accent);
    opacity: 0.08;
}
.v3-standalone-center {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem; text-align: center;
    position: relative; z-index: 1;
}
.v3-standalone-card {
    max-width: 560px;
    background: var(--bg-1);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    padding: 3rem 2rem;
}
.v3-standalone-ico {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent-glow);
    border: 1px solid var(--v3-border-bright);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.v3-standalone-ico svg { width: 38px; height: 38px; }
.v3-standalone-logo {
    width: 64px; height: 64px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    object-fit: cover;
    border: 1px solid var(--v3-border-bright);
}
.v3-standalone h1 {
    font-size: 1.7rem; font-weight: 900;
    color: #fff; margin: 0 0 0.7rem;
}
.v3-standalone-code {
    font-size: 6rem; font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--v3-danger));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem;
    letter-spacing: -4px;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
}
.v3-standalone p {
    font-size: 1rem;
    color: var(--v3-text-2);
    line-height: 1.6;
    margin: 0 0 1.8rem;
}
.v3-standalone-actions {
    display: flex; gap: 0.7rem;
    justify-content: center; flex-wrap: wrap;
    margin-top: 1.5rem;
}
.v3-standalone-foot {
    padding: 1.2rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--v3-text-3);
    position: relative; z-index: 1;
}
.v3-standalone-foot a {
    color: var(--v3-text-2); text-decoration: none; font-weight: 700;
}
.v3-standalone-foot a:hover { color: var(--accent); }
@media (max-width: 480px) {
    .v3-standalone-code { font-size: 4.5rem; }
    .v3-standalone h1 { font-size: 1.3rem; }
    .v3-standalone-card { padding: 2rem 1.2rem; }
}

/* Selecteur de plateforme dans formulaire (whitelist) */
select.v3-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b9c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    cursor: pointer;
}

/* Page de maintenance : message quand le compte connecte n'est pas proprietaire */
.v3-standalone-note { margin: 1rem 0 0; font-size: .85rem; color: var(--text-3, #94a3b8); }
