/*
Theme Name: Agente Press
Theme URI: https://agentedeprensa.news
Author: Wiiitman / William Angarita
Description: Un tema moderno para noticias locales y nacionales.
Version: 1.0.0
Text Domain: agente-prensa
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* â”€â”€ Agente de Prensa Â· Design Tokens â”€â”€ */
    --bg-main: #fcfdfe;
    --bg-secondary: #f0f3f6;
    --text-primary: #0f1419;
    --text-secondary: #536471;
    --border-line: #eff3f4;
    /* Brand accent â€” light mode */
    --accent-blue: #1d9bf0;
    --accent-blue-hover: #1a8cd8;
    --accent-blue-light: rgba(29, 155, 240, 0.08);
    /* Liked / active state */
    --color-liked: #ff6b35;
    --color-liked-light: rgba(255, 107, 53, 0.12);
    /* Repost / confirm state */
    --color-repost: #1d9bf0;
    --color-repost-light: rgba(29, 155, 240, 0.12);
    --hover-gray: #f7f9fa;
    --card-bg: #ffffff;
    --glow-color: rgba(29, 155, 240, 0.1);
    --card-border: #edf2f7;
}

[data-theme="dark"] {
    --bg-main: #000000;
    --bg-secondary: #16181c;
    --text-primary: #e7e9ea;
    --text-secondary: #71767b;
    --border-line: #2f3336;
    --hover-gray: #181818;
    /* Brand accent â€” dark mode */
    --accent-blue: #00e5ff;
    --accent-blue-hover: #00b8d4;
    --accent-blue-light: rgba(0, 229, 255, 0.10);
    /* Liked / active state â€” gold premium */
    --color-liked: #ffaa00;
    --color-liked-light: rgba(255, 170, 0, 0.12);
    /* Repost / confirm state */
    --color-repost: #00e5ff;
    --color-repost-light: rgba(0, 229, 255, 0.12);
    --card-bg: #16181c;
    --glow-color: transparent;
    --card-border: var(--border-line);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

body {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
    line-height: 1.3;
}

[data-theme="dark"] body {
    background: var(--bg-main);
}

/* Neural Background Grid */
.neural-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(29, 155, 240, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
}

[data-theme="dark"] .neural-bg-grid {
    opacity: 1;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0, 229, 255, 0.07) 1px, transparent 0);
    animation: neuralGridFade 10s infinite alternate;
}

@keyframes neuralGridFade {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

@keyframes neuralGridMove {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

/* ============================================
   DESKTOP LAYOUT (PC - CENTRADO MATEMÃTICO)
   ============================================ */
.app-grand-wrap {
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.main-layout-constraint {
    display: flex;
    width: 100%;
    max-width: 1100px;
    position: relative;
}

/* ============================================
   SIDEBAR IZQUIERDA â€” AI / NEURAL DESIGN
   ============================================ */

/* Keyframes for AI effects */
@keyframes neuroPulse {

    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(29, 155, 240, 0.4));
    }

    50% {
        opacity: 0.85;
        filter: drop-shadow(0 0 14px rgba(29, 155, 240, 0.7));
    }
}

@keyframes neuralLine {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 200%;
    }
}

@keyframes neuroPulse {
    0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 5px var(--accent-blue)); }
    50% { opacity: 1; filter: drop-shadow(0 0 15px var(--accent-blue)); }
}

@keyframes dataScan {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(100%); opacity: 0; }
}

@keyframes glowMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes neuralFlow {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(200%) rotate(45deg); }
}

@keyframes progressPulse {
    0% { box-shadow: 0 0 5px rgba(0, 255, 204, 0.2); }
    50% { box-shadow: 0 0 15px rgba(0, 255, 204, 0.6); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 204, 0.2); }
}

@keyframes streamMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- SUPREME NEURAL LIKE ANIMATION --- */
@keyframes supremePop {
    0% { transform: scale(1) rotate(0); }
    30% { transform: scale(1.6) rotate(-20deg); }
    50% { transform: scale(0.8) rotate(15deg); }
    80% { transform: scale(1.2) rotate(-5deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes neuralRing {
    0% { transform: translate(-50%, -50%) scale(0.1); opacity: 1; border-width: 8px; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; border-width: 1px; }
}

@keyframes neuralSpark {
    0% { transform: translate(-50%, -50%) scale(0) rotate(0); opacity: 0; }
    20% { opacity: 1; }
    100% { 
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.8) rotate(360deg); 
        opacity: 0; 
    }
}

/* ============================================
   AI ROBOT LIKE BUTTON SYSTEM
   ============================================ */
/* ── Corazón: latido de reposo ── */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14%  { transform: scale(1.35); }
    28%  { transform: scale(1.0); }
    42%  { transform: scale(1.25); }
    70%  { transform: scale(1); }
}

/* ── Corazón: explosión al dar like ── */
@keyframes heartPop {
    0%   { transform: scale(1) rotate(0deg); filter: none; }
    20%  { transform: scale(0.8) rotate(-15deg); }
    50%  { transform: scale(2.2) rotate(10deg); color: #e0245e; filter: drop-shadow(0 0 12px #e0245e) drop-shadow(0 0 24px #ff6b9d); }
    75%  { transform: scale(1.4) rotate(-5deg); filter: drop-shadow(0 0 6px #e0245e); }
    100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 4px rgba(224,36,94,0.5)); }
}

/* ── Repost: giro + flash verde ── */
@keyframes repostSpin {
    0%   { transform: scale(1) rotate(0deg); }
    30%  { transform: scale(1.4) rotate(180deg); color: #00ba7c; filter: drop-shadow(0 0 8px #00ba7c); }
    70%  { transform: scale(1.1) rotate(340deg); color: #00ba7c; }
    100% { transform: scale(1) rotate(360deg); }
}

/* ── Comentario: burbuja que sube ── */
@keyframes commentBubble {
    0%   { transform: scale(1) translateY(0); }
    25%  { transform: scale(1.5) translateY(-6px); filter: drop-shadow(0 0 8px var(--accent-blue)); }
    55%  { transform: scale(0.9) translateY(-2px); }
    75%  { transform: scale(1.15) translateY(-1px); }
    100% { transform: scale(1) translateY(0); }
}

/* ── Share: vuela hacia arriba ── */
@keyframes shareFly {
    0%   { transform: scale(1) translate(0, 0) rotate(0deg); }
    35%  { transform: scale(1.3) translate(4px, -10px) rotate(20deg); filter: drop-shadow(0 0 10px #1d9bf0); color: #1d9bf0; }
    65%  { transform: scale(0.85) translate(2px, -4px) rotate(10deg); }
    100% { transform: scale(1) translate(0, 0) rotate(0deg); }
}

/* ── Ojo: parpadeo ── */
@keyframes eyeBlink {
    0%   { transform: scale(1, 1); }
    15%  { transform: scale(1, 0.05); filter: drop-shadow(0 0 4px #22d3ee); }
    30%  { transform: scale(1.3, 1.3); color: #22d3ee; filter: drop-shadow(0 0 10px #22d3ee); }
    60%  { transform: scale(1.1, 1.1); }
    100% { transform: scale(1, 1); }
}

@keyframes robotDataBit {
    0%   { transform: translate(-50%,-50%) translate(var(--dx),var(--dy)) scale(0); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translate(-50%,-50%) translate(calc(var(--dx)*3.5), calc(var(--dy)*3.5)) scale(0.5); opacity: 0; }
}


.like-trigger {
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.pulse-like-icon {
    position: relative;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.pulse-like-icon .heartbeat-icon {
    font-size: 1.1rem;
    display: inline-block;
    line-height: 1;
    animation: heartbeat 1.8s ease-in-out infinite;
    transition: color 0.3s, filter 0.3s;
}

/* â”€â”€â”€ HOVER: Fondo hologrÃ¡fico IA â”€â”€â”€ */
.like-trigger:hover {
    background: radial-gradient(ellipse at center, rgba(224, 36, 94, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.like-trigger:hover .pulse-like-icon {
    color: #e0245e;
}

.like-trigger:hover .heartbeat-icon {
    filter: drop-shadow(0 0 6px rgba(224, 36, 94, 0.6));
    animation: heartbeat 1.0s ease-in-out infinite;
}

.like-trigger.liked .pulse-like-icon {
    color: var(--color-liked);
}

.like-trigger.liked .heartbeat-icon {
    filter: drop-shadow(0 0 8px var(--color-liked));
    animation: heartbeat 1.1s ease-in-out infinite;
}

.like-trigger.animating .pulse-like-icon .heartbeat-icon {
    animation: heartPop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.3) forwards !important;
    color: #e0245e;
}


.like-trigger .neural-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.like-trigger .neural-particle:nth-child(1) { --dx: -18px; --dy: -16px; background: #00e5ff; }
.like-trigger .neural-particle:nth-child(2) { --dx: 18px;  --dy: -14px; background: #ffaa00; width:3px; height:3px; }
.like-trigger .neural-particle:nth-child(3) { --dx: -20px; --dy: 12px;  background: #00e5ff; width:5px; height:5px; }
.like-trigger .neural-particle:nth-child(4) { --dx: 16px;  --dy: 16px;  background: #00e5ff; }
.like-trigger .neural-particle:nth-child(5) { --dx: 0px;   --dy: -22px; background: #ffaa00; width:3px; height:3px; }

.like-trigger.animating .neural-particle:nth-child(1) { animation: robotDataBit 0.65s ease-out 0s forwards; }
.like-trigger.animating .neural-particle:nth-child(2) { animation: robotDataBit 0.65s ease-out 0.05s forwards; }
.like-trigger.animating .neural-particle:nth-child(3) { animation: robotDataBit 0.65s ease-out 0.1s forwards; }
.like-trigger.animating .neural-particle:nth-child(4) { animation: robotDataBit 0.65s ease-out 0.12s forwards; }
.like-trigger.animating .neural-particle:nth-child(5) { animation: robotDataBit 0.65s ease-out 0.15s forwards; }

.like-trigger .robot-approved {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translate(-50%, -60%) scale(0.7);
    background: linear-gradient(90deg, #00e5ff, #ffaa00);
    color: #000;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    z-index: 20;
}

.like-trigger.animating .robot-approved {
    animation: approvedFlash 0.8s ease forwards;
}
/* â”€â”€â”€ DARK CARD GLOW on liked state â”€â”€â”€ */
.like-trigger.liked {
    background: radial-gradient(ellipse at center,
        rgba(255, 170, 0, 0.16) 0%,
        rgba(0, 229, 255, 0.04) 55%,
        transparent 80%);
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(255, 170, 0, 0.30),
        0 0 20px rgba(255, 170, 0, 0.14);
}

/* â”€â”€â”€ Hover glow on the action bar wrapper too â”€â”€â”€ */
.ta-btn.like-trigger,
.stat-item.like-trigger {
    padding: 5px 8px;
    border-radius: 99px;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.ta-btn.like-trigger:hover,
.stat-item.like-trigger:hover {
    background: radial-gradient(ellipse at center,
        rgba(0, 229, 255, 0.15) 0%,
        rgba(0, 229, 255, 0.04) 60%,
        transparent 80%);
    box-shadow:
        0 0 0 1px rgba(0, 229, 255, 0.2),
        0 0 22px rgba(0, 229, 255, 0.14),
        0 0 6px rgba(0, 229, 255, 0.08) inset;
    transform: scale(1.08);
    border-radius: 99px;
}

/* â”€â”€â”€ Extra keyframes for neural circuit background on hover â”€â”€â”€ */
@keyframes neuralCircuit {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* â”€â”€â”€ Liked state of wrapping buttons â”€â”€â”€ */
.ta-btn.like-trigger.liked,
.stat-item.like-trigger.liked {
    background: radial-gradient(ellipse at center,
        rgba(255, 170, 0, 0.18) 0%,
        rgba(0, 229, 255, 0.04) 60%,
        transparent 80%);
    box-shadow:
        0 0 0 1px rgba(255, 170, 0, 0.32),
        0 0 20px rgba(255, 170, 0, 0.18);
}

.sidebar-primary {
    width: 72px;
    border-right: 1px solid var(--border-line);
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    overflow: visible;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
    z-index: 100;
}

[data-theme="light"] .sidebar-primary {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

/* Neural accent line on right border */
[data-theme="dark"] .sidebar-primary {
    border-right-color: transparent;
    background: linear-gradient(180deg, #000000 0%, #050a14 50%, #000000 100%);
}

[data-theme="dark"] .sidebar-primary::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 229, 255, 0.06) 15%,
            rgba(29, 155, 240, 0.3) 30%,
            rgba(0, 229, 255, 0.5) 50%,
            rgba(29, 155, 240, 0.3) 70%,
            rgba(0, 229, 255, 0.06) 85%,
            transparent 100%);
    background-size: 100% 200%;
    animation: neuralLine 6s linear infinite;
}

/* === LOGO AI === */
.x-logo-box {
    padding: 0;
    color: var(--accent-blue);
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 12px auto 8px;
    border-radius: 14px;
    position: relative;
}
/* Ocultar texto del logo en sidebar compacto */
.x-logo-box .x-logo-text { display: none; }
.logo-translate-inline { margin-left: auto; display: flex; align-items: center; }
.logo-translate-inline .gt-current-lang,
.logo-translate-inline select { display: none !important; }
.logo-translate-inline .gt-lang-code { display: none; }
.m-translate-inline { display: flex; align-items: center; margin: 0 4px; }
.m-translate-inline .gt-current-lang,
.m-translate-inline select { display: none !important; }

/* Botón globo + dropdown de idiomas mobile */
.m-translate-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 2px;
}
.m-translate-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.m-translate-btn:hover, .m-translate-btn.active {
    color: var(--accent-blue);
}
.m-translate-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-line);
    border-radius: 12px;
    padding: 8px;
    z-index: 9999;
    min-width: 120px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.m-translate-dropdown.open {
    display: block;
}
.m-translate-dropdown .gt-current-lang,
.m-translate-dropdown select { display: none !important; }
.m-translate-dropdown img {
    width: 22px !important;
    height: 16px !important;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}
.m-translate-dropdown img:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* === SUBMENU PUBLICIDAD === */
.x-nav-has-sub {
    position: relative;
    cursor: pointer;
}
.x-nav-submenu {
    position: absolute;
    left: calc(100% + 15px);
    top: -10px;
    background: var(--bg-secondary, #1a1a2e);
    border: 1px solid var(--border-line);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-10px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 99999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
/* Puente invisible reducido para evitar que se pegue al salir */
.x-nav-submenu::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    width: 20px;
    height: 100%;
}
.x-nav-has-sub:hover .x-nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}
.x-nav-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.x-nav-sub-item:hover,
.x-nav-sub-item.active {
    background: rgba(29, 155, 240, 0.08);
    color: var(--accent-blue);
}
.x-nav-sub-item i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}
[data-theme="dark"] .x-nav-submenu {
    background: #0d1117;
    border-color: rgba(0,229,255,0.15);
    box-shadow: 0 6px 28px rgba(0,0,0,0.6);
}
[data-theme="dark"] .x-nav-sub-item:hover,
[data-theme="dark"] .x-nav-sub-item.active {
    background: rgba(0, 229, 255, 0.07);
    color: var(--accent-blue);
}

.x-logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    letter-spacing: -0.3px;
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    opacity: 0.9;
}

.x-logo-box i {
    color: var(--accent-blue);
    filter: drop-shadow(0 0 8px var(--accent-blue-light));
    animation: neuroPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.x-logo-box:hover {
    background: rgba(29, 155, 240, 0.12);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(29, 155, 240, 0.15);
}

[data-theme="dark"] .x-logo-box {
    background: rgba(0, 229, 255, 0.06);
    color: var(--accent-blue);
}

[data-theme="dark"] .x-logo-box i {
    color: var(--accent-blue);
    filter: drop-shadow(0 0 8px var(--accent-blue-light));
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
    animation: neuroPulse 3s ease-in-out infinite;
}

[data-theme="dark"] .x-logo-box:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.15);
}

/* Rotating glow ring on hover (dark mode only) */
[data-theme="dark"] .x-logo-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: conic-gradient(from 0deg,
            transparent 0%,
            rgba(0, 229, 255, 0.3) 25%,
            transparent 50%,
            rgba(59, 130, 246, 0.3) 75%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    animation: glowRotate 4s linear infinite;
    z-index: 0;
}

[data-theme="dark"] .x-logo-box:hover::before {
    opacity: 1;
}

/* === NAV MENU === */
.x-nav-menu {
    margin-top: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.x-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
}

/* Texto como tooltip flotante */
.x-nav-item span {
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: var(--bg-secondary, #1a1a2e);
    color: var(--text-primary);
    white-space: nowrap;
    padding: 7px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--border-line);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 9999;
}

/* Flecha del tooltip */
.x-nav-item span::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--border-line);
}

.x-nav-item:hover span,
.x-nav-item:focus-visible span {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.x-nav-item i { font-size: 1.25rem !important; width: auto !important; transition: all 0.2s; }
.sidebar-translate-right { display: none; }

/* ── BARRA DE IDIOMAS — píldora vertical flotante (borde izquierdo) ── */
#ap-lang-bar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    right: auto;
    height: auto;
    width: auto;
    z-index: 9999;
    background: rgba(8, 13, 26, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 0 14px 14px 0;
    border: 1px solid rgba(255,255,255,0.09);
    border-left: none;
    padding: 10px 5px 10px 3px;
    display: flex;
    align-items: center;
}
[data-theme="light"] #ap-lang-bar {
    background: rgba(245,247,250,0.94);
    border-color: rgba(0,0,0,0.09);
}
.aplb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    width: auto;
}
.aplb-label { display: none; }

/* Botones de idioma */
.aplb-flags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.aplb-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 26px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: all .15s;
    opacity: 0.5;
    padding: 0;
}
.aplb-flag:hover {
    opacity: 0.9;
    background: rgba(34,211,238,0.1);
    border-color: rgba(34,211,238,0.25);
}
.aplb-flag.active {
    opacity: 1;
    background: rgba(34,211,238,0.13);
    border-color: rgba(34,211,238,0.5);
    box-shadow: 0 0 7px rgba(34,211,238,0.2);
}
[data-theme="light"] .aplb-flag:hover { background: rgba(14,165,233,0.08); border-color: rgba(14,165,233,0.2); }
[data-theme="light"] .aplb-flag.active { background: rgba(14,165,233,0.12); border-color: rgba(14,165,233,0.45); }

/* Ocultar widget GTranslate (solo usamos su JS) */
#ap-gt-wrapper .gtranslate_wrapper,
#ap-gt-wrapper .gt-float-switcher,
#ap-gt-wrapper select,
#ap-gt-wrapper .gt-current-lang { visibility: hidden !important; }

/* Sin padding-top — ya no es una barra superior */
body { padding-top: 0; }
.sidebar-primary { top: 0; height: 100vh; }
.sticky-feed-header { top: 0; }
.sidebar-secondary-sticky { top: 0; }

/* Ocultar instancias antiguas de translate */
.x-logo-translate { display: none !important; }
.post-translation-wrap { display: none !important; }

/* Móvil: ocultar la barra de idiomas (ocupa espacio útil en pantalla pequeña) */
@media (max-width: 700px) {
    #ap-lang-bar {
        display: none !important;
    }
}

/* Ocultar TODOS los widgets auto-inyectados por GTranslate */
.gt-float-switcher,
.gt_float_wrapper,
.gtranslate_wrapper,
#gt-res-x,
.goog-te-gadget,
.goog-te-gadget-icon,
.goog-te-gadget-simple,
.goog-te-banner-frame,
.goog-te-ftab-float,
#google_translate_element,
#google_translate_element2,
div[id^="goog-gt"],
div[id^="gt-nvframe"],
body > .skiptranslate,
iframe.goog-te-banner-frame,
.gt-mobile-display,
[class*="gt-lang"],
.gt-current-lang,
.notranslate[style*="position:fixed"],
.notranslate[style*="position: fixed"],
.gt-float-switcher-content,
a[href*="gtranslate"] { display: none !important; }
/* Bloquear cualquier elemento inyectado dentro del logo móvil */
.m-brand-logo > *:not(i):not(span) { display: none !important; }
.m-brand-logo { overflow: hidden; max-width: 200px; }

/* Ocultar formulario oculto de WordPress y botones de login inyectados por plugins */
.wp-comment-form-hidden,
#wp-comment-form-hidden,
form.wp-comment-form-hidden,
.comment-form .comment-form-cookies-consent,
.comment-form p.comment-form-cookies-consent,
#respond .google-login-btn,
#respond .wsl_button_container,
#respond [class*="social"],
#respond .wpsl-login,
.comment-respond > *:not(h3):not(form),
form.wp-comment-form-hidden ~ * { display: none !important; }

/* Quitar el borde top que aparece cuando Google Translate modifica el body */
body { top: 0 !important; }

.float-lang-wrap {
    position: fixed;
    bottom: 80px;
    right: 18px;
    z-index: 9000;
}
.float-lang-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,229,255,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.float-lang-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,229,255,0.5);
}
.float-lang-panel {
    display: none;
    position: absolute;
    bottom: 52px;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-line);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    min-width: 130px;
}
.float-lang-panel.open { display: block; }
.float-lang-panel .gt-current-lang,
.float-lang-panel select { display: none !important; }
.float-lang-panel img {
    width: 24px !important;
    height: 17px !important;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    margin: 3px;
}
.float-lang-panel img:hover { opacity: 1; transform: scale(1.15); }
.float-lang-panel .gt-lang-code { display: none; }
.logo-translate-inline { display: none !important; }

.x-nav-item:hover {
    background: rgba(29, 155, 240, 0.08);
}

.x-nav-item.active {
    color: var(--accent-blue);
    background: rgba(29, 155, 240, 0.12);
}

/* Punto activo abajo del icono */
.x-nav-item.active::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 8px rgba(0,229,255,0.7);
}

.x-nav-item i {
    font-size: 1.4rem;
    width: 28px;
    text-align: center;
    transition: all 0.25s;
}

/* Botón tema en sidebar PC */
button.x-nav-theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 4px;
}
button.x-nav-theme-btn i { color: var(--text-secondary); transition: color 0.2s; }
button.x-nav-theme-btn:hover i { color: var(--accent-blue); }

/* Botón publicar en sidebar PC */
button.x-nav-publish-btn {
    background: var(--accent-blue);
    color: #000;
    border: none;
    cursor: pointer;
    font-weight: 900;
    margin-top: 6px;
}
button.x-nav-publish-btn i { color: #000; }
button.x-nav-publish-btn:hover {
    background: #00fff7;
    transform: scale(1.07);
}
button.x-nav-publish-btn:hover i { color: #000; transform: rotate(90deg) scale(1.15); }

.x-nav-item:hover i {
    transform: scale(1.1) rotate(-5deg);
    color: var(--accent-blue);
}

.x-nav-item.active i {
    filter: drop-shadow(0 0 4px rgba(29, 155, 240, 0.4));
}

/* Dark mode nav */
[data-theme="dark"] .x-nav-item:hover {
    background: rgba(0, 229, 255, 0.07);
    color: #e2e8f0;
}
[data-theme="dark"] .x-nav-item.active {
    color: var(--accent-blue);
    background: rgba(0, 229, 255, 0.09);
}
[data-theme="dark"] .x-nav-item.active::before {
    background: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}
[data-theme="dark"] .x-nav-item.active i {
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}
[data-theme="dark"] .x-nav-item:hover i { color: var(--accent-blue); }

/* Tooltip oscuro */
[data-theme="dark"] .x-nav-item span {
    background: #0d1117;
    border-color: rgba(0,229,255,0.15);
    color: #e2e8f0;
    box-shadow: 0 6px 28px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,229,255,0.08);
}
[data-theme="dark"] .x-nav-item span::before {
    border-right-color: rgba(0,229,255,0.15);
}

/* === SIDEBAR BOTTOM â€” PROFILE PILL AI === */
.sidebar-bottom-area {
    padding-bottom: 20px;
}
.spd-initial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue, #22d3ee), #0ea5e9);
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── PROFILE DROPDOWN ── */
.sidebar-profile-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}
.sidebar-profile-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    min-width: 190px;
    background: var(--bg-secondary, #11172a);
    border: 1px solid var(--border-line);
    border-radius: 16px;
    padding: 8px;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    animation: spd-in .15s ease;
}
@keyframes spd-in {
    from { opacity:0; transform:translateY(6px); }
    to   { opacity:1; transform:translateY(0); }
}
.sidebar-profile-dropdown.open { display: flex; }
.spd-user-row { padding: 6px 10px 10px; }
.spd-user-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.spd-user-handle { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }
.spd-divider { height: 1px; background: var(--border-line); margin: 4px 0; }
.spd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: background .15s;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.spd-item:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.spd-item i { width: 16px; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }
.spd-item:hover i { color: var(--accent-blue, #22d3ee); }
.spd-logout { color: #ef4444 !important; }
.spd-logout i { color: #ef4444 !important; }
.spd-logout:hover { background: rgba(239,68,68,0.08) !important; }

.profile-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    background: transparent;
    position: relative;
}
.profile-pill:hover {
    background: rgba(255,255,255,0.06);
}
.p-avatar-circle {
    position: relative;
}
.p-avatar-circle img {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: block;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.profile-pill:hover .p-avatar-circle img {
    border-color: var(--accent-blue);
}

.p-names-column {
    display: flex;
    flex-direction: column;
}

.d-text {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.h-text {
    color: var(--text-secondary);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

/* Dark mode profile pill */
[data-theme="dark"] .profile-pill:hover {
    background: rgba(0, 229, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.08);
}

[data-theme="dark"] .profile-pill:hover .p-avatar-circle img {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

[data-theme="dark"] .profile-pill .p-avatar-circle::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #050a14;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

/* Mode toggle icon in pill */
[data-theme="dark"] .profile-pill .fa-circle-half-stroke {
    color: #00e5ff !important;
    opacity: 0.8 !important;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.3));
}

/* FEED CENTRAL */
.feed-main-col {
    flex: 1;
    min-width: 0;
    max-width: 680px;
    border-right: 1px solid var(--border-line);
    background: var(--bg-main);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.02);
}

/* ============================================
   SINGLE POST VIEW
   ============================================ */
.single-header-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 16px;
}

.single-back-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.single-back-btn:hover {
    background: var(--hover-gray);
}

.single-header-info h2 {
    font-size: 1.2rem;
    font-weight: 900;
    padding: 0;
}

.single-article {
    padding: 0 16px 40px;
}

/* Author row */
.single-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.single-author-avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 2px solid var(--border-line);
}

.single-author-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.single-author-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
}

.single-author-handle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.single-follow-btn {
    padding: 7px 20px;
    border-radius: 99px;
    background: var(--text-primary);
    color: var(--bg-main);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.single-follow-btn:hover {
    opacity: 0.85;
}

.single-follow-btn.is-following {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-line);
    font-weight: 700;
}

.single-follow-btn.is-following:hover {
    border-color: #f4212e;
    color: #f4212e;
    opacity: 1;
}

/* Title */
.single-title {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Featured image */
/* Video embed in single post */
.single-video-embed {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border-line);
    background: #000;
}
.single-video-embed video {
    width: 100%;
    max-height: 480px;
    display: block;
    border-radius: 16px;
}
.single-video-ratio {
    position: relative;
    padding-top: 56.25%;
}
.single-video-ratio iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

.single-featured-img {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border-line);
}

.single-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content */
.single-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.single-content p {
    margin-bottom: 16px;
}

.single-content a {
    color: var(--accent-blue);
    text-decoration: none;
}

.single-content a:hover {
    text-decoration: underline;
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    margin: 24px 0 12px;
    font-weight: 800;
    line-height: 1.3;
}

.single-content h2 {
    font-size: 1.4rem;
}

.single-content h3 {
    font-size: 1.2rem;
}

.single-content h4 {
    font-size: 1.1rem;
}

.single-content blockquote {
    border-left: 3px solid var(--accent-blue);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--bg-secondary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.single-content ul,
.single-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.single-content li {
    margin-bottom: 6px;
}

/* Embeds & iframes */
.single-content iframe,
.single-content .wp-block-embed {
    max-width: 100%;
    border-radius: 12px;
    margin: 16px 0;
}

/* Meta row */
.single-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 0;
    border-top: 1px solid var(--border-line);
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.single-dot {
    color: var(--text-secondary);
}

.single-views strong {
    color: var(--text-primary);
}

/* ── Engagement bar (single post) ── */
.single-engagement-bar {
    padding: 0;
    border-top: none;
    border-bottom: none;
    margin-bottom: 4px;
    display: flex;
    justify-content: center;
}
/* ---- Comment Prompt Bar (igual al mobile-prompt-bar) ---- */
.single-comment-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-line);
    border-bottom: 1px solid var(--border-line);
    margin: 8px 0 0;
    cursor: pointer;
}
.single-comment-prompt .prompt-avatar img,
.single-comment-prompt .prompt-avatar .avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
}
.scp-input-wrap {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid var(--border-line);
    transition: border-color 0.2s;
}
.scp-input-wrap { cursor: pointer; }
.scp-input-wrap:hover { border-color: var(--accent-blue); }
.scp-placeholder { pointer-events: none; }
.scp-btn {
    background: var(--accent-blue);
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.scp-btn:hover { opacity: 0.85; }

/* ---- Comment Form Expandido ---- */
.single-comment-expanded {
    background: var(--bg-secondary);
    border: 1px solid var(--border-line);
    border-radius: 16px;
    margin: 8px 0 0;
    padding: 16px;
}
.sce-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.sce-avatar img, .sce-avatar .avatar {
    width: 40px; height: 40px;
    border-radius: 50%; object-fit: cover;
}
.sce-author { flex: 1; line-height: 1.3; }
.sce-author strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.sce-author span { font-size: 0.78rem; color: var(--text-secondary); }
.sce-close {
    background: none; border: none;
    color: var(--text-secondary); font-size: 1rem;
    cursor: pointer; padding: 4px 8px; border-radius: 50%;
    transition: background 0.2s;
}
.sce-close:hover { background: var(--bg-hover); }
.sce-textarea {
    width: 100%; min-height: 90px;
    background: transparent;
    border: none; outline: none;
    color: var(--text-primary);
    font-size: 1rem; font-family: inherit;
    resize: none; line-height: 1.5;
    box-sizing: border-box;
}
.sce-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-line);
    padding-top: 10px;
    margin-top: 8px;
}
.sce-count { font-size: 0.78rem; color: var(--text-secondary); }
.sce-submit {
    background: var(--accent-blue);
    color: #000; border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 700; font-size: 0.85rem;
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    transition: opacity 0.2s;
}
.sce-submit:hover { opacity: 0.85; }
.sce-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tags row */
.single-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0 20px;
    margin-top: 10px;
}

.single-tag {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 99px;
    background: var(--accent-blue-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.single-tag:hover {
    background: rgba(29, 155, 240, 0.2);
    transform: translateY(-1px);
}

[data-theme="dark"] .single-tag {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
    border: 1px solid rgba(0, 229, 255, 0.15);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

[data-theme="dark"] .single-tag:hover {
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    color: var(--accent-blue) !important;
}
.comments-area {
    padding: 24px 16px;
    border-top: 8px solid var(--bg-secondary);
}

.comments-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 24px;
    opacity: 0.9;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.comment-body-wrapper {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-line);
}

.comment-avatar-side img {
    border-radius: 50%;
    border: 1px solid var(--border-line);
}

.comment-main-side {
    flex: 1;
}

.comment-meta-line {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.comment-author-name {
    font-weight: 700;
    color: var(--text-primary);
}

.comment-divider {
    color: var(--text-secondary);
    margin: 0 4px;
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.comment-content-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 4px 0 8px;
}

.comment-actions-line a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.comment-actions-line a:hover {
    color: var(--accent-blue);
}

/* Formulario simplificado estilo X/Agente */
.neural-comment-form {
    padding: 16px 0;
}

.comment-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-input-wrapper img {
    border-radius: 50%;
}

.neural-comment-form textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 8px 0;
    resize: none;
    min-height: 40px;
    outline: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.neural-comment-form textarea:focus {
    border-bottom-color: var(--accent-blue-light);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    border-top: 1px solid var(--border-line);
    padding-top: 12px;
}

.comment-form-actions .submit {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-form-actions .submit:hover {
    filter: brightness(1.1);
    transform: scale(1.04);
}

.comment-form-flex {
    margin-bottom: 16px;
}

.comment-form-author-email {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-form-author-email input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-line);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 12px;
    outline: none;
    font-size: 0.9rem;
}

.comment-form-author-email input:focus {
    border-color: var(--accent-blue);
    background: var(--bg-main);
}

/* Related articles */
.single-comments-wrap {
    border-top: 1px solid var(--border-line);
    padding: 20px;
}
.single-comments-wrap .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.single-comments-wrap .comment-body {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-line);
    font-size: 0.92rem;
    color: var(--text-primary);
}
.single-comments-wrap .comment-author b { font-weight: 700; }
.single-comments-wrap .comment-metadata { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 6px; }
.single-comments-wrap #respond { padding-top: 16px; }
.single-comments-wrap #respond h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.single-comments-wrap textarea, .single-comments-wrap input[type="text"], .single-comments-wrap input[type="email"] {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border-line); border-radius: 10px;
    background: var(--bg-secondary); color: var(--text-primary); font-size: 0.9rem; margin-bottom: 10px;
}
.single-comments-wrap input[type="submit"] {
    background: var(--accent-blue); color: #fff; border: none; border-radius: 99px;
    padding: 9px 22px; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}

.single-related-section {
    margin-top: 8px;
    border-top: 1px solid var(--border-line);
    padding-top: 16px;
}

.single-related-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.single-related-card {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-line);
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
    transition: 0.15s;
}

.single-related-card:hover {
    opacity: 0.8;
}

.related-text-side {
    flex: 1;
    min-width: 0;
}

.related-author-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.related-author-line img {
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

.related-text-side h4 {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
}

.related-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-line);
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile single header */
.mobile-single-header .single-back-btn {
    margin-right: 8px;
}

@media (max-width: 700px) {
    .single-title {
        font-size: 1.35rem;
    }

    /* FORMULARIO DE COMENTARIOS MOBILE */
    .neural-comment-form { padding: 12px 0; }

    .comment-input-wrapper {
        gap: 8px;
        align-items: flex-start;
    }
    .comment-input-wrapper img {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0;
    }
    .neural-comment-form textarea {
        font-size: 0.95rem;
        min-height: 36px;
        padding: 6px 0;
    }

    /* Nombre y correo en columna en móvil */
    .comment-form-author-email {
        flex-direction: column;
        gap: 8px;
    }
    .comment-form-author-email input {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .comment-form-actions {
        margin-top: 8px;
        padding-top: 8px;
    }
    .comment-form-actions .submit {
        width: 100%;
        padding: 10px;
        font-size: 0.95rem;
    }

    /* Lista de comentarios mobile */
    .single-comments-wrap { padding: 12px; }
    .comment-body-wrapper { gap: 8px; }
    .comment-avatar-side img { width: 32px !important; height: 32px !important; }
    .comment-content-text { font-size: 0.9rem; }

/* --- NEURAL AI COMMENT STYLING --- */
.neural-ai-comment {
    background: rgba(29, 155, 240, 0.05) !important;
    border-left: 3px solid #1d9bf0 !important;
    position: relative;
    padding-left: 15px !important;
    margin-top: 10px;
    border-radius: 0 12px 12px 0;
}

[data-theme="dark"] .neural-ai-comment {
    background: rgba(0, 255, 204, 0.03) !important;
    border-left-color: var(--accent-blue) !important;
    box-shadow: inset 5px 0 15px rgba(0, 255, 204, 0.05);
}

.neural-ai-comment .comment-author b::after,
.neural-ai-comment .comment-author cite::after {
    content: 'AGENTE IA';
    font-size: 9px;
    background: #1d9bf0;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 800;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .neural-ai-comment .comment-author b::after,
[data-theme="dark"] .neural-ai-comment .comment-author cite::after {
    background: var(--accent-blue);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.neural-ai-comment .comment-content {
    font-style: italic;
    color: var(--text-primary);
    opacity: 0.95;
    line-height: 1.5;
}

/* Neural animation for AI appearing */
@keyframes neuralAppear {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.neural-ai-comment {
    animation: neuralAppear 0.5s ease-out;
}

    .single-content {
        font-size: 1rem;
    }

    .single-featured-img {
        border-radius: 0;
        margin-left: -16px;
        margin-right: -16px;
        border: none;
        border-bottom: 1px solid var(--border-line);
    }
}

/* HEADERS */
.sticky-feed-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-line);
    width: 100%;
}

[data-theme="dark"] .sticky-feed-header {
    background: rgba(0, 0, 0, 0.85);
}

.pc-header-content h2 {
    padding: 14px 16px;
    font-size: 1.25rem;
    font-weight: 900;
}

.pc-tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.header-tab {
    flex: 0 0 auto;
    text-align: center;
    padding: 12px 20px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    border-radius: 12px;
    white-space: nowrap;
}

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

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

.header-tab.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 99px;
    box-shadow: 0 0 10px var(--accent-blue-light);
}

/* Tab-link: navega a otra página, mismo estilo que los tabs normales */
.header-tab--link {
    flex: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    padding-left: 14px;
    padding-right: 14px;
}
.header-tab--link:hover { color: var(--accent-blue); }

.cat-tab--link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cat-tab--link:hover { color: var(--accent-blue); }

/* Barra de intereses activos en feed Recomendado */
.interest-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-line);
    background: rgba(0,229,255,0.03);
}
.interest-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(0,229,255,0.08);
    border: 1px solid rgba(0,229,255,0.2);
    white-space: nowrap;
}

