/* ════════════════════════════════════════════════════════════
   NEWS TERMINAL — DRIVE STYLE v2.0
   Structure & variables calquées sur drive.css
════════════════════════════════════════════════════════════ */

/* ── CSS Variables (drive-aligned) ───────────────────────── */
:root {
    --avd-bg:             #0b1120;
    --avd-sidebar-bg:     #0f172a;
    --avd-header-bg:      rgba(11, 17, 32, 0.97);
    --avd-card:           rgba(30, 41, 59, 0.92);
    --avd-card-hover:     rgba(51, 65, 85, 0.9);
    --avd-input-bg:       rgba(255, 255, 255, 0.06);
    --avd-border:         rgba(255, 255, 255, 0.08);
    --avd-border-hover:   rgba(255, 255, 255, 0.15);
    --avd-text:           #f0f4f8;
    --avd-text-muted:     #cbd5e1;
    --avd-text-dim:       #94a3b8;
    --avd-primary:        #667eea;
    --avd-primary-dark:   #764ba2;
    --avd-green:          #10b981;
    --avd-amber:          #f59e0b;
    --avd-red:            #ef4444;
    --avd-purple:         #8b5cf6;
    --avd-radius:         10px;
    --avd-radius-lg:      16px;
    --avd-radius-xl:      24px;
    --avd-shadow:         0 4px 24px rgba(0,0,0,0.35);
    --avd-shadow-lg:      0 10px 50px rgba(0,0,0,0.55);
    --avd-sidebar-w:      260px;
    --avd-header-h:       58px;
    --avd-transition:     all 0.2s ease;

    /* Compat ancien news-terminal */
    --glass-bg:           rgba(30, 41, 59, 0.92);
    --glass-border:       rgba(255, 255, 255, 0.08);
    --text-primary:       #f0f4f8;
    --text-secondary:     #cbd5e1;
    --text-tertiary:      #94a3b8;
}

/* Light mode */
body.light-mode {
    --avd-bg:             #f1f5f9;
    --avd-sidebar-bg:     #ffffff;
    --avd-header-bg:      rgba(255, 255, 255, 0.97);
    --avd-card:           #ffffff;
    --avd-card-hover:     #f8fafc;
    --avd-input-bg:       rgba(0, 0, 0, 0.04);
    --avd-border:         rgba(0, 0, 0, 0.08);
    --avd-border-hover:   rgba(0, 0, 0, 0.15);
    --avd-text:           #1e293b;
    --avd-text-muted:     #475569;
    --avd-text-dim:       #94a3b8;
    --glass-bg:           #ffffff;
    --glass-border:       rgba(0, 0, 0, 0.08);
    --text-primary:       #1e293b;
    --text-secondary:     #475569;
    --text-tertiary:      #94a3b8;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; }

body.nt-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--avd-bg);
    color: var(--avd-text);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }
body.light-mode * { scrollbar-color: rgba(0,0,0,0.12) transparent; }
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
body.light-mode *::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.14); }

/* ════════════════════════════════════════════════════════════
   LAYOUT — Drive exact
════════════════════════════════════════════════════════════ */
#ntApp {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
#ntSidebar {
    width: var(--avd-sidebar-w);
    flex-shrink: 0;
    background: var(--avd-sidebar-bg);
    border-right: 1px solid var(--avd-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: visible;
    position: relative;
    z-index: 200;
    transition: width 0.25s ease, transform 0.3s ease;
}

body.light-mode #ntSidebar {
    box-shadow: 2px 0 20px rgba(0,0,0,0.08);
}

#ntSidebar.collapsed { width: 64px; }

#ntSidebar.collapsed .nt-nav-item-text,
#ntSidebar.collapsed .nt-nav-badge,
#ntSidebar.collapsed .nt-nav-label,
#ntSidebar.collapsed .nt-new-btn-text,
#ntSidebar.collapsed .nt-platform-nav,
#ntSidebar.collapsed .nt-sidebar-user-trigger > div,
#ntSidebar.collapsed #ntUserPlan,
#ntSidebar.collapsed #ntUserChevron {
    display: none;
}

#ntSidebar.collapsed .nt-nav-item {
    justify-content: center;
    padding: 10px;
}

