/* ============================================
   7Gaming — Design Tokens v3
   Thème sombre (défaut) + Thème clair
   Palette League of Legends : cyan/bleu/or
   ============================================ */

:root {
    /* Couleurs de fond */
    --bg-body: #0a0a0f;
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(16, 16, 32, 0.8);
    --bg-glass-strong: rgba(16, 16, 32, 0.92);
    --bg-input: rgba(255, 255, 255, 0.04);
    --bg-input-focus: rgba(255, 255, 255, 0.07);

    /* Bordures */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    --border-input: rgba(255, 255, 255, 0.1);
    --border-input-focus: rgba(0, 212, 255, 0.5);

    /* Texte */
    --text-primary: #eaeaf2;
    --text-secondary: #b0b0c8;
    --text-muted: #8888a0;
    --text-inverse: #0a0a0f;

    /* Accents */
    --accent-primary: #00d4ff;
    --accent-secondary: #c89b3c;
    --accent-tertiary: #0a84ff;
    --accent-success: #00c48c;
    --accent-warning: #ffb800;
    --accent-danger: #ff4757;
    --accent-info: #00d4ff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0a84ff 100%);
    --gradient-gold: linear-gradient(135deg, #c89b3c 0%, #f0d060 50%, #c89b3c 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --gradient-hero: linear-gradient(180deg, rgba(10,10,15,0.2) 0%, rgba(10,10,15,0.7) 50%, #0a0a0f 100%);

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
    --shadow-glow-strong: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-gold: 0 0 20px rgba(200, 155, 60, 0.2);

    /* Rayons */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typographie */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Rajdhani', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal-backdrop: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* Layout */
    --header-height: 70px;
    --sidebar-width: 260px;

    /* Couleurs de rang */
    --rank-bronze: #cd7f32;
    --rank-argent: #c0c0c0;
    --rank-or: #ffd700;
    --rank-platine: #00d4aa;
    --rank-diamant: #b9f2ff;
    --rank-saphir: #4488dd;
    --rank-rubis: #e0115f;
    --rank-emeraude: #50c878;
    --rank-onyx: #8a8d8a;
    --rank-legende: #ff4500;

    /* Raretés */
    --rarity-common: #8a8a9f;
    --rarity-uncommon: #00c48c;
    --rarity-rare: #0a84ff;
    --rarity-epic: #a855f7;
    --rarity-legendary: #ff8c00;
}

/* ── Thème clair ── */
[data-theme="light"] {
    --bg-body: #f0f0f5;
    --bg-primary: #f0f0f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8f0;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-strong: rgba(255, 255, 255, 0.95);
    --bg-input: rgba(0, 0, 0, 0.03);
    --bg-input-focus: rgba(0, 0, 0, 0.05);

    --border-glass: rgba(0, 0, 0, 0.1);
    --border-glass-hover: rgba(0, 0, 0, 0.18);
    --border-input: rgba(0, 0, 0, 0.12);

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a60;
    --text-muted: #8a8a9f;
    --text-inverse: #e8e8f0;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.18);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.08);
    --shadow-gold: 0 0 20px rgba(200, 155, 60, 0.08);

    --gradient-hero: linear-gradient(180deg, rgba(240,240,245,0.2) 0%, rgba(240,240,245,0.8) 50%, #f0f0f5 100%);
}
/* ============================================
   CSS Reset moderne — Mobile-first
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    overflow-wrap: break-word;
}

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-glass-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
/* ============================================
   Typography — Polices et styles texte
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rajdhani:wght@600;700&family=JetBrains+Mono:wght@400&display=swap');

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-tertiary);
}

small {
    font-size: 0.85rem;
    color: var(--text-muted);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 0.15em 0.4em;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
}

/* Classes utilitaires texte */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent { color: var(--accent-primary); }
.text-success { color: var(--accent-success); }
.text-danger { color: var(--accent-danger); }
.text-warning { color: var(--accent-warning); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.text-glow {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.1);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-sm { font-size: 0.85rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.35rem; }

.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
/* ============================================
   Layout — Conteneurs, Grille, Sections
   ============================================ */

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.page-content { flex: 1; padding-top: var(--header-height); }

.section { padding: 3rem 0; }
.section-lg { padding: 5rem 0; }

.page-header { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--border-glass); margin-bottom: 2rem; }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--text-secondary); font-size: 1.1rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto-fill { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.items-center { align-items: center; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-2 { padding: 1rem; } .p-3 { padding: 1.5rem; } .p-4 { padding: 2rem; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.relative { position: relative; }
.w-full { width: 100%; }

.divider { height: 1px; background: var(--border-glass); margin: 1.5rem 0; }
.divider-text { display: flex; align-items: center; gap: 1rem; color: var(--text-muted); font-size: 0.85rem; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border-glass); }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 2rem 0; }
    .container, .container-wide, .container-narrow { padding: 0 1rem; }
    .hide-mobile { display: none !important; }
}
@media (min-width: 769px) { .hide-desktop { display: none !important; } }
/* ============================================
   Components — Boutons, Cartes, Forms, Modals,
   Badges, Tables, Alertes, Avatars, Tabs
   ============================================ */

/* ── BOUTONS ────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.65rem 1.5rem; font-weight: 600; font-size: 0.9rem;
    border-radius: var(--radius-md); border: 1px solid transparent;
    transition: all var(--transition-base); cursor: pointer;
    text-decoration: none; white-space: nowrap; line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled, .btn.disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--gradient-primary); color: #fff; border: none;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(0, 212, 255, 0.35); }

.btn-secondary {
    background: transparent; color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}
.btn-secondary:hover { background: rgba(0, 212, 255, 0.1); }

.btn-gold {
    background: var(--gradient-gold); color: #1a1a2e; border: none;
    box-shadow: 0 4px 15px rgba(200, 155, 60, 0.2);
}
.btn-gold:hover { box-shadow: 0 6px 25px rgba(200, 155, 60, 0.35); }

.btn-danger { background: var(--accent-danger); color: #fff; }
.btn-danger:hover { background: #e8384f; box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3); }

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

.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-icon { padding: 0.6rem; aspect-ratio: 1; }
.btn-block { width: 100%; }

.btn-google {
    background: #fff; color: #333; border: 1px solid #ddd;
    font-weight: 500;
}
.btn-google:hover { background: #f8f8f8; box-shadow: var(--shadow-md); }
.btn-google svg { width: 20px; height: 20px; }

/* ── CARTES (Glassmorphism) ─────────────────── */
.card {
    background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); transition: all var(--transition-base);
    overflow: hidden;
}
.card:hover { border-color: var(--border-glass-hover); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-no-hover:hover { transform: none; box-shadow: var(--shadow-md); }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-glass); }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-glass); }
.card-highlight { border-left: 3px solid var(--accent-primary); }
.card-gold { border: 1px solid rgba(200, 155, 60, 0.3); }
.card-gold:hover { border-color: rgba(200, 155, 60, 0.5); box-shadow: var(--shadow-gold); }

