/**
 * Design System « Nébuleuse » — Socle UI Premium SSTR
 *
 * Variables CSS --sstr-*, composants réutilisables, micro-interactions,
 * support prefers-reduced-motion et conformité contrastes WCAG AA.
 *
 * CONTRAINTE ABSOLUE DU FOND ÉTOILÉ :
 * Tous les conteneurs pleine page sont transparents.
 * Seules les cartes appliquent un fond semi-transparent (alpha <= 0.72)
 * et un backdrop-filter: blur() pour magnifier le fond étoilé du thème.
 *
 * @package SocialScrapeTrendsReceiver
 * @version 2.5.172
 */

:root {
    /* --- COULEURS NÉBULEUSE (Cartes semi-transparentes alpha <= 0.72) --- */
    --sstr-card-bg: rgba(15, 23, 42, 0.65);
    --sstr-card-bg-hover: rgba(30, 41, 59, 0.72);
    --sstr-card-bg-solid: rgba(15, 23, 42, 0.70);
    --sstr-card-bg-subtle: rgba(255, 255, 255, 0.03);
    --sstr-card-border: 1px solid rgba(255, 255, 255, 0.08);
    --sstr-card-border-hover: 1px solid rgba(255, 255, 255, 0.18);
    --sstr-card-border-glow: 0 0 15px rgba(255, 255, 255, 0.08);

    /* --- ACCENTS PAR MODULE (Repris des hubs existants) --- */
    --sstr-accent-candidats: #ef4444;    /* Rouge Candidats */
    --sstr-accent-profils: #a855f7;      /* Violet Profils */
    --sstr-accent-posts: #3b82f6;        /* Bleu Publications */
    --sstr-accent-wordcloud: #10b981;    /* Vert Sémantique */
    --sstr-accent-compare: #facc15;      /* Jaune Comparateur */
    --sstr-accent-retweets: #10b981;     /* Vert Retweets */
    --sstr-accent-timeline: #8b5cf6;     /* Violet Timeliner */

    /* États et Utilitaires */
    --sstr-primary: #3b82f6;
    --sstr-success: #10b981;
    --sstr-warning: #f59e0b;
    --sstr-danger: #ef4444;
    --sstr-info: #06b6d4;

    /* --- CONTRASTES WCAG AA --- */
    --sstr-text-primary: #f8fafc;        /* Ratio > 7:1 sur fond sombre */
    --sstr-text-secondary: #cbd5e1;      /* Ratio > 4.5:1 */
    --sstr-text-muted: #94a3b8;          /* Ratio > 4.5:1 */
    --sstr-text-dim: #94a3b8;

    /* --- RAYONS (Border Radius) --- */
    --sstr-radius-xs: 4px;
    --sstr-radius-sm: 8px;
    --sstr-radius-md: 12px;
    --sstr-radius-lg: 16px;
    --sstr-radius-xl: 20px;
    --sstr-radius-pill: 9999px;

    /* --- OMBRES DOUCES --- */
    --sstr-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --sstr-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --sstr-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
    --sstr-shadow-glow: 0 0 20px rgba(255, 255, 255, 0.08);

    /* --- ESPACEMENTS --- */
    --sstr-space-xs: 4px;
    --sstr-space-sm: 8px;
    --sstr-space-md: 16px;
    --sstr-space-lg: 24px;
    --sstr-space-xl: 32px;

    /* --- TYPOGRAPHIE --- */
    --sstr-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sstr-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --sstr-title-transform: uppercase;
    --sstr-title-letter-spacing: 1px;

    /* --- DURÉES D'ANIMATION & MICRO-INTERACTIONS --- */
    --sstr-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --sstr-transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --sstr-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* --- FLOU SUR LES CARTES UNIQUEMENT --- */
    --sstr-card-blur: blur(12px);
}

/* =========================================================================
   PROTECTION DU FOND DU SITE (FOND ÉTOILÉ)
   ========================================================================= */

.sstr-dashboard-dark,
.sstr-dashboard-wrap,
.sstr-dashboard-scope,
.sstr-container,
.content-grid,
.entry-content,
.content-area,
.site-content,
.post-content,
.main-content-inner,
.vk-content {
    background: transparent !important;
    background-color: transparent !important;
}

.sstr-dashboard-dark {
    margin-top: -100px !important;
    min-height: 100vh;
    font-family: var(--sstr-font-family);
    color: var(--sstr-text-primary);
    position: relative;
    z-index: 1;
}

/* Masquer les en-têtes parasites du thème sans toucher aux conteneurs de fond */
.page-header,
.entry-header,
.entry-title,
.page-title,
#page-title,
.vk-page-header,
.vk-page-title,
.section-header,
.section-title,
.page-header-title,
.page-open-title {
    display: none !important;
}

/* =========================================================================
   ACCESSIBILITÉ & FOCUS VISIBLE (WCAG AA)
   ========================================================================= */

.sstr-btn:focus-visible,
.sstr-filter-btn:focus-visible,
.sstr-time-btn:focus-visible,
.sstr-card:focus-visible,
select.sstr-select:focus-visible,
input.sstr-input:focus-visible {
    outline: 2px solid var(--sstr-primary) !important;
    outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .sstr-skeleton-row {
        animation: none !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }
}

/* =========================================================================
   COMPOSANT : CARTES (SSTR-CARD & NÉBULEUSE GLASS)
   ========================================================================= */