#ntSidebar.collapsed .nt-nav-item-icon { margin: 0; }

/* Logo */
.nt-sidebar-logo-text { display: block; }
.nt-sidebar-logo-icon  { display: none; }

#ntSidebar.collapsed .nt-sidebar-logo-text { display: none; }
#ntSidebar.collapsed .nt-sidebar-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0 10px;
    width: 100%;
}

/* Sidebar scroll */
.nt-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.nt-sidebar-scroll::-webkit-scrollbar { width: 3px; }
.nt-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}
body.light-mode .nt-sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); }

/* Sidebar toggle button */
.nt-sidebar-toggle {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--avd-text-muted);
    font-size: 10px;
    z-index: 300;
    transition: var(--avd-transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    flex-shrink: 0;
}
body.light-mode .nt-sidebar-toggle {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nt-sidebar-toggle:hover {
    background: var(--avd-primary);
    color: #fff;
    border-color: var(--avd-primary);
    box-shadow: 0 4px 16px rgba(102,126,234,0.5);
}

/* ── MAIN ────────────────────────────────────────────────── */
#ntMain {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    min-width: 0;
    transition: margin-left 0.25s ease;
}

/* ════════════════════════════════════════════════════════════
   HEADER — Drive exact
════════════════════════════════════════════════════════════ */
#ntHeader {
    height: var(--avd-header-h);
    background: var(--avd-header-bg);
    border-bottom: 1px solid var(--avd-border);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    flex-shrink: 0;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 100;
}

/* Breadcrumb */
.nt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.nt-breadcrumb-item {
    font-size: 12px;
    font-weight: 700;
    color: var(--avd-text-dim);
    white-space: nowrap;
}
.nt-breadcrumb-item.active { color: var(--avd-text); }
.nt-breadcrumb-sep { font-size: 9px; color: var(--avd-text-dim); }

/* Header controls */
.nt-header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Header button */
.nt-header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--avd-input-bg);
    border: 1px solid var(--avd-border);
    border-radius: var(--avd-radius);
    font-size: 12px;
    font-weight: 600;
    color: var(--avd-text-muted);
    cursor: pointer;
    transition: var(--avd-transition);
    white-space: nowrap;
}
.nt-header-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--avd-text);
    border-color: var(--avd-border-hover);
}
body.light-mode .nt-header-btn:hover { background: rgba(0,0,0,0.06); }

/* Theme toggle */
.nt-theme-toggle {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--avd-input-bg);
    border: 1px solid var(--avd-border);
    border-radius: var(--avd-radius);
    cursor: pointer;
    color: var(--avd-text-muted);
    font-size: 14px;
    transition: var(--avd-transition);
    flex-shrink: 0;
}
.nt-theme-toggle:hover {
    background: rgba(245,158,11,0.12);
    color: var(--avd-amber);
    border-color: rgba(245,158,11,0.3);
}

/* Status dot */
.nt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
    transition: var(--avd-transition);
    flex-shrink: 0;
}
.nt-status-dot.connected { background: var(--avd-green); box-shadow: 0 0 8px rgba(16,185,129,0.6); }

/* Mobile menu btn */
#ntMobileMenuBtn {
    display: none;
}

/* Refresh button (header) */
.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--avd-primary), var(--avd-primary-dark));
    color: white;
    border: none;
    border-radius: var(--avd-radius);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--avd-transition);
    box-shadow: 0 4px 14px rgba(102,126,234,0.35);
}
.refresh-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(102,126,234,0.5);
}
.refresh-btn:active { transform: translateY(0); }

@media (max-width: 768px) {
    .refresh-btn .btn-text { display: none; }
    .refresh-btn { padding: 7px 10px; }
}

/* ════════════════════════════════════════════════════════════
   SIDEBAR NAV — Drive exact
════════════════════════════════════════════════════════════ */
.nt-nav { padding: 4px 8px; }
.nt-nav-section { margin-bottom: 6px; }

.nt-nav-label {
    padding: 10px 10px 5px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--avd-text-dim);
}