/* Empty feed state */
.empty-feed-neural {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-feed-neural i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-feed-neural p {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-feed-neural span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* HERO (ESTILO X REFINADO) */
/* ── HERO V2 (nuevo diseño limpio) ─────────────────────────────────────────── */
.featured-impact-hero.hero-v2 {
    position: relative;
    width: 100%;
    min-height: 340px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-line);
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}
.hero-full-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
}
.hero-v2 .hero-img-full {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    animation: heroReveal 1.1s ease-out forwards;
}
.hero-v2-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.3) 40%,
        rgba(0,0,0,0.85) 100%
    );
    z-index: 1;
}
.hero-v2-content {
    position: relative;
    z-index: 4;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 680px;
    pointer-events: none;
}
.hero-v2-content a {
    pointer-events: all;
}
.hero-v2-category {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #00e5ff;
    background: rgba(0,229,255,0.12);
    border: 1px solid rgba(0,229,255,0.3);
    border-radius: 4px;
    padding: 3px 9px;
    margin-bottom: 10px;
}
.hero-v2-title {
    font-size: clamp(1.25rem, 3.5vw, 1.85rem);
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-v2-excerpt {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-v2-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #00e5ff;
    color: #000;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 9px 20px;
    border-radius: 99px;
    text-decoration: none;
    letter-spacing: .02em;
    transition: background .18s, transform .15s;
    white-space: nowrap;
}
.hero-v2-btn:hover { background: #38f0ff; transform: translateY(-1px); }
.hero-v2-byline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
}
.hero-v2-byline strong { color: rgba(255,255,255,0.8); }

/* ── HERO V1 legacy (mantener para casos sin v2) ────────────────────────────── */
.featured-impact-hero {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-line);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* ── AI HERO EFFECTS ── */
.ai-hero .hero-img-full {
    animation: heroReveal 1.2s ease-out forwards;
}
@keyframes heroReveal {
    0%   { filter: grayscale(1) brightness(0.6) blur(3px); transform: scale(1.04); }
    60%  { filter: grayscale(0.2) brightness(0.9) blur(0px); transform: scale(1.015); }
    100% { filter: grayscale(0) brightness(1) blur(0px); transform: scale(1); }
}

/* Scan line que barre de arriba a abajo una vez */
.hero-scan-line {
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.9), transparent);
    box-shadow: 0 0 18px 4px rgba(0,229,255,0.5);
    animation: heroScan 1.4s ease-in-out forwards;
    z-index: 4;
    pointer-events: none;
}
@keyframes heroScan {
    0%   { top: -4px; opacity: 1; }
    80%  { top: 100%; opacity: 0.7; }
    100% { top: 100%; opacity: 0; }
}

/* Grid sutil de análisis */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 2;
    pointer-events: none;
    animation: gridFadeOut 2.5s ease forwards;
}
@keyframes gridFadeOut {
    0%   { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; }
}

/* Brackets de targeting en las esquinas */
.hero-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    z-index: 5;
    pointer-events: none;
    animation: cornerIn 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