.sstr-card,
.sstr-glass-card,
.sstr-glass-panel {
    background: var(--sstr-card-bg);
    backdrop-filter: var(--sstr-card-blur);
    -webkit-backdrop-filter: var(--sstr-card-blur);
    border: var(--sstr-card-border);
    border-radius: var(--sstr-radius-lg);
    box-shadow: var(--sstr-shadow-md);
    transition: transform var(--sstr-transition-normal),
                box-shadow var(--sstr-transition-normal),
                border-color var(--sstr-transition-normal),
                background var(--sstr-transition-normal);
    position: relative;
    box-sizing: border-box;
}

/* Micro-interaction au survol : légère élévation + liseré lumineux */
.sstr-card:hover,
.sstr-glass-card:hover {
    transform: translateY(-2px);
    background: var(--sstr-card-bg-hover);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: var(--sstr-shadow-lg), var(--sstr-card-border-glow);
}

.sstr-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sstr-card-title {
    margin: 0;
    color: var(--sstr-text-primary);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.sstr-card-body {
    padding: 22px;
}

.sstr-card-footer {
    padding: 14px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
    border-bottom-left-radius: var(--sstr-radius-lg);
    border-bottom-right-radius: var(--sstr-radius-lg);
}

/* =========================================================================
   COMPOSANT : PAGE HEADER (EN-TÊTE HARMONISÉ NÉBULEUSE)
   ========================================================================= */

.sstr-page-header,
.sstr-glass-bar {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: var(--sstr-card-blur) !important;
    -webkit-backdrop-filter: var(--sstr-card-blur) !important;
    border: var(--sstr-card-border) !important;
    border-radius: var(--sstr-radius-lg) !important;
    padding: 16px 20px !important;
    margin-bottom: 30px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    position: relative !important;
    z-index: 100 !important;
    box-shadow: var(--sstr-shadow-md) !important;
}

.sstr-page-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.sstr-header-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--sstr-radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--sstr-transition-fast), background var(--sstr-transition-fast);
    flex-shrink: 0;
}

.sstr-header-icon-box:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.sstr-header-icon-box svg,
.sstr-header-icon-box i {
    width: 20px;
    height: 20px;
    font-size: 18px;
    fill: currentColor;
}

.sstr-header-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sstr-page-header-title {
    margin: 0;
    color: var(--sstr-text-primary);
    font-size: 20px;
    font-weight: 800;
    text-transform: var(--sstr-title-transform);
    letter-spacing: var(--sstr-title-letter-spacing);
    line-height: 1.2;
}

.sstr-page-header-subtitle {
    font-size: 12px;
    color: var(--sstr-text-dim);
    margin-top: 2px;
}

.sstr-page-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Accents par module pour le Header */
.sstr-accent-candidats .sstr-header-icon-box {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}
.sstr-accent-profils .sstr-header-icon-box {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c084fc;
}
.sstr-accent-posts .sstr-header-icon-box {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}
.sstr-accent-wordcloud .sstr-header-icon-box,
.sstr-accent-retweets .sstr-header-icon-box {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.sstr-accent-compare .sstr-header-icon-box {
    background: rgba(250, 204, 21, 0.2);
    border-color: rgba(250, 204, 21, 0.4);
    color: #facc15;
}
.sstr-accent-timeline .sstr-header-icon-box {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #a78bfa;
}

/* =========================================================================
   COMPOSANT : FILTER BAR (PILULE SEGMENTÉE)
   ========================================================================= */

.sstr-filter-bar,
.sstr-toggles {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--sstr-radius-pill);
    padding: 3px;
    gap: 2px;
    box-sizing: border-box;
}

.sstr-filter-btn,
.sstr-time-btn {
    background: transparent;
    border: none;
    color: var(--sstr-text-dim);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--sstr-radius-pill);
    cursor: pointer;
    transition: all var(--sstr-transition-fast);
    line-height: 1.4;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sstr-filter-btn:hover,
.sstr-time-btn:hover {
    color: var(--sstr-text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.sstr-filter-btn.active,
.sstr-time-btn.active {
    background: var(--sstr-primary);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

/* Accents sur les boutons actifs selon le module */
.sstr-accent-compare .sstr-filter-btn.active,
.sstr-accent-compare .sstr-time-btn.active {
    background: var(--sstr-accent-compare);
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(250, 204, 21, 0.4);
}
.sstr-accent-candidats .sstr-filter-btn.active,
.sstr-accent-candidats .sstr-time-btn.active {
    background: var(--sstr-accent-candidats);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}
.sstr-accent-retweets .sstr-filter-btn.active,
.sstr-accent-retweets .sstr-time-btn.active,
.sstr-accent-wordcloud .sstr-filter-btn.active,
.sstr-accent-wordcloud .sstr-time-btn.active {
    background: var(--sstr-accent-retweets);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

/* =========================================================================
   COMPOSANT : KPI TILE
   ========================================================================= */

.sstr-kpi-tile {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 110px;
}

.sstr-kpi-tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sstr-kpi-tile-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sstr-text-dim);
}

.sstr-kpi-tile-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--sstr-radius-sm);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sstr-text-secondary);
}

.sstr-kpi-tile-icon svg,
.sstr-kpi-tile-icon i {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sstr-kpi-tile-body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.sstr-kpi-tile-value {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--sstr-font-mono);
    color: var(--sstr-text-primary);
    line-height: 1;
}

.sstr-kpi-delta {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--sstr-radius-pill);
    line-height: 1.2;
}