.nt-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--avd-radius);
    cursor: pointer;
    transition: var(--avd-transition);
    color: var(--avd-text-muted);
    position: relative;
    margin-bottom: 2px;
}
.nt-nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--avd-text);
}
body.light-mode .nt-nav-item:hover { background: rgba(0,0,0,0.04); color: #1e293b; }
.nt-nav-item.active {
    background: rgba(102,126,234,0.13);
    color: var(--avd-primary);
}
.nt-nav-item-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.nt-nav-item-text {
    flex: 1;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nt-nav-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(102,126,234,0.18);
    color: #a5b4fc;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Platform Nav ─────────────────────────────────────────── */
.nt-platform-nav { padding: 0 0 8px; }
.nt-platform-section { margin-bottom: 2px; }

.nt-platform-folder {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--avd-text-muted);
    cursor: pointer;
    border-radius: var(--avd-radius);
    margin: 0 8px;
    transition: var(--avd-transition);
    background: none;
    border: none;
    width: calc(100% - 16px);
    text-align: left;
}
.nt-platform-folder:hover {
    background: rgba(255,255,255,0.05);
    color: var(--avd-text);
}
body.light-mode .nt-platform-folder:hover { background: rgba(0,0,0,0.04); color: #1e293b; }
.nt-platform-folder i:first-child { font-size: 13px; width: 16px; text-align: center; }
.nt-platform-folder .arrow { margin-left: auto; font-size: 9px; transition: transform 0.2s; }
.nt-platform-folder.open .arrow { transform: rotate(180deg); }

.nt-platform-submenu { display: none; padding: 2px 0; }
.nt-platform-submenu.open { display: block; }

.nt-platform-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 36px;
    font-size: 11px;
    font-weight: 500;
    color: var(--avd-text-dim);
    text-decoration: none;
    border-radius: 8px;
    margin: 0 8px;
    transition: var(--avd-transition);
}
.nt-platform-link:hover {
    background: rgba(255,255,255,0.04);
    color: var(--avd-text-muted);
}
body.light-mode .nt-platform-link:hover { background: rgba(0,0,0,0.04); color: #475569; }
.nt-platform-link.active {
    color: var(--avd-primary);
    background: rgba(102,126,234,0.08);
}
.nt-platform-link i { font-size: 11px; width: 14px; text-align: center; }

.nt-platform-divider {
    border: none;
    border-top: 1px solid var(--avd-border);
    margin: 8px 16px;
}

/* ════════════════════════════════════════════════════════════
   CONTENT AREA — Drive exact
════════════════════════════════════════════════════════════ */
#ntContent {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 22px 26px;
}
#ntContent::-webkit-scrollbar { width: 5px; }
#ntContent::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
body.light-mode #ntContent::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); }

/* Section title */
.nt-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--avd-text);
    margin-bottom: 14px;
    margin-top: 26px;
}
.nt-section-title:first-child { margin-top: 0; }
.nt-section-title i { color: var(--avd-primary); font-size: 13px; }

/* ════════════════════════════════════════════════════════════
   GRADIENT TITLES (conservé)
════════════════════════════════════════════════════════════ */
.gradient-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}
.gradient-title i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ════════════════════════════════════════════════════════════
   FILTERS SECTION — Drive card style
════════════════════════════════════════════════════════════ */
.filters-section { margin-bottom: 20px; }

/* Filters header */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: var(--avd-radius-lg);
    cursor: pointer;
    transition: var(--avd-transition);
    margin-bottom: 0;
}
.filters-header:hover {
    border-color: var(--avd-border-hover);
    background: var(--avd-card-hover);
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--avd-text);
    margin: 0;
}
.filters-title i {
    font-size: 12px;
    color: var(--avd-primary);
}
.filter-count {
    font-size: 10px;
    font-weight: 600;
    color: var(--avd-text-dim);
    margin-left: 4px;
}

.filters-toggle-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(102,126,234,0.1);
    border: 1px solid rgba(102,126,234,0.2);
    color: var(--avd-primary);
    font-size: 10px;
    cursor: pointer;
    transition: var(--avd-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.filters-toggle-btn:hover {
    background: rgba(102,126,234,0.2);
}
.filters-toggle-btn i { transition: transform 0.3s ease; }

/* Collapsible container */
.filters-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin-top 0.3s ease;
    opacity: 1;
    margin-top: 12px;
}
.filters-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