.hero-corner--tl { top: 8px;  left: 8px;  border-top: 2px solid #00e5ff; border-left: 2px solid #00e5ff; }
.hero-corner--tr { top: 8px;  right: 8px; border-top: 2px solid #00e5ff; border-right: 2px solid #00e5ff; animation-delay: 0.08s; }
.hero-corner--bl { bottom: 8px; left: 8px;  border-bottom: 2px solid #00e5ff; border-left: 2px solid #00e5ff; animation-delay: 0.16s; }
.hero-corner--br { bottom: 8px; right: 8px; border-bottom: 2px solid #00e5ff; border-right: 2px solid #00e5ff; animation-delay: 0.24s; }
@keyframes cornerIn {
    0%  { opacity: 0; transform: scale(1.6); }
    100%{ opacity: 1; transform: scale(1); }
}

/* Badge HUD "EN VIVO" */
.hero-hud-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,229,255,0.35);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #00e5ff;
    z-index: 6;
    pointer-events: none;
    animation: hudIn 0.5s 0.3s ease both;
}
@keyframes hudIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hero-hud-dot {
    width: 6px; height: 6px;
    background: #00e5ff;
    border-radius: 50%;
    box-shadow: 0 0 6px #00e5ff;
    animation: hudBlink 1.2s infinite;
}
@keyframes hudBlink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.hero-hud-text  { color: #fff; }
.hero-hud-sep   { opacity: 0.4; }
.hero-hud-signal{ letter-spacing: -1px; font-size: 0.55rem; opacity: 0.7; }

/* Glitch en el título — dispara una vez al cargar */
.hero-glitch {
    animation: titleIn 0.5s 0.7s ease both, glitchFlash 0.12s 0.9s steps(1) 3;
}
@keyframes titleIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes glitchFlash {
    0%  { text-shadow: 2px 0 #ff0040, -2px 0 #00e5ff, 0 2px 8px rgba(0,0,0,0.5); }
    50% { text-shadow: -2px 0 #ff0040, 2px 0 #00e5ff, 0 2px 8px rgba(0,0,0,0.5); }
    100%{ text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
}

.hero-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 3;
    pointer-events: none; /* deja pasar los clics al card-link-overlay */
}

.hero-main-title {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* CARDS DE NOTICIAS */
.x-tweet-card-style {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-line);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: 0.15s;
    text-decoration: none;
    color: inherit;
}

/* Card is clickable via JS — cursor pointer */
.x-tweet-card-style[data-url] {
    cursor: pointer;
}

/* Hero banner wrapper <a> — ensures tap works on iOS Safari */
#ap-hero-banner {
    display: block;
    text-decoration: none;
    color: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* No overlay — z-index not needed */
.x-tweet-card-style .tweet-left-avatar,
.x-tweet-card-style .tweet-actions-bar,
.x-tweet-card-style .mobile-stats-row {
    position: relative;
}

.x-tweet-card-style:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .x-tweet-card-style:hover {
    background: rgba(255, 255, 255, 0.03);
}

.tweet-left-avatar img {
    border-radius: 50%;
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 1px solid var(--border-line);
}

.tweet-right-main {
    flex: 1;
    min-width: 0;
}

.tweet-author-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.tr-name {
    font-weight: 800;
    color: var(--text-primary);
}

.tr-user,
.tr-divider,
.tr-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tweet-content-flex {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 4px;
}

.tweet-text-side {
    flex: 1;
    min-width: 0;
}

.tr-post-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.tr-post-title a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.tr-excerpt-small {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 400;
}

.tweet-thumbnail-side {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-line);
}

.tweet-thumbnail-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card video preview (thumbnail approach) */
.card-video-thumb-wrap {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.card-video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-video-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.card-video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    transition: background 0.2s;
}
.card-video-thumb-wrap:hover .card-video-play-overlay {
    background: rgba(0,0,0,0.45);
}
.card-video-play-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 2px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    backdrop-filter: blur(4px);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-video-thumb-wrap:hover .card-video-play-circle {
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(0,229,255,0.4);
    border-color: rgba(0,229,255,0.7);
}
.card-video-platform-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border-radius: 4px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    pointer-events: none;
    backdrop-filter: blur(2px);
}
.card-video-platform--yt { color: #ff0000; }
.card-video-platform--tw { color: #fff; }
.card-video-platform--embed { color: #00e5ff; }

/* Twitter video card — play circle */
.card-tw-play-circle {
    background: #000 !important;
    border: 2px solid rgba(255,255,255,0.9) !important;
}
.card-tw-play-circle i { color: #fff !important; font-size: 0.9rem !important; }

/* Twitter video — banner "Ver video en la noticia" */
.card-tw-video-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    margin: 6px 0 2px;
    border-radius: 10px;
    background: rgba(29,155,240,0.08);
    border: 1px solid rgba(29,155,240,0.2);
    color: #1d9bf0;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}
.card-tw-video-banner:hover { background: rgba(29,155,240,0.15); }
.card-tw-video-banner i { font-size: 0.85rem; }

/* ── TRENDING STRIP MOBILE ───────────────────────────────────────────────────── */
.mobile-intel-strip {
    display: none; /* oculto en desktop */
    border-bottom: 1px solid var(--border-line);
    padding: 10px 0 6px;
    background: var(--bg-main);
}
.mobile-intel-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #00e5ff;
    padding: 0 16px 8px;
}
.mobile-intel-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 16px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
}
.mobile-intel-scroll::-webkit-scrollbar { display: none; }

/* Tags como pills en mobile — igual que en single post */
.mobile-tag-pill {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-line);
    border-radius: 99px;
    padding: 5px 14px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
}
.mobile-tag-pill:active,
.mobile-tag-pill:hover { background: rgba(0,229,255,0.08); border-color: #00e5ff; color: #00e5ff; }
.mobile-tag-pill--hot {
    border-color: rgba(245,158,11,0.5);
    color: #f59e0b;
}
.mobile-tag-pill--hot:hover { background: rgba(245,158,11,0.08); border-color: #f59e0b; }

@media (max-width: 900px) {
    .mobile-intel-strip { display: block; }
}

/* Tweet embed inline en card */
.card-tweet-embed-wrap {
    width: 100%;
    margin: 10px 0 4px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    min-height: 280px;
}
.card-tweet-iframe {
    display: block;
    width: 100%;
    min-height: 280px;
    border: 0;
    border-radius: 14px;
}

/* Legacy card-video-preview (for direct video autoplay) */
.card-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Twitter card preview en tarjetas del home */
.card-twitter-preview {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}
.card-twitter-preview .tw-card-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    opacity: 0.45;
}
.tw-play-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 12px;
    min-height: 100px;
    color: #fff;
    pointer-events: none;
}
.tw-play-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.tw-play-overlay span {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Single post video */
.single-featured-video {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #000;
}
.single-video-player {
    width: 100%;
    max-height: 480px;
    display: block;
    object-fit: contain;
}
/* Tweet embed en artículo: centrar y quitar fondo negro */
.single-tweet-embed {
    background: transparent;
    display: flex;
    justify-content: center;
    padding: 8px 0;
}
.single-tweet-embed .twitter-tweet {
    margin: 0 auto !important;
}

/* ── Barra de acciones unificada (home + single + load_more) ── */
.ap-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.single-engagement-bar .ap-actions-bar {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.ap-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 7px 10px;
    border-radius: 99px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.18s, color 0.18s;
    background: transparent;
    border: none;
    outline: none;
    pointer-events: auto;
}
.ap-btn i,
.ap-btn span,
.ap-btn .pulse-like-icon {
    pointer-events: none;
}
.ap-btn i { font-size: 0.92rem; }

.ap-btn:hover,
.ap-btn:active {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
}
.ap-btn.denuncia-trigger { opacity: 0.55; }
.ap-btn.denuncia-trigger:hover,
.ap-btn.denuncia-trigger:active {
    background: rgba(220,38,38,0.1);
    color: #dc2626;
    opacity: 1;
}
.ap-btn.views-stat { cursor: default; pointer-events: none; }

/* â”€â”€â”€ NEURAL ACTION BUTTONS (Repost / Share / Comment / Views) â”€â”€â”€ */

/* Repost */
.ta-btn.repost-trigger,
.stat-item.repost-trigger {
    border-radius: 99px;
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s, color 0.25s;
}

.ta-btn.repost-trigger:hover,
.stat-item.repost-trigger:hover {
    background: radial-gradient(ellipse at center,
        var(--accent-blue-light) 0%,
        rgba(0, 229, 255, 0.04) 65%,
        transparent 80%);
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.20), 0 0 20px rgba(0, 229, 255, 0.12);
    color: var(--accent-blue);
    transform: scale(1.08);
}

.ta-btn.repost-trigger.animating i,
.stat-item.repost-trigger.animating i {
    animation: repostSpin 0.65s cubic-bezier(0.2, 0.8, 0.2, 1.2) forwards;
}

/* Share */
.ta-btn.share-trigger,
.stat-item.share-trigger {
    border-radius: 99px;
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s, color 0.25s;
}

.ta-btn.share-trigger:hover,
.stat-item.share-trigger:hover {
    background: radial-gradient(ellipse at center,
        rgba(29, 155, 240, 0.16) 0%,
        rgba(29, 155, 240, 0.04) 65%,
        transparent 80%);
    box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.22), 0 0 20px rgba(29, 155, 240, 0.14);
    color: #1d9bf0;
    transform: scale(1.08);
}

.ta-btn.share-trigger.animating i,
.stat-item.share-trigger.animating i {
    animation: shareFly 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2) forwards;
}

/* Comment */
.ta-btn.comment-trigger,
.stat-item.comment-trigger {
    border-radius: 99px;
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s, color 0.25s;
}

.ta-btn.comment-trigger:hover,
.stat-item.comment-trigger:hover {
    background: radial-gradient(ellipse at center,
        var(--accent-blue-light) 0%,
        rgba(0, 229, 255, 0.04) 65%,
        transparent 80%);
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.20), 0 0 20px rgba(0, 229, 255, 0.12);
    color: var(--accent-blue);
    transform: scale(1.08);
}

.ta-btn.comment-trigger.animating i,
.stat-item.comment-trigger.animating i {
    animation: commentBubble 0.65s cubic-bezier(0.2, 0.8, 0.2, 1.2) forwards;
}

/* Views / ojo */
.ta-btn:not(.like-trigger):not(.repost-trigger):not(.share-trigger):not(.comment-trigger).animating i,
.stat-item:not(.like-trigger):not(.repost-trigger):not(.share-trigger):not(.comment-trigger).animating i {
    animation: eyeBlink 0.55s ease forwards;
}

/* â”€â”€â”€ COMMENT QUICK POPUP MODAL â”€â”€â”€ */
.comment-quick-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.comment-quick-modal.is-open {
    opacity: 1;
    pointer-events: all;
}

.comment-quick-box {
    background: linear-gradient(135deg, #0a0f1e 0%, #0d1627 60%, #071020 100%);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 20px;
    padding: 28px 28px 20px;
    width: 90%;
    max-width: 520px;
    box-shadow:
        0 0 0 1px rgba(0, 229, 255, 0.08),
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(0, 229, 255, 0.06) inset;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-quick-modal.is-open .comment-quick-box {
    transform: translateY(0) scale(1);
}

.cqm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cqm-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cqm-title i {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 6px #00e5ff);
}

.cqm-close {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.cqm-close:hover {
    background: rgba(255, 45, 85, 0.15);
    border-color: rgba(255, 45, 85, 0.3);
    color: #ff2d55;
}

.cqm-textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: none;
    min-height: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.cqm-textarea:focus {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08), 0 0 20px rgba(0, 229, 255, 0.06) inset;
}

.cqm-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.cqm-char-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-right: auto;
    opacity: 0.7;
}

.cqm-submit {
    background: linear-gradient(135deg, var(--accent-blue), #00afff);
    color: #000;
    border: none;
    border-radius: 99px;
    padding: 9px 22px;
    font-weight: 900;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.cqm-submit:hover {
    opacity: 0.9;
    transform: scale(1.04);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.cqm-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* SIDEBAR DERECHA (TENDENCIAS) */
.sidebar-secondary {
    width: 350px;
    padding: 0 0 20px 20px;
    border-left: none;
}

.sidebar-secondary-sticky {
    position: sticky;
    top: 34px;
    padding-top: 6px;
}

.pc-search-pill-box {
    background: var(--bg-secondary);
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    margin-top: 10px;
    border: 1px solid transparent;
}

.pc-search-pill-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--text-primary);
}

/* ── TRENDING INTELLIGENCE sidebar ─────────────────────────────────────────── */
.trends-intel-box {
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--border-line);
}
.intel-box-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--border-line);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #00e5ff;
}
.intel-box-header i { font-size: 0.75rem; }

.intel-cell {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border-line);
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.intel-cell:last-of-type { border-bottom: none; }
.intel-cell:hover { background: rgba(0,229,255,0.04); }
.intel-cell--hot .intel-num { color: #f59e0b; }

.intel-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: rgba(255,255,255,0.12);
    line-height: 1;
    min-width: 28px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.intel-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.intel-cat {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: .09em;
    color: #00e5ff;
    text-transform: uppercase;
    opacity: 0.8;
}
.intel-cell--hot .intel-cat { color: #f59e0b; }
.intel-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.view-all-intel {
    display: block;
    text-align: center;
    padding: 11px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #00e5ff;
    text-decoration: none;
    border-top: 1px solid var(--border-line);
    transition: background .15s;
}
.view-all-intel:hover { background: rgba(0,229,255,0.05); }

/* ── SIDEBAR TAGS LIST (home derecho) — DEPRECATED replaced by trend-cell ────── */
.sidebar-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
}
.sidebar-tag-pill {
    display: inline-flex;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border-line);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
}
.sidebar-tag-pill:hover {
    border-color: #00e5ff;
    color: #00e5ff;
    background: rgba(0,229,255,0.06);
}
.sidebar-tag-pill--hot {
    border-color: rgba(245,158,11,0.45);
    color: #f59e0b;
}
.sidebar-tag-pill--hot:hover {
    background: rgba(245,158,11,0.08);
    border-color: #f59e0b;
}