.sstr-kpi-delta-up {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sstr-kpi-delta-down {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.sstr-kpi-delta-neutral {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* =========================================================================
   COMPOSANT : EMPTY STATE
   ========================================================================= */

.sstr-empty-state {
    text-align: center;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sstr-empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--sstr-text-dim);
}

.sstr-empty-state-icon svg,
.sstr-empty-state-icon i {
    width: 26px;
    height: 26px;
    fill: currentColor;
    font-size: 24px;
}

.sstr-empty-state-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--sstr-text-primary);
}

.sstr-empty-state-text {
    margin: 0;
    font-size: 13px;
    color: var(--sstr-text-muted);
    max-width: 420px;
    line-height: 1.5;
}

.sstr-empty-state-cta {
    margin-top: 12px;
}

/* =========================================================================
   COMPOSANT : SKELETON (SHIMMER ANIMÉ)
   ========================================================================= */

.sstr-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.sstr-skeleton-row {
    height: 18px;
    border-radius: var(--sstr-radius-sm);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.09) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 800px 100%;
    animation: sstr-shimmer 1.8s infinite linear forwards;
}

.sstr-skeleton-w100 { width: 100%; }
.sstr-skeleton-w90  { width: 90%; }
.sstr-skeleton-w80  { width: 80%; }
.sstr-skeleton-w60  { width: 60%; }

@keyframes sstr-shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position: 800px 0; }
}

/* =========================================================================
   COMPOSANT : BUTTONS
   ========================================================================= */

.sstr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--sstr-radius-md);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--sstr-font-family);
    cursor: pointer;
    transition: all var(--sstr-transition-fast);
    line-height: 1.3;
    border: none;
    text-decoration: none;
    box-sizing: border-box;
}

.sstr-btn-primary {
    background: var(--sstr-primary);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

.sstr-btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.sstr-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sstr-text-primary);
}

.sstr-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* RÈGLE SPÉCIALE : La variante DANGER n'est JAMAIS pleine largeur */
.sstr-btn-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
    width: auto !important;
    max-width: fit-content !important;
    display: inline-flex !important;
    flex-grow: 0 !important;
}

.sstr-btn-danger:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* =========================================================================
   COMPOSANT : BANDEAU DE FRAÎCHEUR (T02 ADOPTANT NÉBULEUSE)
   ========================================================================= */

.sstr-freshness-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    margin-bottom: 24px;
    border-radius: var(--sstr-radius-md);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    background: var(--sstr-card-bg);
    backdrop-filter: var(--sstr-card-blur);
    -webkit-backdrop-filter: var(--sstr-card-blur);
    border: var(--sstr-card-border);
    color: var(--sstr-text-secondary);
    transition: all var(--sstr-transition-normal);
}

.sstr-freshness-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--sstr-success);
    box-shadow: 0 0 10px var(--sstr-success);
}

.sstr-freshness-alert {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}

.sstr-freshness-alert .sstr-freshness-dot {
    background: var(--sstr-danger) !important;
    box-shadow: 0 0 10px var(--sstr-danger) !important;
}

/* =========================================================================
   STYLES EXTRAITS DES 13 VUES MIGRÉES (RESPONSIVE & MODULES)
   ========================================================================= */

/* --- Timeliner Tags & Results --- */
.sstr-res-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sstr-res-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
.sstr-res-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
.sstr-comp-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 12px;
    border-radius: var(--sstr-radius-pill);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #fff;
}
.sstr-comp-tag img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.sstr-comp-tag span {
    cursor: pointer;
    opacity: 0.5;
    font-size: 16px;
    margin-left: 5px;
}
.sstr-comp-tag span:hover {
    opacity: 1;
    color: var(--sstr-danger);
}