/* Filters grid */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

/* Filter group — Drive card style */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: var(--avd-radius-lg);
    transition: var(--avd-transition);
    position: relative;
}
.filter-group:hover {
    border-color: var(--avd-border-hover);
    box-shadow: var(--avd-shadow);
}
.filter-group.has-value {
    border-color: rgba(102,126,234,0.3);
    background: rgba(102,126,234,0.04);
}

.filter-group label {
    font-size: 10px;
    font-weight: 800;
    color: var(--avd-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-group label i { color: var(--avd-primary); font-size: 11px; }

/* Inputs & selects */
.search-input,
.filter-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--avd-border);
    border-radius: var(--avd-radius);
    background: var(--avd-input-bg);
    color: var(--avd-text);
    transition: var(--avd-transition);
    outline: none;
    font-family: inherit;
}
.search-input::placeholder { color: var(--avd-text-dim); }
.filter-select option { background: #1e293b; color: var(--avd-text); }
body.light-mode .filter-select option { background: #ffffff; }

.search-input:focus,
.filter-select:focus {
    border-color: var(--avd-primary);
    background: rgba(102,126,234,0.07);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

/* Active filter dot */
.filter-group.has-value label::after {
    content: '●';
    color: var(--avd-green);
    font-size: 0.5rem;
    margin-left: 4px;
    animation: ntPulse 2s infinite;
}
@keyframes ntPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Load max button */
.load-max-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--avd-amber), #d97706);
    color: white;
    border: none;
    border-radius: var(--avd-radius);
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--avd-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}
.load-max-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(245,158,11,0.5);
}
.load-max-btn:active { transform: translateY(0); }

/* Auto-load container */
.auto-load-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--avd-input-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--avd-transition);
}
.auto-load-container:hover { background: rgba(102,126,234,0.08); }
.auto-load-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--avd-primary);
}
.auto-load-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--avd-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}
.auto-load-label i { color: var(--avd-primary); }

/* ════════════════════════════════════════════════════════════
   STATS GRID — Drive avd-stat-card style
════════════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card {
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: var(--avd-radius-lg);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--avd-transition);
}
.stat-card:hover {
    border-color: var(--avd-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--avd-shadow);
}
body.light-mode .stat-card { box-shadow: 0 1px 4px rgba(0,0,0,0.04); }

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.stat-content { flex: 1; }

.stat-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--avd-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--avd-text);
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-sublabel {
    font-size: 10px;
    color: var(--avd-text-dim);
    font-weight: 600;
}

/* ════════════════════════════════════════════════════════════
   VIEW TOGGLES — Drive avd-view-toggle style
════════════════════════════════════════════════════════════ */
.section-header-with-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.view-toggles {
    display: flex;
    background: var(--avd-input-bg);
    border: 1px solid var(--avd-border);
    border-radius: var(--avd-radius);
    overflow: hidden;
}

.view-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--avd-text-muted);
    font-size: 13px;
    border: none;
    background: transparent;
    transition: var(--avd-transition);
}
.view-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--avd-text);
}
body.light-mode .view-btn:hover { background: rgba(0,0,0,0.06); }
.view-btn.active { background: var(--avd-primary); color: #fff; }
.view-btn.active i { color: white !important; }

/* ════════════════════════════════════════════════════════════
   ARTICLES GRID — Drive file-card style
════════════════════════════════════════════════════════════ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
.articles-grid.list-view { grid-template-columns: 1fr; }
.articles-grid.list-view .article-card { display: flex; flex-direction: row; }
.articles-grid.list-view .article-image { width: 240px; height: 160px; flex-shrink: 0; }

/* Article card */
.article-card {
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: var(--avd-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--avd-transition);
    position: relative;
}
.article-card:hover {
    border-color: rgba(102,126,234,0.4);
    box-shadow: 0 8px 28px rgba(0,0,0,0.28);
    transform: translateY(-2px);
}
body.light-mode .article-card { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--avd-primary), var(--avd-primary-dark));
    opacity: 0;
    transition: opacity 0.2s ease;
}
.article-card:hover::before { opacity: 1; }