/* ── TREND-CELL COLORES VIBRANTES (home sidebar) ────────────────────────────── */
/* Paleta de 8 colores rotativos por tendencia */
.trend-cell--color-1 .cell-cat  { color: #00e5ff; }
.trend-cell--color-1 .cell-title { color: var(--text-primary); }
.trend-cell--color-1:hover { background: rgba(0,229,255,0.06); border-left: 3px solid #00e5ff; }

.trend-cell--color-2 .cell-cat  { color: #f59e0b; }
.trend-cell--color-2 .cell-title { color: var(--text-primary); }
.trend-cell--color-2:hover { background: rgba(245,158,11,0.06); border-left: 3px solid #f59e0b; }

.trend-cell--color-3 .cell-cat  { color: #a78bfa; }
.trend-cell--color-3 .cell-title { color: var(--text-primary); }
.trend-cell--color-3:hover { background: rgba(167,139,250,0.06); border-left: 3px solid #a78bfa; }

.trend-cell--color-4 .cell-cat  { color: #34d399; }
.trend-cell--color-4 .cell-title { color: var(--text-primary); }
.trend-cell--color-4:hover { background: rgba(52,211,153,0.06); border-left: 3px solid #34d399; }

.trend-cell--color-5 .cell-cat  { color: #f87171; }
.trend-cell--color-5 .cell-title { color: var(--text-primary); }
.trend-cell--color-5:hover { background: rgba(248,113,113,0.06); border-left: 3px solid #f87171; }

.trend-cell--color-6 .cell-cat  { color: #38bdf8; }
.trend-cell--color-6 .cell-title { color: var(--text-primary); }
.trend-cell--color-6:hover { background: rgba(56,189,248,0.06); border-left: 3px solid #38bdf8; }

.trend-cell--color-7 .cell-cat  { color: #fb923c; }
.trend-cell--color-7 .cell-title { color: var(--text-primary); }
.trend-cell--color-7:hover { background: rgba(251,146,60,0.06); border-left: 3px solid #fb923c; }

.trend-cell--color-8 .cell-cat  { color: #e879f9; }
.trend-cell--color-8 .cell-title { color: var(--text-primary); }
.trend-cell--color-8:hover { background: rgba(232,121,249,0.06); border-left: 3px solid #e879f9; }

/* base pill de color (sin hover heredado del --hot) */
.trend-cell[class*="trend-cell--color-"] {
    border-left: 3px solid transparent;
    transition: background 0.18s, border-left-color 0.18s;
    padding-left: 18px;
}

/* ── sidebar legacy ──────────────────────────────────────────────────────────── */
.trends-widget-box {
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--border-line);
}

.trends-widget-box h3 {
    padding: 14px 20px;
    font-size: 1.25rem;
    font-weight: 900;
}

.trend-cell {
    padding: 12px 20px;
    border-top: 1px solid var(--border-line);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}

.trend-cell:hover {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .trend-cell:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Tag tendencia activa (últimas 24h) */
.trend-cell--hot {
    border-left: 3px solid #f59e0b;
    background: rgba(245,158,11,0.04);
}
.trend-cell--hot .cell-cat { color: #f59e0b; }
.trend-cell--hot .cell-title { color: var(--text-primary); }
[data-theme="dark"] .trend-cell--hot { background: rgba(245,158,11,0.06); }

.cell-cat {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cell-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
}

.cell-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ============================
   AVISO COMUNIDAD (PC sidebar)
   ============================ */
.community-notice {
    background: var(--bg-secondary);
    border: 1px solid var(--border-line);
    border-radius: 16px;
    padding: 16px 18px;
    margin-top: 16px;
}

.cn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cn-header i {
    color: var(--accent-blue);
    font-size: 1rem;
}

.cn-header span {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.cn-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 10px;
}

.cn-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.cn-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cn-tags span {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: var(--accent-blue-light);
    padding: 3px 10px;
    border-radius: 99px;
}

/* Dark mode */
[data-theme="dark"] .community-notice {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.07);
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .cn-header i {
    color: var(--accent-blue);
}

[data-theme="dark"] .cn-tags span {
    color: var(--accent-blue);
    background: rgba(0, 229, 255, 0.08);
}

/* LINKS LEGALES SIDEBAR */
.sidebar-legal-links {
    padding: 12px 4px 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
}
.sidebar-legal-links a {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.2s;
}
.sidebar-legal-links a:hover { opacity: 1; }
.sidebar-legal-links span { font-size: 0.7rem; opacity: 0.3; color: var(--text-secondary); }
.sidebar-legal-copy {
    width: 100%;
    font-size: 0.68rem;
    opacity: 0.35;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

/* AVISO COMUNIDAD MOBILE (oculto por defecto) */
.community-notice-mobile {
    display: none;
}

/* ============================
   BANNER COOKIES
   ============================ */
.ck-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8000;
    padding: 14px 20px;
    background: var(--bg-main);
    border-top: 1px solid var(--border-line);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.4s ease;
}

@keyframes ckSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ck-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ck-text-side {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.ck-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.ck-title {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.ck-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ck-link {
    color: var(--accent-blue);
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
}

.ck-link:hover {
    text-decoration: underline;
}

.ck-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.ck-btn {
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.ck-btn-reject {
    background: transparent;
    border: 1.5px solid var(--border-line);
    color: var(--text-primary);
}

.ck-btn-reject:hover {
    background: var(--hover-gray);
}

.ck-btn-accept {
    background: var(--accent-blue);
    border: 1.5px solid transparent;
    color: #fff;
}

.ck-btn-accept:hover {
    background: var(--accent-blue-hover);
}

/* Dark mode */
[data-theme="dark"] .ck-banner {
    background: rgba(10, 14, 26, 0.97);
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
}

[data-theme="dark"] .ck-icon {
    color: var(--accent-blue);
}

[data-theme="dark"] .ck-btn-accept {
    background: linear-gradient(135deg, var(--accent-blue), #007fff);
    color: #050810;
}

[data-theme="dark"] .ck-btn-accept:hover {
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

[data-theme="dark"] .ck-btn-reject {
    border-color: rgba(0, 229, 255, 0.15);
    color: #a0aec0;
}

[data-theme="dark"] .ck-btn-reject:hover {
    background: rgba(0, 229, 255, 0.06);
    color: #e8edf5;
}

/* Mobile: banner encima de la navbar */
@media (max-width: 700px) {
    .ck-banner {
        bottom: 62px;
        padding: 12px 16px;
    }

    [data-theme="dark"] .ck-banner {
        bottom: 72px;
    }

    .ck-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ck-actions {
        width: 100%;
        justify-content: stretch;
    }

    .ck-btn {
        flex: 1;
        text-align: center;
        padding: 11px 12px;
    }
}

/* ============================
   MODAL LOGIN
   ============================ */
.lm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 16px;
}

.lm-overlay.is-open {
    display: flex;
}

.lm-box {
    background: var(--bg-main);
    border: 1px solid var(--border-line);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 36px 32px 28px;
    position: relative;
    animation: lmIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lmIn {
    from {
        transform: scale(0.92) translateY(12px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.lm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.lm-close:hover {
    background: var(--hover-gray);
    color: var(--text-primary);
}

.lm-logo {
    text-align: center;
    margin-bottom: 18px;
}

.lm-logo i {
    font-size: 2rem;
    color: var(--accent-blue);
}

.lm-title {
    font-size: 1.45rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 26px;
    line-height: 1.2;
}

/* Floating-label fields */
.lm-field {
    position: relative;
    margin-bottom: 14px;
}

.lm-field input {
    width: 100%;
    padding: 18px 14px 6px;
    border: 1.5px solid var(--border-line);
    border-radius: 8px;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.lm-field label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.18s;
}

/* label sube cuando el input tiene contenido o estÃ¡ enfocado */
.lm-field input:focus~label,
.lm-field input:not(:placeholder-shown)~label {
    top: 8px;
    transform: translateY(0);
    font-size: 0.72rem;
    color: var(--accent-blue);
}

.lm-field input:focus {
    border-color: var(--accent-blue);
}

/* wrapper de contraseÃ±a con ojo */
.lm-pwd-wrap input {
    padding-right: 44px;
}

.lm-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
}

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

.lm-btn-submit {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    border-radius: 99px;
    border: none;
    background: var(--accent-blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s;
}

.lm-btn-submit:hover {
    background: var(--accent-blue-hover);
}

.lm-forgot {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--accent-blue);
    text-decoration: none;
}

.lm-forgot:hover {
    text-decoration: underline;
}

.lm-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 14px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.lm-divider::before,
.lm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-line);
}

.lm-btn-register {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 99px;
    border: 1.5px solid var(--border-line);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.lm-btn-register:hover {
    background: var(--hover-gray);
}

/* MOBILE: slide-up sheet */
@media (max-width: 500px) {
    .lm-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .lm-box {
        border-radius: 24px 24px 0 0;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 28px 20px env(safe-area-inset-bottom, 24px);
        animation: lmUp 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
    }

    @keyframes lmUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* ============================
   MODAL REGISTRO
   ============================ */
.rm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 16px;
}

.rm-overlay.is-open {
    display: flex;
}

.rm-box {
    background: var(--bg-main);
    border: 1px solid var(--border-line);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 36px 32px 28px;
    position: relative;
    animation: rmIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes rmIn {
    from {
        transform: scale(0.92) translateY(12px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.rm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.rm-close:hover {
    background: var(--hover-gray);
    color: var(--text-primary);
}

.rm-logo {
    text-align: center;
    margin-bottom: 14px;
}

.rm-logo i {
    font-size: 2rem;
    color: var(--accent-blue);
}

.rm-title {
    font-size: 1.55rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 6px;
    line-height: 1.2;
}

.rm-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 24px;
    line-height: 1.4;
}

/* Google Sign-In Button */
.rm-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 99px;
    border: 1.5px solid var(--border-line);
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

.rm-google-btn:hover {
    background: var(--hover-gray);
    border-color: var(--text-secondary);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.rm-google-btn:active {
    transform: scale(0.98);
}

.rm-google-icon {
    flex-shrink: 0;
}

[data-theme="dark"] .rm-google-btn {
    background: transparent;
    border-color: var(--border-line);
}

[data-theme="dark"] .rm-google-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--text-secondary);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

/* Divider */
.rm-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.rm-divider::before,
.rm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-line);
}

/* Floating-label fields */
.rm-field {
    position: relative;
    margin-bottom: 14px;
}

.rm-field input {
    width: 100%;
    padding: 18px 14px 6px;
    border: 1.5px solid var(--border-line);
    border-radius: 8px;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

.rm-field label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.18s;
}

.rm-field input:focus~label,
.rm-field input:not(:placeholder-shown)~label {
    top: 8px;
    transform: translateY(0);
    font-size: 0.72rem;
    color: var(--accent-blue);
}

.rm-field input:focus {
    border-color: var(--accent-blue);
}

.rm-pwd-wrap input {
    padding-right: 44px;
}

.rm-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px;
}

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

/* Error & Success */
.rm-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    line-height: 1.4;
}

.rm-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #22c55e;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    line-height: 1.4;
}

/* Submit */
.rm-btn-submit {
    width: 100%;
    padding: 13px;
    margin-top: 4px;
    border-radius: 99px;
    border: none;
    background: var(--accent-blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

.rm-btn-submit:hover {
    background: var(--accent-blue-hover);
    box-shadow: 0 2px 12px rgba(29, 155, 240, 0.3);
}

.rm-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Terms */
.rm-terms {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 18px;
    line-height: 1.5;
}

.rm-terms a {
    color: var(--accent-blue);
    text-decoration: none;
}

.rm-terms a:hover {
    text-decoration: underline;
}

/* Login link */
.rm-login-link {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-line);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rm-login-link a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
}

.rm-login-link a:hover {
    text-decoration: underline;
}

/* Dark mode enhancements */
[data-theme="dark"] .rm-box {
    background: #16181c;
    border-color: var(--border-line);
}

[data-theme="dark"] .rm-btn-submit {
    background: linear-gradient(135deg, #1d9bf0, #0d8bd9);
}

[data-theme="dark"] .rm-btn-submit:hover {
    box-shadow: 0 2px 20px rgba(29, 155, 240, 0.4);
}

[data-theme="dark"] .rm-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .rm-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
}

/* MOBILE: slide-up sheet */
@media (max-width: 500px) {
    .rm-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .rm-box {
        border-radius: 24px 24px 0 0;
        max-width: 100%;
        max-height: 92vh;
        overflow-y: auto;
        padding: 28px 20px env(safe-area-inset-bottom, 24px);
        animation: rmUp 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
    }

    @keyframes rmUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* ============================================
   MOBILE BOTTOM NAV LABELS (hidden by default)
   ============================================ */
.mob-nav-label {
    display: none;
}

/* ============================================
   MOBILE PROMPT BAR (hidden by default)
   ============================================ */
.mobile-prompt-bar {
    display: none;
}

/* ============================================
   CARD CATEGORY TAG (hidden by default)
   ============================================ */
.card-category-tag {
    display: none;
}

/* ============================================
   MOBILE STATS ROW (hidden by default)
   ============================================ */
.mobile-stats-row {
    display: none;
}

/* ============================================
   three dots on author line (hidden by default)
   ============================================ */
.tr-more-dots {
    display: none;
}



/* ============================================
   FLOATING ACTION BUTTON (POST)
   ============================================ */
.fab-neural-post {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(29, 155, 240, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-neural-post:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--accent-blue-hover);
    box-shadow: 0 6px 20px rgba(29, 155, 240, 0.6);
}

[data-theme="dark"] .fab-neural-post {
    background: linear-gradient(135deg, var(--accent-blue), #007fff);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* ============================================
   POST MODAL (MODAL X STYLE)
   ============================================ */
#post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

#post-modal.is-open {
    display: flex;
}

.post-modal-box {
    background: var(--bg-main);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-line);
}

.post-modal-body {
    overflow-y: auto;
    flex: 1;
}

.post-modal-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-line);
}

.post-modal-header button {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.post-modal-header button:hover {
    background: rgba(128, 128, 128, 0.1);
}

.post-modal-body {
    padding: 16px;
    display: flex;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
}

.post-modal-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.post-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-modal-form {
    flex: 1;
}

.post-modal-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    resize: none;
    min-height: 120px;
    outline: none;
    font-family: inherit;
}

/* ── POST TAG SECTION ────────────────────────────────────── */
.post-tag-section {
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-line);
    border-radius: 14px;
    padding: 12px 14px;
}
.post-tag-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.post-tag-hint {
    font-weight: 400;
    text-transform: none;
    color: var(--text-secondary);
    letter-spacing: 0;
    font-size: 0.75rem;
}
/* Selected tag chips */
.selected-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.selected-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 12px;
    background: var(--accent-blue);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.selected-tag-chip button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
}
.selected-tag-chip button:hover { color: #fff; }

/* Deprecated wrapper (kept for fallback) */
.post-modal-trends-wrapper {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-line);
    border-radius: 16px;
    padding: 15px;
}
.trends-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-tags-box {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    min-height: 32px;
}

.trend-chip {
    padding: 5px 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border-line);
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.trend-chip:hover {
    border-color: var(--accent-blue);
    background: var(--accent-blue-light);
}

.trend-chip.selected {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.create-trend-row {
    position: relative;
    border-top: 1px solid var(--border-line);
    padding-top: 10px;
    margin-top: 2px;
}

#post-tag-input {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    padding: 2px 0;
}
#post-tag-input::placeholder { color: var(--text-secondary); opacity: 0.6; }

.tag-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: 10px;
    z-index: 9999;
    max-height: 180px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.tag-suggestion-item {
    padding: 9px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-primary);
    transition: background 0.15s;
}
.tag-suggestion-item:hover { background: var(--bg-soft); }

.trend-loading {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}


.post-modal-tag-row i {
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.post-modal-tag-row input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    width: 100%;
}

.post-modal-tag-row input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.neural-tag-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.neural-tag-link:hover {
    text-decoration: underline;
}

.post-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-modal-actions {
    display: flex;
    gap: 8px;
}

.post-action-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 1.1rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.post-action-btn:hover {
    background: var(--accent-blue-light);
}

#post-image-preview-wrap {
    margin-top: 15px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-line);
}

#post-image-preview {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.remove-preview-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.remove-preview-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

#simple-emoji-picker {
    position: absolute;
    bottom: 60px;
    left: 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-line);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    transition: all 0.2s;
}

.emoji-picker-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

#simple-emoji-picker span {
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.1s;
}

#simple-emoji-picker span:hover {
    transform: scale(1.2);
}


/* ============================================
   AI VERIFICATION BOX
   ============================================ */
/* ============================================
   AI VERIFICATION BOX (COMPACT & MODERN)
   ============================================ */
.ai-verification-box {
    margin: 16px 0;
    background: rgba(0, 8, 18, 0.72);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(24px);
    box-shadow: 0 0 0 1px rgba(0,229,255,0.07), 0 8px 40px rgba(0,0,0,0.5), inset 0 0 60px rgba(0,229,255,0.025);
    transition: all 0.4s ease;
}

[data-theme="dark"] .ai-verification-box {
    background: rgba(0, 8, 18, 0.72);
}

[data-theme="light"] .ai-verification-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.1), 0 8px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .ai-v-p-top {
    color: var(--text-primary);
}

[data-theme="light"] .ai-v-p-sub {
    color: var(--text-secondary);
}

[data-theme="light"] .aiv-live-label {
    color: var(--text-secondary);
}

[data-theme="light"] .ai-v-chat-input-row input {
    background: #fff;
    color: var(--text-primary);
    border-color: var(--border-line);
}


.ai-verification-box.scanning {
    box-shadow: 0 0 0 1px rgba(0,229,255,0.3), 0 0 40px rgba(0,229,255,0.18), inset 0 0 40px rgba(0,229,255,0.05);
}

.ai-v-header { display: none; }

/* Floating badge top-right */
.aiv-float-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
}
.aiv-float-badge .ai-badge-neural-advanced {
    position: relative;
    top: auto; left: auto;
    opacity: 1;
    border-color: rgba(0,229,255,0.4);
}

/* Horizontal row layout */
.aiv-row {
    display: flex;
    align-items: center;
    gap: 18px;
}
.aiv-text-col {
    flex: 1;
    text-align: left;
}

.ai-v-badge {
 margin-left: auto;
 background: rgba(0, 229, 255, 0.15);
 color: var(--accent-blue);
 font-size: 0.65rem;
 padding: 2px 8px;
 border-radius: 4px;
 font-weight: 800;
 border: 1px solid rgba(0, 229, 255, 0.3);
}

.ai-v-content {
 padding: 15px;
}

.ai-v-prompt-ui {
 text-align: center;
}

.ai-v-p-top {
 font-weight: 800;
 font-size: 0.95rem;
 margin-bottom: 4px;
 color: #fff;
}

.ai-v-p-sub {
 font-size: 0.8rem;
 color: rgba(255, 255, 255, 0.6);
 margin-bottom: 12px;
 line-height: 1.3;
}

.ai-v-btn-modern {
 background: transparent;
 border: 1px solid rgba(0, 229, 255, 0.5);
 color: var(--accent-blue);
 padding: 8px 20px;
 border-radius: 8px;
 font-weight: 900;
 font-size: 0.8rem;
 letter-spacing: 1.5px;
 cursor: pointer;
 position: relative;
 overflow: hidden;
 transition: all 0.3s ease;
 display: inline-flex;
 align-items: center;
 gap: 8px;
}

.ai-v-btn-modern:hover {
 background: rgba(0, 229, 255, 0.1);
 box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
 transform: translateY(-1px);
}

.btn-neural-bg {
 position: absolute;
 top: 0;
 left: -100%;
 width: 60%;
 height: 100%;
 background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.2), transparent);
 transition: 0.4s;
}

.ai-v-btn-modern:hover .btn-neural-bg {
 left: 150%;
}

.verdict-typewriter {
 font-family: monospace;
 color: var(--accent-blue);
 font-size: 0.85rem;
 line-height: 1.5;
 border-left: 2px solid var(--accent-blue);
 padding-left: 12px;
 margin-top: 8px;
 min-height: 1.2em;
}

.ai-scan-overlay {
 position: absolute;
 inset: 0;
 background: linear-gradient(180deg, transparent 0%, rgba(0, 229, 255, 0.1) 50%, transparent 100%);
 pointer-events: none;
 opacity: 0;
 z-index: 10;
}

.ai-verification-box.scanning .ai-scan-overlay {
 opacity: 1;
 animation: scanMove 2.5s linear infinite;
}

@keyframes scanMove {
 0% { transform: translateY(-100%); }
 100% { transform: translateY(100%); }
}

.ai-v-loader {
 text-align: center;
 padding: 15px;
 font-family: monospace;
 color: var(--accent-blue);
}

.scan-text {
 font-size: 0.85rem;
 margin-top: 10px;
 text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.status-verdadero { color: var(--accent-blue) !important; text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
.status-falso { color: #ff2d55 !important; text-shadow: 0 0 10px rgba(255, 45, 85, 0.4); }
.status-dudoso { color: #ffcc00 !important; text-shadow: 0 0 10px rgba(255, 204, 0, 0.4); }

.ai-v-meter {
 height: 4px;
 background: rgba(255, 255, 255, 0.05);
 border-radius: 2px;
 margin-bottom: 12px;
 overflow: hidden;
}

.ai-v-fill {
 height: 100%;
 background: linear-gradient(90deg, #00e5ff, #ffaa00);
 transition: width 1.5s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.ai-v-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 800;
}

.ai-v-percentage {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.ai-v-status {
    font-size: 0.9rem;
    padding: 2px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-verdadero { color: var(--accent-blue); background: rgba(0, 186, 124, 0.1); }
.status-falso { color: #ff2d55; background: rgba(255, 45, 85, 0.1); }
.status-dudoso { color: #ffd600; background: rgba(255, 214, 0, 0.1); }

.ai-v-verdict {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #00e5ff;
    border-radius: 4px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.post-modal-submit {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
}

.post-modal-submit:hover {
    filter: brightness(1.1);
}

.post-modal-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .fab-neural-post {
        display: none !important;
    }
    #post-modal {
        padding: 0;
        align-items: flex-end;
    }
    .post-modal-box {
        max-height: 92vh;
        max-width: 100%;
        width: 100%;
        border-radius: 20px 20px 0 0;
    }
    .post-modal-form textarea {
        font-size: 1rem;
        min-height: 80px;
    }
    .post-modal-trends-wrapper {
        padding: 10px;
    }
    .trend-chip {
        font-size: 0.78rem;
        padding: 5px 10px;
    }
}

/* ============================================
   POST TRANSLATION MODULE
   ============================================ */
.post-translation-wrap {
    margin: 32px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .post-translation-wrap {
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(0, 229, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.translation-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.translation-heading i {
    color: var(--accent-blue);
    font-size: 1.25rem;
}

[data-theme="dark"] .translation-heading i {
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

.translation-widget-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 40px;
}

.translation-widget-area .gtranslate_wrapper {
    display: inline-block !important;
    width: auto !important;
}

/* Ocultar header mÃ³vil en PC */
.mobile-explore-header, .mobile-single-header {
    display: none;
}

.single-header-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 15px;
    height: 53px;
}

.single-back-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.single-back-btn:hover {
    background: var(--hover-gray);
}

/* =============================================
   ðŸ”¥ðŸ”¥ðŸ”¥ MOBILE DARK NEURALFEED REDESIGN ðŸ”¥ðŸ”¥ðŸ”¥
   ============================================= */
@media (max-width: 700px) {

    /* ---- Override CSS Variables in mobile ---- */
    [data-theme="dark"] {
        --bg-main: #0a0e1a;
        --bg-secondary: #111827;
        --text-primary: #e8edf5;
        --text-secondary: #6b7a99;
        --border-line: rgba(56, 189, 248, 0.08);
        --accent-blue: #00e5ff;
        --accent-blue-hover: #00b8d4;
        --accent-blue-light: rgba(0, 229, 255, 0.08);
        --hover-gray: rgba(255, 255, 255, 0.04);
        --card-bg: rgba(17, 24, 39, 0.7);
        --glow-color: rgba(0, 229, 255, 0.12);
        --card-border: rgba(56, 189, 248, 0.12);
    }

    /* ---- Body & Layout ---- */
    body {
        padding-bottom: 82px;
    }

    [data-theme="dark"] body {
        background: #0a0e1a;
        background-image:
            radial-gradient(ellipse at 20% 0%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 100%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
        background-attachment: fixed;
    }

    .main-layout-constraint {
        display: block;
    }

    .sidebar-primary,
    .sidebar-secondary,
    .pc-header-content {
        display: none !important;
    }

    .feed-main-col {
        width: 100%;
        border: none;
        background: transparent;
    }

    /* ---- Mobile Header: NeuralFeed Style ---- */
    .mobile-explore-header {
        display: block !important;
    }

    .single-header-row {
        display: none !important;
    }

    [data-theme="dark"] .sticky-feed-header {
        background: rgba(10, 14, 26, 0.92);
        backdrop-filter: blur(20px) saturate(1.6);
        -webkit-backdrop-filter: blur(20px) saturate(1.6);
        border-bottom: 1px solid rgba(0, 229, 255, 0.06);
    }

    /* Top bar: avatar + logo + settings (ambos temas) */
    .m-top-search-row {
        display: flex;
        align-items: center;
        padding: 12px 16px 10px;
        gap: 12px;
    }

    .m-avatar-top {
        flex-shrink: 0;
        cursor: pointer;
    }

    .m-avatar-top img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--border-line);
    }

    /* Logo centrado */
    .m-brand-logo {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        text-decoration: none;
        color: var(--text-primary);
        font-weight: 900;
        font-size: 1.2rem;
        letter-spacing: -0.02em;
    }

    .m-brand-logo i {
        color: var(--accent-blue);
        font-size: 1.1rem;
    }

    /* Dark overrides para avatar y logo */
    [data-theme="dark"] .m-avatar-top img {
        border: 2px solid rgba(0, 229, 255, 0.25);
        box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
    }

    [data-theme="dark"] .m-brand-logo {
        color: #e8edf5;
    }

    [data-theme="dark"] .m-brand-logo i {
        color: var(--accent-blue);
        text-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
    }

    .m-settings-btn {
        font-size: 1.2rem;
        color: var(--text-secondary);
        cursor: pointer;
        transition: color 0.2s, text-shadow 0.2s;
        padding: 6px;
        flex-shrink: 0;
    }

    /* Mejora visibilidad hamburguesa light mode */
    [data-theme="light"] #m-hamburger-btn {
        color: #0f1419 !important;
        background: rgba(0,0,0,0.05);
        padding: 8px;
        border-radius: 50%;
    }

    .m-settings-btn:hover {
        color: var(--accent-blue);
    }

    [data-theme="dark"] .m-settings-btn:hover {
        text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    }

    /* ---- Category Tabs (Discover / Nodes / Synthetics style) ---- */
    [data-theme="dark"] .m-category-tabs {
        display: flex;
        justify-content: flex-start;
        gap: 0;
        padding: 0 4px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-bottom: 1px solid rgba(0, 229, 255, 0.06);
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0;
    }

    [data-theme="dark"] .m-category-tabs::-webkit-scrollbar {
        display: none;
    }

    [data-theme="dark"] .m-category-tabs .cat-tab {
        flex-shrink: 0;
        padding: 12px 18px;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--text-secondary);
        text-decoration: none;
        white-space: nowrap;
        position: relative;
        transition: color 0.25s;
        letter-spacing: 0.01em;
        scroll-snap-align: start;
    }

    [data-theme="dark"] .m-category-tabs .cat-tab:hover {
        color: var(--text-primary);
    }

    [data-theme="dark"] .m-category-tabs .cat-tab.active {
        color: var(--accent-blue);
        font-weight: 700;
    }

    [data-theme="dark"] .m-category-tabs .cat-tab.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 3px;
        background: var(--accent-blue);
        border-radius: 3px 3px 0 0;
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    }

    /* Primer tab siempre visible — nunca se corta sin importar el scrollLeft */
    #m-feed-tabs .cat-tab:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        background: rgb(10, 14, 26);
        padding-right: 12px;
    }
    [data-theme="light"] #m-feed-tabs .cat-tab:first-child {
        background: var(--bg-main, #fff);
    }

    /* ---- Category Tabs: LIGHT MODE ---- */
    .m-category-tabs {
        display: flex;
        justify-content: flex-start;
        gap: 0;
        padding: 0 4px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-bottom: 1px solid var(--border-line);
        background: var(--bg-main);
        scroll-snap-type: x mandatory;
        scroll-padding-left: 0;
    }

    .m-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .m-category-tabs .cat-tab {
        flex-shrink: 0;
        padding: 12px 16px;
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--text-secondary);
        text-decoration: none;
        white-space: nowrap;
        position: relative;
        transition: color 0.2s;
        scroll-snap-align: start;
    }

    .m-category-tabs .cat-tab:hover {
        color: var(--text-primary);
    }

    .m-category-tabs .cat-tab.active {
        color: var(--text-primary);
        font-weight: 700;
    }

    /* Tab selector de país */
    .ptv-country-tab {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }
    .ctab-arrow {
        font-size: 0.6rem;
        opacity: 0.55;
        line-height: 1;
    }
    .ptv-country-tab:hover .ctab-arrow { opacity: 1; }
    .m-category-tabs .cat-tab-more {
        color: var(--accent-blue);
        font-weight: 700;
        border: 1px solid rgba(0,229,255,0.35);
        border-radius: 20px;
        padding: 6px 14px;
        margin: auto 4px;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        gap: 5px;
        background: rgba(0,229,255,0.06);
        transition: background 0.2s, transform 0.15s;
    }
    .m-category-tabs .cat-tab-more:hover {
        background: rgba(0,229,255,0.14);
        transform: scale(1.04);
    }

    .m-category-tabs .cat-tab.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 3px;
        background: var(--accent-blue);
        border-radius: 3px 3px 0 0;
    }

    /* Light mode sticky header */
    [data-theme="light"] .sticky-feed-header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-line);
    }

    /* ---- Prompt Bar mobile ---- */
    .mobile-prompt-bar {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border-bottom: 1px solid var(--border-line);
        background: var(--card-bg);
        cursor: pointer;
    }

    .mobile-prompt-bar .prompt-avatar {
        flex-shrink: 0;
    }

    .mobile-prompt-bar .prompt-avatar img {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }

    .mobile-prompt-bar .prompt-text {
        flex: 1;
        color: var(--text-secondary);
        font-size: 0.92rem;
    }

    .mobile-prompt-bar .prompt-comment-btn {
        background: var(--accent-blue);
        color: #fff;
        border: none;
        border-radius: 99px;
        padding: 7px 16px;
        font-size: 0.85rem;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
    }

    [data-theme="dark"] .x-tweet-card-style {
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        border-radius: 16px;
        margin: 10px 12px;
        padding: 14px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
            border-color 0.25s;
        position: relative;
        overflow: hidden;
    }

    [data-theme="dark"] .x-tweet-card-style::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 16px;
        padding: 1px;
        background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), transparent 60%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    [data-theme="dark"] .x-tweet-card-style:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(0, 229, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.3);
        border-color: rgba(0, 229, 255, 0.2);
        background: rgba(17, 24, 39, 0.85);
    }

    [data-theme="dark"] .x-tweet-card-style:hover::before {
        opacity: 1;
    }

    /* Avatar glow */
    [data-theme="dark"] .tweet-left-avatar img {
        border: 2px solid rgba(0, 229, 255, 0.2);
        box-shadow: 0 0 8px rgba(0, 229, 255, 0.1);
        width: 44px;
        height: 44px;
    }

    /* Author line */
    [data-theme="dark"] .tr-name {
        font-weight: 700;
        font-size: 0.92rem;
    }

    [data-theme="dark"] .tr-user {
        color: #4b6a9b;
        font-size: 0.82rem;
    }

    [data-theme="dark"] .tr-date {
        font-size: 0.82rem;
    }

    /* three dots shown in dark mobile */
    [data-theme="dark"] .tr-more-dots {
        display: inline-block;
        margin-left: auto;
        color: var(--text-secondary);
        cursor: pointer;
        font-size: 1rem;
        opacity: 0.5;
        transition: opacity 0.2s;
    }

    [data-theme="dark"] .tr-more-dots:hover {
        opacity: 1;
        color: var(--accent-blue);
    }

    /* Post title */
    [data-theme="dark"] .tr-post-title {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.35;
        margin-bottom: 6px;
    }

    /* Excerpt */
    [data-theme="dark"] .tr-excerpt-small {
        font-size: 0.88rem;
        line-height: 1.45;
        color: #8899b4;
    }

    /* Featured thumbnail - full width inside card */
    [data-theme="dark"] .tweet-content-flex {
        flex-direction: column;
        gap: 10px;
    }

    [data-theme="dark"] .tweet-thumbnail-side {
        width: 100%;
        height: 180px;
        border-radius: 12px;
        border: 1px solid rgba(0, 229, 255, 0.08);
        overflow: hidden;
        position: relative;
    }

    [data-theme="dark"] .tweet-thumbnail-side::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(10, 14, 26, 0.3), transparent 40%);
        pointer-events: none;
    }

    [data-theme="dark"] .tweet-thumbnail-side img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    [data-theme="dark"] .x-tweet-card-style:hover .tweet-thumbnail-side img {
        transform: scale(1.05);
    }

    /* Category Tag badge visible on card */
    [data-theme="dark"] .card-category-tag {
        display: inline-block !important;
        background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(59, 130, 246, 0.1));
        color: var(--accent-blue);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 4px 10px;
        border-radius: 6px;
        margin-top: 8px;
        border: 1px solid rgba(0, 229, 255, 0.12);
    }

    /* ap-actions-bar siempre visible, misma en mobile y desktop */
    [data-theme="dark"] .ap-actions-bar {
        border-top-color: rgba(0, 229, 255, 0.06);
    }

    /* ---- Hero Article: Reimagined ---- */
    [data-theme="dark"] .featured-impact-hero {
        margin: 10px 12px;
        border-radius: 18px;
        height: 220px;
        border: 1px solid rgba(0, 229, 255, 0.1);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
        overflow: hidden;
    }

    [data-theme="dark"] .featured-impact-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 18px;
        box-shadow: inset 0 0 40px rgba(0, 229, 255, 0.04);
        pointer-events: none;
    }

    [data-theme="dark"] .hero-text-overlay {
        background: linear-gradient(transparent 10%, rgba(10, 14, 26, 0.9) 80%);
        padding: 16px;
    }

    [data-theme="dark"] .hero-main-title {
        font-size: 1.15rem;
        font-weight: 800;
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
    }

    /* ---- Bottom Navigation: NeuralFeed Style ---- */
    .mobile-bottom-navbar {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 2000;
        display: flex !important;
        justify-content: space-around;
        align-items: stretch;
        height: 60px;
        background: rgba(8,12,22,0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-top: 1px solid rgba(0,229,255,0.1);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    }

    .mbn-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: rgba(100,130,180,0.7);
        text-decoration: none;
        font-size: 1.25rem;
        transition: color 0.2s, transform 0.15s;
        padding: 8px 2px 6px;
        position: relative;
        min-width: 0;
    }

    .mbn-item span {
        font-size: 0.6rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        white-space: nowrap;
        line-height: 1;
    }

    .mbn-item.active { color: var(--accent-blue); }
    .mbn-item.active i { filter: drop-shadow(0 0 6px rgba(0,229,255,0.5)); }

    .mbn-item.active::before {
        content: '';
        position: absolute;
        top: 0; left: 50%;
        transform: translateX(-50%);
        width: 24px; height: 2px;
        background: var(--accent-blue);
        border-radius: 0 0 4px 4px;
        box-shadow: 0 0 10px rgba(0,229,255,0.6);
    }

    .mbn-center {
        flex: 0 0 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -14px;
    }

    .mbn-plus {
        width: 48px; height: 48px;
        background: linear-gradient(135deg, #00e5ff 0%, #0070f3 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        color: #0a0e1a;
        box-shadow: 0 2px 16px rgba(0,229,255,0.45), 0 0 0 3px rgba(0,229,255,0.12);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .mbn-center:active .mbn-plus {
        transform: scale(0.93);
        box-shadow: 0 1px 8px rgba(0,229,255,0.3);
    }

    /* ---- Mobile Login Modal Dark Overrides ---- */
    [data-theme="dark"] .lm-box {
        background: rgba(17, 24, 39, 0.95);
        border: 1px solid rgba(0, 229, 255, 0.1);
        backdrop-filter: blur(20px);
    }

    [data-theme="dark"] .lm-logo i {
        color: var(--accent-blue);
        text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    }

    [data-theme="dark"] .lm-btn-submit {
        background: linear-gradient(135deg, var(--accent-blue), #007fff);
        color: #0a0e1a;
    }

    [data-theme="dark"] .lm-btn-submit:hover {
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    }

    /* ---- Infinite scroll trigger ---- */
    [data-theme="dark"] #infinite-scroll-trigger {
        color: var(--text-secondary);
    }

    [data-theme="dark"] #infinite-scroll-trigger i {
        color: var(--accent-blue) !important;
    }

    /* ---- NeuralFeed brand decorators ---- */
    [data-theme="dark"] .m-top-search-row::after {
        content: 'âœ¦';
        position: absolute;
        left: 50%;
        top: 16px;
        transform: translateX(52px);
        color: var(--accent-blue);
        font-size: 0.7rem;
        opacity: 0.6;
        animation: sparkle 2s ease-in-out infinite;
    }

    @keyframes sparkle {

        0%,
        100% {
            opacity: 0.3;
            transform: translateX(52px) scale(0.8);
        }

        50% {
            opacity: 0.8;
            transform: translateX(52px) scale(1.2);
        }
    }

    /* ---- Scrollbar for dark mobile ---- */
    [data-theme="dark"] ::-webkit-scrollbar {
        width: 3px;
    }

    [data-theme="dark"] ::-webkit-scrollbar-track {
        background: transparent;
    }

    [data-theme="dark"] ::-webkit-scrollbar-thumb {
        background: rgba(0, 229, 255, 0.15);
        border-radius: 3px;
    }

    /* ---- Feed posts list spacing ---- */
    [data-theme="dark"] .feed-posts-list {
        padding-bottom: 20px;
    }

    /* ---- Aviso comunidad mobile ---- */
    .community-notice-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 7px 16px;
        font-size: 0.75rem;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border-line);
        background: var(--bg-secondary);
    }

    .community-notice-mobile i {
        color: var(--accent-blue);
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    [data-theme="dark"] .community-notice-mobile {
        background: rgba(10, 14, 26, 0.6);
        border-bottom: 1px solid rgba(0, 229, 255, 0.06);
        color: #4b6a9b;
    }

    [data-theme="dark"] .community-notice-mobile i {
        color: var(--accent-blue);
        text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
    }

    /* Light mode mobile navbar */
    [data-theme="light"] .mobile-bottom-navbar {
        background: rgba(255,255,255,0.97);
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
    }

    [data-theme="light"] .mbn-item {
        color: rgba(80,100,130,0.7);
    }

    [data-theme="light"] .mbn-item.active {
        color: var(--accent-blue);
    }

    [data-theme="light"] .mobile-bottom-navbar .fab-post-btn {
        background: var(--accent-blue);
        width: 46px;
        height: 46px;
        border-radius: 50%;
        margin-top: -16px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(29, 155, 240, 0.3);
        color: #fff;
    }

    [data-theme="light"] .mobile-bottom-navbar .fab-post-btn .mob-nav-label {
        display: none;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    [data-theme="dark"] .x-tweet-card-style {
        animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
    }

    [data-theme="dark"] .x-tweet-card-style:nth-child(1) {
        animation-delay: 0.05s;
    }

    [data-theme="dark"] .x-tweet-card-style:nth-child(2) {
        animation-delay: 0.1s;
    }

    [data-theme="dark"] .x-tweet-card-style:nth-child(3) {
        animation-delay: 0.15s;
    }

    [data-theme="dark"] .x-tweet-card-style:nth-child(4) {
        animation-delay: 0.2s;
    }

    [data-theme="dark"] .x-tweet-card-style:nth-child(5) {
        animation-delay: 0.25s;
    }
}

/* =============================================
   PC DARK MODE — NeuralFeed Effects
   ============================================= */
@media (min-width: 701px) {

    /* Ocultar navbar móvil en desktop */
    .mobile-bottom-navbar { display: none !important; }
    .fab-neural-post { display: none !important; }

    /* Background atmosférico */
    [data-theme="dark"] body {
        background: #050810;
        background-image:
            radial-gradient(ellipse at 15% 0%, rgba(0, 229, 255, 0.05) 0%, transparent 45%),
            radial-gradient(ellipse at 85% 100%, rgba(59, 130, 246, 0.04) 0%, transparent 45%),
            radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 60%);
        background-attachment: fixed;
    }

    /* Sidebar con glass */
    [data-theme="dark"] .sidebar-primary {
        background: rgba(5, 8, 16, 0.85);
        border-right: 1px solid rgba(0, 229, 255, 0.07);
        backdrop-filter: blur(12px);
    }

    /* Logo bolt glow */
    [data-theme="dark"] .x-logo-box {
        color: var(--accent-blue);
        transition: color 0.2s, text-shadow 0.2s, background 0.2s;
    }

    [data-theme="dark"] .x-logo-box:hover {
        background: rgba(0, 229, 255, 0.08);
        text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    }

    /* Nav items — icon-only, tooltip on hover */
    [data-theme="dark"] .x-nav-item {
        color: #71767b;
        transition: color 0.2s, background 0.2s;
    }

    [data-theme="dark"] .x-nav-item:hover {
        background: rgba(0, 229, 255, 0.06);
        color: #e2e8f0;
    }

    [data-theme="dark"] .x-nav-item.active {
        color: var(--accent-blue);
        background: rgba(0, 229, 255, 0.09);
    }

    [data-theme="dark"] .x-nav-item i {
        transition: color 0.2s, text-shadow 0.2s;
    }

    [data-theme="dark"] .x-nav-item:hover i {
        color: var(--accent-blue);
        text-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
    }

    [data-theme="dark"] .x-nav-item.active i {
        filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
    }

    /* Profile pill glow sutil */
    [data-theme="dark"] .profile-pill:hover {
        background: rgba(0, 229, 255, 0.05);
    }

    [data-theme="dark"] .p-avatar-circle img {
        border: 2px solid rgba(0, 229, 255, 0.2);
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
    }

    /* Feed col */
    [data-theme="dark"] .feed-main-col {
        background: transparent;
        border-right: 1px solid rgba(0, 229, 255, 0.07);
    }

    /* Sticky header */
    [data-theme="dark"] .sticky-feed-header {
        background: rgba(5, 8, 16, 0.88);
        backdrop-filter: blur(20px) saturate(1.5);
        -webkit-backdrop-filter: blur(20px) saturate(1.5);
        border-bottom: 1px solid rgba(0, 229, 255, 0.07);
    }

    /* Tabs */
    [data-theme="dark"] .header-tab {
        color: #4b6a9b;
        transition: color 0.2s, background 0.2s;
    }

    [data-theme="dark"] .header-tab:hover {
        background: rgba(0, 229, 255, 0.04);
        color: #8899b4;
    }

    [data-theme="dark"] .header-tab.active {
        color: #e8edf5;
    }

    [data-theme="dark"] .header-tab.active::after {
        background: #00e5ff;
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    }

    [data-theme="dark"] .mobile-prompt-bar .prompt-comment-btn {
        background: var(--accent-blue);
        color: white;
        border: none;
        border-radius: 99px;
        padding: 5px 14px;
        font-size: 0.8rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    [data-theme="dark"] .mobile-prompt-bar .prompt-comment-btn:hover {
        filter: brightness(1.1);
        transform: translateY(-1px);
    }

    /* ---- News Cards: Glass Morphism NeuralFeed Style ---- */
    [data-theme="dark"] .x-tweet-card-style {
        position: relative;
        border-bottom: 1px solid rgba(0, 229, 255, 0.05);
        transition: background 0.2s, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.22s;
        overflow: hidden;
    }

    [data-theme="dark"] .x-tweet-card-style::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, rgba(0, 229, 255, 0.04) 0%, transparent 60%);
        opacity: 0;
        transition: opacity 0.25s;
        pointer-events: none;
    }

    [data-theme="dark"] .x-tweet-card-style:hover {
        background: rgba(255, 255, 255, 0.025);
        transform: translateX(3px);
        box-shadow: -3px 0 0 rgba(0, 229, 255, 0.4),
            4px 0 20px rgba(0, 229, 255, 0.04);
    }

    [data-theme="dark"] .x-tweet-card-style:hover::before {
        opacity: 1;
    }

    /* Avatar glow PC */
    [data-theme="dark"] .tweet-left-avatar img {
        border: 2px solid rgba(0, 229, 255, 0.15);
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    [data-theme="dark"] .x-tweet-card-style:hover .tweet-left-avatar img {
        border-color: rgba(0, 229, 255, 0.35);
        box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
    }

    /* Texto cards */
    [data-theme="dark"] .tr-post-title {
        color: #e8edf5;
    }

    [data-theme="dark"] .tr-excerpt-small {
        color: #6b7a99;
    }

    [data-theme="dark"] .tr-name {
        color: #c8d3e8;
    }

    [data-theme="dark"] .tr-user,
    [data-theme="dark"] .tr-date {
        color: #4b6a9b;
    }

    /* Thumbnail PC hover zoom */
    [data-theme="dark"] .tweet-thumbnail-side {
        border: 1px solid rgba(0, 229, 255, 0.08);
        overflow: hidden;
    }

    [data-theme="dark"] .tweet-thumbnail-side img {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    [data-theme="dark"] .x-tweet-card-style:hover .tweet-thumbnail-side img {
        transform: scale(1.06);
    }

    /* Actions bar */
    [data-theme="dark"] .tweet-actions-bar {
        color: #4b6a9b;
    }

    /* --- SEARCH SUGGESTIONS --- */
    .pc-search-pill-box {
        position: relative;
    }

    .ap-search-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-main);
        border: 1px solid var(--border-line);
        border-radius: 12px;
        margin-top: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        z-index: 1000;
        display: none;
        overflow: hidden;
    }

    .ap-search-results.active {
        display: block;
    }

    .ap-search-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        text-decoration: none;
        color: var(--text-primary);
        transition: background 0.2s;
        border-bottom: 1px solid var(--border-line);
    }

    .ap-search-item:last-child {
        border-bottom: none;
    }

    .ap-search-item:hover {
        background: var(--bg-secondary);
    }

    .ap-search-item img {
        width: 40px;
        height: 40px;
        border-radius: 6px;
        object-fit: cover;
    }

    .ap-search-no-thumb {
        width: 40px;
        height: 40px;
        border-radius: 6px;
        background: var(--border-line);
    }

    .ap-search-info {
        flex: 1;
        min-width: 0;
    }

    .ap-search-title {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ap-search-no-results {
        padding: 12px 16px 6px;
        text-align: center;
        font-size: 0.82rem;
        color: var(--text-secondary);
    }
    .ap-search-ai-suggest {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px 14px;
        flex-wrap: wrap;
        border-top: 1px solid rgba(0,229,255,0.1);
        margin-top: 4px;
    }
    .ap-search-ai-suggest i { color: #a78bfa; font-size: 0.85rem; flex-shrink: 0; }
    .ap-search-ai-suggest span { font-size: 0.78rem; color: var(--text-secondary); flex: 1; min-width: 120px; }
    .ap-search-ai-suggest span strong { color: var(--text-primary); }
    .ap-search-ai-btn {
        font-size: 0.72rem; font-weight: 800; padding: 5px 12px;
        border-radius: 8px; border: 1px solid rgba(167,139,250,0.4);
        background: rgba(167,139,250,0.08); color: #a78bfa;
        cursor: pointer; white-space: nowrap; transition: background 0.15s;
    }
    .ap-search-ai-btn:hover { background: rgba(167,139,250,0.18); }
    .ap-search-ai-btn:disabled { opacity: 0.6; cursor: default; }

    [data-theme="dark"] .ap-search-results {
        background: #16181c;
        border-color: #2f3336;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }

    [data-theme="dark"] .ap-search-item:hover {
        background: rgba(255,255,255,0.05);
    }

    [data-theme="dark"] .ta-btn:hover {
        background: rgba(0, 229, 255, 0.08);
        color: var(--accent-blue);
        text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
    }

    /* Hero card PC */
    [data-theme="dark"] .featured-impact-hero {
        border-bottom: 1px solid rgba(0, 229, 255, 0.08);
        transition: opacity 0.2s;
    }

    [data-theme="dark"] .featured-impact-hero:hover {
        opacity: 0.92;
    }

    [data-theme="dark"] .hero-text-overlay {
        background: linear-gradient(transparent 5%, rgba(5, 8, 16, 0.92) 80%);
    }

    /* Right sidebar */
    [data-theme="dark"] .sidebar-secondary {
        border-left: none;
    }

    [data-theme="dark"] .pc-search-pill-box {
        background: rgba(17, 24, 39, 0.7);
        border: 1px solid rgba(0, 229, 255, 0.08);
        backdrop-filter: blur(8px);
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    [data-theme="dark"] .pc-search-pill-box:focus-within {
        border-color: rgba(0, 229, 255, 0.3);
        box-shadow: 0 0 16px rgba(0, 229, 255, 0.08);
    }

    [data-theme="dark"] .pc-search-pill-box input {
        color: #e8edf5;
    }

    [data-theme="dark"] .pc-search-pill-box i {
        color: #4b6a9b;
    }

    [data-theme="dark"] .trends-widget-box {
        background: rgba(17, 24, 39, 0.6);
        border: 1px solid rgba(0, 229, 255, 0.07);
        backdrop-filter: blur(12px);
    }

    [data-theme="dark"] .trends-widget-box h3 {
        color: #e8edf5;
        border-bottom: 1px solid rgba(0, 229, 255, 0.06);
        padding-bottom: 14px;
    }

    [data-theme="dark"] .trend-cell {
        border-top: 1px solid rgba(0, 229, 255, 0.05);
        transition: background 0.2s, transform 0.2s;
    }

    [data-theme="dark"] .trend-cell:hover {
        background: rgba(0, 229, 255, 0.04);
        transform: translateX(4px);
    }

    [data-theme="dark"] .cell-cat {
        color: #4b6a9b;
    }

    [data-theme="dark"] .cell-title {
        color: #c8d3e8;
    }

    [data-theme="dark"] .cell-meta {
        color: #3d5478;
    }

    /* Scrollbar PC dark */
    [data-theme="dark"] ::-webkit-scrollbar {
        width: 4px;
    }

    [data-theme="dark"] ::-webkit-scrollbar-track {
        background: transparent;
    }

    [data-theme="dark"] ::-webkit-scrollbar-thumb {
        background: rgba(0, 229, 255, 0.12);
        border-radius: 4px;
    }

    [data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 229, 255, 0.25);
    }

    /* Login modal PC dark */
    [data-theme="dark"] .lm-box {
        background: rgba(10, 14, 26, 0.96);
        border: 1px solid rgba(0, 229, 255, 0.12);
        backdrop-filter: blur(24px);
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 229, 255, 0.05);
    }

    [data-theme="dark"] .lm-logo i {
        color: var(--accent-blue);
        text-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
    }

    [data-theme="dark"] .lm-field input {
        border-color: rgba(0, 229, 255, 0.12);
        background: rgba(255, 255, 255, 0.03);
    }

    [data-theme="dark"] .lm-field input:focus {
        border-color: rgba(0, 229, 255, 0.4);
        box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
    }

    [data-theme="dark"] .lm-btn-submit {
        background: linear-gradient(135deg, var(--accent-blue), #007fff);
        color: #050810;
    }

    [data-theme="dark"] .lm-btn-submit:hover {
        box-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
    }

    [data-theme="dark"] .lm-btn-register {
        border-color: rgba(0, 229, 255, 0.15);
    }

    [data-theme="dark"] .lm-btn-register:hover {
        background: rgba(0, 229, 255, 0.06);
    }

    /* Card fade-in PC */
    [data-theme="dark"] .x-tweet-card-style {
        animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
    }

    [data-theme="dark"] .x-tweet-card-style:nth-child(1) {
        animation-delay: 0.04s;
    }

    [data-theme="dark"] .x-tweet-card-style:nth-child(2) {
        animation-delay: 0.08s;
    }

    [data-theme="dark"] .x-tweet-card-style:nth-child(3) {
        animation-delay: 0.12s;
    }

    [data-theme="dark"] .x-tweet-card-style:nth-child(4) {
        animation-delay: 0.16s;
    }

    [data-theme="dark"] .x-tweet-card-style:nth-child(5) {
        animation-delay: 0.20s;
    }
}

/* ============================================
   MOBILE: COMPACT CARD & HERO SIZES
   ============================================ */
@media (max-width: 700px) {
    /* Shrink featured hero */
    .featured-impact-hero {
        height: 140px;
    }
    [data-theme="dark"] .featured-impact-hero {
        height: 150px;
    }
    /* Hero v2 en mobile: altura automática para que el contenido quepa */
    .featured-impact-hero.hero-v2 {
        height: auto;
        min-height: 260px;
    }
    .hero-v2-content { padding: 20px 16px 18px; }
    .hero-v2-title   { font-size: 1.1rem; }
    .hero-v2-excerpt { display: none; }
    .hero-v2-actions { gap: 10px; }
    .hero-v2-btn     { font-size: 0.76rem; padding: 7px 14px; }
    .hero-v2-byline  { display: none; }
    .hero-main-title {
        font-size: 1.05rem;
    }
    .hero-text-overlay {
        padding: 10px 12px;
    }

    /* Excerpt visible en mobile */
    .tr-excerpt-small {
        display: block;
        font-size: 0.78rem;
        opacity: 0.7;
        margin-top: 3px;
        line-height: 1.4;
    }

    /* --- ADVANCED AI UI ENHANCEMENTS --- */
.x-tweet-card-style {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    max-width: 100%;
}

/* AI Scanning Border on Hover */
.x-tweet-card-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-blue), transparent);
    transform: translateY(-100%);
    transition: transform 0.6s;
    z-index: 5;
}

.x-tweet-card-style:hover::before {
    animation: dataScan 1.5s infinite linear;
}

.x-tweet-card-style:hover {
    background: rgba(29, 155, 240, 0.03);
    border-left-color: var(--accent-blue);
    transform: translateX(4px);
}

[data-theme="dark"] .x-tweet-card-style:hover {
    background: rgba(0, 255, 204, 0.02);
}

/* AI Relevance Badge */
.ai-badge-neural {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 255, 204, 0.25);
    color: var(--accent-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    text-transform: uppercase;
    animation: neuroPulse 2s infinite ease-in-out;
}

.ai-badge-neural i {
    font-size: 11px;
}

/* Neural Heading Effect */
.pc-header-content h2 {
    background: linear-gradient(90deg, var(--text-primary), var(--accent-blue), var(--text-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glowMove 4s linear infinite;
    font-weight: 900;
}

/* Data Processing Glow */
.trends-widget-box {
    border: 1px solid rgba(29, 155, 240, 0.1);
    background: linear-gradient(135deg, rgba(29, 155, 240, 0.02) 0%, transparent 100%);
}

[data-theme="dark"] .trends-widget-box {
    border-color: rgba(0, 255, 204, 0.05);
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.03) 0%, transparent 100%);
    box-shadow: inset 0 0 40px rgba(0, 255, 204, 0.02);
}

.trend-cell {
    position: relative;
    overflow: hidden;
}

.trend-cell::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.05), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.trend-cell:hover::after {
    animation: neuralFlow 1s forwards;
}

/* Sidebar Logo Enhancement */
.x-logo-box::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.15) 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
    animation: neuroPulse 3s infinite;
}

    /* --- NEURAL DATA STREAM LOADER --- */