/* --- Posts Explorer (Desktop & Mobile) --- */
.sstr-toggle-group {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: var(--sstr-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sstr-view-btn {
    background: transparent;
    border: none;
    color: var(--sstr-text-dim);
    padding: 0 12px;
    height: 100%;
    border-radius: var(--sstr-radius-xs);
    cursor: pointer;
    transition: var(--sstr-transition-fast);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sstr-view-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.sstr-view-btn.active {
    background: var(--sstr-primary);
    color: #fff;
}

.sstr-grid-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
@media (max-width: 1200px) {
    .sstr-grid-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .sstr-grid-columns {
        grid-template-columns: 1fr;
    }
}

.sstr-post-card {
    break-inside: avoid;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}
.sstr-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sstr-post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.sstr-post-author-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.sstr-post-date {
    font-size: 11px;
    color: var(--sstr-text-dim);
    display: block;
}
.sstr-post-body {
    padding: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
}
.sstr-post-image {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sstr-post-metrics-row {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sstr-metric-bubble {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--sstr-radius-xs);
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 5px;
}
.sstr-metric-bubble.highlight {
    background: rgba(16, 185, 129, 0.15);
    color: var(--sstr-accent-wordcloud);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.sstr-perf-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.sstr-perf-avg {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}
.sstr-perf-high {
    background: rgba(16, 185, 129, 0.15);
    color: var(--sstr-accent-wordcloud);
    border-color: var(--sstr-accent-wordcloud);
}
.sstr-perf-low {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: #ef4444;
}

/* Spinner */
.sstr-spinner {
    display: inline-block;
    border-radius: 50%;
    animation: sstr-spin 1s linear infinite;
}
@keyframes sstr-spin {
    to { transform: rotate(360deg); }
}

/* --- Sémantique (Wordcloud) Animations & Interactions --- */
@keyframes sstr-word-appear {
    0%   { transform: scale(0) rotate(var(--rot, 0deg)); opacity: 0; filter: blur(10px); }
    70%  { transform: scale(1.2) rotate(var(--rot, 0deg)); opacity: var(--final-op, 0.85); }
    100% { transform: scale(1) rotate(var(--rot, 0deg)); opacity: var(--final-op, 0.85); filter: blur(0); }
}
.sstr-word-wrapper {
    display: inline-block;
}
.sstr-word-item {
    font-family: var(--sstr-font-family);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s, text-shadow 0.3s, filter 0.3s;
    display: inline-block;
    line-height: 1;
    user-select: none;
    transform: rotate(var(--rot, 0deg));
    opacity: var(--final-op, 0.85);
    animation: sstr-word-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
@media (hover: hover) and (pointer: fine) {
    .sstr-word-item:hover {
        transform: rotate(var(--rot, 0deg)) scale(1.15) translateY(-2px) !important;
        opacity: 1 !important;
        text-shadow: 0 5px 20px currentColor;
        z-index: 100;
    }
    .sstr-word-item:active {
        transform: rotate(var(--rot, 0deg)) scale(0.95) !important;
        opacity: 0.7 !important;
    }
}

/* --- Dashboard Main & Mobile Shared Layouts --- */
.sstr-card-minimal {
    background: var(--sstr-card-bg);
    backdrop-filter: var(--sstr-card-blur);
    -webkit-backdrop-filter: var(--sstr-card-blur);
    border: var(--sstr-card-border);
    border-radius: var(--sstr-radius-xl);
    padding: 25px 20px 0 20px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, background 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.sstr-card-minimal:hover {
    transform: translateY(-4px);
    background: var(--sstr-card-bg-hover);
    box-shadow: var(--sstr-shadow-lg);
    border-color: rgba(255, 255, 255, 0.18);
}
.sstr-avatar-container {
    position: relative;
    margin-bottom: 15px;
    display: inline-block;
}
.sstr-avatar-minimal {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s;
}
.sstr-card-minimal:hover .sstr-avatar-minimal {
    border-color: rgba(255, 255, 255, 0.3);
}
.sstr-name-minimal {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    letter-spacing: -0.3px;
}
.sstr-followers-label {
    font-size: 0.85rem;
    color: var(--sstr-text-muted);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.sstr-badges-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 20px;
}
.sstr-metric-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--sstr-radius-md);
    font-size: 0.85rem;
    color: var(--sstr-text-secondary);
    transition: background 0.2s;
    flex: 1;
    text-align: center;
}
.sstr-card-minimal:hover .sstr-metric-badge {
    background: rgba(255, 255, 255, 0.06);
}
.sstr-metric-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 2px;
}
.sstr-metric-val {
    font-weight: 700;
    font-family: var(--sstr-font-mono);
    font-size: 1.0rem;
}

/* Couleurs de texte et d'état */
.text-green  { color: #10b981; }
.text-yellow { color: #facc15; }
.text-red    { color: #ef4444; }
.text-grey   { color: #94a3b8; }
.bg-green-soft  { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.bg-yellow-soft { background: rgba(250, 204, 21, 0.1); border-color: rgba(250, 204, 21, 0.2); }
.bg-grey-soft   { background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.2); }
.bg-red-soft    { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }

/* Module Background Frame */
.sstr-module-bg {
    background: var(--sstr-card-bg);
    backdrop-filter: var(--sstr-card-blur);
    -webkit-backdrop-filter: var(--sstr-card-blur);
    border: var(--sstr-card-border);
    border-radius: var(--sstr-radius-xl);
    padding: 30px;
    box-shadow: var(--sstr-shadow-md);
}

/* --- Retweets Zoom Modal & Thumbnails --- */
.sstr-rt-thumb-container {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    position: relative;
    z-index: 1;
}
.sstr-rt-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    transition: opacity 0.3s;
    cursor: zoom-in;
}
.sstr-rt-thumb-container:hover .sstr-rt-thumb-img {
    opacity: 1;
}
.sstr-rt-full-zoom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.70);
    backdrop-filter: blur(10px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    animation: sstr-fade-in 0.3s ease-out;
}
.sstr-rt-thumb-container:hover .sstr-rt-full-zoom {
    display: flex;
}
.sstr-rt-full-zoom img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
@keyframes sstr-fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* --- Compare Mobile Drawer & Canvas Lock --- */
@media (max-width: 768px) {
    .sstr-mobile-only {
        display: flex !important;
    }
    #sstrCompRadarContainer {
        display: none !important;
    }
    #sstrCompBarContainer, #sstrCompRadarContainer {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }
    #sstrCompBarContainer div, #sstrCompRadarContainer div {
        height: 320px !important;
    }
    .sstr-multi-options {
        position: fixed !important;
        bottom: -100% !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        height: 60dvh !important;
        max-height: 60dvh !important;
        background: rgba(30, 41, 59, 0.72) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border-radius: 20px 20px 0 0 !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        z-index: 9999999 !important;
        box-shadow: 0 -15px 40px rgba(0,0,0,0.6) !important;
        transition: bottom 0.3s cubic-bezier(0.32, 0.94, 0.6, 1) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .sstr-multi-select.open .sstr-multi-options {
        bottom: 0 !important;
    }
    body:has(.sstr-multi-select.open) {
        overflow: hidden !important;
    }
}

/* --- Mobile Specific Adaptations (<= 768px) --- */
@media (max-width: 768px) {
    .sstr-dashboard-dark {
        margin-top: 0 !important;
        padding-top: 10px !important;
        padding-bottom: 90px !important;
    }
    .sstr-container {
        padding-bottom: 90px !important;
    }
    .sstr-page-header,
    .sstr-glass-bar {
        padding: 12px 14px !important;
        margin-bottom: 16px !important;
    }
    .sstr-page-header-title {
        font-size: 17px !important;
    }
    .sstr-page-header-actions {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    .sstr-filter-bar,
    .sstr-toggles {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .sstr-filter-btn,
    .sstr-time-btn {
        flex: 1 !important;
        padding: 6px 4px !important;
        font-size: 10px !important;
        text-align: center !important;
    }

    #candidatsChart {
        max-height: 380px !important;
    }
}

/* Masquage des en-têtes natifs du thème sur les vues dashboard SSTR */
.sstr-dashboard-dark .page-header,
.sstr-dashboard-dark .entry-header,
.sstr-dashboard-dark .entry-title,
.sstr-dashboard-dark .page-title,
.page-header, .entry-header, .entry-title, .page-title, #page-title,
.vk-page-header, .vk-page-title, .section-header, .section-title,
.page-header-title, .page-open-title {
    display: none !important;
}
.sstr-dashboard-dark {
    margin-top: -100px !important;
}
.content-grid {
    padding-top: 0 !important;
}

/* Mobile Candidats Component Styles */
.sstr-mobile-cand-app {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    box-sizing: border-box;
    padding: 0 16px;
}
.sstr-mobile-top-control-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    box-sizing: border-box;
    width: 100%;
}
.sstr-mobile-period-segmented {
    display: flex;
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2px;
    overflow: hidden;
}
.sstr-mobile-period-segmented .sstr-mobile-period-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 700;
    padding: 6px 0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.sstr-mobile-period-segmented .sstr-mobile-period-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.sstr-mobile-top-filter-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    height: 32px;
    box-sizing: border-box;
}
.sstr-mobile-top-filter-btn:active {
    transform: scale(0.95);
    background: rgba(239, 68, 68, 0.25);
}
.sstr-mobile-control-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.sstr-mobile-chart-container {
    width: 100%;
    height: 380px;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    position: relative;
    box-sizing: border-box;
}
.sstr-cand-drawer {
    position: static !important;
    background: rgba(30, 41, 59, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 15px !important;
    display: none;
    width: 100% !important;
    box-sizing: border-box !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
    z-index: 100 !important;
}

/* Mobile Posts Component Styles */
.sstr-mobile-posts-app {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    box-sizing: border-box;
}
.sstr-mobile-posts-kpis {
    display: flex;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.sstr-mobile-kpi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sstr-mobile-kpi-label {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}
.sstr-mobile-kpi-val {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}
.sstr-mobile-posts-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
    box-sizing: border-box;
}
.sstr-posts-drawer {
    position: static !important;
    background: rgba(30, 41, 59, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
    display: none;
    width: 100% !important;
    box-sizing: border-box !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
    z-index: 100 !important;
}

/* Sémantique Wordcloud Responsive */
@media (max-width: 768px) {
    .sstr-desktop-filters {
        display: none !important;
    }
    .sstr-desktop-search-container {
        display: none !important;
    }
    #sstrFloatingFilterTrigger {
        display: flex !important;
    }
    #sstrCloudSection, #sstrCloudContainer {
        min-height: 380px !important;
    }
    #sstrWordCloud2D {
        padding: 10px !important;
    }
}

/* --- Dashboard Main Carousel & Swiper Styles --- */
.sstr-range-toggles .active { background: #3b82f6 !important; color: #fff !important; }
.sstr-recent-grid, .sstr-slider-grid { display: none; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 5px; scrollbar-width: none; width: 100%; max-width: 100%; box-sizing: border-box; }
.sstr-recent-grid::-webkit-scrollbar, .sstr-slider-grid::-webkit-scrollbar { display: none; }
.sstr-recent-grid.active { display: flex; }
.sstr-slider-grid { display: flex; }

/* Carousel Controls (T05: bounded to prevent horizontal overflow) */
.sstr-carousel-wrapper { position: relative; max-width: 100%; box-sizing: border-box; overflow: hidden; }
.sstr-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(30, 41, 59, 0.70); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.1); color: #fff; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: 0.3s; opacity: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.sstr-carousel-wrapper:hover .sstr-carousel-btn { opacity: 1; }
.sstr-carousel-btn:hover { background: #3b82f6; border-color: #60a5fa; }
.sstr-prev { left: 4px; }
.sstr-next { right: 4px; }
@media(max-width: 768px) { .sstr-prev { left: 4px; opacity: 1; } .sstr-next { right: 4px; opacity: 1; } }
.sstr-carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 15px; }
.sstr-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); cursor: pointer; transition: 0.3s; }
.sstr-dot.active { background: #3b82f6; transform: scale(1.4); }

.sstr-glass-card a:hover { background: rgba(255,255,255,0.1) !important; }

@media (max-width: 768px) {
    .sstr-module-bg div[style*="display: flex; gap: 8px; align-items: center; background: rgba(0,0,0,0.3)"] {
        display: none !important;
    }
    .sstr-control-bar {
        display: none !important;
    }
    .sstr-floating-trigger {
        display: flex !important;
    }
    .sstr-grid-minimal {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        padding: 5px 0 20px 0 !important;
        scrollbar-width: none !important;
        gap: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .sstr-grid-minimal::-webkit-scrollbar {
        display: none !important;
    }
    .sstr-grid-minimal .sstr-card-minimal {
        min-width: 250px !important;
        max-width: 250px !important;
        flex: 0 0 250px !important;
        scroll-snap-align: center;
        margin-bottom: 0 !important;
        padding: 20px 15px !important;
        background: rgba(30, 41, 59, 0.70) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 16px !important;
    }
    .sstr-avatar-minimal {
        width: 60px !important;
        height: 60px !important;
    }
    .sstr-name-minimal {
        font-size: 14px !important;
    }
    .sstr-metric-badge {
        padding: 6px 10px !important;
        font-size: 10px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }
    .sstr-metric-val {
        font-size: 13px !important;
    }
    .sstr-recent-grid .sstr-post-card {
        min-width: 280px !important;
        max-width: 280px !important;
        flex: 0 0 280px !important;
        scroll-snap-align: center;
    }
}

/* Mobile Dashboard Specific Components */
.sstr-mobile-dashboard-app {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    box-sizing: border-box;
}
.sstr-mobile-scrollable-content {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}
.sstr-mobile-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.sstr-mobile-kpi-card {
    background: rgba(30, 41, 59, 0.50);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sstr-mobile-kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.sstr-mobile-kpi-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sstr-mobile-kpi-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}
.sstr-mobile-kpi-val {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    font-family: 'Inter', monospace;
}
.sstr-mobile-section-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sstr-mobile-swiper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.sstr-mobile-swiper::-webkit-scrollbar {
    display: none;
}
.sstr-mobile-profile-card {
    scroll-snap-align: center;
    background: rgba(30, 41, 59, 0.50);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    min-width: 170px;
    max-width: 170px;
    flex: 0 0 170px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.sstr-mobile-profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    margin-bottom: 8px;
}
.sstr-mobile-profile-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.sstr-mobile-profile-foll {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.sstr-mobile-profile-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sstr-mobile-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 10px;
}
.sstr-mobile-badge-lbl {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 8px;
}
.sstr-mobile-badge-val {
    font-weight: 700;
    font-family: monospace;
}
.sstr-mobile-post-card {
    scroll-snap-align: center;
    background: rgba(30, 41, 59, 0.50);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    min-width: 250px;
    max-width: 250px;
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}
.sstr-mobile-post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.sstr-mobile-post-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
.sstr-mobile-post-author-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sstr-mobile-post-author {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sstr-mobile-post-date {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.4);
}
.sstr-mobile-post-body {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sstr-mobile-post-iq {
    display: flex;
    gap: 4px;
}
.sstr-iq-pill {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 5px;
}
.sstr-iq-pill.global {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.sstr-iq-pill.local {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}
.sstr-er-pill {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    margin-left: auto;
}
.sstr-mobile-drawer {
    position: static !important;
    background: rgba(30, 41, 59, 0.50) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin-bottom: 15px !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    display: none;
    width: calc(100% - 32px) !important;
    box-sizing: border-box !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
    z-index: 100 !important;
}

/* =========================================================================
   COMPOSANT : HUBS DE NAVIGATION & COCKPIT ACCUEIL (T13)
   ========================================================================= */

/* --- COULEURS ET ACCENTS PAR MODULE --- */
.sstr-accent-candidats  { --card-primary: #ef4444; --card-glow: rgba(239, 68, 68, 0.45); }
.sstr-accent-profils    { --card-primary: #a855f7; --card-glow: rgba(168, 85, 247, 0.45); }
.sstr-accent-posts      { --card-primary: #3b82f6; --card-glow: rgba(59, 130, 246, 0.45); }
.sstr-accent-wordcloud  { --card-primary: #10b981; --card-glow: rgba(168, 85, 247, 0.45); }
.sstr-accent-compare    { --card-primary: #fbbf24; --card-glow: rgba(251, 191, 36, 0.45); }
.sstr-accent-retweets   { --card-primary: #10b981; --card-glow: rgba(16, 185, 129, 0.45); }
.sstr-accent-scrutins   { --card-primary: #3b82f6; --card-glow: rgba(59, 130, 246, 0.45); }
.sstr-accent-deputes    { --card-primary: #a855f7; --card-glow: rgba(168, 85, 247, 0.45); }
.sstr-accent-storyboard { --card-primary: #ec4899; --card-glow: rgba(236, 72, 153, 0.45); }
.sstr-accent-dev        { --card-primary: #6366f1; --card-glow: rgba(99, 102, 241, 0.45); }

/* --- GRILLES RESPONSIVES (4 -> 2 -> 1) --- */
.sstr-responsive-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sstr-responsive-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sstr-responsive-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .sstr-responsive-grid-4,
    .sstr-responsive-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .sstr-responsive-grid-4,
    .sstr-responsive-grid-3,
    .sstr-responsive-grid-2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* --- ANIMATION D'ENTRÉE DISCRÈTE (prefers-reduced-motion pris en compte) --- */
@keyframes sstrCardEnter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sstr-hub-card,
.sstr-kpi-tile,
.sstr-home-post-card {
    animation: sstrCardEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.sstr-hub-grid .sstr-hub-card:nth-child(1) { animation-delay: 0.03s; }
.sstr-hub-grid .sstr-hub-card:nth-child(2) { animation-delay: 0.06s; }
.sstr-hub-grid .sstr-hub-card:nth-child(3) { animation-delay: 0.09s; }
.sstr-hub-grid .sstr-hub-card:nth-child(4) { animation-delay: 0.12s; }
.sstr-hub-grid .sstr-hub-card:nth-child(5) { animation-delay: 0.15s; }
.sstr-hub-grid .sstr-hub-card:nth-child(6) { animation-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
    .sstr-hub-card,
    .sstr-kpi-tile,
    .sstr-home-post-card {
        animation: none !important;
        transition: none !important;
    }
}

/* --- CARTES DE HUBS (SSTR-HUB-CARD) --- */
.sstr-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

.sstr-hub-card {
    position: relative;
    background: var(--sstr-card-bg);
    backdrop-filter: var(--sstr-card-blur);
    -webkit-backdrop-filter: var(--sstr-card-blur);
    border: var(--sstr-card-border);
    border-radius: var(--sstr-radius-xl);
    padding: 30px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--sstr-transition-normal),
                border-color var(--sstr-transition-normal),
                box-shadow var(--sstr-transition-normal),
                background var(--sstr-transition-normal);
    box-shadow: var(--sstr-shadow-md);
    box-sizing: border-box;
}

.sstr-hub-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.24);
    background: var(--sstr-card-bg-hover);
    box-shadow: var(--sstr-shadow-lg), 0 0 24px var(--card-glow, rgba(59, 130, 246, 0.3));
}

.sstr-hub-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, var(--card-glow, rgba(59, 130, 246, 0.3)) 0%, transparent 70%);
    opacity: 0.12;
    transition: opacity var(--sstr-transition-normal);
    pointer-events: none;
}

.sstr-hub-card:hover .sstr-hub-card-glow {
    opacity: 0.25;
}

.sstr-hub-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sstr-hub-card-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--sstr-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--card-primary, var(--sstr-primary));
    font-size: 22px;
    transition: transform var(--sstr-transition-normal),
                background var(--sstr-transition-normal),
                box-shadow var(--sstr-transition-normal),
                color var(--sstr-transition-normal);
}

.sstr-hub-card-icon-box svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.sstr-hub-card:hover .sstr-hub-card-icon-box {
    background: var(--card-primary, var(--sstr-primary));
    color: #ffffff;
    transform: rotate(-4deg) scale(1.05);
    box-shadow: 0 0 20px var(--card-glow, rgba(59, 130, 246, 0.5));
}

.sstr-hub-card-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--sstr-text-primary);
    font-family: var(--sstr-font-family);
    letter-spacing: -0.2px;
}

.sstr-hub-card-desc {
    font-size: 13.5px;
    color: var(--sstr-text-muted);
    line-height: 1.55;
    margin: 0 0 16px 0;
    flex: 1;
}

.sstr-hub-card-mini {
    margin-bottom: 18px;
}

.sstr-hub-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--sstr-radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--sstr-text-secondary);
}

.sstr-hub-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--card-primary, var(--sstr-primary));
    transition: gap var(--sstr-transition-fast);
}

.sstr-hub-card:hover .sstr-hub-card-footer {
    gap: 12px;
}

.sstr-hub-arrow {
    transition: transform var(--sstr-transition-fast);
}

.sstr-hub-card:hover .sstr-hub-arrow {
    transform: translateX(4px);
}

.sstr-hub-card-filigree {
    position: absolute;
    right: -15px;
    bottom: -15px;
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 0;
    color: var(--card-primary, var(--sstr-primary));
}

/* --- ÉTAT CARTE GRISÉE / ACCÈS RÉSERVÉ --- */
.sstr-card-locked,
.sstr-hub-card.sstr-card-locked {
    opacity: 0.52;
    filter: grayscale(0.85);
    cursor: not-allowed !important;
}

.sstr-card-locked:hover,
.sstr-hub-card.sstr-card-locked:hover {
    transform: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: var(--sstr-card-bg) !important;
    box-shadow: var(--sstr-shadow-md) !important;
}

.sstr-card-locked .sstr-hub-card-icon-box {
    transform: none !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
}

.sstr-hub-card-footer.sstr-locked {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.sstr-card-locked-icon {
    display: inline-flex;
    align-items: center;
}

/* --- CARTES ATELIER (FORMAT COMPACT) --- */
.sstr-hub-card-sm {
    padding: 22px 24px;
    border-radius: var(--sstr-radius-lg);
}

.sstr-hub-card-sm .sstr-hub-card-icon-box {
    width: 44px;
    height: 44px;
    font-size: 19px;
    margin-bottom: 14px;
}

.sstr-hub-card-sm .sstr-hub-card-title {
    font-size: 17px;
    margin-bottom: 6px;
}

.sstr-hub-card-sm .sstr-hub-card-desc {
    font-size: 13px;
    margin-bottom: 12px;
}

/* --- PAGE D'ACCUEIL COCKPIT --- */
.sstr-home-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    box-sizing: border-box;
}

.sstr-home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.sstr-home-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    color: #ffffff;
    font-family: var(--sstr-font-family);
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sstr-home-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--sstr-text-muted);
}

.sstr-section-header {
    margin: 36px 0 18px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.sstr-section-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--sstr-text-primary);
    margin: 0;
}

