/* ========================================
   JULIK Admin - Clean Professional Theme
======================================== */

:root {
    --primary: #00a1e6;
    --primary-dark: #0080b8;
    --accent: #F5B342;
    --bg-dark: #0D1117;
    --bg-darker: #010409;
    --bg-card: #051429;
    --bg-input: #21262D;
    --text-primary: #F0F6FC;
    --text-secondary: #8B949E;
    --text-muted: #6E7681;
    --border-color: #30363D;
    --success: #238636;
    --warning: #D29922;
    --danger: #DA3633;
    --info: #58A6FF;
    --sidebar-width: 240px;
    --header-height: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-dark);
}

#app { min-height: 100vh; }

/* Loading */
#loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    z-index: 9999;
}

.loader-container { text-align: center; }

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-container p { color: var(--text-muted); font-size: 14px; }

/* Layout */
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.sidebar-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.sidebar-logo-badge {
    font-size: 10px;
    color: var(--primary);
    background: rgba(24, 119, 242, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Nav */
.sidebar-nav { padding: 16px 0; }

.nav-section { margin-bottom: 8px; }

.nav-section-title {
    padding: 12px 20px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 2px 10px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.25s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.nav-item:hover::before {
    height: 50%;
}

.nav-item.active {
    background: rgba(24, 119, 242, 0.12);
    color: var(--primary);
}

.nav-item.active::before {
    height: 70%;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.nav-item:hover i {
    transform: scale(1.1);
}

/* Sous-menus déroulants */
.nav-item-group {
    margin: 2px 0;
}

.nav-item-parent {
    cursor: pointer;
    justify-content: flex-start;
}

.nav-item-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-item-group.expanded .nav-item-arrow {
    transform: rotate(90deg);
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
    margin: 0 10px;
    border-radius: 8px;
}

.nav-item-group.expanded .nav-submenu {
    max-height: 300px;
}

.nav-item-child {
    padding: 10px 16px 10px 40px;
    margin: 0;
    border-radius: 0;
    font-size: 13px;
}

.nav-item-child:first-child {
    border-radius: 8px 8px 0 0;
}

.nav-item-child:last-child {
    border-radius: 0 0 8px 8px;
}

.nav-item-child i {
    font-size: 12px;
    width: 16px;
}

/* Badge notifications sidebar */
.nav-item-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #DC3545;
    border-radius: 10px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
}

.nav-item:hover .nav-item-badge {
    animation: none;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    margin-top: auto;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(218, 54, 51, 0.2);
    color: var(--text-muted);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.sidebar-logout:hover {
    background: rgba(218, 54, 51, 0.15);
    border-color: var(--danger);
    color: var(--danger);
}

.sidebar-logout i {
    transition: transform 0.2s ease;
}

.sidebar-logout:hover i {
    transform: translateX(-2px);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
}

/* Header */
.header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-left { display: flex; align-items: center; gap: 16px; }

.header-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.header-right { display: flex; align-items: center; gap: 12px; }

.header-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.header-btn:hover {
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.3);
    color: var(--primary);
    transform: translateY(-1px);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    background: var(--bg-input);
    border-radius: 20px;
    cursor: pointer;
}

.user-menu:hover { background: var(--border-color); }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.user-info { text-align: left; }
.user-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.user-role { font-size: 11px; color: var(--text-muted); }
.user-menu-arrow { color: var(--text-muted); font-size: 12px; }

/* Page Content */
.page-content {
    flex: 1;
    padding: 24px 32px;
    max-width: 1400px;
    width: 100%;
}

.page-header { margin-bottom: 24px; }

.page-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.page-subtitle { color: var(--text-secondary); font-size: 14px; }

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body { padding: 16px; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-icon.primary { background: rgba(24, 119, 242, 0.1); color: var(--primary); }
.stat-icon.secondary { background: rgba(108, 92, 231, 0.1); color: #6C5CE7; }
.stat-icon.success { background: rgba(35, 134, 54, 0.1); color: var(--success); }
.stat-icon.warning { background: rgba(210, 153, 34, 0.1); color: var(--warning); }
.stat-icon.danger { background: rgba(218, 54, 51, 0.1); color: var(--danger); }
.stat-icon.info { background: rgba(88, 166, 255, 0.1); color: var(--info); }

.stat-content { flex: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.stat-value { font-size: 20px; font-weight: 600; color: var(--text-primary); }
.stat-change { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* Forms */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control, .form-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    outline: none;
}

.form-control:focus, .form-select:focus { border-color: var(--primary); }

.form-control::placeholder { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--border-color); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c53030; }

.btn-sm { padding: 6px 10px; font-size: 12px; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tables */
.table-container { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-darker);
}

.table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.badge-success { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.badge-warning { background: rgba(210, 153, 34, 0.15); color: var(--warning); }
.badge-danger { background: rgba(218, 54, 51, 0.15); color: var(--danger); }
.badge-info { background: rgba(88, 166, 255, 0.15); color: var(--info); }
.badge-primary { background: rgba(24, 119, 242, 0.15); color: var(--primary); }
.badge-secondary { background: rgba(139, 148, 158, 0.15); color: var(--text-secondary); }

/* Badge Stats reelles */
.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2ea043;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-badge i {
    font-size: 0.65rem;
}

/* Toast */
#toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: toastIn 0.2s ease;
    min-width: 280px;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.hiding { animation: toastOut 0.15s ease forwards; }

@keyframes toastOut {
    to { opacity: 0; transform: translateX(20px); }
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.toast.success .toast-icon { background: rgba(35, 134, 54, 0.2); color: var(--success); }
.toast.error .toast-icon { background: rgba(218, 54, 51, 0.2); color: var(--danger); }
.toast.warning .toast-icon { background: rgba(210, 153, 34, 0.2); color: var(--warning); }
.toast.info .toast-icon { background: rgba(24, 119, 242, 0.2); color: var(--primary); }

.toast-content { flex: 1; }
.toast-title { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.toast-message { font-size: 12px; color: var(--text-muted); }

/* Modal */
#modal-container { display: none; }

#modal-container.active {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 9500;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal.large { max-width: 700px; }
.modal.small { max-width: 360px; }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title i {
    color: var(--primary);
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 119, 242, 0.15);
    border-radius: 10px;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    border-color: var(--danger);
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn {
    min-width: 100px;
    justify-content: center;
}

/* Modal form inputs - garantir l'interactivité */
.modal-body .form-control,
.modal-body .form-select,
.modal-body input,
.modal-body textarea,
.modal-body select {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text;
    position: relative;
    z-index: 1;
}

.modal-body .form-control:focus,
.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 161, 230, 0.15);
}

.modal-body .form-group {
    position: relative;
    z-index: 1;
}

.modal-body form {
    position: relative;
    z-index: 1;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
}

.pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
}

.pagination-btn:hover:not(:disabled) { background: var(--border-color); color: var(--text-primary); }
.pagination-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.3; }
.empty-state-title { font-size: 15px; font-weight: 500; color: var(--text-secondary); margin-bottom: 4px; }

/* Test/Monitoring Styles */
.test-list { display: flex; flex-direction: column; gap: 6px; }

.test-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-darker);
    border-radius: 6px;
}

.test-status {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.test-status.success { background: rgba(35, 134, 54, 0.2); color: var(--success); }
.test-status.error { background: rgba(218, 54, 51, 0.2); color: var(--danger); }

.test-name { flex: 1; font-size: 13px; font-weight: 500; }
.test-message { font-size: 12px; color: var(--text-muted); }

.settings-list { display: flex; flex-direction: column; gap: 8px; }

.setting-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg-darker);
    border-radius: 6px;
}

.setting-name { font-size: 13px; color: var(--text-secondary); }
.setting-value { font-size: 13px; font-weight: 500; color: var(--primary); }

.detail-item {
    padding: 10px;
    background: var(--bg-darker);
    border-radius: 6px;
}

.detail-item label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-item span { font-size: 14px; color: var(--text-primary); }

/* Users/Data Table Styles */
.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.search-box input {
    width: 100%;
    padding: 10px 10px 10px 36px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
}

.search-box input:focus { border-color: var(--primary); outline: none; }

.filter-group select {
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    min-width: 140px;
}

.data-card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.data-table { width: 100%; border-collapse: collapse; }

.data-table thead th {
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.user-cell { display: flex; align-items: center; gap: 10px; }

.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 500; color: var(--text-primary); }
.user-email { font-size: 12px; color: var(--text-muted); }

.pia-badge {
    display: inline-flex;
    padding: 3px 8px;
    background: rgba(24, 119, 242, 0.1);
    color: var(--primary);
    border-radius: 10px;
    font-weight: 500;
    font-size: 12px;
}

.taux-badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 11px;
}

.taux-high { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.taux-medium { background: rgba(210, 153, 34, 0.15); color: var(--warning); }
.taux-low { background: rgba(218, 54, 51, 0.15); color: var(--danger); }

.code-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.code-badge.code-promo {
    background: rgba(24, 119, 242, 0.15);
    color: var(--info);
}

.code-badge.code-client {
    background: rgba(155, 89, 182, 0.15);
    color: #9B59B6;
}

.status-badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 11px;
    text-transform: capitalize;
}