.card-stat {
    background: var(--bg-glass); backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
    padding: 1.5rem; text-align: center;
}
.card-stat .stat-value {
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
    color: var(--accent-primary); line-height: 1;
}
.card-stat .stat-label {
    font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.05em; margin-top: 0.5rem;
}

/* ── FORMULAIRES ────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 0.5rem;
}
.form-input, .form-select, .form-textarea, .form-control, select.form-control, textarea.form-control {
    width: 100%; padding: 0.7rem 1rem; font-size: 0.95rem;
    background: var(--bg-input); color: var(--text-primary);
    border: 1px solid var(--border-input); border-radius: var(--radius-md);
    transition: all var(--transition-fast); font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus, .form-control:focus {
    outline: none; background: var(--bg-input-focus);
    border-color: var(--border-input-focus);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.form-input::placeholder, .form-control::placeholder { color: rgba(160, 160, 180, 0.7); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-error { font-size: 0.8rem; color: var(--accent-danger); margin-top: 0.35rem; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }
.form-input.is-error { border-color: var(--accent-danger); }
.form-input.is-success { border-color: var(--accent-success); }

.form-checkbox, .form-radio {
    display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem;
}
.form-checkbox input, .form-radio input {
    width: 18px; height: 18px; accent-color: var(--accent-primary); cursor: pointer;
}

/* ── BADGES ─────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.2em 0.7em; font-size: 0.75rem; font-weight: 600;
    border-radius: var(--radius-full); line-height: 1.4;
}
.badge-primary { background: rgba(0, 212, 255, 0.15); color: var(--accent-primary); }
.badge-gold { background: rgba(200, 155, 60, 0.15); color: var(--accent-secondary); }
.badge-success { background: rgba(0, 196, 140, 0.15); color: var(--accent-success); }
.badge-danger { background: rgba(255, 71, 87, 0.15); color: var(--accent-danger); }
.badge-warning { background: rgba(255, 184, 0, 0.15); color: var(--accent-warning); }
.badge-muted { background: var(--bg-card); color: var(--text-muted); }
.badge-info { background: rgba(0, 150, 255, 0.15); color: #3b9eff; }
.badge-secondary { background: rgba(160, 160, 180, 0.15); color: var(--text-secondary); }
.badge-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border-glass); }

.badge-rank {
    padding: 0.25em 0.8em; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}
.badge-rank.bronze { background: rgba(205,127,50,0.15); color: var(--rank-bronze); }
.badge-rank.argent { background: rgba(192,192,192,0.15); color: var(--rank-argent); }
.badge-rank.or { background: rgba(255,215,0,0.15); color: var(--rank-or); }
.badge-rank.platine { background: rgba(0,212,170,0.15); color: var(--rank-platine); }
.badge-rank.diamant { background: rgba(185,242,255,0.15); color: var(--rank-diamant); }
.badge-rank.saphir { background: rgba(68,136,221,0.2); color: var(--rank-saphir); }
.badge-rank.rubis { background: rgba(224,17,95,0.15); color: var(--rank-rubis); }
.badge-rank.emeraude { background: rgba(80,200,120,0.15); color: var(--rank-emeraude); }
.badge-rank.onyx { background: rgba(138,141,138,0.2); color: var(--rank-onyx); border: 1px solid rgba(138,141,138,0.3); }
.badge-rank.legende { background: rgba(255,69,0,0.15); color: var(--rank-legende); }

/* ── TABLES ─────────────────────────────────── */
.table-container {
    overflow-x: auto; border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
}
.table { width: 100%; border-collapse: collapse; }
.table th {
    padding: 0.85rem 1rem; text-align: left; font-size: 0.75rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted); background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-glass);
}
.table td {
    padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-glass);
    font-size: 0.9rem;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-card-hover); }