.sstr-section-subtitle {
    font-size: 13px;
    color: var(--sstr-text-muted);
}

/* Pastille état collecteur T07 */
.sstr-collector-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--sstr-radius-pill);
    font-size: 12px;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: var(--sstr-card-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sstr-collector-pill .sstr-collector-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sstr-collector-pill .sstr-collector-dot.green {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.sstr-collector-pill .sstr-collector-dot.orange {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.sstr-collector-pill .sstr-collector-dot.red {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

/* --- CARTES COMPACTES « À LA UNE » --- */
.sstr-home-post-card {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sstr-home-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.sstr-home-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sstr-home-post-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sstr-home-post-author {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--sstr-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sstr-home-post-handle {
    font-size: 12px;
    color: var(--sstr-text-muted);
}

.sstr-home-post-shot-wrap {
    width: 100%;
    max-height: 135px;
    border-radius: var(--sstr-radius-md);
    overflow: hidden;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.sstr-home-post-shot {
    width: 100%;
    height: 135px;
    object-fit: cover;
    display: block;
}

.sstr-home-post-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--sstr-text-secondary);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.sstr-home-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.sstr-home-er-badge {
    padding: 3px 8px;
    border-radius: var(--sstr-radius-sm);
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    font-weight: 700;
    font-size: 11px;
}

.sstr-home-post-metrics {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sstr-text-muted);
}

.sstr-home-post-link {
    color: var(--sstr-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.sstr-home-post-link:hover {
    text-decoration: underline;
}

.sstr-kpi-value-link {
    color: var(--sstr-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sstr-kpi-value-link:hover {
    text-decoration: underline;
}

/* =========================================================================
   T14 : BOUTONS COMPACTS, PUCES SUPPRIMABLES & FOCUS CLAVIER ACCESSIBLE
   ========================================================================= */

.sstr-btn-compact-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: var(--sstr-radius-pill) !important;
    width: auto !important;
    max-width: fit-content !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--sstr-transition-fast);
}

.sstr-btn-compact-danger:hover {
    background: rgba(239, 68, 68, 0.22) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.sstr-btn-compact-danger:focus-visible {
    outline: 2px solid #ef4444 !important;
    outline-offset: 2px;
}

.sstr-tag-remove-btn {
    background: transparent !important;
    border: none !important;
    color: inherit !important;
    cursor: pointer;
    padding: 0 4px !important;
    margin-left: 4px;
    font-size: 15px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--sstr-transition-fast), color var(--sstr-transition-fast), transform var(--sstr-transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sstr-tag-remove-btn:hover {
    opacity: 1;
    color: #ef4444 !important;
    transform: scale(1.15);
}

.sstr-tag-remove-btn:focus-visible {
    outline: 2px solid var(--sstr-primary);
    outline-offset: 1px;
    border-radius: 4px;
    opacity: 1;
}

.sstr-comp-tag:focus-within {
    border-color: var(--sstr-primary) !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* --- T07 : PASTILLE STATUT COLLECTEUR (MAC PULSE) --- */
.sstr-collector-status-pill {
    display: inline-block;
    position: relative;
    user-select: none;
}

.sstr-collector-status-pill summary {
    list-style: none;
    outline: none;
}

.sstr-collector-status-pill summary::-webkit-details-marker {
    display: none;
}

.sstr-collector-status-pill[open] .sstr-collector-arrow {
    transform: rotate(180deg);
}

.sstr-collector-status-pill .sstr-collector-summary:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

/* =========================================================================
   T08 : RADAR DU JOUR ([sstr_radar])
   ========================================================================= */

.sstr-radar-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 24px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: #f8fafc;
}

.sstr-radar-locked {
    text-align: center;
    padding: 40px 20px;
}

.sstr-radar-lock-msg {
    font-size: 16px;
    color: #94a3b8;
    margin: 0;
}

.sstr-radar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sstr-radar-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sstr-radar-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.sstr-radar-current-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    font-family: monospace;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
}

.sstr-radar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sstr-radar-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sstr-radar-nav-btn:hover:not(.sstr-radar-nav-disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.sstr-radar-nav-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.sstr-radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.sstr-radar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.2s ease;
}

.sstr-radar-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.sstr-radar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}

.sstr-radar-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.sstr-radar-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sstr-radar-post-list,
.sstr-radar-amp-list,
.sstr-radar-theme-list,
.sstr-radar-new-accounts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sstr-radar-post-item,
.sstr-radar-amp-item,
.sstr-radar-theme-item,
.sstr-radar-new-account-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sstr-radar-post-meta,
.sstr-radar-amp-header,
.sstr-radar-theme-header,
.sstr-radar-new-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sstr-radar-handle,
.sstr-radar-target-handle,
.sstr-radar-theme-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.sstr-radar-metrics {
    display: flex;
    gap: 6px;
}

.sstr-badge-delta {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.sstr-badge-amp {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
}

.sstr-badge-trend-diff {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.sstr-badge-sensible {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.sstr-badge-interactions {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.sstr-radar-excerpt {
    font-size: 12px;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.sstr-radar-post-link {
    font-size: 12px;
    font-weight: 600;
    color: #38bdf8;
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.2s ease;
}

.sstr-radar-post-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.sstr-radar-total-views,
.sstr-radar-first-seen {
    font-size: 11px;
    color: #94a3b8;
}

.sstr-radar-amp-relays {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

.sstr-relay-cnt {
    font-weight: 700;
    color: #e2e8f0;
}

.sstr-radar-theme-shares {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: #94a3b8;
}

.sstr-theme-share strong {
    color: #f1f5f9;
}

.sstr-empty-notice {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin: 0;
    padding: 8px 0;
}