.status-actif { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.status-inactif { background: rgba(108, 92, 231, 0.15); color: #6C5CE7; }
.status-suspendu { background: rgba(218, 54, 51, 0.15); color: var(--danger); }

.actions-cell { display: flex; gap: 6px; }

.btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.btn-icon:hover { background: var(--primary); color: white; }

.loading-row, .error-row, .empty-row {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.page-btn {
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
}

.page-btn:hover { background: var(--border-color); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

.mini-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.mini-table th, .mini-table td { padding: 6px 10px; border-bottom: 1px solid var(--border-color); text-align: left; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.pia-value { color: var(--primary); font-weight: 600; }

/* Utilities */
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 1200px) {
    .page-content { padding: 24px 24px; }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    }
    .main-content { margin-left: 0; }
    .page-content { padding: 20px; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .page-content { padding: 16px; }
    .page-title { font-size: 18px; }
    .filters-row { flex-direction: column; }
    .filter-group { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .form-row.cotes-row { grid-template-columns: 1fr; }
    .settings-container { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header-actions { width: 100%; }
    .page-header-actions .btn { flex: 1; justify-content: center; }
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 380px;
}

.login-card {
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 28px 24px;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 14px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

.btn-lg {
    width: 100%;
    padding: 12px 20px;
    margin-top: 16px;
}

/* ============================
   Enhanced Page Header
============================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header-content { flex: 1; }

.page-header-actions {
    display: flex;
    gap: 10px;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    color: var(--primary);
    font-size: 20px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================
   Filters Card
============================ */
.filters-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.filters-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group.flex-grow { flex: 1; }

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group .form-control,
.filter-group .form-select {
    background: var(--bg-input);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

.filter-group .form-control:focus,
.filter-group .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.12);
}

/* ============================
   Enhanced Data Card
============================ */
.data-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.data-card:hover {
    border-color: rgba(24, 119, 242, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.data-card .card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.data-card .card-header i {
    color: var(--primary);
    font-size: 18px;
    width: 36px;
    height: 36px;
    background: rgba(24, 119, 242, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-card .card-body {
    padding: 20px 24px;
}

/* ============================
   Form Enhancements
============================ */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-row.cotes-row {
    grid-template-columns: repeat(3, 1fr);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    margin-top: 20px;
}

/* ============================
   Match Table Enhancements
============================ */
.match-teams {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.match-teams .vs {
    color: var(--text-muted);
    font-size: 12px;
}

.cotes-display {
    display: flex;
    gap: 4px;
}

.cotes-display .cote {
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.score {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.count-badge {
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.count-badge.clickable {
    cursor: pointer;
    transition: all 0.2s;
}

.count-badge.clickable:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.btn-group {
    display: flex;
    gap: 6px;
}

.btn-icon-success:hover {
    background: var(--success) !important;
    color: white !important;
}

.btn-icon-info:hover {
    background: var(--info) !important;
    color: white !important;
}

.btn-icon-ai {
    background: rgba(147, 51, 234, 0.15);
    color: #a78bfa;
}

.btn-icon-ai:hover {
    background: #9333ea !important;
    color: white !important;
}

/* ============================
   Table Actions Bar & Checkboxes
============================ */
.table-actions-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(218, 54, 51, 0.08);
    border: 1px solid rgba(218, 54, 51, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
}

.table-actions-bar .selected-count {
    font-weight: 600;
    color: var(--danger);
}

.form-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    background: var(--bg-input);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    transition: all 0.2s ease;
}

.form-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-checkbox:hover {
    border-color: var(--primary);
}

/* ============================
   Status Badges Extended
============================ */
.status-a_venir { background: rgba(88, 166, 255, 0.15); color: var(--info); }
.status-en_cours { background: rgba(210, 153, 34, 0.15); color: var(--warning); }
.status-termine { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.status-reporte { background: rgba(139, 148, 158, 0.15); color: var(--text-secondary); }
.status-annule { background: rgba(218, 54, 51, 0.15); color: var(--danger); }

/* ============================
   Pagination Enhanced
============================ */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 16px;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
}

.pagination-ellipsis {
    padding: 0 8px;
    color: var(--text-muted);
}

/* ============================
   Modal Enhancements
============================ */
.result-modal .match-preview {
    text-align: center;
    padding: 16px;
    background: var(--bg-darker);
    border-radius: 8px;
    margin-bottom: 20px;
}

.result-modal .match-preview .vs {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin: 8px 0;
}

.score-inputs {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.score-input-group {
    text-align: center;
}

.score-input {
    width: 80px;
    text-align: center;
    font-size: 24px !important;
    font-weight: 600;
    padding: 12px !important;
}

.score-separator {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 24px;
}

/* ============================
   Tabs & Navigation
============================ */
.tabs-container {
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.tab:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

.tab.active {
    background: var(--primary);
    color: white;
}

.tab i {
    font-size: 14px;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* ============================
   Settings Page
============================ */
.settings-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
}

.settings-nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.settings-nav-item.active {
    background: rgba(24, 119, 242, 0.1);
    color: var(--primary);
}

.settings-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 40px;
}

.setting-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-header {
    margin-bottom: 8px;
}

.setting-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.setting-description {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.setting-input .form-control {
    max-width: 400px;
}

.settings-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
}

.settings-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-input);
    border-radius: 24px;
    transition: 0.2s;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* ============================
   PIA Page Styles
============================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card.primary .stat-icon { background: rgba(24, 119, 242, 0.15); color: var(--primary); }
.stat-card.success .stat-icon { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.stat-card.warning .stat-icon { background: rgba(210, 153, 34, 0.15); color: var(--warning); }
.stat-card.danger .stat-icon { background: rgba(218, 54, 51, 0.15); color: var(--danger); }

.stat-info { flex: 1; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-darker);
    border-radius: 6px;
}

.top-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    background: var(--bg-input);
    color: var(--text-secondary);
}

.top-rank.rank-gold { background: rgba(255, 215, 0, 0.2); color: #FFD700; }
.top-rank.rank-silver { background: rgba(192, 192, 192, 0.2); color: #C0C0C0; }
.top-rank.rank-bronze { background: rgba(205, 127, 50, 0.2); color: #CD7F32; }

.top-info { flex: 1; }
.top-name { font-weight: 500; font-size: 13px; }
.top-stats { font-size: 11px; color: var(--text-muted); }
.top-value { font-weight: 600; color: var(--primary); }

.type-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.type-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-darker);
    border-radius: 6px;
}

.type-stat-header {
    display: flex;
    flex-direction: column;
}

.type-label { font-weight: 500; font-size: 13px; }
.type-count { font-size: 11px; color: var(--text-muted); }
.type-stat-value { font-weight: 600; font-size: 14px; }
.type-stat-value.positive { color: var(--success); }
.type-stat-value.negative { color: var(--danger); }

.type-badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.type-credit_admin { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.type-debit_admin { background: rgba(218, 54, 51, 0.15); color: var(--danger); }
.type-mise { background: rgba(210, 153, 34, 0.15); color: var(--warning); }
.type-gain { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.type-bonus { background: rgba(24, 119, 242, 0.15); color: var(--primary); }
.type-inscription { background: rgba(88, 166, 255, 0.15); color: var(--info); }

/* ============================
   Item with Logo
============================ */
.item-with-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--bg-darker);
}

.item-logo-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================
   Loading Placeholder
============================ */
.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading-placeholder p {
    margin-top: 12px;
    font-size: 13px;
}

/* ============================
   Empty State Enhanced
============================ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ============================
   Utilities Extended
============================ */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-nowrap { white-space: nowrap; }
.flex-grow { flex-grow: 1; }

.link {
    color: var(--primary);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check input {
    width: 16px;
    height: 16px;
}

.form-help {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

.skeleton-text {
    width: 60%;
    height: 14px;
    background: var(--bg-input);
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-number {
    width: 40%;
    height: 24px;
    background: var(--bg-input);
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ============================
   Badge Variants
============================ */
.badge-sm {
    padding: 2px 6px;
    font-size: 10px;
}

/* ============================
   Responsive Updates
============================ */
@media (max-width: 1024px) {
    .settings-container {
        grid-template-columns: 1fr;
    }

    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header-actions {
        width: 100%;
    }

    .page-header-actions .btn {
        flex: 1;
    }

    .filters-row {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .form-row.cotes-row {
        grid-template-columns: 1fr;
    }

    .pagination-container {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================
   Dashboard Specific Styles
============================ */
.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-list-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.dashboard-list-item:hover {
    background: rgba(24, 119, 242, 0.06);
    border-color: rgba(24, 119, 242, 0.2);
    transform: translateX(4px);
}

.match-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.match-mini .team {
    font-weight: 600;
    color: var(--text-primary);
}

.match-mini .vs {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    background: rgba(24, 119, 242, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.match-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.match-meta .competition {
    color: var(--text-secondary);
    font-weight: 500;
}

.match-meta .date {
    color: var(--primary);
}

.dashboard-list-footer {
    padding-top: 16px;
    text-align: center;
    margin-top: 16px;
}

.dashboard-list-footer .link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.dashboard-list-footer .link:hover {
    gap: 12px;
}

.dashboard-list-footer .link i {
    transition: transform 0.2s ease;
}

.dashboard-list-footer .link:hover i {
    transform: translateX(4px);
}

.activity-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.activity-stat:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.activity-icon.success { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.activity-icon.danger { background: rgba(218, 54, 51, 0.15); color: var(--danger); }
.activity-icon.primary { background: rgba(24, 119, 242, 0.15); color: var(--primary); }
.activity-icon.warning { background: rgba(210, 153, 34, 0.15); color: var(--warning); }

.activity-info { flex: 1; }
.activity-value { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.activity-label { font-size: 12px; color: var(--text-muted); }

.taux-reussite-container {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-darker);
    border-radius: 6px;
}

.taux-reussite-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.taux-reussite-header span:first-child {
    color: var(--text-secondary);
}

.taux-value {
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.progress-success { background: var(--success); }
.progress-fill.progress-warning { background: var(--warning); }
.progress-fill.progress-danger { background: var(--danger); }

/* ========================================
   Lots & Gagnants Styles
======================================== */

.lot-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lot-title strong {
    color: var(--text-primary);
}

.lot-title .pia-value {
    font-size: 11px;
    color: var(--primary);
    font-weight: 500;
}

.gagnants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gagnant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-darker);
    border-radius: 6px;
}

.gagnant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.gagnant-info {
    flex: 1;
    min-width: 0;
}

.gagnant-name {
    font-weight: 500;
    color: var(--text-primary);
}

.gagnant-lot {
    font-size: 12px;
    color: var(--text-secondary);
}

.gagnant-match {
    font-size: 12px;
    flex-shrink: 0;
}

.gagnant-date {
    font-size: 12px;
    flex-shrink: 0;
}

.gagnant-status {
    flex-shrink: 0;
}

/* Cotes display */
.cotes-display {
    display: flex;
    gap: 6px;
}

.cotes-display .cote {
    padding: 3px 8px;
    background: var(--bg-input);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Count badge */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--bg-input);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Match mini display */
.match-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.match-mini .team {
    font-weight: 500;
}

.match-mini .vs {
    color: var(--text-muted);
    font-size: 10px;
}

/* Match teams display */
.match-teams {
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-teams .vs {
    color: var(--text-muted);
    font-size: 11px;
}

/* Score display */
.score {
    font-weight: 600;
    font-size: 14px;
    padding: 4px 10px;
    background: var(--bg-input);
    border-radius: 4px;
}

/* Form sections */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Score input special styling */
.score-inputs {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}

.score-input-group {
    text-align: center;
}

.score-input-group .form-label {
    display: block;
    margin-bottom: 8px;
}

.score-input {
    width: 80px;
    text-align: center;
    font-size: 24px !important;
    font-weight: 600;
    padding: 12px !important;
}

.score-separator {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 15px;
}

/* Result modal */
.result-modal .match-preview {
    text-align: center;
    padding: 16px;
    background: var(--bg-darker);
    border-radius: 6px;
    margin-bottom: 20px;
}

.result-modal .match-preview .vs {
    margin: 0 10px;
    color: var(--text-muted);
}

/* Badge small */
.badge-sm {
    font-size: 10px;
    padding: 2px 6px;
    margin-left: 6px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #484F58; }

/* ============================
   Enhanced Layout Improvements
============================ */

/* Better table responsiveness */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
}

.table-container {
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px;
}

/* Card improvements */
.card {
    margin-bottom: 20px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.card-title i {
    color: var(--primary);
}

/* Better grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Action buttons group */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Info cards */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.info-card-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-card-trend {
    font-size: 12px;
    margin-top: 4px;
}

.info-card-trend.up { color: var(--success); }
.info-card-trend.down { color: var(--danger); }

/* Data list */
.data-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-darker);
    border-radius: 6px;
}

.data-list-item label {
    color: var(--text-secondary);
    font-size: 13px;
}

.data-list-item span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Quick stats row */
.quick-stats {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.quick-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.quick-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Section divider */
.section-divider {
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}

/* Alert boxes */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.alert-info {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    color: var(--info);
}

.alert-success {
    background: rgba(35, 134, 54, 0.1);
    border: 1px solid rgba(35, 134, 54, 0.2);
    color: var(--success);
}

.alert-warning {
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.2);
    color: var(--warning);
}

.alert-danger {
    background: rgba(218, 54, 51, 0.1);
    border: 1px solid rgba(218, 54, 51, 0.2);
    color: var(--danger);
}

/* Skeleton loading */
.skeleton {
    background: var(--bg-input);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Progress bar */
.progress-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-bar-fill.success { background: var(--success); }
.progress-bar-fill.warning { background: var(--warning); }
.progress-bar-fill.danger { background: var(--danger); }

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
    display: none;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

.dropdown-item.danger:hover {
    background: rgba(218, 54, 51, 0.1);
    color: var(--danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* Chip/Tag */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-input);
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.chip-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 10px;
}

.chip-close:hover {
    color: var(--danger);
}

/* Inline form */
.inline-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.inline-form .form-group {
    margin-bottom: 0;
}

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 20px; }
.font-bold { font-weight: 600; }
.font-normal { font-weight: 400; }

/* Spacing utilities */
.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.m-0 { margin: 0; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.min-w-0 { min-width: 0; }

/* Visibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   ENHANCED ANIMATIONS & EFFECTS
======================================== */

/* Smooth transitions for all interactive elements */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideOutRight {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(24, 119, 242, 0.3); }
    50% { box-shadow: 0 0 20px rgba(24, 119, 242, 0.6); }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animation Utilities */
.animate-fade-in { animation: fadeIn 0.3s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.4s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.4s ease forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.4s ease forwards; }
.animate-fade-in-right { animation: fadeInRight 0.4s ease forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }

/* Staggered animations */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

/* ========================================
   ENHANCED BUTTONS
======================================== */

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.btn-primary:hover {
    background: #2084ff;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(24, 119, 242, 0.3);
}

.btn-secondary {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    box-shadow: 0 4px 15px rgba(218, 54, 51, 0.3);
}

.btn-danger:hover {
    background: #e04040;
    box-shadow: 0 6px 20px rgba(218, 54, 51, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 15px rgba(35, 134, 54, 0.3);
}

.btn-success:hover {
    background: #2a9f40;
    box-shadow: 0 6px 20px rgba(35, 134, 54, 0.4);
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning);
    color: white;
    box-shadow: 0 4px 15px rgba(210, 153, 34, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 6px 20px rgba(210, 153, 34, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

/* Glowing button effect */
.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.btn-glow:hover::after {
    opacity: 0.6;
}

/* Icon buttons */
.btn-icon {
    transition: all 0.2s ease;
}

.btn-icon:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.btn-icon:active {
    transform: scale(0.95);
}

/* Button loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ========================================
   OFFCANVAS / DRAWER
======================================== */

.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 8999;
    visibility: hidden;
    transition: background 0.3s ease, visibility 0.3s ease;
}

.offcanvas-overlay.active {
    visibility: visible;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-card);
    /* Pas de border-left - utilise box-shadow pour la séparation */
    z-index: 9000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6), -5px 0 20px rgba(0, 0, 0, 0.3);
}

.offcanvas.active {
    transform: translateX(0);
}

.offcanvas.offcanvas-left {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid var(--border-color);
    transform: translateX(-100%);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
}

.offcanvas.offcanvas-left.active {
    transform: translateX(0);
}

.offcanvas-lg {
    width: 600px;
}

.offcanvas-xl {
    width: 800px;
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(24, 119, 242, 0.05);
    position: relative;
}

.offcanvas-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--primary);
    opacity: 0.3;
}

.offcanvas-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.offcanvas-title i {
    color: var(--primary);
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 119, 242, 0.15);
    border-radius: 10px;
}

.offcanvas-close {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.offcanvas-close::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--danger);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.offcanvas-close i {
    position: relative;
    z-index: 1;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.offcanvas-close:hover {
    border-color: var(--danger);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(218, 54, 51, 0.4);
}

.offcanvas-close:hover::before {
    opacity: 1;
}

.offcanvas-close:hover i {
    transform: rotate(90deg);
}

.offcanvas-close:active {
    transform: scale(0.95);
}

.offcanvas-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.offcanvas-body::-webkit-scrollbar {
    width: 6px;
}

.offcanvas-body::-webkit-scrollbar-track {
    background: transparent;
}

.offcanvas-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.offcanvas-footer {
    padding: 20px 24px;
    background: transparent;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.offcanvas-footer .btn {
    min-width: 120px;
    justify-content: center;
}

/* Offcanvas Form Styles */
.offcanvas-form .form-group {
    margin-bottom: 20px;
}

.offcanvas-form .form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--text-primary);
}

.offcanvas-form .form-control,
.offcanvas-form .form-select {
    background: var(--bg-input);
    border: 2px solid rgba(255, 255, 255, 0.06);
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.offcanvas-form .form-control:focus,
.offcanvas-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.15);
}

/* Detail List in Offcanvas */
.detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.detail-item span {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========================================
   ENHANCED CARDS
======================================== */

.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    border-color: var(--primary);
}

/* Glass Card Effect */
.glass-card {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: 12px;
}

.glass-card-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Cards */
.card-gradient-primary {
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.2);
}

.card-gradient-success {
    background: rgba(35, 134, 54, 0.1);
    border-color: rgba(35, 134, 54, 0.2);
}

.card-gradient-warning {
    background: rgba(210, 153, 34, 0.1);
    border-color: rgba(210, 153, 34, 0.2);
}

.card-gradient-danger {
    background: rgba(218, 54, 51, 0.1);
    border-color: rgba(218, 54, 51, 0.2);
}

/* ========================================
   ENHANCED FORMS
======================================== */

.form-control, .form-select {
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}

.form-control:hover:not(:focus), .form-select:hover:not(:focus) {
    border-color: var(--text-muted);
}

/* Floating Label */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    padding: 20px 12px 8px;
}

.form-floating .form-label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
    color: var(--text-muted);
    margin: 0;
}

.form-floating .form-control:focus ~ .form-label,
.form-floating .form-control:not(:placeholder-shown) ~ .form-label {
    top: 10px;
    font-size: 11px;
    color: var(--primary);
}

/* Input with icon */
.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.input-icon .form-control {
    padding-left: 40px;
}

.input-icon .form-control:focus + i,
.input-icon:focus-within i {
    color: var(--primary);
}

/* ========================================
   ENHANCED TABLES
======================================== */

.data-table tbody tr {
    transition: all 0.15s ease;
}

.data-table tbody tr:hover {
    background: rgba(24, 119, 242, 0.05);
    transform: scale(1.002);
}

.data-table tbody tr.selected {
    background: rgba(24, 119, 242, 0.1);
}

/* ========================================
   ENHANCED BADGES
======================================== */

.badge {
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.05);
}

.badge-pulse {
    position: relative;
}

.badge-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: pulse 2s ease-in-out infinite;
}

/* Live indicator */
.badge-live {
    position: relative;
    padding-left: 18px;
}

.badge-live::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ========================================
   ENHANCED MODALS
======================================== */

#modal-container.active {
    backdrop-filter: blur(4px);
}

.modal {
    animation: scaleIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ========================================
   ENHANCED SIDEBAR
======================================== */

.nav-item {
    transition: all 0.2s ease;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}

.nav-item:hover::before,
.nav-item.active::before {
    height: 24px;
}

.nav-item i {
    transition: transform 0.2s ease;
}

.nav-item:hover i {
    transform: scale(1.1);
}

/* ========================================
   QUANT & SCRAPING STYLES
======================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tool-btn:hover {
    background: rgba(24, 119, 242, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tool-btn i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.tool-btn span {
    font-weight: 600;
    color: var(--text-primary);
}

.tool-btn small {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.value-bets-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.value-bet-item {
    padding: 12px;
    background: var(--bg-darker);
    border-radius: 8px;
}

.vb-match {
    font-weight: 600;
    margin-bottom: 4px;
}

.vb-details {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.confidence-bar {
    width: 100%;
    height: 20px;
    background: var(--bg-darker);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.confidence-bar span {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.probs-mini {
    display: flex;
    gap: 8px;
    font-size: 12px;
}

.probs-mini span {
    padding: 2px 6px;
    background: var(--bg-darker);
    border-radius: 4px;
}

.matches-mini-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.match-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-darker);
    border-radius: 8px;
    gap: 12px;
}

.match-mini-teams {
    flex: 1;
    font-size: 13px;
}

.match-mini-info {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cotes-inline {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.cotes-mini {
    display: flex;
    gap: 4px;
}

.cotes-mini .cote {
    padding: 2px 6px;
    background: var(--bg-darker);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-teams .vs {
    color: var(--text-muted);
    font-size: 12px;
}

.group-link {
    color: var(--primary);
    text-decoration: none;
}

.group-link:hover {
    text-decoration: underline;
}

.btn-back {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 14px;
}

.btn-back:hover {
    color: var(--primary);
}

.row-processed {
    opacity: 0.6;
    background: rgba(0, 212, 170, 0.05);
}

.distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dist-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dist-label {
    width: 140px;
    font-size: 13px;
}

.dist-fill {
    height: 24px;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.dist-fill.nul {
    background: var(--warning);
}

.dist-fill.ext {
    background: var(--info);
}

.dist-value {
    font-weight: 600;
    min-width: 50px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

/* ========================================
   ENHANCED STAT CARDS
======================================== */

.stat-card {
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

/* ========================================
   TOOLTIPS
======================================== */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 6px 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   NOTIFICATION DOT
======================================== */

.notification-dot {
    position: relative;
}

.notification-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.notification-dot.has-count::after {
    content: attr(data-count);
    width: auto;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -6px;
    right: -6px;
    padding: 0 4px;
}

/* ========================================
   SCROLLBAR ENHANCED
======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   LOADING STATES
======================================== */

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-dots {
    display: flex;
    gap: 6px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Shimmer effect for loading */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        var(--bg-input) 25%,
        var(--bg-card) 50%,
        var(--bg-input) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ========================================
   FOCUS STATES (Accessibility)
======================================== */

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.4);
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   BETCLIC-STYLE PREMIUM COMPONENTS
======================================== */

/* Page Header Premium */
.page-header {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
}

.page-header-content {
    position: relative;
}

.page-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-primary);
}

.page-title i {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.35);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
    padding-left: 62px;
}

/* Stats Cards Premium */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(24, 119, 242, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.stat-primary .stat-icon { background: rgba(24, 119, 242, 0.15); color: var(--primary); }
.stat-success .stat-icon { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.stat-warning .stat-icon { background: rgba(210, 153, 34, 0.15); color: var(--warning); }
.stat-danger .stat-icon { background: rgba(218, 54, 51, 0.15); color: var(--danger); }
.stat-info .stat-icon { background: rgba(88, 166, 255, 0.15); color: var(--info); }

.stat-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 12px;
}

.stat-trend.up {
    background: rgba(35, 134, 54, 0.15);
    color: var(--success);
}

.stat-trend.down {
    background: rgba(218, 54, 51, 0.15);
    color: var(--danger);
}

/* Match Card Premium (Betclic Style) */
.match-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(24, 119, 242, 0.3);
}

.match-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.match-competition {
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-competition-flag {
    font-size: 20px;
}

.match-competition-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-date {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-date i {
    color: var(--primary);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.match-team {
    flex: 1;
    text-align: center;
}

.match-team-logo {
    width: 48px;
    height: 48px;
    background: var(--bg-input);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
}

.match-team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.match-vs {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 20px;
}

.match-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.match-odd {
    background: var(--bg-input);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.match-odd:hover {
    border-color: var(--primary);
    background: rgba(24, 119, 242, 0.1);
}

.match-odd.selected {
    border-color: var(--primary);
    background: rgba(24, 119, 242, 0.15);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

.match-odd-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.match-odd-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.match-odd:hover .match-odd-value {
    color: var(--primary);
}

/* Data Table Premium */
.data-table-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(24, 119, 242, 0.05);
}

.data-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
    color: var(--text-primary);
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(24, 119, 242, 0.05);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Settings Page Premium */
.settings-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    min-height: 600px;
}

.settings-nav {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: none;
    background: transparent;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
}

.settings-nav-item i {
    font-size: 16px;
    width: 24px;
}

.settings-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.settings-nav-item.active {
    background: rgba(24, 119, 242, 0.15);
    color: var(--primary);
    font-weight: 600;
}

.settings-nav-item.active i {
    color: var(--primary);
}

.settings-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 40px;
}

.setting-item {
    padding: 20px 0;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-header {
    margin-bottom: 10px;
}

.setting-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.setting-description {
    font-size: 13px;
    color: var(--text-muted);
}

.settings-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
}

.settings-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* Competition/League List (Betclic Style) */
.league-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.league-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.league-item:hover {
    background: rgba(24, 119, 242, 0.08);
    border-color: rgba(24, 119, 242, 0.2);
}

.league-item.active {
    background: rgba(24, 119, 242, 0.12);
    border-color: var(--primary);
}

.league-flag {
    font-size: 24px;
    width: 36px;
    text-align: center;
}

.league-info {
    flex: 1;
}

.league-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.league-country {
    font-size: 12px;
    color: var(--text-muted);
}

.league-count {
    background: var(--bg-input);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.quick-action-btn i {
    font-size: 16px;
}

.quick-action-btn:hover {
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.3);
    color: var(--primary);
}

/* Empty States */
.empty-state-premium {
    text-align: center;
    padding: 60px 40px;
}

.empty-state-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(24, 119, 242, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-state-icon-wrapper i {
    font-size: 32px;
    color: var(--primary);
}

.empty-state-premium h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-premium p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Input Group Premium */
.input-group {
    display: flex;
    gap: 0;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Toggle Switch Premium */
.toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-input);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Form Check Premium */
.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Scrollbar Custom */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: rgba(24, 119, 242, 0.3);
    color: white;
}

/* ========================================
   REFERENTIELS LAYOUT (Betclic Style)
======================================== */

.referentiels-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    min-height: 600px;
}

/* Leagues Sidebar */
.leagues-sidebar {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.leagues-search {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.leagues-search i {
    color: var(--text-muted);
}

.leagues-search input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.leagues-search input::placeholder {
    color: var(--text-muted);
}

/* Continents Accordion */
.continents-accordion {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.continent-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.continent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.continent-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.continent-icon {
    font-size: 20px;
}

.continent-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.continent-arrow {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.continent-section.open .continent-arrow {
    transform: rotate(180deg);
}

.continent-countries {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.continent-section.open .continent-countries {
    max-height: 500px;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 44px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.country-item:hover {
    background: rgba(24, 119, 242, 0.08);
}

.country-item.active {
    background: rgba(24, 119, 242, 0.15);
}

.country-flag {
    font-size: 18px;
}

.country-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

.country-item.active .country-name {
    color: var(--primary);
    font-weight: 600;
}

.country-count {
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    display: none;
}

/* Leagues Content */
.leagues-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.leagues-header {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.leagues-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.leagues-flag {
    font-size: 40px;
}

.leagues-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.leagues-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.leagues-stats {
    display: flex;
    gap: 32px;
}

.stat-mini {
    text-align: center;
}

.stat-mini-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-mini-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Leagues Grid */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.league-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.league-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(24, 119, 242, 0.3);
}

.league-card-header {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.league-card-logo {
    width: 56px;
    height: 56px;
    background: var(--bg-input);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.league-card-logo img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.league-card-logo i {
    font-size: 24px;
    color: var(--primary);
}

.league-card-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.league-card-body {
    padding: 20px;
}

.league-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.league-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.league-card-country {
    font-size: 13px;
    color: var(--text-secondary);
}

.league-card-season {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.league-card-footer {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.1);
}

.league-card-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.league-card-stat i {
    color: var(--primary);
}

.league-card-actions {
    display: flex;
    gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .referentiels-layout {
        grid-template-columns: 1fr;
    }

    .leagues-sidebar {
        position: static;
    }

    .leagues-stats {
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .leagues-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .leagues-grid {
        grid-template-columns: 1fr;
    }
}

/* Scraped matches indicator */
.scraped-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--info);
    background: rgba(88, 166, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    cursor: help;
}

/* ========================================
   Advanced Analysis Modal Styles
======================================== */
.advanced-analysis-modal {
    color: var(--text-primary);
}

.advanced-analysis-modal h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

.match-header-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: 8px;
    margin-bottom: 20px;
}

.match-header-modal .team-col {
    text-align: center;
    flex: 1;
}

.match-header-modal .team-col strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.match-header-modal .team-rating {
    font-size: 12px;
    color: var(--primary);
}

.match-header-modal .vs-col {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.predictions-section,
.stats-comparison,
.sectors-section,
.form-section,
.players-section,
.synthesis-section,
.advice-section {
    background: var(--bg-input);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.pred-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.pred-box {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 2px solid transparent;
}

.pred-box.highlight {
    border-color: var(--success);
    background: rgba(35, 134, 54, 0.15);
}

.pred-box .pred-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pred-box .pred-prob {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.pred-extras {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pred-extras strong {
    color: var(--text-primary);
}

.data-table.compact td,
.data-table.compact th {
    padding: 8px 10px;
    font-size: 12px;
}

.data-table .val-home {
    text-align: center;
    color: var(--primary);
    font-weight: 600;
}

.data-table .val-away {
    text-align: center;
    color: var(--info);
    font-weight: 600;
}

.sectors-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sector-team-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sector-team-col strong {
    text-align: center;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.sector-bar-admin {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.sector-bar-admin > span:first-child {
    width: 50px;
    color: var(--text-muted);
}

.sector-bar-admin > span:last-child {
    width: 40px;
    text-align: right;
    color: var(--text-primary);
    font-weight: 600;
}

.sector-bar-admin .bar {
    flex: 1;
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
}

.sector-bar-admin .fill {
    height: 100%;
    background: var(--success);
    border-radius: 3px;
}

.form-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-team-modal {
    text-align: center;
}

.form-team-modal span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-badges-modal {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}

.form-team-modal small {
    font-size: 11px;
    color: var(--text-muted);
}

.players-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.players-team-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.players-team-col strong {
    text-align: center;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.player-group {
    margin-bottom: 10px;
}

.player-group .group-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.player-row {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

.player-row .player-name {
    font-size: 12px;
    font-weight: 500;
}

.player-row .player-detail {
    font-size: 10px;
    color: var(--text-muted);
}

.player-row.injured .player-name {
    color: var(--danger);
    text-decoration: line-through;
}

.player-row.in-form .player-name {
    color: var(--success);
}

.synthesis-section p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.advice-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advice-section li {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 6px 0 6px 20px;
    position: relative;
}

.advice-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

/* ========================================
   Analysis Loading Admin
======================================== */
.analysis-loading-admin {
    text-align: center;
    padding: 30px;
}

.countdown-circle-admin {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid var(--primary);
}

.countdown-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.countdown-status {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.countdown-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 250px;
    margin: 0 auto;
}

.cstep {
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.cstep.done {
    background: rgba(35, 134, 54, 0.2);
    color: var(--success);
}

/* ========================================
   Combinations Grid
======================================== */
.combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.combo-card {
    background: var(--bg-input);
    border-radius: 12px;
    overflow: hidden;
}

.combo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
}

.combo-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.combo-conf {
    font-size: 11px;
}

.combo-selections {
    padding: 12px 16px;
}

.combo-sel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}

.combo-sel:last-child {
    border-bottom: none;
}

.sel-match {
    flex: 1;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.sel-pari {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 8px;
}

.sel-prob {
    color: var(--success);
    font-weight: 600;
}

.combo-footer {
    padding: 10px 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.combo-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* ========================================
   Advanced Analysis Modal - Amélioré
======================================== */
.advanced-analysis-modal {
    padding: 0;
}

.advanced-analysis-modal h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 16px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.advanced-analysis-modal h4 i {
    color: var(--primary);
}

.match-header-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 16px;
}

.match-header-modal .team-col {
    flex: 1;
    text-align: center;
}

.match-header-modal .team-col strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.match-header-modal .team-rating {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.match-header-modal .vs-col {
    font-size: 18px;
    font-weight: 700;
    padding: 0 16px;
    opacity: 0.8;
}

/* Predictions Section */
.predictions-section {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.pred-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pred-box {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 12px 24px;
    text-align: center;
    min-width: 80px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pred-box.highlight {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.pred-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pred-prob {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.pred-extras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.pred-extra-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
}

.pred-extra-item .label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pred-extra-item .value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.score-prediction {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.score-prediction span {
    font-size: 13px;
    color: var(--text-secondary);
}

.score-prediction strong {
    color: var(--text-primary);
}

.scores-exacts-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.scores-exacts-list small {
    color: var(--text-muted);
    font-size: 11px;
}

.score-chip {
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Stats Comparison Table */
.stats-comparison {
    margin-bottom: 16px;
}

.stats-comparison .data-table.compact {
    font-size: 12px;
}

.stats-comparison .data-table.compact td,
.stats-comparison .data-table.compact th {
    padding: 8px 12px;
}

.stats-comparison .val-home {
    color: var(--primary);
    font-weight: 600;
    text-align: left;
}

.stats-comparison .val-away {
    color: var(--warning);
    font-weight: 600;
    text-align: right;
}

/* Sectors Section */
.sectors-section {
    margin-bottom: 16px;
}

.sectors-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sector-team-col {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 12px;
}

.sector-team-col strong {
    display: block;
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.sector-bar-admin {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
}

.sector-bar-admin > span:first-child {
    width: 55px;
    color: var(--text-muted);
}

.sector-bar-admin .bar {
    flex: 1;
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}

.sector-bar-admin .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.sector-bar-admin > span:last-child {
    width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
}

/* Form Section */
.form-section {
    margin-bottom: 16px;
}

.form-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-team-modal {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.form-team-modal > span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-badges-modal {
    margin-bottom: 8px;
}

.form-badges-modal .badge {
    margin: 0 2px;
    font-size: 11px;
    padding: 4px 8px;
}

.form-team-modal small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.recent-matches-list {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.recent-match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    padding: 4px 0;
    color: var(--text-secondary);
}

.recent-match-item .rm-date {
    width: 70px;
    color: var(--text-muted);
}

.recent-match-item .rm-opponent {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-match-item .rm-score {
    font-size: 10px;
    padding: 2px 6px;
}

/* H2H Section */
.h2h-section {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.h2h-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 12px;
}

.h2h-stat {
    text-align: center;
}

.h2h-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.h2h-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.h2h-matches {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.h2h-match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    padding: 4px 0;
}

.h2h-date {
    color: var(--text-muted);
    width: 80px;
}

.h2h-score {
    font-weight: 600;
    color: var(--text-primary);
}

.h2h-comp {
    color: var(--text-muted);
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

/* Players Section */
.players-section {
    margin-bottom: 16px;
}

.players-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.players-team-col {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 12px;
}

.players-team-col strong {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.player-group {
    margin-bottom: 10px;
}

.group-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
}

.group-label i {
    margin-right: 4px;
}

.player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: var(--bg-card);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 11px;
}

.player-row.injured {
    background: rgba(218, 54, 51, 0.1);
}

.player-row.in-form {
    background: rgba(35, 134, 54, 0.1);
}

.player-name {
    font-weight: 500;
    color: var(--text-primary);
}

.player-detail {
    color: var(--text-muted);
    font-size: 10px;
}

/* Synthesis & Advice */
.synthesis-section,
.advice-section {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.synthesis-section p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.advice-section ul {
    margin: 0;
    padding-left: 20px;
}

.advice-section li {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Data Source Info */
.data-source-info {
    text-align: center;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.data-source-info small {
    color: var(--text-muted);
    font-size: 10px;
}

.data-source-info i {
    margin-right: 4px;
}

/* ============================================
   CHECKBOXES ET SELECTION EN MASSE
============================================ */
.col-checkbox {
    width: 40px;
    text-align: center;
    padding: 8px !important;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.data-table tr.selected {
    background: rgba(24, 119, 242, 0.1);
}

.data-table tr.selected td {
    border-bottom-color: rgba(24, 119, 242, 0.3);
}

.btn-icon-danger {
    color: var(--danger) !important;
}

.btn-icon-danger:hover {
    background: rgba(218, 54, 51, 0.1);
}

#btn-delete-selected {
    gap: 8px;
}

/* ============================================
   REFERENTIELS LAYOUT - Style Betclic
============================================ */
.referentiels-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    min-height: calc(100vh - 200px);
}

.leagues-sidebar {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.leagues-search {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.leagues-search input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 13px;
}

.leagues-search i {
    color: var(--text-muted);
}

.continents-accordion {
    max-height: 500px;
    overflow-y: auto;
}

.continent-section {
    border-bottom: 1px solid var(--border-color);
}

.continent-section:last-child {
    border-bottom: none;
}

.continent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.continent-header:hover {
    background: var(--bg-input);
}

.continent-icon {
    font-size: 20px;
}

.continent-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.continent-arrow {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.continent-section.open .continent-arrow {
    transform: rotate(180deg);
}

.continent-countries {
    display: none;
    padding: 0 8px 8px;
}

.continent-section.open .continent-countries {
    display: block;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.country-item:hover {
    background: var(--bg-input);
}

.country-item.active {
    background: var(--primary);
}

.country-flag {
    font-size: 18px;
}

.country-name {
    flex: 1;
    font-size: 13px;
}

.country-count {
    display: none;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.country-item.active .country-count {
    background: white;
    color: var(--primary);
}

/* Leagues Content */
.leagues-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.leagues-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.leagues-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.leagues-flag {
    font-size: 40px;
}

.leagues-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.leagues-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.leagues-stats {
    display: flex;
    gap: 24px;
}

.stat-mini {
    text-align: center;
}

.stat-mini-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-mini-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.leagues-list {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 16px;
    min-height: 300px;
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.league-card {
    background: var(--bg-input);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s;
}

.league-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.league-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: rgba(0,0,0,0.2);
}

.league-card-logo {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.league-card-logo img {
    max-width: 36px;
    max-height: 36px;
}

.league-card-logo i {
    font-size: 24px;
    color: var(--text-muted);
}

.league-card-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.league-card-status.status-actif {
    background: rgba(35, 134, 54, 0.2);
    color: #3fb950;
}

.league-card-status.status-inactif {
    background: rgba(110, 118, 129, 0.2);
    color: var(--text-muted);
}

.league-card-body {
    padding: 16px;
}

.league-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.league-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.league-card-country,
.league-card-season {
    font-size: 12px;
    color: var(--text-muted);
}

.league-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.league-card-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.league-card-stat i {
    color: var(--text-muted);
}

.league-card-actions {
    display: flex;
    gap: 8px;
}

.scraped-indicator {
    background: var(--info);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

/* Empty State Premium */
.empty-state-premium {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-state-icon-wrapper i {
    font-size: 32px;
    color: white;
}

.empty-state-premium h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-premium p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Loading Modern */
.loading-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.loading-modern p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================
   DETAILED PREDICTIONS TABS & COMBINAISONS
============================================ */
.detailed-predictions-section,
.combinaisons-section {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.detailed-predictions-section h4,
.combinaisons-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.detailed-predictions-section h4 i,
.combinaisons-section h4 i {
    margin-right: 8px;
    color: var(--primary);
}

.predictions-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.pred-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.pred-tab:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.pred-tab.active {
    background: var(--primary);
    color: white;
}

.pred-tab-content {
    display: none;
}

.pred-tab-content.active {
    display: block;
}

.detailed-pred-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.pred-stat-box {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.pred-stat-box.danger {
    border-color: var(--danger);
    background: rgba(218, 54, 51, 0.1);
}

.pred-stat-box.warning {
    border-color: var(--warning);
    background: rgba(210, 153, 34, 0.1);
}

.pred-stat-box .stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pred-stat-box .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.pred-stat-box.danger .stat-value {
    color: var(--danger);
}

.pred-stat-box.warning .stat-value {
    color: var(--warning);
}

.data-table.mini {
    font-size: 12px;
}

.data-table.mini th,
.data-table.mini td {
    padding: 8px 10px;
}

/* Combinaisons */
.combos-categories {
    display: grid;
    gap: 16px;
}

.combo-category {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
}

.combo-category h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.combo-category.securisees h5 {
    color: var(--success);
}

.combo-category.equilibrees h5 {
    color: var(--warning);
}

.combo-category.risquees h5 {
    color: var(--danger);
}

.combos-intro {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.combos-intro i {
    color: var(--primary);
    margin-top: 2px;
}

.combos-intro strong {
    color: var(--text-primary);
}

.combo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.combo-item {
    background: var(--bg-input);
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.combo-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.combo-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.combo-elements {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.combo-elements > i {
    color: var(--primary);
    font-size: 14px;
    margin-right: 4px;
}

.combo-el {
    background: var(--bg-card);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.combo-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.combo-prob {
    font-size: 12px;
    font-weight: 700;
    min-width: 45px;
    text-align: center;
}

.combo-cote {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 3px 8px;
    border-radius: 4px;
}

.combo-explanation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(35, 134, 54, 0.12);
    border-radius: 6px;
}

.combo-explanation i {
    color: var(--warning);
    font-size: 12px;
    margin-top: 1px;
    flex-shrink: 0;
}

.combo-explanation span {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Ancien style pour compatibilite */
.combo-logic {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    margin-top: 8px;
}


/* ========================================
   VISUELS PUBLICITAIRES (SLIDER ADMIN)
======================================== */

.sponsor-general-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-darker);
    border-radius: 8px;
}

.sponsor-general-current {
    display: flex;
    align-items: center;
    gap: 12px;
}

.visuels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 16px;
}

.visuel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.visuel-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.visuel-card.visuel-inactive {
    opacity: 0.6;
}

.visuel-preview {
    height: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, #6c5ce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visuel-svg-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visuel-svg-preview svg {
    width: 80px;
    height: 80px;
}

.visuel-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visuel-info {
    padding: 16px;
}

.visuel-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.visuel-sponsor {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.visuel-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visuel-ordre {
    font-size: 11px;
    color: var(--text-tertiary);
}

.visuel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 16px 16px;
}

.btn-group-toggle {
    display: flex;
    gap: 8px;
}

.btn-group-toggle label {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    margin: 0;
}

.btn-group-toggle input {
    display: none;
}

/* ========================================
   TIRAGE SCORE EXACT
======================================== */
.tirage-detail {
    padding: 16px 0;
}

.tirage-info-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.tirage-info-row .info-item {
    background: var(--bg-input);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.tirage-info-row .info-item label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.tirage-result {
    text-align: center;
}

.tirage-result .result-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tirage-result .result-match {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.tirage-result .result-score {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.tirage-result .result-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0;
}

.tirage-result .result-stats .stat {
    background: var(--bg-input);
    padding: 12px 20px;
    border-radius: 8px;
}

.tirage-result .result-stats .stat span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.gagnants-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.gagnants-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: 8px;
    margin-bottom: 8px;
}

.gagnants-list li .text-success {
    font-weight: 600;
}

/* Stats row for tirages page */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(24, 119, 242, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Sponsor general info */
.sponsor-general-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

/* ========================================
   JULIK PRO - Abonnements & Requetes
======================================== */

.abonnements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.abonnement-card {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s;
}

.abonnement-card:hover {
    transform: translateY(-2px);
}

.abo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.abo-name {
    font-weight: 600;
    font-size: 16px;
}

.abo-price {
    font-size: 14px;
    color: var(--text-muted);
}

.abo-stats {
    display: flex;
    gap: 24px;
}

.abo-stat {
    text-align: center;
}

.abo-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.abo-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Prediction stats */
.prediction-stats {
    text-align: center;
}

.prediction-gauge {
    margin-bottom: 24px;
}

.gauge-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--success) calc(var(--percentage) * 1%),
        var(--bg-input) calc(var(--percentage) * 1%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    position: relative;
}

.gauge-circle::before {
    content: '';
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg-card);
    position: absolute;
}

.gauge-value {
    position: relative;
    z-index: 1;
    font-size: 24px;
    font-weight: 700;
}

.gauge-label {
    color: var(--text-muted);
    font-size: 12px;
}

.prediction-details {
    text-align: left;
}

.prediction-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.prediction-detail:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    font-weight: 600;
}

/* Requetes stats */
.requetes-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.requete-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: 8px;
}

.requete-stat i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 119, 242, 0.1);
    color: var(--primary);
    border-radius: 8px;
}

.requete-info {
    flex: 1;
}

.requete-value {
    font-size: 18px;
    font-weight: 700;
}

.requete-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Config modal tabs */
.config-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.config-tab {
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.config-tab:hover {
    background: var(--bg-input);
}

.config-tab.active {
    background: var(--primary);
    color: white;
}

.config-panel {
    display: none;
}

.config-panel.active {
    display: block;
}

/* Row layout for admin */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 12px;
}

.col-md-8 {
    flex: 0 0 66.666%;
    max-width: 66.666%;
    padding: 0 12px;
}

@media (max-width: 768px) {
    .col-md-4, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ========================================
   Tabs Navigation
======================================== */
.tabs-nav {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: var(--bg-input);
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.tab-btn i {
    font-size: 16px;
}

/* ========================================
   Certifications Admin
======================================== */
.certification-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cert-user-info {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 16px;
}

.cert-user-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.cert-user-info .info-row:last-child {
    border-bottom: none;
}

.cert-user-info .info-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.cert-user-info .info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.cert-documents h4,
.cert-history h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 15px;
}

.cert-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .cert-images-grid {
        grid-template-columns: 1fr;
    }
}

.cert-image-item {
    background: var(--bg-input);
    border-radius: 10px;
    overflow: hidden;
}

.cert-image-label {
    padding: 10px 12px;
    background: var(--bg-darker);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.cert-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.cert-image:hover {
    transform: scale(1.02);
}

.cert-image-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.cert-image-placeholder i {
    font-size: 32px;
    opacity: 0.5;
}

.cert-history .history-list {
    background: var(--bg-input);
    border-radius: 10px;
    overflow: hidden;
}

.cert-history .history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.cert-history .history-item:last-child {
    border-bottom: none;
}

.cert-history .history-action {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.cert-history .history-admin {
    flex: 1;
    color: var(--text-primary);
    font-size: 13px;
}

.cert-history .history-date {
    color: var(--text-muted);
    font-size: 12px;
}

/* Avatar certified indicator */
.user-avatar.certified {
    border: 2px solid var(--success);
    position: relative;
}

.user-avatar.certified::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status badge colors */
.status-warning { background: rgba(210, 153, 34, 0.15); color: var(--warning); }
.status-success { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.status-danger { background: rgba(218, 54, 51, 0.15); color: var(--danger); }

/* Button success/danger icons */
.btn-icon.btn-success { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.btn-icon.btn-success:hover { background: var(--success); color: white; }
.btn-icon.btn-danger { background: rgba(218, 54, 51, 0.15); color: var(--danger); }
.btn-icon.btn-danger:hover { background: var(--danger); color: white; }

/* Button monitoring */
.btn-icon.btn-monitoring { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.btn-icon.btn-monitoring:hover { background: #6366f1; color: white; }

/* Badge colors */
.badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.badge-info { background: rgba(88, 166, 255, 0.15); color: var(--info); }
.badge-secondary { background: var(--bg-input); color: var(--text-secondary); }

/* ==================== PROFILER ADMIN ==================== */

.profiler-admin-page {
    padding: 1.5rem;
}

.profiler-filters-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.profiler-filters-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.profiler-filters-card .btn-lg {
    width: 100%;
}

.profiler-results-container {
    min-height: 200px;
}

.profiler-results-container .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.profiler-results-container .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.profiler-results-container .empty-state p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.profiler-results-container .empty-state small {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.stat-card.bg-primary { border-color: var(--primary); }
.stat-card.bg-info { border-color: var(--info); }
.stat-card.bg-success { border-color: var(--success); }
.stat-card.bg-warning { border-color: var(--warning); }
.stat-card.bg-secondary { border-color: var(--text-secondary); }

.stat-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.stat-card.bg-primary .stat-icon { color: var(--primary); }
.stat-card.bg-info .stat-icon { color: var(--info); }
.stat-card.bg-success .stat-icon { color: var(--success); }
.stat-card.bg-warning .stat-icon { color: var(--warning); }
.stat-card.bg-secondary .stat-icon { color: var(--text-secondary); }

.stat-details {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Matches Admin Grid */
.profiler-matches-section h3 {
    margin: 2rem 0 1.5rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.matches-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 1.5rem;
}

.admin-match-card {
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}

.admin-match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    border-color: var(--border-color);
}

.admin-match-card .match-header {
    background: rgba(24, 119, 242, 0.1);
    padding: 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-match-card .match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-match-card .match-teams strong {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.admin-match-card .vs-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

.admin-match-card .match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.admin-match-card .match-meta .badge {
    font-size: 0.75rem;
}

/* Predictions Grid */
.predictions-grid {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.prediction-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.prediction-card.highlighted {
    background: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.prediction-card .pred-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prediction-card .pred-value {
    margin-bottom: 0.75rem;
}

.prediction-card .pred-value strong {
    font-size: 1.25rem;
    color: var(--primary);
}

.prediction-card .pred-value small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.prediction-card .pred-explication {
    background: rgba(24, 119, 242, 0.1);
    padding: 0.625rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.prediction-card .pred-explication i {
    color: var(--primary);
    margin-top: 0.15rem;
}

.prediction-card .pred-bets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prediction-card .bet-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}

.prediction-card .score-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    padding: 1rem;
    background: rgba(24, 119, 242, 0.1);
    border-radius: 8px;
}

/* Combos Section */
.profiler-combos-section {
    margin-top: 3rem;
}

.profiler-combos-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.combos-section {
    margin-bottom: 2rem;
}

.combos-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.combos-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.admin-combo-card {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.admin-combo-card.border-success {
    border-color: var(--success);
}

.admin-combo-card.border-warning {
    border-color: var(--warning);
}

.admin-combo-card.border-danger {
    border-color: var(--danger);
}

.admin-combo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.admin-combo-card .combo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-combo-card .combo-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-combo-card .combo-type i {
    color: var(--primary);
}

.admin-combo-card .combo-type strong {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.admin-combo-card .combo-prob {
    text-align: right;
}

.admin-combo-card .combo-prob .badge-lg {
    font-size: 1rem;
    padding: 0.5rem 0.875rem;
}

.admin-combo-card .combo-prob small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.admin-combo-card .combo-matches {
    margin-bottom: 1rem;
}

.admin-combo-card .combo-matches .table {
    margin: 0;
}

.admin-combo-card .combo-matches td {
    color: var(--text-primary);
    padding: 0.5rem 0;
}

.admin-combo-card .combo-explication {
    background: rgba(23, 162, 184, 0.15);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--info);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.admin-combo-card .combo-explication i {
    color: var(--info);
    margin-top: 0.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profiler-admin-page {
        padding: 1rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .matches-admin-grid {
        grid-template-columns: 1fr;
    }

    .predictions-grid {
        grid-template-columns: 1fr;
    }

    .combos-admin-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANALYTIX MODULE STYLES
======================================== */

.analytix-config {
    padding: 24px;
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.analytix-config .config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.analytix-config .config-section {
    display: flex;
    flex-direction: column;
}

.analytix-config .config-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analytix-config .config-title i {
    color: var(--primary);
}

.analytix-config .config-actions {
    text-align: center;
    padding-top: 16px;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.match-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.match-card.animate-in {
    animation: fadeSlideIn 0.4s ease forwards;
    opacity: 0;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.match-card.high-conf {
    border: 1px solid rgba(35, 134, 54, 0.3);
    background: rgba(35, 134, 54, 0.03);
}

.match-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.match-teams {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.match-teams .vs {
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 8px;
}

.match-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.match-meta i {
    color: var(--primary);
    margin-right: 4px;
}

.match-confidence {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.match-confidence.high { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.match-confidence.medium { background: rgba(210, 153, 34, 0.15); color: var(--warning); }
.match-confidence.low { background: rgba(218, 54, 51, 0.15); color: var(--danger); }

.match-recommendations {
    padding: 16px 20px;
}

.recs-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recs-header i {
    color: var(--primary);
}

.recs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rec-item {
    background: var(--bg-input);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.rec-item:hover {
    background: rgba(24, 119, 242, 0.08);
    border-left-color: var(--primary);
}

.rec-item.recommended {
    background: rgba(35, 134, 54, 0.08);
    border-left-color: var(--success);
}

.rec-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rec-type {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.rec-type.success { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.rec-type.warning { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }
.rec-type.info { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.rec-type.purple { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }
.rec-type.orange { background: rgba(230, 126, 34, 0.15); color: #e67e22; }
.rec-type.red { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

.rec-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin: 0 12px;
}

.rec-cote {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-right: 12px;
}

.rec-prob {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--bg-dark);
    color: var(--text-secondary);
}

.rec-reasoning {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.rec-reasoning i {
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.rec-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(35, 134, 54, 0.15);
    color: var(--success);
    margin-top: 6px;
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(35, 134, 54, 0.1);
    color: var(--success);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.stats-badge i {
    font-size: 14px;
}

.no-recs {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--bg-input);
    border-top: 1px solid var(--border-color);
}

.no-recs i {
    margin-right: 8px;
    color: var(--text-secondary);
}

/* Competition et date dans header */
.match-competition {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.match-competition i {
    color: var(--primary);
    margin-right: 6px;
}

.match-date {
    font-size: 11px;
    color: var(--text-muted);
}

.match-date i {
    color: var(--primary);
    margin-right: 4px;
}

/* Teams section */
.match-card .match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.01);
}

.match-card .match-teams .team {
    flex: 1;
    text-align: center;
}

.match-card .match-teams .team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.match-card .match-teams .match-vs {
    flex-shrink: 0;
    padding: 0 8px;
}

.match-card .match-teams .vs-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Match odds (1 X 2) */
.match-odds {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-input);
}

.odd-item {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.odd-item:hover {
    border-color: var(--primary);
    background: rgba(24, 119, 242, 0.05);
}

.odd-item.favorite {
    border-color: var(--success);
    background: rgba(35, 134, 54, 0.05);
}

.odd-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.odd-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.odd-item.favorite .odd-value {
    color: var(--success);
}

/* Type badge */
.rec-type-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rec-type-badge.success { background: rgba(35, 134, 54, 0.15); color: var(--success); }
.rec-type-badge.warning { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }
.rec-type-badge.info { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.rec-type-badge.purple { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }
.rec-type-badge.orange { background: rgba(230, 126, 34, 0.15); color: #e67e22; }
.rec-type-badge.red { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

/* Bottom section avec prob bar */
.rec-bottom {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rec-prob {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.prob-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.prob-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.prob-fill.high {
    background: linear-gradient(90deg, var(--success), #2ea043);
}

.prob-fill.medium {
    background: linear-gradient(90deg, var(--warning), #f5a623);
}

.prob-fill.low {
    background: linear-gradient(90deg, var(--danger), #ff6b6b);
}

.prob-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 45px;
    text-align: right;
}

.prob-value.high {
    color: var(--success);
}

/* ========================================================
   MONITORING - Surveillance utilisateurs temps réel
   ======================================================== */

/* Vision Globale */
.monitoring-global-page {
    padding: 0;
}

.monitoring-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(24, 119, 242, 0.1);
    color: var(--primary);
}

.stat-icon.online {
    background: rgba(35, 134, 54, 0.1);
    color: #238636;
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.monitoring-map-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.map-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.map-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.monitoring-users-table,
.monitoring-timeline {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.table-header,
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table-header h3,
.timeline-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-phone {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.location-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ip-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(110, 118, 129, 0.1);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
}

.device-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.time-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(24, 119, 242, 0.1);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--primary);
}

.timeline-container {
    max-height: 500px;
    overflow-y: auto;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-time {
    min-width: 60px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(24, 119, 242, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-content strong {
    color: var(--text-primary);
}

.timeline-content small {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Détail Utilisateur */
.monitoring-detail-page {
    padding: 0;
}

.user-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.user-profile-grid {
    display: grid;
    gap: 2rem;
}

.user-profile-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.user-profile-info {
    flex: 1;
}

.user-profile-info h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.online {
    background: rgba(35, 134, 54, 0.1);
    color: #238636;
}

.status-badge.offline {
    background: rgba(110, 118, 129, 0.1);
    color: var(--text-secondary);
}

.user-metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(110, 118, 129, 0.05);
    border-radius: 6px;
}

.metadata-item i {
    color: var(--primary);
    font-size: 1.25rem;
}

.metadata-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metadata-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.metadata-value {
    font-weight: 600;
    color: var(--text-primary);
}

.date-navigator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.date-display input[type="date"] {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

#current-date-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.timeline-24h-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
}

.hour-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.hour-slot:hover {
    background: rgba(24, 119, 242, 0.1);
    border-color: var(--primary);
}

.hour-slot.has-position {
    background: rgba(35, 134, 54, 0.1);
    border-color: #238636;
}

.hour-slot.selected {
    background: rgba(24, 119, 242, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.hour-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hour-indicator {
    font-size: 0.625rem;
    color: var(--text-secondary);
}

.hour-slot.has-position .hour-indicator {
    color: #238636;
}

.hour-slot.gps .hour-indicator {
    color: var(--primary);
}

.hour-slot.ip .hour-indicator {
    color: #F59E0B;
}

.position-map-container,
.activities-container,
.sessions-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.activities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.activities-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(110, 118, 129, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.activities-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    min-width: 60px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(24, 119, 242, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-content strong {
    color: var(--text-primary);
}

.activity-content small {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Widget Sidebar */
.online-widget {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-header h4 {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--primary);
}

.widget-stats {
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item .stat-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.stat-item .stat-value {
    font-size: 1.5rem;
}

.stat-item .stat-label {
    font-size: 0.75rem;
}

.widget-users-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.widget-user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.widget-user-item:hover {
    background: rgba(24, 119, 242, 0.1);
}

.widget-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.widget-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.widget-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-user-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.widget-user-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.online-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #238636;
    box-shadow: 0 0 0 2px rgba(35, 134, 54, 0.2);
}

.online-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.widget-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.widget-more {
    text-align: center;
    padding-top: 0.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Marker OSM personnalisés */
.user-marker {
    background: transparent !important;
    border: none !important;
}

.marker-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.marker-popup {
    text-align: center;
}

.marker-popup strong {
    display: block;
    margin-bottom: 0.25rem;
}

.marker-popup span {
    display: block;
    margin-bottom: 0.25rem;
}

.marker-popup small {
    color: var(--text-secondary);
}

/* Loading states */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* ========================================
   COTIX - Stats Réelles + POURQUOI
======================================== */
.cotix-stats-mini {
    background: rgba(88, 166, 255, 0.05);
    border-left: 3px solid var(--info);
    padding: 0.75rem;
    margin-top: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.csm-row {
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.csm-row:last-child {
    margin-bottom: 0;
}

.csm-row strong {
    color: var(--text-primary);
    font-weight: 600;
}

.csm-pourquoi {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(88, 166, 255, 0.2);
    color: var(--info);
    font-style: italic;
    line-height: 1.6;
}

.csm-pourquoi strong {
    color: var(--info);
    font-weight: 600;
    font-style: normal;
}


/* ========================================
   QUANT 2 - Tableau Ultra-Détaillé
======================================== */

.ultra-detailed-table {
    font-size: 12px;
}

.ultra-detailed-table th {
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
    padding: 8px 6px;
    border: 1px solid var(--border-color);
}

.ultra-detailed-table th[rowspan="2"] {
    vertical-align: middle;
}

.ultra-detailed-table td {
    text-align: center;
    padding: 6px 4px;
    border: 1px solid var(--border-color);
}

.ultra-detailed-table .match-cell {
    text-align: left;
    min-width: 150px;
}

.ultra-detailed-table .vs {
    color: var(--text-muted);
    font-size: 10px;
}

/* Couleurs pour différences */
.positive-diff {
    color: var(--success);
    font-weight: 600;
}

.negative-diff {
    color: var(--danger);
    font-weight: 600;
}

/* Kelly highlight */
.kelly-highlight {
    background: rgba(35, 134, 54, 0.15);
    font-weight: 600;
    color: var(--success);
}

/* Marges */
.excellent-margin {
    background: rgba(35, 134, 54, 0.2);
    color: var(--success);
    font-weight: 600;
}

.good-margin {
    background: rgba(210, 153, 34, 0.2);
    color: var(--warning);
    font-weight: 600;
}

.poor-margin {
    background: rgba(218, 54, 51, 0.2);
    color: var(--danger);
    font-weight: 600;
}

/* Checks */
.check-yes {
    color: var(--success);
    font-size: 16px;
}

.check-no {
    color: var(--text-muted);
    font-size: 16px;
}

.check-yes i, .check-no i {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 1400px) {
    .ultra-detailed-table {
        font-size: 11px;
    }
    
    .ultra-detailed-table th,
    .ultra-detailed-table td {
        padding: 4px 3px;
    }
}