/* ── MODALS ─────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px); z-index: var(--z-modal-backdrop);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all var(--transition-base);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--bg-glass-strong); backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl); max-width: 500px; width: 90%;
    z-index: var(--z-modal); transform: scale(0.95); transition: transform var(--transition-base);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-glass);
}
.modal-header h3 { font-size: 1.1rem; margin: 0; }
.modal-close {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); color: var(--text-muted); font-size: 1.2rem;
    transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--bg-card); color: var(--text-primary); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-glass); display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ── ALERTES / FLASH ────────────────────────── */
.alert {
    padding: 1rem 1.25rem; border-radius: var(--radius-md);
    border-left: 4px solid; margin-bottom: 1rem; font-size: 0.9rem;
    display: flex; align-items: center; gap: 0.75rem;
    animation: slideDown 0.3s ease;
}
.alert-success { background: rgba(0,196,140,0.1); border-color: var(--accent-success); color: var(--accent-success); }
.alert-error { background: rgba(255,71,87,0.1); border-color: var(--accent-danger); color: var(--accent-danger); }
.alert-warning { background: rgba(255,184,0,0.1); border-color: var(--accent-warning); color: var(--accent-warning); }
.alert-info { background: rgba(0,212,255,0.1); border-color: var(--accent-info); color: var(--accent-info); }

/* ── AVATARS ────────────────────────────────── */
.avatar {
    border-radius: var(--radius-full); object-fit: cover;
    border: 2px solid var(--border-glass);
}
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }
.avatar-xxl { width: 128px; height: 128px; }
.avatar-ring { border: 3px solid var(--accent-primary); box-shadow: var(--shadow-glow); }
.avatar-online { position: relative; }
.avatar-online::after {
    content: ''; position: absolute; bottom: 2px; right: 2px;
    width: 12px; height: 12px; background: var(--accent-success);
    border-radius: 50%; border: 2px solid var(--bg-primary);
}

/* ── TABS ───────────────────────────────────── */
.tabs {
    display: flex; border-bottom: 1px solid var(--border-glass);
    gap: 0; overflow-x: auto;
}
.tab {
    padding: 0.85rem 1.25rem; font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary); border-bottom: 2px solid transparent;
    transition: all var(--transition-fast); white-space: nowrap; cursor: pointer;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }

/* ── PROGRESS BAR ───────────────────────────── */
.progress { background: var(--bg-card); border-radius: var(--radius-full); height: 8px; overflow: hidden; }
.progress-bar {
    height: 100%; border-radius: var(--radius-full);
    background: var(--gradient-primary); transition: width 0.6s ease;
}
.progress-bar.gold { background: var(--gradient-gold); }
.progress-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; display: flex; justify-content: space-between; }

/* ── PAGINATION ─────────────────────────────── */
.pagination { display: flex; gap: 0.35rem; justify-content: center; }
.page-link {
    display: 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;
    color: var(--text-secondary); border: 1px solid var(--border-glass);
    transition: all var(--transition-fast);
}
.page-link:hover { background: var(--bg-card); color: var(--text-primary); }
.page-link.active { background: var(--accent-primary); color: #fff; border-color: var(--accent-primary); }

/* ── DROPDOWN ───────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; right: 0; min-width: 200px;
    background: var(--bg-glass-strong); backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); padding: 0.5rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all var(--transition-fast); z-index: var(--z-dropdown);
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0.85rem; border-radius: var(--radius-sm);
    font-size: 0.9rem; color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.dropdown-item:hover { background: var(--bg-card); color: var(--text-primary); }
.dropdown-divider { height: 1px; background: var(--border-glass); margin: 0.35rem 0; }

/* ── TOOLTIP ────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
    content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 0.4em 0.75em; font-size: 0.75rem; white-space: nowrap;
    background: var(--bg-glass-strong); color: var(--text-primary);
    border: 1px solid var(--border-glass); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
    transition: all var(--transition-fast); pointer-events: none; z-index: var(--z-tooltip);
}
[data-tooltip]:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-8px); }

/* ── TAG / CHIP ─────────────────────────────── */
.tag {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.2rem 0.6rem; font-size: 0.75rem;
    background: var(--bg-card); border: 1px solid var(--border-glass);
    border-radius: var(--radius-full); color: var(--text-secondary);
}

/* ── EMPTY STATE ────────────────────────────── */
.empty-state {
    text-align: center; padding: 3rem 1.5rem; color: var(--text-muted);
}
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 1rem; opacity: 0.3; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 0.5rem; }

/* ── KEYFRAMES ──────────────────────────────── */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