/* Article image */
.article-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: rgba(102,126,234,0.07);
    display: block;
}

/* Article content */
.article-content { padding: 16px; }

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.article-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: var(--avd-primary);
    padding: 4px 10px;
    background: rgba(102,126,234,0.1);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.article-actions { display: flex; gap: 4px; }

.article-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--avd-text-muted);
    cursor: pointer;
    transition: var(--avd-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-family: inherit;
}
.article-action-btn:hover {
    background: rgba(255,255,255,0.12);
    color: var(--avd-text);
}
body.light-mode .article-action-btn { background: rgba(0,0,0,0.05); color: #475569; }
body.light-mode .article-action-btn:hover { background: rgba(0,0,0,0.1); color: #1e293b; }
.article-action-btn.active { background: rgba(102,126,234,0.12); color: var(--avd-primary); }

.article-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--avd-text);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-description {
    font-size: 11px;
    color: var(--avd-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ticker badges */
.article-tickers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.ticker-badge {
    padding: 2px 8px;
    background: rgba(16,185,129,0.12);
    color: var(--avd-green);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--avd-transition);
}
.ticker-badge:hover {
    background: rgba(16,185,129,0.2);
    transform: translateY(-1px);
}

.company-badge {
    background: rgba(59,130,246,0.1);
    color: #60a5fa;
    border-color: rgba(59,130,246,0.2);
}
.company-badge:hover { background: rgba(59,130,246,0.2); }

.country-badge {
    background: rgba(16,185,129,0.1);
    color: var(--avd-green);
    border-color: rgba(16,185,129,0.2);
}
.ticker-badge i { margin-right: 4px; font-size: 0.8em; opacity: 0.8; }

/* Article footer */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--avd-border);
}

.article-date {
    font-size: 10px;
    color: var(--avd-text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--avd-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    transition: var(--avd-transition);
}
.article-link:hover { gap: 8px; }

/* ════════════════════════════════════════════════════════════
   LOADING / EMPTY STATES — Drive exact
════════════════════════════════════════════════════════════ */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}
.loading-state i {
    font-size: 36px;
    color: var(--avd-text-dim);
    margin-bottom: 14px;
}
.loading-state p {
    font-size: 13px;
    color: var(--avd-text-muted);
    font-weight: 600;
}

/* Skeleton */
.skeleton-card {
    background: var(--avd-card);
    border: 1px solid var(--avd-border);
    border-radius: var(--avd-radius-lg);
    overflow: hidden;
    animation: ntPulse 1.5s ease-in-out infinite;
}
.skeleton-image {
    height: 160px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.09) 50%,
        rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: ntShimmer 1.5s infinite;
}
.skeleton-line {
    height: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 25%,
        rgba(255,255,255,0.09) 50%,
        rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: ntShimmer 1.5s infinite;
}
body.light-mode .skeleton-image,
body.light-mode .skeleton-line {
    background: linear-gradient(90deg,
        rgba(0,0,0,0.04) 25%,
        rgba(0,0,0,0.09) 50%,
        rgba(0,0,0,0.04) 75%);
    background-size: 200% 100%;
}
@keyframes ntShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ════════════════════════════════════════════════════════════
   LOAD MORE BUTTON
════════════════════════════════════════════════════════════ */
.load-more-container { text-align: center; margin-top: 24px; }

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 700;
    background: var(--avd-input-bg);
    color: var(--avd-text-muted);
    border: 1px solid var(--avd-border);
    border-radius: var(--avd-radius);
    cursor: pointer;
    transition: var(--avd-transition);
    font-family: inherit;
}
.load-more-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--avd-text);
    border-color: var(--avd-border-hover);
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   SIDEBAR FOOTER — Drive exact
════════════════════════════════════════════════════════════ */
.nt-sidebar-footer {
    border-top: 1px solid var(--avd-border);
    position: relative;
    flex-shrink: 0;
}

.nt-sidebar-user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: var(--avd-transition);
}
.nt-sidebar-user-trigger:hover { background: rgba(255,255,255,0.04); }
body.light-mode .nt-sidebar-user-trigger:hover { background: rgba(0,0,0,0.04); }