.neural-loader-container {
    width: 100%;
    padding: 30px 20px;
    display: none; /* Controlled by JS */
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.neural-loader-container.active {
    display: flex;
}

.neural-progress-track {
    width: 200px;
    height: 4px;
    background: rgba(29, 155, 240, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .neural-progress-track {
    background: rgba(0, 255, 204, 0.1);
}

.neural-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #1d9bf0, transparent);
    animation: streamMove 1.2s infinite ease-in-out;
}

[data-theme="dark"] .neural-progress-bar {
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.neural-loader-text {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.neural-loader-text i {
    animation: neuroPulse 1.5s infinite;
}

[data-theme="dark"] .neural-loader-text {
    color: var(--accent-blue);
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
}
    .x-tweet-card-style {
        padding: 10px 12px;
        gap: 10px;
    }
    .tr-post-title {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0;
    }
    .tweet-thumbnail-side {
        width: 88px;
        height: 88px;
        flex-shrink: 0;
    }

    /* Dark mode cards: restore row layout + compact thumbnail */
    [data-theme="dark"] .x-tweet-card-style {
        padding: 10px 12px;
        margin: 5px 8px;
    }
    [data-theme="dark"] .tweet-content-flex {
        flex-direction: row !important;
        gap: 10px;
        align-items: flex-start;
    }
    [data-theme="dark"] .tweet-thumbnail-side {
        width: 88px !important;
        height: 88px !important;
        border-radius: 10px;
        flex-shrink: 0;
    }
    [data-theme="dark"] .tweet-thumbnail-side::after {
        display: none;
    }
    [data-theme="dark"] .tr-post-title {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0;
    }
    [data-theme="dark"] .tr-excerpt-small {
        display: none !important;
    }

    /* Engagement bar – single post mobile */
    .single-engagement-bar {
        padding: 0;
        border: none;
    }
    .single-stat {
        padding: 6px 8px;
        gap: 5px;
        font-size: 0.8rem;
    }
    .single-stat i {
        font-size: 0.9rem;
    }
}

/* Neural heartbeat replaced by AI Robot system above */


/* REPOST NEURAL SWIRL */
.repost-trigger {
    transition: all 0.3s;
}

.repost-trigger:hover i {
    color: var(--accent-blue);
    filter: drop-shadow(0 0 8px var(--accent-blue-light));
}

.repost-trigger.animating i {
    animation: neuralSwirl 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: var(--accent-blue);
}

@keyframes neuralSwirl {
    0% { transform: rotate(0deg) scale(1); }
    30% { transform: rotate(180deg) scale(1.4); filter: drop-shadow(0 0 15px var(--accent-blue-light)); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Neural Particles enhancement */
.neural-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff2d55;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
}

.like-trigger.animating .neural-particle {
    animation: particleFly 0.7s ease-out forwards;
}

.like-trigger.animating .neural-particle:nth-child(2) { --tx: 20px; --ty: -20px; animation-delay: 0.1s; }
.like-trigger.animating .neural-particle:nth-child(3) { --tx: -20px; --ty: -20px; animation-delay: 0.15s; }
.like-trigger.animating .neural-particle:nth-child(4) { --tx: 25px; --ty: 10px; animation-delay: 0.05s; }
.like-trigger.animating .neural-particle:nth-child(5) { --tx: -25px; --ty: 15px; animation-delay: 0.2s; }

@keyframes particleFly {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* VIEW ALL TRENDS LINK */
.view-all-trends {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 16px 14px;
    padding: 7px 18px;
    background: rgba(0,229,255,0.08);
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.view-all-trends:hover {
    background: rgba(0,229,255,0.16);
    transform: translateY(-1px);
}

/* MODAL TENDENCIAS */
.trends-modal-overlay {
    display: none !important;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.trends-modal-overlay.open { display: flex !important; }
.trends-modal-box {
    background: var(--card-bg);
    border: 1px solid var(--border-line);
    border-radius: 18px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.trends-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-line);
    font-weight: 700;
    font-size: 1rem;
}
.trends-modal-header i { color: var(--accent-blue); margin-right: 8px; }
.trends-modal-header button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.2s;
}
.trends-modal-header button:hover { background: var(--hover-bg); }
.trends-modal-body {
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.trend-modal-item {
    display: flex;
    flex-direction: column;
    background: var(--hover-bg);
    border: 1px solid var(--border-line);
    border-radius: 20px;
    padding: 7px 14px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.trend-modal-item:hover {
    background: rgba(0,229,255,0.08);
    border-color: var(--accent-blue);
}
.tmi-tag {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.tmi-count {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* TRENDS FULL LIST PAGE */
.trends-full-list {
 border-top: 1px solid var(--border-line);
}

/* FILTRO TENDENCIAS */
.trends-filter-bar {
    padding: 10px 16px 8px;
    border-bottom: 1px solid var(--border-line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    position: sticky;
    top: 53px;
    z-index: 9;
}
.trends-filter-label { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; }
.trends-filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tfilter-pill {
    background: transparent;
    border: 1px solid var(--border-line);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.tfilter-pill:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.tfilter-pill.active { background: var(--accent-blue); border-color: var(--accent-blue); color: #000; font-weight: 800; }
.tfilter-locked { opacity: 0.55; }
.tfilter-locked:hover { border-color: #f59e0b; color: #f59e0b; }
.tfilter-custom-range {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding-top: 6px;
}
.tfilter-date-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-line);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
}
/* GATE LOGIN */
.tfilter-login-gate {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tfilter-gate-box {
    background: var(--card-bg);
    border: 1px solid rgba(0,229,255,0.25);
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.tfilter-gate-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.1rem; }
.tfilter-gate-icon { font-size: 2.5rem; margin-bottom: 12px; }
.tfilter-gate-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 8px; color: var(--text-primary); }
.tfilter-gate-sub { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 20px; }
.tfilter-gate-btns { display: flex; flex-direction: column; gap: 10px; }
.tfilter-btn-login { display: block; padding: 11px; border-radius: 8px; border: 1px solid var(--accent-blue); color: var(--accent-blue); font-weight: 700; text-decoration: none; transition: background 0.2s; }
.tfilter-btn-login:hover { background: rgba(0,229,255,0.1); }
.tfilter-btn-register { display: block; padding: 11px; border-radius: 8px; background: var(--accent-blue); color: #000; font-weight: 800; text-decoration: none; }

.trend-row-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-line);
    gap: 10px;
}
.trend-engagement-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 2px;
}
.trend-eng-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
    user-select: none;
}
.trend-eng-item i { font-size: 0.85rem; }
.trend-eng-item:hover { color: var(--accent-blue); transform: scale(1.1); }
.trend-like-btn.liked { color: #f91880; }
.trend-like-btn.liked i { font-weight: 900; }
.trend-share-btn:hover { color: #00e5ff; }

.trend-row-item--hot {
    border-left: 3px solid #f59e0b;
    background: rgba(245,158,11,0.04);
}
.trend-row-item--hot .cell-cat { color: #f59e0b; }
[data-theme="dark"] .trend-row-item--hot { background: rgba(245,158,11,0.06); }

.trend-row-item:hover {
 background: var(--hover-gray);
}

[data-theme="dark"] .trend-row-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.trend-cell-full {
 display: flex;
 flex-direction: column;
 text-decoration: none;
 flex: 1;
}

.trend-more-dots {
 color: var(--text-secondary);
 width: 34px;
 height: 34px;
 display: flex;
 align-items: center;
 justify-content: center;
 border-radius: 50%;
 transition: all 0.2s;
}

.trend-more-dots:hover {
 background: rgba(29, 155, 240, 0.1);
 color: var(--accent-blue);
}

/* GTRANSLATE NEURAL STYLING */
.sidebar-translate-box {
    margin-top: 10px;
    border-top: 1px solid var(--border-line);
    padding-top: 15px !important;
}

.sidebar-translate-box a img {
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%);
    width: 24px !important;
    height: 24px !important;
    object-fit: cover !important;
    margin: 0 4px !important;
    border: 1px solid transparent;
}

.sidebar-translate-box a:hover img {
    filter: grayscale(0%);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--accent-blue);
    border-color: var(--accent-blue);
}

/* --- NEURAL HEARTBEAT ANIMATION --- */
@keyframes neuralPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px #ff2d55); }
    15% { transform: scale(1.3); filter: drop-shadow(0 0 15px #ff2d55); }
    30% { transform: scale(1); filter: drop-shadow(0 0 5px #ff2d55); }
    45% { transform: scale(1.2); filter: drop-shadow(0 0 12px #ff2d55); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px #ff2d55); }
}

.like-trigger.animating .fa-heart {
    animation: neuralPulse 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite !important;
}
/* --- AI CHAT INTERFACE --- */
.ai-v-chat-box {
    margin-top: 20px;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    padding-top: 15px;
}

.ai-v-chat-input-row {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 10px;
    padding: 5px 10px;
    transition: 0.3s;
}
[data-theme="light"] .ai-v-chat-input-row {
    background: #fff;
    border-color: rgba(0, 150, 200, 0.3);
}
.ai-v-chat-input-row:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}
.ai-v-chat-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 8px 0;
    outline: none;
}
[data-theme="light"] .ai-v-chat-input-row input { color: #0f172a; }
[data-theme="light"] .ai-v-chat-input-row input::placeholder { color: #94a3b8; }

.ai-v-chat-input-row button {
    background: transparent;
    border: none;
    color: var(--accent-blue);
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.ai-v-chat-input-row button:hover {
    transform: scale(1.1);
    color: var(--accent-blue);
}

.ai-chat-response-area {
    margin-top: 15px;
    display: none;
}

.ai-chat-bubble {
    background: rgba(0, 229, 255, 0.1);
    border-left: 3px solid #00e5ff;
    padding: 12px 15px;
    border-radius: 0 10px 10px 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #e8edf5;
    animation: slideUp 0.3s ease-out;
}

.ai-chat-bubble.ai-loading {
    border-left-color: #bf00ff;
    opacity: 0.7;
    font-style: italic;
}

.ai-chat-bubble.error {
    border-left-color: #ff2d55;
    background: rgba(255, 45, 85, 0.1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-v-actions { margin-bottom: 10px; }
.like-trigger.active .fa-heart {
    animation: neuralPulse 2s ease-in-out infinite;
    opacity: 1;
    color: #ff2d55;
}

/* --- PROFILE MY POSTS STYLES --- */
.my-posts-list { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.my-post-item { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 15px; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; }
.my-post-item:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--accent-blue); transform: translateX(5px); }
.mpi-title { color: var(--text-primary); font-weight: 700; text-decoration: none; font-size: 15px; display: block; margin-bottom: 4px; }
.mpi-date { color: var(--text-secondary); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.mpi-right { display: flex; gap: 15px; }
.mpi-stat { color: var(--text-secondary); font-size: 13px; display: flex; align-items: center; gap: 5px; }
.mpi-stat i { color: var(--accent-blue); }
.empty-posts-msg { text-align: center; padding: 40px; color: var(--text-secondary); font-style: italic; opacity: 0.7; }


/* --- AI MODERN SCANNING & TYPEWRITER STYLES --- */
.ai-verification-box { border: none; background: rgba(0, 8, 18, 0.72); overflow: hidden; position: relative; }
.ai-verification-box::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, #00e5ff, transparent); animation: aiScanLine 3s linear infinite; opacity: 0; }
.ai-verification-box.scanning::before { opacity: 1; }
@keyframes aiScanLine { 0% { top: 0; } 100% { top: 100%; } }
.ai-v-loader { display: none; padding: 20px; text-align: center; color: var(--accent-blue); font-family: 'Courier New', monospace; font-size: 0.9rem; }
.ai-v-loader.active { display: block; }
.ai-v-loader .scan-text::after { content: '...'; animation: dots 1.5s infinite; }
@keyframes dots { 0%, 20% { content: "."; } 40% { content: ".."; } 60%, 100% { content: "..."; } }
.verdict-typewriter { font-family: 'Courier New', monospace; color: var(--accent-blue); border-left: 2px solid var(--accent-blue); padding-left: 10px; margin-top: 10px; min-height: 1.2em; }
.ai-v-result { animation: fadeInScale 0.5s ease out; }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.status-verdadero { color: var(--accent-blue) !important; text-shadow: 0 0 10px rgba(0, 255, 157, 0.5); }
.status-falso { color: #ff2d55 !important; text-shadow: 0 0 10px rgba(255, 45, 85, 0.5); }
.status-dudoso { color: #ffcc00 !important; text-shadow: 0 0 10px rgba(255, 204, 0, 0.5); }
.status-viral-real { color: #00e5ff !important; text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
.status-ia-generado { color: #bf00ff !important; text-shadow: 0 0 10px rgba(191, 0, 255, 0.5); }
.status-entretenimiento { color: #ffaa00 !important; text-shadow: 0 0 10px rgba(255, 170, 0, 0.5); }


/* --- AI VERIFICATION — MODERN REDESIGN --- */
.ai-v-icon-glow { width: 32px; height: 32px; background: rgba(0, 229, 255, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent-blue); box-shadow: 0 0 15px rgba(0, 229, 255, 0.3); }
.ai-v-badge { background: rgba(0, 229, 255, 0.1); color: var(--accent-blue); font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(0, 229, 255, 0.3); letter-spacing: 1px; }

/* Scanner orb — compact */
.aiv-orb-wrap { position: relative; width: 62px; height: 62px; margin: 0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.aiv-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(0,229,255,0.4); animation: aivPulse 2.4s ease-out infinite; }
.aiv-ring.r1 { width: 62px; height: 62px; animation-delay: 0s; }
.aiv-ring.r2 { width: 46px; height: 46px; animation-delay: 0.55s; }
.aiv-ring.r3 { width: 32px; height: 32px; animation-delay: 1.1s; border-color: rgba(0,229,255,0.65); }
@keyframes aivPulse { 0%{ opacity:.9; transform:scale(.88); } 100%{ opacity:0; transform:scale(1.3); } }
.aiv-core { position: relative; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(0,229,255,0.28), rgba(0,100,200,0.1)); border: 1.5px solid rgba(0,229,255,0.55); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 18px rgba(0,229,255,0.4), inset 0 0 10px rgba(0,229,255,0.12); }
.aiv-core i { font-size: 0.78rem; color: #00e5ff; filter: drop-shadow(0 0 5px #00e5ff); }
.aiv-core::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 80%, rgba(0,229,255,0.45) 100%); animation: aivSpin 2s linear infinite; }
@keyframes aivSpin { to { transform: rotate(360deg); } }

/* Status row */
.aiv-status-row { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.aiv-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #00e5ff; box-shadow: 0 0 7px #00e5ff; animation: aivBlink 1.4s ease-in-out infinite; }
@keyframes aivBlink { 0%,100%{ opacity:1; } 50%{ opacity:0.3; } }
.aiv-live-label { font-size: 0.62rem; font-weight: 800; letter-spacing: .12em; color: rgba(0,229,255,0.8); text-transform: uppercase; }

/* Compact prompt layout */
.ai-v-prompt-ui { padding: 18px 18px 14px; }
.ai-v-p-top { font-weight: 900; font-size: 0.95rem; margin-bottom: 4px; color: #e2e8f0; letter-spacing: -.01em; }
.ai-v-p-sub { font-size: 0.76rem; color: rgba(180,210,255,0.6); margin-bottom: 14px; line-height: 1.45; }

/* Modern scan button */
.ai-v-btn-modern { background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(29,155,240,0.07)); border: 1px solid rgba(0,229,255,0.4); color: #00e5ff; padding: 9px 22px; border-radius: 50px; font-weight: 900; font-size: 0.72rem; letter-spacing: .14em; cursor: pointer; position: relative; overflow: hidden; transition: all .3s; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 0 14px rgba(0,229,255,0.1); }
.ai-v-btn-modern:hover { background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(29,155,240,0.14)); box-shadow: 0 0 28px rgba(0,229,255,0.28); transform: translateY(-1px); }
.ai-v-btn-modern i { font-size: 0.82rem; }
.btn-neural-bg { position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0,229,255,0.18), transparent); transition: .55s; pointer-events: none; }
.ai-v-btn-modern:hover .btn-neural-bg { left: 150%; }

.ai-v-chat-box { border-top: 1px solid rgba(0,229,255,0.1); padding: 14px 16px; }
.ai-chat-response-area:empty { display: none !important; }
.ai-v-btn-modern:hover .btn-neural-bg { left: 150%; }
.ai-scan-overlay {
    position: absolute;
    inset: 0;
    -webkit-mask: radial-gradient(circle at center, black 40%, transparent 65%);
    mask: radial-gradient(circle at center, black 40%, transparent 65%);
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 229, 255, 0.05) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}
.ai-verification-box.scanning .ai-scan-overlay { opacity: 1; animation: pulseGlow 2s infinite; }
@keyframes pulseGlow { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } }

/* ---- AI VERIFICATION — LIGHT MODE ---- */
[data-theme="light"] .ai-verification-box {
    background: #f0f6ff !important;
    box-shadow: 0 0 0 1px rgba(29,78,216,0.18), 0 4px 24px rgba(29,78,216,0.1) !important;
    backdrop-filter: none !important;
}
[data-theme="light"] .ai-verification-box,
[data-theme="light"] .ai-verification-box .verdict-saved,
[data-theme="light"] .ai-verification-box .ai-v-result,
[data-theme="light"] .ai-verification-box .ai-v-stats,
[data-theme="light"] .ai-verification-box p,
[data-theme="light"] .ai-verification-box span:not([class*="status-"]),
[data-theme="light"] .ai-verification-box div:not(.ai-v-fill):not(.ai-v-meter):not(.ai-scan-overlay) {
    color: #1e293b !important;
}
[data-theme="light"] .ai-verification-box .verdict-saved { color: #1e40af !important; }
[data-theme="light"] .ai-v-p-top { color: #0f172a !important; }
[data-theme="light"] .ai-v-p-sub { color: #475569 !important; }
[data-theme="light"] .ai-v-chat-input-row { background: #ffffff !important; border-color: rgba(29,78,216,0.25) !important; }
[data-theme="light"] .ai-v-chat-input-row input { color: #0f172a !important; }
[data-theme="light"] .ai-v-chat-input-row input::placeholder { color: #94a3b8 !important; }
[data-theme="light"] .ai-v-loader { color: #1d4ed8 !important; }
[data-theme="light"] .verdict-typewriter { color: #1d4ed8 !important; border-left-color: #1d4ed8 !important; }
[data-theme="light"] .ai-v-badge { background: rgba(29,78,216,0.1) !important; color: #1d4ed8 !important; border-color: rgba(29,78,216,0.3) !important; }
[data-theme="light"] .ai-v-percentage { color: #1d4ed8 !important; }
[data-theme="light"] .ai-v-btn-modern { background: linear-gradient(135deg, rgba(29,78,216,0.1), rgba(29,78,216,0.07)) !important; border-color: rgba(29,78,216,0.4) !important; color: #1d4ed8 !important; }
[data-theme="light"] .aiv-live-label { color: #1d4ed8 !important; }
[data-theme="light"] .aiv-live-dot { background: #1d4ed8 !important; box-shadow: 0 0 7px #1d4ed8 !important; }
[data-theme="light"] .aiv-core { background: radial-gradient(circle at 35% 35%, rgba(29,78,216,0.2), rgba(29,78,216,0.05)) !important; border-color: rgba(29,78,216,0.4) !important; box-shadow: 0 0 12px rgba(29,78,216,0.2) !important; }
[data-theme="light"] .aiv-core i { color: #1d4ed8 !important; filter: none !important; }
[data-theme="light"] .aiv-ring { border-color: rgba(29,78,216,0.3) !important; }
[data-theme="light"] .aiv-ring.r3 { border-color: rgba(29,78,216,0.5) !important; }
[data-theme="light"] .ai-v-meter { background: rgba(29,78,216,0.1) !important; }
[data-theme="light"] .ap-terminal { background: #f0f6ff !important; border-color: rgba(29,78,216,0.25) !important; }
[data-theme="light"] .ap-terminal-header { color: #475569 !important; border-color: rgba(29,78,216,0.2) !important; }
[data-theme="light"] .ap-terminal-header span { color: #dc2626 !important; }
[data-theme="light"] .ap-terminal-line { color: #1d4ed8 !important; }
[data-theme="light"] .ap-terminal-line.cmd { color: #0284c7 !important; }
[data-theme="light"] .ap-terminal-cursor { background: #1d4ed8 !important; }
[data-theme="light"] .ap-matrix-text { color: #1d4ed8 !important; }


/* --- AI ADVANCED BADGE STYLES (REDISEÑO MODERNO) --- */
.ai-badge-neural-advanced {
    position: absolute;
    top: 46px;
    left: 8px;
    background: linear-gradient(135deg, rgba(0,5,15,0.92), rgba(0,20,40,0.88));
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 20px;
    padding: 3px 8px 3px 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    backdrop-filter: blur(8px);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,229,255,0.15), inset 0 1px 0 rgba(0,229,255,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-badge-neural-advanced i {
    color: var(--accent-blue);
    font-size: 0.7rem;
}
.ai-badge-neural-advanced .ai-value {
    color: #00e5ff;
    font-weight: 900;
    font-size: 0.72rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(0,229,255,0.6);
}
.ai-neural-pulse {
    width: 5px;
    height: 5px;
    background: #00e5ff;
    border-radius: 50%;
    box-shadow: 0 0 6px #00e5ff;
    animation: aiPulse 1.8s infinite;
    flex-shrink: 0;
}
@keyframes aiPulse { 0%,100%{opacity:0.3;transform:scale(0.8)} 50%{opacity:1;transform:scale(1.2)} }
.ai-badge-scan {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.25), transparent);
    animation: aiBadgeScan 3s linear infinite;
}
@keyframes aiBadgeScan { to { left: 150%; } }
.ai-badge-neural-advanced:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,229,255,0.3);
}
/* Colores según confianza */
.ai-badge-neural-advanced.status-verdadero { border-color: rgba(0,229,255,0.5); }
.ai-badge-neural-advanced.status-dudoso { border-color: rgba(255,180,0,0.5); }
.ai-badge-neural-advanced.status-dudoso .ai-value { color: #ffb400; text-shadow: 0 0 8px rgba(255,180,0,0.6); }
.ai-badge-neural-advanced.status-dudoso .ai-neural-pulse { background: #ffb400; box-shadow: 0 0 6px #ffb400; }
.ai-badge-neural-advanced.status-falso { border-color: rgba(255,60,60,0.5); }
.ai-badge-neural-advanced.status-falso .ai-value { color: #ff4444; text-shadow: 0 0 8px rgba(255,60,60,0.6); }
.ai-badge-neural-advanced.status-falso .ai-neural-pulse { background: #ff4444; box-shadow: 0 0 6px #ff4444; }

/* ============================================
   NEURAL STREAM TICKER STYLES
   ============================================ */
.neural-ticker-wrap {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    height: 32px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    touch-action: pan-x;
}

.ticker-tv-static {
    background: #f59e0b;
    color: #000;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 10px;
    text-transform: uppercase;
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 20;
    box-shadow: 4px 0 10px rgba(0,0,0,0.2);
    cursor: pointer;
}
.ticker-tv-static i { margin-right: 6px; font-size: 12px; }

[data-theme="light"] .ticker-tv-static {
    background: #f59e0b;
    color: #fff;
}
.neural-ticker-wrap.grabbing { cursor: grabbing; scroll-behavior: auto; }
.neural-ticker-wrap::-webkit-scrollbar { display: none; }

.ticker-content {
    display: inline-flex;
    padding: 0 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
@keyframes ap-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    padding: 0 25px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-item i {
    color: var(--accent-blue);
}

.ticker-item small {
    opacity: 0.6;
    font-size: 9px;
}

.usd-up {
    color: var(--accent-blue);
    font-size: 9px;
    font-weight: 800;
}

.urgent-news {
    color: #e8edf5;
    background: linear-gradient(90deg, transparent, rgba(255, 45, 85, 0.1), transparent);
}

.urgent-news i {
    color: #ff2d55;
    animation: flashIcon 1s infinite alternate;
}


@keyframes flashIcon {
    from { opacity: 0.4; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}

[data-theme="light"] .neural-ticker-wrap {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}



/* AI Moderation Redaction */
del { text-decoration: line-through; text-decoration-color: #ff2d55; text-decoration-thickness: 2px; background: rgba(255, 45, 85, 0.08); color: var(--text-secondary); padding: 0 4px; border-radius: 4px; font-style: italic; opacity: 0.85; transition: all 0.3s; cursor: help; }
del:hover { background: rgba(255, 45, 85, 0.15); opacity: 1; }
del::after { content: ' [!]'; font-size: 8px; vertical-align: super; color: #ff2d55; }

/* =============================================
   QUICK COMMENT MODAL (from feed cards)
   ============================================= */
.comment-quick-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 10500;
    padding: 0;
}

.comment-quick-modal.is-open {
    display: flex;
}

.comment-quick-box {
    background: var(--bg-main);
    border: 1px solid var(--border-line);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 600px;
    padding: 20px 20px env(safe-area-inset-bottom, 20px);
    animation: cqmUp 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes cqmUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* PC: centrar modal en vez de sheet desde abajo */
@media (min-width: 701px) {
    .comment-quick-modal {
        align-items: center;
    }
    .comment-quick-box {
        border-radius: 20px;
        max-width: 560px;
        animation: cqmFadeIn 0.22s ease;
    }
    @keyframes cqmFadeIn {
        from { transform: scale(0.96) translateY(8px); opacity: 0; }
        to   { transform: scale(1) translateY(0); opacity: 1; }
    }
}

[data-theme="dark"] .comment-quick-box {
    background: #0d1117;
    border-color: rgba(0, 229, 255, 0.12);
    box-shadow: 0 -4px 40px rgba(0, 229, 255, 0.06);
}

.cqm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cqm-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.02em;
}

.cqm-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.cqm-close:hover {
    background: var(--hover-gray);
    color: var(--text-primary);
}

.cqm-textarea {
    width: 100%;
    min-height: 90px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-line);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.97rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

[data-theme="dark"] .cqm-textarea {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(56, 189, 248, 0.1);
}

.cqm-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

.cqm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.cqm-char-count {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.cqm-submit {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 9px 24px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
}

.cqm-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.cqm-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* =============================================
   POST MODAL — Mobile fixes
   ============================================= */
/* Ensure z-index is always on top */
#post-modal {
    z-index: 10200;
}

@media (max-width: 700px) {
    /* Post modal slides from bottom on mobile */
    #post-modal {
        align-items: flex-end;
        padding: 0;
        z-index: 10200;
    }
    .post-modal-box {
        border-radius: 24px 24px 0 0;
        max-width: 100%;
        width: 100%;
        animation: pmUp 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
    }
    @keyframes pmUp {
        from { transform: translateY(100%); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }
}

/* ============================================
   CONTENT GATE — Robot Rating
   ============================================ */
.ap-content-gate {
    position: relative;
    margin-top: -80px;
}
.ap-gate-fade {
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-main, #000));
    pointer-events: none;
}
.ap-gate-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-line);
    border-radius: 20px;
    padding: 28px 24px 22px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
[data-theme="dark"] .ap-gate-box {
    background: #0a0f1e;
    border-color: rgba(0,229,255,0.15);
    box-shadow: 0 0 40px rgba(0,229,255,0.05), 0 8px 40px rgba(0,0,0,0.6);
}

/* Robot */
.apg-robot-wrap { display:flex; flex-direction:column; align-items:center; margin-bottom:16px; }
.apg-robot-face {
    position: relative;
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #0a1628, #0d2040);
    border: 2px solid rgba(0,229,255,0.35);
    border-radius: 16px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 0 24px rgba(0,229,255,0.15);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    animation: apgEntry 0.5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes apgEntry { from { transform:scale(0) rotate(-15deg); opacity:0; } to { transform:scale(1) rotate(0); opacity:1; } }
.apg-antenna {
    position: absolute; top: -12px;
    width: 2px; height: 12px;
    background: rgba(0,229,255,0.6); border-radius: 1px;
}
.apg-antenna::before {
    content:''; position:absolute; top:-5px; left:-4px;
    width:10px; height:10px;
    background: #00e5ff; border-radius:50%;
    box-shadow: 0 0 10px #00e5ff;
    animation: apgAntBlink 2s infinite;
}
@keyframes apgAntBlink { 0%,80%,100%{opacity:1} 90%{opacity:0.1} }
.apg-eyes { display:flex; gap:12px; }
.apg-eye {
    width:12px; height:12px;
    background: #00e5ff; border-radius:3px;
    box-shadow: 0 0 8px #00e5ff;
    transition: background 0.3s, box-shadow 0.3s;
    animation: apgBlink 4s infinite;
}
@keyframes apgBlink { 0%,88%,100%{transform:scaleY(1)} 94%{transform:scaleY(0.1)} }
.apg-mouth {
    width: 32px; height: 4px;
    background: rgba(0,229,255,0.4);
    border-radius: 0 0 8px 8px;
    transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
}
.apg-scanline {
    position:absolute; left:0; right:0; height:2px;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.7), transparent);
    animation: apgScan 2s linear infinite;
}
@keyframes apgScan { 0%{top:0;opacity:.7} 100%{top:100%;opacity:0} }

/* Burbuja de diálogo */
.apg-bubble {
    margin-top: 10px;
    background: rgba(0,229,255,0.07);
    border: 1px solid rgba(0,229,255,0.18);
    border-radius: 12px 12px 12px 4px;
    padding: 8px 14px;
    font-size: 0.82rem;
    color: var(--text-primary);
    max-width: 220px;
    line-height: 1.4;
    transition: all 0.3s;
    position: relative;
}
.apg-bubble::before {
    content:''; position:absolute; top:-6px; left:14px;
    border:6px solid transparent;
    border-bottom-color: rgba(0,229,255,0.18);
}

/* Botones de señal */
.apg-signals {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.apg-signal-btn {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    background: transparent;
    border: 1px solid var(--border-line);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.75rem; font-weight: 600;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(.34,1.56,.64,1);
    min-width: 58px;
}
.apg-signal-btn i { font-size: 1.1rem; transition: transform 0.2s; }
.apg-signal-btn:hover { transform: translateY(-3px) scale(1.05); }
.apg-signal-btn:hover i { transform: scale(1.15); }
.apg-signal-btn:disabled { cursor: default; transform: none; }

.ap-gate-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.ap-gate-hint {
    font-size: 0.82rem;
    color: var(--accent-blue);
    min-height: 1.2em;
    margin: 4px 0 6px;
}
.ap-gate-avg {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0 0 12px;
}
.ap-gate-alt {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: 6px;
}
.ap-gate-alt a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}
.ap-gate-alt a:hover { text-decoration: underline; }
.ap-content-preview {
    line-height: 1.75;
    color: var(--text-primary);
    font-size: 1rem;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}



/* --- CTA DE COMENTARIOS AL FINAL DE ARTÍCULOS --- */
.ap-cta-comment {
    margin-top: 24px;
    padding: 14px 18px;
    border-left: 3px solid var(--accent-blue, #1d9bf0);
    background: rgba(29, 155, 240, 0.07);
    border-radius: 0 10px 10px 0;
    color: var(--text-primary);
    font-size: 0.97rem;
    font-weight: 500;
    line-height: 1.55;
}
[data-theme="dark"] .ap-cta-comment {
    background: rgba(29, 155, 240, 0.1);
}
[data-theme="light"] .ap-cta-comment {
    background: rgba(29, 155, 240, 0.06);
    border-left-color: #1a8cd8;
}

/* ══════════════════════════════════════════
   ⚽ MARCADORES EN VIVO
══════════════════════════════════════════ */
#ap-scores-strip {
    border-bottom: 1px solid var(--border-line);
    background: var(--bg-primary);
}
#ap-scores-strip {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-line);
    padding: 8px 0 0;
    position: relative;
    overflow: hidden;
}
.scores-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.scores-header-left { display: flex; align-items: center; gap: 6px; }
.scores-header-left i { color: #10b981; font-size: 0.85rem; filter: drop-shadow(0 0 4px rgba(16,185,129,0.3)); }
.scores-reload-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(16,185,129,0.35);
    background: rgba(16,185,129,0.07);
    color: #10b981;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    flex-shrink: 0;
}
.scores-reload-btn:hover { background: rgba(16,185,129,0.2); transform: scale(1.1); }
.scores-reload-btn.spinning i { animation: scores-spin 0.7s linear; }
@keyframes scores-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.scores-live-pill {
    display: flex; align-items: center; gap: 5px;
    background: rgba(239,68,68,0.12);
    color: #ef4444;
    border-radius: 99px;
    padding: 2px 8px;
    font-size: 0.58rem;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(239,68,68,0.3);
}
.scores-live-dot {
    width: 6px; height: 6px;
    background: #ef4444; border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: scLivePulse 1.2s infinite ease-in-out;
}
.scores-updated { margin-left: auto; font-size: 0.6rem; opacity: 0.5; font-weight: 600; font-family: 'JetBrains Mono', monospace; }

/* Scroll wrapper + arrows */
.scores-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.sc-arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color, rgba(255,255,255,.15));
    background: var(--card-bg, rgba(255,255,255,.05));
    color: var(--text-main, #e5e5e5);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s, background .2s;
    z-index: 2;
    margin: 0 4px;
    padding: 0;
}
.sc-arrow:hover { background: var(--accent, #0ea5e9); color: #fff; border-color: transparent; }
.sc-arrow--dim { opacity: 0.25; pointer-events: none; }
@media (max-width: 600px) {
    .sc-arrow { width: 26px; height: 26px; font-size: 1.1rem; margin: 0 2px; }
}

/* Scroll horizontal */
.scores-scroll {
    flex: 1;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0 16px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.scores-scroll::-webkit-scrollbar { display: none; }

/* Card de partido */
.sc-card {
    flex: 0 0 auto;
    min-width: 148px;
    max-width: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-line);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: border-color .2s;
}
.sc-card--live {
    border-color: rgba(239,68,68,0.4);
    background: rgba(239,68,68,0.04);
}
[data-theme="dark"] .sc-card { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .sc-card--live { background: rgba(239,68,68,0.07); }

.sc-league {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-blue, #1d9bf0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
}
.sc-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}
.sc-team {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.sc-home { text-align: left; }
.sc-away { text-align: right; }

.sc-score {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 44px;
    text-align: center;
}
.sc-score strong {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}
.sc-sep { font-size: 0.75rem; font-weight: 700; opacity: 0.4; }
.sc-ft-tag {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.5;
    text-transform: uppercase;
}
.sc-ft   .sc-ft-tag { color: var(--text-secondary); }
.sc-live .sc-ft-tag { color: #ef4444; }
.sc-ht   .sc-ft-tag { color: #f59e0b; }

.sc-time-txt {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-secondary);
}
.sc-ns .sc-time-txt { color: var(--text-secondary); }

.sc-live-dot2 {
    width: 6px; height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 6px #ef4444;
    animation: scLivePulse 1s infinite;
    display: block;
    margin: 0 auto;
}

/* Skeleton loader */
.scores-skeleton { display: flex; gap: 8px; }
.scores-sk-card {
    flex: 0 0 148px;
    height: 64px;
    background: var(--bg-secondary);
    border-radius: 10px;
    opacity: 0.5;
    animation: skPulse 1.4s ease-in-out infinite;
}
@keyframes skPulse { 0%,100%{opacity:0.3} 50%{opacity:0.6} }

/* Separador de deporte en el carrusel de marcadores */
.sc-divider {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 4px;
}
.sc-divider span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    opacity: 0.5;
    background: var(--bg-secondary);
    border: 1px solid var(--border-line);
    border-radius: 6px;
    padding: 6px 4px;
    white-space: nowrap;
}
.sc-empty {
    flex: 0 0 auto;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.5;
    padding: 12px 4px;
}

/* Team logo + abbreviation in score cards */
.sc-mini-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    flex: 0 0 42px;
}
.sc-team-logo {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    object-fit: contain !important;
    flex-shrink: 0;
    display: block;
    margin: 0 auto;
    border-radius: 2px;
}
.sc-mini-name {
    font-size: 10px !important;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
    line-height: 1.1;
    opacity: 0.8;
}
@media (max-width: 600px) {
    .sc-mini-team { flex: 0 0 32px; font-size: 0.85rem; }
    .sc-team-logo { 
        width: 14px !important; 
        height: 14px !important; 
        max-width: 14px !important;
        max-height: 14px !important;
    }
    .sc-mini-name { font-size: 8px !important; }
}

/* ── GOL! flash animation ── */
@keyframes scGolFlash {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
    15%  { box-shadow: 0 0 0 8px rgba(34,197,94,0.5); background: rgba(34,197,94,0.18); }
    40%  { box-shadow: 0 0 0 4px rgba(34,197,94,0.3); }
    65%  { box-shadow: 0 0 0 10px rgba(34,197,94,0.4); background: rgba(34,197,94,0.12); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); background: rgba(34,197,94,0.05); }
}
.sc-card--gol {
    animation: scGolFlash 2.4s ease-out forwards;
    border-color: rgba(34,197,94,0.7) !important;
}
.sc-gol-badge {
    position: absolute;
    top: -2px; right: 5px;
    font-size: 0.65rem;
    font-weight: 900;
    color: #16a34a;
    text-shadow: 0 0 8px rgba(34,197,94,0.6);
    animation: scGolFlash 2.4s ease-out forwards;
    pointer-events: none;
    letter-spacing: 0.04em;
}
/* ── Mini cards (Neural Score Chips) ── */
.sc-mini {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-line);
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
}
.sc-mini:hover {
    transform: translateY(-2px);
    border-color: var(--accent-blue, #1d9bf0);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, rgba(29,155,240,0.08) 0%, rgba(29,155,240,0.02) 100%);
}
.sc-mini--live {
    border-color: rgba(239,68,68,0.3);
    background: linear-gradient(135deg, rgba(239,68,68,0.08) 0%, rgba(239,68,68,0.02) 100%);
}
[data-theme="dark"] .sc-mini { 
    background: rgba(255,255,255,0.03); 
    border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .sc-mini:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent-blue);
}
[data-theme="dark"] .sc-mini--live { border-color: rgba(239,68,68,0.4); }

.sc-mini-flag {
    font-size: 0.9rem;
    line-height: 1;
    display: inline-block;
}
/* Contenedor equipo: bandera/icono + abreviatura apilados */
.sc-mini-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.sc-mini-name {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    line-height: 1;
    white-space: nowrap;
}
.sc-mini-abbr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: var(--bg-tertiary, rgba(0,0,0,0.12));
    border-radius: 4px;
    padding: 1px 3px;
    color: var(--text-secondary);
    min-width: 22px;
}
.sc-mini-score {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    min-width: 30px;
    text-align: center;
}
.sc-mini-dash { opacity: 0.4; margin: 0 1px; }
.sc-mini-score.sc-live { color: #ef4444; }
.sc-mini-score.sc-ht   { color: #f59e0b; }
.sc-mini-score.sc-ft   { color: var(--text-secondary); opacity: 0.6; }
.sc-mini-score.sc-ns   { color: var(--text-secondary); }

.sc-mini-dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 5px #ef4444;
    animation: scLivePulse 1s infinite;
    vertical-align: middle;
    margin-right: 2px;
}

/* Tooltip - Glassmorphism style */
.sc-mini-tip {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-line);
    border-radius: 14px;
    padding: 12px 16px;
    min-width: 200px;
    max-width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 1000;
    white-space: normal;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}
[data-theme="dark"] .sc-mini-tip {
    background: rgba(20,22,30,0.95);
    border-color: rgba(255,255,255,0.1);
}
/* Solo mostrar tooltip en PC con hover o si est marcado como abierto */
@media (hover: hover) {
    .sc-mini:hover .sc-mini-tip { 
        display: block;
        transform: translateX(-50%) translateY(0);
    }
}
.sc-mini--open .sc-mini-tip { 
    display: block;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .sc-mini { padding: 4px 8px; gap: 5px; }
    .sc-mini-flag { font-size: 1.1rem; }
    .sc-mini-name { font-size: 0.46rem; }
    .sc-mini-score { font-size: 0.68rem; min-width: 26px; }
    .sc-mini-tip { display: none !important; }
    .sc-mini-abbr { display: none !important; }
}
/* Arrow pointer */
.sc-mini-tip::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border-line);
}
.sc-mini-tip-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}
.sc-mini-tip-teams span:first-child { text-align: left; }
.sc-mini-tip-teams span:last-child  { text-align: right; }
.sc-mini-tip-score {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
}
.sc-mini-tip-meta {
    margin-top: 5px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.75;
    text-align: center;
}

/* GOL flash */
@keyframes scMiniGolFlash {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
    20%  { box-shadow: 0 0 0 6px rgba(34,197,94,0.55); background: rgba(34,197,94,0.18); }
    60%  { box-shadow: 0 0 0 3px rgba(34,197,94,0.3); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); background: rgba(34,197,94,0.05); }
}
.sc-mini--gol {
    animation: scMiniGolFlash 2.4s ease-out forwards;
    border-color: rgba(34,197,94,0.7) !important;
}
.sc-gol-mini {
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 900;
    background: #16a34a;
    color: #fff;
    border-radius: 6px;
    padding: 1px 5px;
    white-space: nowrap;
    pointer-events: none;
    animation: scMiniGolFlash 2.4s ease-out forwards;
}

/* Divider entre deportes */
.sc-mini-divider {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    padding: 0 6px;
    opacity: 0.45;
    cursor: default;
    user-select: none;
}

/* Botón "Parrilla TV" al final del carrusel */
.sc-mini-all {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px dashed var(--border-line);
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent, #0ea5e9);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s;
}
.sc-mini-all:hover { background: rgba(14,165,233,0.08); }

/* =============================================
   PÁGINA MARCADORES — diseño limpio moderno
   ============================================= */

/* Layout principal: usa main-layout-constraint del tema */
.marc-main {
    flex: 1;
    min-width: 0;
    padding: 20px 20px 60px;
}

/* Cabecera */
.marc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 18px;
    border-bottom: 1px solid var(--border-line);
    margin-bottom: 18px;
    gap: 12px;
}
.marc-header-left { display:flex; align-items:center; gap:12px; }
.marc-header-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.marc-title { font-size: 1.3rem; font-weight: 900; margin: 0; line-height: 1.2; }
.marc-subtitle { font-size: .7rem; color: var(--text-secondary); margin: 1px 0 0; font-weight: 500; }
.marc-live-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(239,68,68,.12); color: #ef4444;
    border: 1px solid rgba(239,68,68,.25);
    border-radius: 20px; padding: 3px 10px;
    font-size: .6rem; font-weight: 800; letter-spacing: .07em;
    white-space: nowrap;
}
.marc-live-dot {
    width: 5px; height: 5px; background: #ef4444;
    border-radius: 50%; animation: scLivePulse 1s infinite;
}
.marc-updated { font-size: .62rem; color: var(--text-secondary); opacity: .5; white-space: nowrap; }

/* Zona publicitaria */
.marc-ad-zone {
    width: 100%; min-height: 80px;
    border: 1px dashed rgba(255,255,255,.08);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: .65rem;
    opacity: .4; margin: 14px 0; letter-spacing: .08em; font-weight: 700;
}
.marc-ad-zone:empty::before { content: 'ESPACIO PUBLICITARIO'; }

/* Tabs */
.marc-tabs-wrap {
    position: sticky; top: 0; z-index: 10;
    background: var(--bg-primary);
    padding: 6px 0 10px;
    margin-bottom: 6px;
}
.marc-tabs { display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; }
.marc-tabs::-webkit-scrollbar { display:none; }
.marc-tab {
    flex: 0 0 auto;
    padding: 6px 14px; border-radius: 20px;
    border: 1px solid var(--border-line);
    background: transparent; color: var(--text-secondary);
    font-size: .75rem; font-weight: 700; cursor: pointer;
    transition: all .18s; white-space: nowrap;
    font-family: inherit;
}
.marc-tab:hover { border-color: var(--accent-blue,#1d9bf0); color: var(--accent-blue,#1d9bf0); }
.marc-tab.active { background: var(--accent-blue,#1d9bf0); color: #fff; border-color: transparent; }
.tab-live-badge { color: #ef4444; font-size: .62em; margin-left: 3px; }
.tab-count { opacity: .45; font-size: .72em; font-weight: 500; margin-left: 3px; }

/* Estado de carga y vacío */
.marc-loading {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 50px 20px; color: var(--text-secondary); opacity: .5; font-size: .85rem;
}
.marc-empty {
    text-align: center; padding: 50px 20px;
    color: var(--text-secondary); opacity: .45;
    font-size: .88rem; line-height: 1.8;
}

/* Bloque de liga */
.ms-league-block { margin-bottom: 20px; }
.ms-league-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 5px 6px 5px;
    border-bottom: 2px solid var(--accent-blue,#1d9bf0);
    margin-bottom: 6px;
}
.ms-league-name {
    font-size: .68rem; font-weight: 800;
    color: var(--accent-blue,#1d9bf0);
    letter-spacing: .06em; text-transform: uppercase;
}
.ms-league-live {
    font-size: .6rem; font-weight: 800;
    color: #ef4444; letter-spacing: .04em;
}
.ms-league-matches { display: flex; flex-direction: column; gap: 4px; }

/* Fila de partido */
.ms-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-line);
    background: var(--bg-secondary);
    transition: border-color .15s, background .15s;
}
[data-theme="dark"] .ms-row { background: rgba(255,255,255,.025); }
.ms-row:hover { border-color: rgba(29,155,240,.35); background: rgba(29,155,240,.04); }
.ms-row--live {
    border-color: rgba(239,68,68,.25) !important;
    background: rgba(239,68,68,.04) !important;
}
.ms-team {
    font-size: .82rem; font-weight: 700;
    color: var(--text-primary); line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ms-home { text-align: right; }
.ms-away { text-align: left; }

/* Centro: marcador + badge */
.ms-center { text-align: center; min-width: 70px; }
.ms-score {
    font-size: 1.15rem; font-weight: 900;
    color: var(--text-primary); letter-spacing: .02em;
    line-height: 1;
}
.ms-dash { opacity: .3; margin: 0 3px; font-size: .9rem; }
.ms-time {
    font-size: .8rem; font-weight: 700;
    color: var(--text-secondary);
}
.ms-badge {
    font-size: .55rem; font-weight: 800;
    letter-spacing: .07em; text-transform: uppercase;
    margin-top: 3px;
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.ms-live-dot {
    width: 5px; height: 5px; background: #ef4444;
    border-radius: 50%; animation: scLivePulse 1s infinite; flex-shrink: 0;
}
.ms-badge.ms-ft  { color: var(--text-secondary); opacity: .55; }
.ms-badge.ms-ht  { color: #f59e0b; }
.ms-badge.ms-live{ color: #ef4444; }
.ms-badge.ms-ns  { color: var(--text-secondary); opacity: .6; }

/* Responsive */
@media (max-width: 600px) {
    .marc-main { padding: 12px 12px 80px; }
    .marc-title { font-size: 1.1rem; }
    .ms-team { font-size: .76rem; }
    .ms-score { font-size: 1rem; }
    .marc-tabs-wrap { padding: 4px 0 8px; }
}

.sc-all-link {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 80px;
    padding: 8px 10px;
    border: 1px solid var(--accent-blue, #1d9bf0);
    border-radius: 10px;
    color: var(--accent-blue, #1d9bf0);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    cursor: pointer;
    background: rgba(29,155,240,0.07);
    transition: background .18s;
    white-space: nowrap;
    text-transform: uppercase;
}
.sc-all-link:hover { background: rgba(29,155,240,0.15); }
.sc-all-link i { font-size: 1.1rem; }

/* ============================================
   MOBILE SIDE MENU (HAMBURGER)
   ============================================ */
.m-side-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9000;
}

.m-side-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 290px;
    max-width: 85vw;
    background: var(--card-bg);
    border-left: 1px solid var(--border-line);
    z-index: 9001;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

[data-theme="dark"] .m-side-menu {
    background: #10121a;
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
}
button.m-side-item {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
}

.m-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px;
    border-bottom: 1px solid var(--border-line);
}

.m-side-brand {
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-side-close {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 5px;
    transition: color 0.2s;
}
.m-side-close:hover { color: var(--accent-blue); }

.m-side-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-line);
    transition: background 0.2s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.m-side-item:hover { background: var(--accent-blue-light); }

.m-side-item i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent-blue);
}

.m-side-section-title {
    padding: 20px 20px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.m-side-trend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.m-side-trend-item:hover { background: var(--accent-blue-light); }

.m-side-trend-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    width: 18px;
    text-align: right;
}
.m-side-trend-name { font-weight: 700; font-size: 0.95rem; }

.m-side-footer {
    margin-top: auto;
    padding: 30px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    background: var(--bg-secondary);
    opacity: 0.8;
}
[data-theme="dark"] .m-side-footer { background: rgba(0,0,0,0.2); }

.m-side-footer a { color: var(--text-secondary); text-decoration: none; }
.m-side-footer a:hover { color: var(--accent-blue); }


/* ═══════════════════════════════════════════════
   SISTEMA DE DENUNCIAS — Botón y Modal
═══════════════════════════════════════════════ */
.denuncia-trigger { opacity: 0.6; }
.denuncia-trigger:hover, .denuncia-trigger:active { opacity: 1; background: rgba(220,38,38,0.1); color: #dc2626; }

.denuncia-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.72);
    z-index: 99999;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.denuncia-overlay.active {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}

.denuncia-modal-box {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid rgba(220,38,38,0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(220,38,38,0.1);
    animation: denunciaIn .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes denunciaIn { from { opacity:0; transform:scale(.93) translateY(12px); } to { opacity:1; transform:none; } }

[data-theme="light"] .denuncia-modal-box {
    background: #ffffff;
    border-color: rgba(220,38,38,0.2);
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.denuncia-close {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    font-family: Arial, sans-serif;
    display: flex; align-items: center; justify-content: center;
    -webkit-appearance: none; appearance: none;
    transition: all .2s;
    z-index: 2;
}
[data-theme="light"] .denuncia-close { background: #f1f5f9; border-color: #e2e8f0; }
.denuncia-close:hover { background: rgba(220,38,38,0.15); border-color: rgba(220,38,38,0.3); color: #dc2626; }

.denuncia-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
[data-theme="light"] .denuncia-header { border-color: #f1f5f9; }
.denuncia-header > i { font-size: 1.7rem; color: #dc2626; flex-shrink: 0; }
.denuncia-header h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.denuncia-header p  { margin: 3px 0 0; font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; }

.denuncia-body { padding: 18px 22px 24px; }

.denuncia-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 10px;
}

.denuncia-reasons { display: flex; flex-direction: column; gap: 7px; }

.denuncia-reason-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all .18s;
    user-select: none;
    -webkit-user-select: none;
}
[data-theme="light"] .denuncia-reason-item { border-color: #e2e8f0; background: #fafafa; }
.denuncia-reason-item:hover { border-color: rgba(220,38,38,0.4); background: rgba(220,38,38,0.05); }
.denuncia-reason-item input[type="radio"] { accent-color: #dc2626; width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; }
.denuncia-reason-item:has(input:checked) { border-color: #dc2626; background: rgba(220,38,38,0.08); }
[data-theme="light"] .denuncia-reason-item:has(input:checked) { background: rgba(220,38,38,0.06); }
.denuncia-reason-item span { font-size: 0.88rem; color: var(--text-primary); display: flex; align-items: center; gap: 9px; line-height: 1.3; }
.denuncia-reason-item span i { color: #dc2626; width: 16px; text-align: center; flex-shrink: 0; }

.denuncia-input,
.denuncia-textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 0.88rem;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s;
    -webkit-appearance: none;
}
[data-theme="light"] .denuncia-input,
[data-theme="light"] .denuncia-textarea { background: #f8fafc; border-color: #e2e8f0; color: #0f172a; }
.denuncia-input:focus, .denuncia-textarea:focus { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }
.denuncia-textarea { resize: vertical; min-height: 80px; }

.denuncia-submit-btn {
    margin-top: 18px;
    width: 100%;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    color: #fff;
    padding: 13px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: opacity .2s, transform .15s;
    font-family: inherit;
    letter-spacing: .02em;
    -webkit-appearance: none;
    touch-action: manipulation;
}
.denuncia-submit-btn:hover  { opacity: .9; transform: translateY(-1px); }
.denuncia-submit-btn:active { opacity: .8; transform: scale(.98); }
.denuncia-submit-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.denuncia-msg { padding: 10px 14px; border-radius: 9px; font-size: 0.85rem; font-weight: 600; margin-top: 14px; line-height: 1.4; }
.denuncia-msg-ok  { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.denuncia-msg-err { background: rgba(239,68,68,0.1);   color: #ef4444;  border: 1px solid rgba(239,68,68,0.2); }

/* BOTON MOSTRAR MAS TENDENCIAS */
.view-all-trends-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 32px);
    margin: 12px 16px 16px;
    padding: 10px;
    background: var(--bg-secondary);
    color: var(--accent-blue);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid var(--border-line);
    transition: all 0.2s ease;
    cursor: pointer;
}
.view-all-trends-btn:hover {
    background: var(--accent-blue-light);
    border-color: transparent;
}
[data-theme="dark"] .view-all-trends-btn {
    background: #1d9bf010;
}
[data-theme="dark"] .view-all-trends-btn:hover {
    background: #1d9bf020;
}

/* ── TWITTER EMBED OPTIMIZATION ── */
.card-tweet-embed-wrap {
    width: 100%;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: transparent !important;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}
.card-tweet-embed-wrap blockquote.twitter-tweet {
    margin: 0 auto !important;
    max-width: 100% !important;
}
.card-tweet-iframe {
    width: 100% !important;
    height: 380px;
    border: none !important;
    display: block;
    margin: 0 auto;
    background: transparent !important;
}
@media (max-width: 600px) {
    .card-tweet-embed-wrap {
        width: 100% !important;
        margin-left: 0;
        border-radius: 8px;
    }
    .card-tweet-iframe {
        height: 340px;
    }
}

/* ═══════════════════════════════════════════════
   STICKY MOBILE NAVIGATION (HEADER + TICKER + MARKERS)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sticky-feed-header {
        position: sticky !important;
        top: 0;
        z-index: 2000;
    }
    .neural-ticker-wrap {
        position: sticky !important;
        top: 100px; /* Ajuste para header móvil (~58+42) */
        z-index: 1010;
        background: rgba(5, 8, 20, 0.95) !important;
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    }
    [data-theme="light"] .neural-ticker-wrap {
        background: rgba(255, 255, 255, 0.97) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    #ap-scores-strip {
        position: sticky !important;
        top: 132px; /* 100px + 32px del ticker */
        z-index: 1005;
        background: var(--bg-main) !important;
        border-bottom: 1px solid var(--border-line);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    /* El feed central necesita un margen superior para no solaparse bruscamente */
    .feed-posts-list {
        scroll-margin-top: 140px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   REDISEÑO TARJETAS PC — ESTILO EDITORIAL MODERNO (≥900px)
   Reemplaza el look Twitter/X por tarjetas de noticias premium
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {

    /* ── Contenedor principal de la tarjeta ── */
    .x-tweet-card-style {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid var(--border-line);
        border-left: 3px solid transparent;
        border-radius: 0;
        background: transparent;
        overflow: hidden;
        transition: border-left-color 0.25s ease, background 0.25s ease, transform 0.22s cubic-bezier(0.23,1,0.32,1), box-shadow 0.25s ease;
        position: relative;
    }

    /* Borde izquierdo animado + lift al hover */
    .x-tweet-card-style:hover {
        border-left-color: var(--accent-blue);
        background: rgba(0,229,255,0.025) !important;
        transform: translateX(3px);
        box-shadow: -3px 0 18px -4px rgba(0,229,255,0.18);
    }

    [data-theme="dark"] .x-tweet-card-style:hover {
        background: rgba(0,229,255,0.03) !important;
    }

    /* Ocultar el avatar circular estilo Twitter en desktop */
    .x-tweet-card-style .tweet-left-avatar {
        display: none !important;
    }

    /* ── Área de contenido derecha (ocupa todo el ancho) ── */
    .x-tweet-card-style .tweet-right-main {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        padding: 18px 20px 14px;
        gap: 0;
    }

    /* ── Línea de autor — compacta e inline, no como tweet ── */
    .x-tweet-card-style .tweet-author-line {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    /* Ocultar handle @usuario y el "·" separador — demasiado Twitter */
    .x-tweet-card-style .tr-user,
    .x-tweet-card-style .tr-divider {
        display: none;
    }

    /* Nombre del autor — más pequeño, rol de byline */
    .x-tweet-card-style .tr-name {
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    /* Fecha — pequeña y sutil */
    .x-tweet-card-style .tr-date {
        font-size: 0.72rem;
        color: var(--text-secondary);
        opacity: 0.7;
    }

    /* El "···" menú — ocultar también */
    .x-tweet-card-style .tr-more-dots {
        display: none;
    }

    /* Badge de categoría — moverlo antes del título */
    .x-tweet-card-style .card-category-tag {
        order: -2;
        display: inline-block;
        font-size: 0.62rem;
        font-weight: 900;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--accent-blue);
        background: rgba(0,229,255,0.1);
        border: 1px solid rgba(0,229,255,0.2);
        border-radius: 4px;
        padding: 2px 8px;
        margin-bottom: 6px;
        align-self: flex-start;
    }

    /* ── Título — más grande y con más peso editorial ── */
    .x-tweet-card-style .tr-post-title {
        font-size: 1.05rem;
        font-weight: 800;
        line-height: 1.3;
        margin-bottom: 6px;
        color: var(--text-primary);
        letter-spacing: -0.01em;
    }

    .x-tweet-card-style .tr-post-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.15s;
    }

    .x-tweet-card-style:hover .tr-post-title a {
        color: var(--accent-blue);
    }

    /* ── Extracto — más visible ── */
    .x-tweet-card-style .tr-excerpt-small {
        font-size: 0.85rem;
        color: var(--text-secondary);
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 4px;
    }

    /* ── Flex principal del contenido: texto + imagen ── */
    .x-tweet-card-style .tweet-content-flex {
        display: flex;
        gap: 16px;
        align-items: flex-start;
        margin-top: 0;
        flex: 1;
    }

    .x-tweet-card-style .tweet-text-side {
        flex: 1;
        min-width: 0;
    }

    /* ── Thumbnail — más grande y cuadrada, con hover zoom ── */
    .x-tweet-card-style .tweet-thumbnail-side {
        width: 120px;
        height: 85px;
        flex-shrink: 0;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid var(--border-line);
        transition: transform 0.28s ease, box-shadow 0.28s ease;
    }

    .x-tweet-card-style:hover .tweet-thumbnail-side {
        transform: scale(1.04);
        box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    }

    .x-tweet-card-style .tweet-thumbnail-side img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

    /* ── Barra de acciones PC dentro de tarjeta ── */
    .x-tweet-card-style .ap-actions-bar {
        margin-top: 10px;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.04);
        gap: 2px;
    }
    [data-theme="light"] .x-tweet-card-style .ap-actions-bar {
        border-top: 1px solid rgba(0,0,0,0.06);
    }
    /* PC cards: mostrar label en desktop */
    .x-tweet-card-style .ap-pill-btn {
        padding: 6px 12px;
        min-height: 34px;
        border-radius: 7px;
    }
    .x-tweet-card-style .ap-pill-label {
        font-size: 0.78rem;
    }
    .x-tweet-card-style .ap-pill-btn:hover {
        background: rgba(255,255,255,0.05);
    }
    [data-theme="light"] .x-tweet-card-style .ap-pill-btn:hover {
        background: rgba(0,0,0,0.05);
    }

    /* Badge AI — reposicionarlo */
    .x-tweet-card-style .ai-badge-neural {
        top: 14px;
        right: auto;
        left: 20px;
    }

}

/* ═══════════════════════════════════════════════════════════════
   FIN REDISEÑO TARJETAS PC
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   BARRA DE ACCIONES v2 — PREMIUM NEURAL
   ═══════════════════════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes apHeartPop {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.55) rotate(-8deg); }
    55%  { transform: scale(0.85) rotate(4deg); }
    75%  { transform: scale(1.2) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}
@keyframes apHeartShrink {
    0%   { transform: scale(1); }
    50%  { transform: scale(0.7); }
    100% { transform: scale(1); }
}
@keyframes apCountPop {
    0%   { transform: translateY(4px) scale(0.7); opacity: 0.4; }
    60%  { transform: translateY(-2px) scale(1.18); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes apRippleAnim {
    to { transform: scale(1); opacity: 0; }
}
@keyframes apRepostSpin {
    0%   { transform: rotate(0deg) scale(1); }
    40%  { transform: rotate(200deg) scale(1.25); }
    70%  { transform: rotate(320deg) scale(0.9); }
    100% { transform: rotate(360deg) scale(1); }
}
@keyframes apPillGlow {
    0%, 100% { box-shadow: 0 0 8px var(--pill-glow, rgba(244,63,94,0.4)), inset 0 0 8px rgba(255,255,255,0.03); }
    50%       { box-shadow: 0 0 22px var(--pill-glow, rgba(244,63,94,0.65)), inset 0 0 12px rgba(255,255,255,0.05); }
}
@keyframes apShimmer {
    0%   { left: -120%; }
    100% { left: 120%; }
}

/* ── Barra contenedora ── */
/* ══════════════════════════════════════════════════════════════
   BARRA DE ACCIONES v2 — Estilo Neural / IA
   ══════════════════════════════════════════════════════════════ */
.ap-actions-bar--v2 {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 12px;
    padding-top: 10px;
    position: relative;
    flex-wrap: nowrap;
    overflow: visible;
}

/* Línea superior: gradiente neural animado */
@keyframes apNeuralFlow {
    0%   { background-position: 0% 50%;   opacity: 0.55; }
    25%  { opacity: 1; }
    50%  { background-position: 100% 50%; opacity: 0.55; }
    75%  { opacity: 1; }
    100% { background-position: 0% 50%;   opacity: 0.55; }
}
@keyframes apNeuralFlowLight {
    0%   { background-position: 0% 50%;   opacity: 0.7; }
    25%  { opacity: 1; }
    50%  { background-position: 100% 50%; opacity: 0.7; }
    75%  { opacity: 1; }
    100% { background-position: 0% 50%;   opacity: 0.7; }
}

.ap-actions-bar--v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        #22d3ee 15%,
        #8b5cf6 40%,
        #ec4899 65%,
        #22d3ee 85%,
        transparent 100%);
    background-size: 250% 100%;
    animation: apNeuralFlow 4s ease-in-out infinite;
    filter: blur(0.3px);
}

/* En light mode: más opaca y con glow visible */
[data-theme="light"] .ap-actions-bar--v2::before {
    background: linear-gradient(90deg,
        transparent 0%,
        #0891b2 15%,
        #7c3aed 40%,
        #db2777 65%,
        #0891b2 85%,
        transparent 100%);
    background-size: 250% 100%;
    animation: apNeuralFlowLight 4s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(8,145,178,0.6));
}

/* ── Botón base ── */
.ap-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 13px;
    min-height: 36px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s cubic-bezier(0.34,1.56,0.64,1),
        box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
    outline: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
    isolation: isolate;
}

/* Ripple on click */
.ap-pill-btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%,-50%) scale(0);
}
.ap-pill-btn:active::before {
    animation: apRipple 0.45s ease-out forwards;
}

/* Icons */
.ap-pill-btn .ap-pill-icon {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), filter 0.2s ease;
    will-change: transform, filter;
}

/* Labels */
.ap-pill-btn .ap-pill-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Counts — aparece pegado al label */
.ap-pill-btn .ap-pill-count {
    font-size: 0.78rem;
    font-weight: 700;
    min-width: 10px;
    display: inline-block;
    letter-spacing: -0.01em;
    opacity: 0.85;
}

/* ══════════════════════════════════
   LIKE — Coral neural
   ══════════════════════════════════ */
.ap-pill-like:hover {
    background: rgba(244,63,94,0.08);
    border-color: rgba(244,63,94,0.5);
    color: #f43f5e;
    transform: scale(1.06) translateY(-1px);
    box-shadow: none;
}
.ap-actions-bar--single .ap-pill-like:hover {
    background: transparent;
    transform: none;
    color: #f43f5e;
}
.ap-pill-like:hover .ap-pill-icon {
    transform: scale(1.35) rotate(-8deg);
    filter: drop-shadow(0 0 4px rgba(244,63,94,0.7));
}
.ap-pill-like:active { transform: scale(0.88); }
.ap-pill-like.liked {
    color: #f43f5e;
    background: rgba(244,63,94,0.12);
    border-color: rgba(244,63,94,0.4);
    --glow: rgba(244,63,94,0.45);
    animation: apBtnGlow 2.5s ease-in-out infinite;
}
.ap-pill-like.liked .ap-pill-icon i {
    filter: drop-shadow(0 0 6px rgba(244,63,94,1));
    animation: apHeartPulse 1.8s ease-in-out infinite;
}

/* ══════════════════════════════════
   COMENTAR — Cyan IA
   ══════════════════════════════════ */
.ap-pill-comment:hover {
    background: rgba(34,211,238,0.08);
    border-color: rgba(34,211,238,0.45);
    color: #22d3ee;
    transform: scale(1.06) translateY(-1px);
    box-shadow: none;
}
.ap-actions-bar--single .ap-pill-comment:hover {
    background: transparent;
    transform: none;
    color: #22d3ee;
}
.ap-pill-comment:hover .ap-pill-icon {
    transform: rotate(-14deg) scale(1.3);
    filter: drop-shadow(0 0 4px rgba(34,211,238,0.7));
}
.ap-pill-comment:active { transform: scale(0.88); }

/* ══════════════════════════════════
   COMPARTIR — Azul eléctrico
   ══════════════════════════════════ */
.ap-pill-share:hover {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.5);
    color: #818cf8;
    transform: scale(1.06) translateY(-1px);
    box-shadow: none;
}
.ap-actions-bar--single .ap-pill-share:hover {
    background: transparent;
    transform: none;
    color: #818cf8;
}
.ap-pill-share:hover .ap-pill-icon {
    transform: translateY(-5px) scale(1.2);
    filter: drop-shadow(0 0 4px rgba(99,102,241,0.8));
}
.ap-pill-share:active { transform: scale(0.88); }
.ap-pill-share.ap-pill-success {
    color: #818cf8;
    background: rgba(99,102,241,0.12);
    border-color: rgba(99,102,241,0.4);
    --glow: rgba(99,102,241,0.4);
    animation: apBtnGlow 2s ease-in-out 3;
}

/* ══════════════════════════════════
   REPOST — Verde esmeralda
   ══════════════════════════════════ */
.ap-pill-repost:hover {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.45);
    color: #10b981;
    transform: scale(1.06) translateY(-1px);
    box-shadow: none;
}
.ap-actions-bar--single .ap-pill-repost:hover {
    background: transparent;
    transform: none;
    color: #10b981;
}
.ap-pill-repost:hover .ap-pill-icon {
    transform: rotate(180deg) scale(1.2);
    filter: drop-shadow(0 0 4px rgba(16,185,129,0.7));
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), filter 0.2s;
}
.ap-pill-repost:active { transform: scale(0.88); }
.ap-pill-repost.ap-pill-reposted {
    color: #10b981;
    background: rgba(16,185,129,0.12);
    border-color: rgba(16,185,129,0.4);
    --glow: rgba(16,185,129,0.4);
    animation: apBtnGlow 2.5s ease-in-out infinite;
}
.ap-pill-repost.ap-pill-reposted .ap-pill-icon {
    filter: drop-shadow(0 0 6px rgba(16,185,129,0.9));
}

/* ══════════════════════════════════
   VISTAS — stat en vivo
   ══════════════════════════════════ */
.ap-pill-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 99px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    pointer-events: none;
    user-select: none;
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.5;
    letter-spacing: 0.02em;
}
.ap-pill-views i {
    font-size: 0.75rem;
    color: #22d3ee;
    opacity: 0.7;
    animation: apViewBlink 3s ease-in-out infinite;
}

/* Keyframes botones */
@keyframes apHeartPulse {
    0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 3px rgba(244,63,94,0.6)); }
    40%       { transform: scale(1.4);  filter: drop-shadow(0 0 10px rgba(244,63,94,1)); }
    65%       { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(244,63,94,0.8)); }
}
@keyframes apRipple {
    0%   { transform: translate(-50%,-50%) scale(0); opacity: 0.45; }
    100% { transform: translate(-50%,-50%) scale(4); opacity: 0; }
}
@keyframes apBtnGlow {
    0%, 100% { box-shadow: 0 0 0 0 var(--glow, rgba(244,63,94,0)); }
    50%       { box-shadow: 0 0 16px 2px var(--glow, rgba(244,63,94,0.4)); }
}
@keyframes apCountPop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.5) translateY(-3px); }
    65%  { transform: scale(0.85); }
    100% { transform: scale(1); }
}
@keyframes apViewBlink {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.8; }
}

/* ── Mobile: cards y single ── */
@media (max-width: 767px) {
    .ap-actions-bar--v2 {
        gap: 2px;
        margin-top: 8px;
        padding-top: 8px;
        flex-wrap: nowrap;
    }

    /* Cards en móvil: icono + count, label oculto */
    .ap-actions-bar--v2:not(.ap-actions-bar--single) .ap-pill-btn {
        padding: 7px 10px;
        min-height: 36px;
        border-radius: 8px;
        gap: 4px;
    }
    .ap-actions-bar--v2:not(.ap-actions-bar--single) .ap-pill-label {
        display: none;
    }
    .ap-actions-bar--v2:not(.ap-actions-bar--single) .ap-pill-btn .ap-pill-icon {
        font-size: 0.92rem;
    }
    .ap-actions-bar--v2:not(.ap-actions-bar--single) .ap-pill-views {
        font-size: 0.7rem;
        padding: 4px 6px;
    }

    /* Single en móvil: solo iconos, sin labels, sin scroll */
    .ap-actions-bar--single {
        gap: 0;
        padding: 4px 0;
        flex-wrap: nowrap;
        border: none;
        justify-content: space-between;
    }
    .ap-actions-bar--single .ap-pill-btn {
        padding: 8px 12px;
        min-height: 42px;
        gap: 5px;
        flex: 1;
        justify-content: center;
        border: none;
        border-right: 1px solid var(--border-line);
        background: transparent;
        border-radius: 0;
    }
    .ap-actions-bar--single .ap-pill-btn:last-of-type { border-right: none; }
    /* Ocultar labels en móvil — solo icono + count */
    .ap-actions-bar--single .ap-pill-label { display: none; }
    .ap-actions-bar--single .ap-pill-btn .ap-pill-icon { font-size: 1.1rem; }
    .ap-actions-bar--single .ap-pill-btn .ap-pill-count {
        font-size: 0.8rem;
        background: transparent;
        padding: 0;
        margin-left: 0;
    }
    .ap-actions-bar--single .ap-pill-views {
        flex: 0 0 auto;
        font-size: 0.76rem;
        padding: 8px 8px;
        border: none;
    }
}

/* ── Desktop: single — botones centrados, sin bordes ni labels ── */
.ap-actions-bar--single {
    gap: 4px;
    padding: 10px 0;
    flex-wrap: nowrap;
    border: none;
    margin: 0;
    justify-content: center;
}
.ap-actions-bar--single .ap-pill-btn {
    padding: 8px 18px;
    min-height: 40px;
    font-size: 0.88rem;
    gap: 6px;
    border: none;
    background: transparent;
    border-radius: 8px;
    flex-shrink: 0;
    color: var(--text-secondary);
}
.ap-actions-bar--single .ap-pill-btn:hover {
    background: var(--hover-gray);
    color: var(--text-primary);
}
.ap-actions-bar--single .ap-pill-btn .ap-pill-icon { font-size: 1.05rem; }
.ap-actions-bar--single .ap-pill-label { display: none !important; }
.ap-actions-bar--single .ap-pill-btn .ap-pill-count {
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--bg-secondary);
    padding: 1px 6px;
    border-radius: 99px;
    margin-left: 2px;
}
.ap-actions-bar--single .ap-pill-views {
    font-size: 0.82rem;
    padding: 8px 0 8px 16px;
    opacity: 0.55;
    margin-left: auto;
    border: none;
}

/* ── Tooltip coloquial del like ── */
.ap-like-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 5px 11px;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 99;
    box-shadow: 0 4px 14px rgba(244,63,94,0.45);
    letter-spacing: 0.01em;
}
.ap-like-tooltip::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #ec4899;
}
.ap-like-tooltip.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@keyframes apTooltipPop {
    0%   { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.85); }
    60%  { transform: translateX(-50%) translateY(-2px) scale(1.06); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.ap-like-tooltip.pop {
    animation: apTooltipPop 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

/* ═══════════════════════════════════════════════════════════════
   FIN BARRA ACCIONES v2 PREMIUM
   ═══════════════════════════════════════════════════════════════ */