.nt-sidebar-user-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 8px;
    margin: 0 8px 6px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    z-index: 1000;
}
body.light-mode .nt-sidebar-user-dropdown {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
}
.nt-sidebar-user-dropdown.open { display: block; }

.nt-sidebar-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 6px;
}
body.light-mode .nt-sidebar-dropdown-header { border-color: rgba(0,0,0,0.07); }
.nt-sidebar-dropdown-header img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.nt-sidebar-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--avd-text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--avd-transition);
}
.nt-sidebar-dropdown-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--avd-text);
}
body.light-mode .nt-sidebar-dropdown-link:hover { background: rgba(0,0,0,0.04); }
.nt-sidebar-dropdown-link i { font-size: 13px; width: 16px; text-align: center; }

.nt-sidebar-dropdown-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--avd-red);
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--avd-transition);
    background: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    width: 100%;
    text-align: left;
    margin-top: 4px;
    font-family: inherit;
}
body.light-mode .nt-sidebar-dropdown-logout { border-color: rgba(0,0,0,0.06); }
.nt-sidebar-dropdown-logout:hover { background: rgba(239,68,68,0.08); }

/* Mobile close button */
.nt-mobile-close-btn {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--avd-text-muted);
    font-size: 14px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--avd-transition);
    font-family: inherit;
}
.nt-mobile-close-btn:hover {
    background: rgba(239,68,68,0.15);
    color: var(--avd-red);
    border-color: rgba(239,68,68,0.3);
}

/* ════════════════════════════════════════════════════════════
   PARTICLES — derrière tout
════════════════════════════════════════════════════════════ */
.particles-background,
#particles-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: none !important;
    opacity: 0.25;
}
body.light-mode .particles-background,
body.light-mode #particles-canvas { opacity: 0.1; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1200px)
════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    :root { --avd-sidebar-w: 240px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    html, body { overflow: hidden; }

    #ntSidebar {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        z-index: 1000;
        transform: translateX(-100%);
        overflow-y: auto;
        overflow-x: hidden;
    }
    #ntSidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 40px rgba(0,0,0,0.55);
    }

    .nt-sidebar-toggle { display: none !important; }
    .nt-mobile-close-btn { display: flex; }

    #ntMobileMenuBtn { display: flex !important; }
    .nt-breadcrumb { display: none; }

    #ntContent { padding: 14px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 12px 14px; flex-direction: column; text-align: center; }
    .stat-icon { width: 38px; height: 38px; font-size: 15px; margin: 0 auto; }
    .stat-content { display: flex; flex-direction: column; align-items: center; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 9px; }
    .stat-sublabel { font-size: 9px; }

    .filters-grid { grid-template-columns: 1fr; }
    .filter-count { display: none; }

    .articles-grid { grid-template-columns: 1fr; }
    .articles-grid.list-view .article-card { flex-direction: column; }
    .articles-grid.list-view .article-image { width: 100%; height: 160px; }
    .article-image { height: 140px; }

    .section-header-with-controls { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    :root { --avd-header-h: 52px; }
    #ntHeader { padding: 0 10px; gap: 6px; }
    .nt-header-btn span { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
    .stat-card { padding: 10px 12px; border-radius: 12px; }
    .stat-icon { width: 34px; height: 34px; font-size: 13px; border-radius: 10px; }
    .stat-value { font-size: 16px; }
    .article-image { height: 120px; }
}

/* ════════════════════════════════════════════════════════════
   LIGHT MODE GLOBAL
════════════════════════════════════════════════════════════ */
body.light-mode .nt-nav-label { color: #94a3b8; }
body.light-mode .article-card { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
body.light-mode .filter-group { box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
body.light-mode .stat-card { box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
body.light-mode .nt-platform-folder { color: #475569; }
body.light-mode .nt-platform-folder:hover { color: #1e293b; }
body.light-mode .load-max-btn { box-shadow: 0 4px 14px rgba(245,158,11,0.25); }
body.light-mode .article-source { background: rgba(102,126,234,0.08); }
body.light-mode .ticker-badge { background: rgba(16,185,129,0.08); }