/*
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 Press Â· Design Tokens â”€â”€ */
    --bg-main: #ffffff;
    --bg-secondary: #f5f8ff;
    --text-primary: #060d18;
    --text-secondary: #3a4a5c;
    --border-line: #e4eaf2;
    /* Brand accent â€” light mode */
    --accent-blue: #1132a8;
    --accent-blue-hover: #0e28a0;
    --accent-blue-light: rgba(17, 50, 168, 0.09);
    --accent-blue-grad: linear-gradient(135deg, #4fc3f7 0%, #1156d6 55%, #0a1a6b 100%);
    /* 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: #edf2f7;
    --card-bg: #ffffff;
    --glow-color: rgba(29, 155, 240, 0.08);
    --card-border: #c8d3de;
    color-scheme: light;
}

[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);
    --accent-blue-grad: linear-gradient(135deg, #7fe8ff 0%, #00b8d9 45%, #0a1a6b 100%);
    /* 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);
    color-scheme: dark;
}

/* Football Icon Badge */
.ap-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ap-icon-football-badge {
    position: absolute;
    bottom: -3px;
    right: -4px;
    font-size: 0.52em !important;
    background: var(--bg-main, #fff);
    color: var(--accent-blue);
    border-radius: 50%;
    transform: rotate(-15deg);
    box-shadow: 0 0 0 1.5px var(--bg-main, #fff);
    z-index: 2;
    pointer-events: none;
}
.m-side-item .ap-icon-football-badge {
    bottom: 2px;
    right: -2px;
}
.x-nav-item.active .ap-icon-football-badge {
    background: var(--bg-secondary);
    box-shadow: 0 0 0 1.5px var(--bg-secondary);
}

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

html {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
    background-color: var(--bg-secondary) !important;
}

body {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary);
    transition: background 0.3s, color 0.3s;
    line-height: 1.3;
    overflow: visible !important;
    margin: 0;
}

/* Ensure consistent background across themes */
html[data-theme="dark"],
html[data-theme="dark"] body {
    background-color: var(--bg-main) !important;
}

/* 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: 0.5;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0, 229, 255, 0.07) 1px, transparent 0);
    will-change: auto;
}

@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;
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .app-grand-wrap {
    background-color: var(--bg-main) !important;
}

.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;
    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: transparent;
}

/* 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 — excluye spans que son wrappers de iconos */
.x-nav-item span:not(.ap-icon-wrapper):not(.x-nav-login-icon-wrap) {
    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:not(.ap-icon-wrapper):not(.x-nav-login-icon-wrap)::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:not(.ap-icon-wrapper):not(.x-nav-login-icon-wrap),
.x-nav-item:focus-visible span:not(.ap-icon-wrapper):not(.x-nav-login-icon-wrap) {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Asegurar que el wrapper de icono sea siempre visible */
.x-nav-item .ap-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.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%) translateZ(0);
    -webkit-transform: translateY(-50%) translateZ(0);
    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;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
[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: #fff;
    border: none;
    cursor: pointer;
    font-weight: 900;
    margin-top: 6px;
}
button.x-nav-publish-btn i { color: #fff; }
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); }
[data-theme="dark"] button.x-nav-publish-btn { color: #000; }
[data-theme="dark"] button.x-nav-publish-btn i { color: #000; }

/* Botón login en sidebar PC */
button.x-nav-login-btn i { color: var(--accent-blue); }
button.x-nav-login-btn:hover { background: rgba(29,155,240,0.1); }
button.x-nav-login-btn:hover i { color: var(--accent-blue); }

/* Login icon: person + arrow badge (clearly "entering") */
.x-nav-login-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}
button.x-nav-login-btn .x-nav-login-person {
    font-size: 1.1rem !important;
    transform: none !important;
    transition: color 0.2s;
}
button.x-nav-login-btn .x-nav-login-arrow {
    font-size: 0.48rem !important;
    position: absolute !important;
    bottom: 0 !important;
    right: -3px !important;
    color: var(--accent-blue) !important;
    background: var(--bg-card, #fff);
    border-radius: 50%;
    padding: 1.5px;
    line-height: 1;
    transform: none !important;
    transition: right 0.2s ease;
    box-shadow: 0 0 0 1px var(--accent-blue);
}
[data-theme="dark"] button.x-nav-login-btn .x-nav-login-arrow {
    background: #0d0f1a;
}
button.x-nav-login-btn:hover .x-nav-login-arrow { right: -5px !important; }

.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:not(.ap-icon-wrapper) {
    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:not(.ap-icon-wrapper)::before {
    border-right-color: rgba(0,229,255,0.15);
}

/* === SIDEBAR BOTTOM â€” PROFILE PILL AI === */
.sidebar-bottom-area {
    padding-bottom: 20px;
}

/* ══════════════════════════════════════════════
   CHAY IA — Chat widget en sidebar
══════════════════════════════════════════════ */

/* ── CHAY IA — ROBOT FLOTANTE ── */

/* Contenedor externo (JS controla `left`) */
#chay-robo-outer {
    position: fixed;
    bottom: 28px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
@media (max-width: 768px) {
    #chay-robo-outer { bottom: 72px; }
}

/* Burbuja de voz */
.chay-speech {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border-line);
    border-radius: 12px 12px 12px 3px;
    padding: 8px 13px;
    white-space: nowrap;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
    animation: chay-bubble-in .25s cubic-bezier(.34,1.56,.64,1) both;
    pointer-events: none;
    z-index: 2;
    max-width: 200px;
    white-space: normal;
    text-align: center;
}
.chay-speech::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 16px;
    width: 8px; height: 8px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-line);
    border-bottom: 1px solid var(--border-line);
    transform: rotate(45deg);
}
[data-theme="dark"] .chay-speech {
    background: #0e1e38;
    border-color: rgba(0,229,255,.18);
    box-shadow: 0 4px 18px rgba(0,0,0,.45);
}
[data-theme="dark"] .chay-speech::after { background: #0e1e38; border-color: rgba(0,229,255,.18); }
@keyframes chay-bubble-in {
    from { opacity:0; transform: translateX(-50%) scale(.8) translateY(6px); }
    to   { opacity:1; transform: translateX(-50%) scale(1)  translateY(0); }
}

/* ── ROBOT CSS ── */
.chay-robo {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-bottom: 6px;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1);
    perspective: 800px;
    transform-style: preserve-3d;
}
.chay-robo:hover        { transform: translateY(-3px) scale(1.06) rotateY(15deg); }
.chay-robo:active       { transform: scale(.94); }
.chay-robo--active      { transform: scale(1.05) rotateY(10deg); }
.chay-robo--football { transform: scale(1.1) rotateX(10deg); }
.chay-robo--mini        { transform: scale(.52); transform-origin: top center; height: 26px; overflow: visible; }

/* Antena */
.chay-robo-ant {
    width: 2px; height: 10px;
    background: rgba(0,229,255,.55);
    border-radius: 1px;
    margin-bottom: -2px;
    position: relative;
}
.chay-robo-ant::before {
    content: '';
    position: absolute;
    top: -5px; left: 50%;
    transform: translateX(-50%);
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 8px 2px rgba(0,229,255,.7);
    animation: chay-ant-pulse 1.8s ease-in-out infinite;
}
/* Cabeza - Hyper-realistic Metallic 4K */
.chay-robo-head {
    width: 40px; height: 30px;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%),
        linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    background-color: #1e293b;
    border: 1.5px solid rgba(0, 229, 255, 0.6);
    border-radius: 10px 10px 4px 4px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    box-shadow: 
        0 8px 16px rgba(0,0,0,0.5),
        inset 0 2px 2px rgba(255,255,255,0.2),
        inset 0 -4px 8px rgba(0,0,0,0.7),
        0 0 10px rgba(0,229,255,0.2);
    position: relative;
    z-index: 2;
    overflow: hidden;
}
/* Textura de metal cepillado */
.chay-robo-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 4px);
    pointer-events: none;
}
/* Reflejo Lens Flare */
.chay-robo-head::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}
/* Reflejo cristalino */
.chay-robo-head::after {
    content: '';
    position: absolute;
    top: 2px; left: 4px; right: 4px; height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    border-radius: 8px 8px 2px 2px;
    pointer-events: none;
}
/* Ojos Neurales */
.chay-robo-eye {
    width: 9px; height: 9px;
    background: #00e5ff;
    border-radius: 2px;
    box-shadow: 
        0 0 8px rgba(0, 229, 255, 0.8),
        0 0 16px rgba(0, 229, 255, 0.4),
        inset 0 0 2px rgba(255, 255, 255, 0.8);
    animation: chay-eye-blink 4s ease-in-out infinite;
    position: relative;
}
.chay-robo-eye::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px; width: 2px; height: 2px;
    background: #fff; border-radius: 50%; opacity: 0.9;
}
.chay-robo-eye--r { animation-delay: .1s; }
.chay-robo--thinking .chay-robo-eye {
    animation: chay-eye-think .5s ease-in-out infinite;
    background: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.9), 0 0 20px rgba(255, 170, 0, 0.4);
}
.chay-robo--active .chay-robo-eye {
    animation: none;
    background: #00ffcc;
    box-shadow: 0 0 12px rgba(0, 255, 204, 1), 0 0 24px rgba(0, 255, 204, 0.4);
}
/* Cuerpo */
.chay-robo-body-row {
    display: flex; align-items: flex-start; margin-top: -1px;
    animation: chay-bobbing 2s ease-in-out infinite;
}
.chay-robo-arm {
    width: 7px; height: 18px;
    background: linear-gradient(90deg, #64748b, #475569 50%, #1e293b 100%);
    border: 1px solid rgba(0, 229, 255, 0.4);
    margin-top: 2px;
    transform-origin: top center;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.4),
        inset 1px 0 1px rgba(255,255,255,0.2);
    position: relative;
}
.chay-robo-arm::after {
    content: ''; position: absolute; top: 2px; left: 50%; width: 2px; height: 80%;
    background: rgba(255,255,255,0.1); transform: translateX(-50%);
}
.chay-robo-arm--l { border-radius: 5px 1px 1px 5px; animation: chay-arm-l .6s ease-in-out infinite; }
.chay-robo-arm--r { border-radius: 1px 5px 5px 1px; animation: chay-arm-r .6s ease-in-out infinite; }

.chay-robo-torso {
    width: 34px; height: 26px;
    background: 
        radial-gradient(circle at 50% 50%, #1e293b 0%, #000 100%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, transparent 2px);
    border: 2px solid #ffaa00;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.6),
        inset 0 2px 4px rgba(255,255,255,0.1),
        inset 0 -4px 8px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}
.chay-robo-torso::before {
    content: '⚙️'; font-size: 8px; position: absolute; bottom: 2px; right: 2px; opacity: 0.3;
}
.chay-robo-screen {
    width: 14px; height: 8px;
    background: rgba(0,229,255,.05);
    border: 1px solid rgba(0,229,255,.2);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
}
.chay-robo-screen::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,229,255,.25), transparent);
    animation: chay-scan-screen 2.5s linear infinite;
}
.chay-robo-heart {
    font-size: 7px; color: #00e5ff;
    animation: chay-heart-beat 1.4s ease-in-out infinite;
    position: relative; z-index: 1;
}
/* Piernas - Industrial Strength */
.chay-robo-legs { display: flex; gap: 4px; margin-top: -2px; }
.chay-robo-leg {
    width: 10px; height: 20px;
    background: linear-gradient(180deg, #475569, #0f172a);
    border: 2px solid #ffaa00;
    border-radius: 3px 3px 6px 6px;
    transform-origin: top center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5), inset 0 2px 2px rgba(255,255,255,0.05);
}
.chay-robo-leg--l { animation: chay-leg-l .6s ease-in-out infinite; }
.chay-robo-leg--r { animation: chay-leg-r .6s ease-in-out infinite; }
/* Sombra */
.chay-robo-shadow {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 4px;
    background: rgba(0,0,0,.3);
    border-radius: 50%;
    filter: blur(2px);
    animation: chay-shadow-pulse .68s ease-in-out infinite alternate;
}

/* Balón de fútbol */
.chay-ball {
    position: absolute;
    bottom: -2px; right: -12px;
    width: 14px; height: 14px;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 50%;
    background-image: 
        radial-gradient(circle at 70% 30%, #fff 0%, #eee 40%, #ccc 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 0L8.5 4.5H13L9.5 7.5L11 12L7 9.5L3 12L4.5 7.5L1 4.5H5.5L7 0Z' fill='%23333'/%3E%3C/svg%3E");
    background-size: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
    animation: ball-bob 0.8s ease-in-out infinite alternate;
}
@keyframes ball-bob {
    from { transform: translateY(0) rotate(0); }
    to   { transform: translateY(-5px) rotate(45deg); }
}

/* Cursor de respuesta IA */
.chay-cursor {
    display: inline-block;
    width: 2px;
    background: var(--accent-blue);
    margin-left: 2px;
    animation: cursor-blink 0.6s step-end infinite;
}
@keyframes cursor-blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Light mode del robot */
[data-theme="light"] .chay-robo-head,
[data-theme="light"] .chay-robo-torso,
[data-theme="light"] .chay-robo-arm,
[data-theme="light"] .chay-robo-leg {
    background: linear-gradient(165deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: rgba(17, 50, 168, 0.72);
    box-shadow:
        0 4px 6px -1px rgba(17, 50, 168, 0.12),
        inset 0 1px 1px #fff,
        inset 0 -2px 4px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .chay-robo-eye {
    background: #1132a8;
    box-shadow: 0 0 8px rgba(17, 50, 168, 0.55), inset 0 0 2px rgba(255,255,255,0.8);
}
[data-theme="light"] .chay-robo--thinking .chay-robo-eye { background: #f97316; box-shadow: 0 0 8px rgba(249,115,22,0.6); }
[data-theme="light"] .chay-robo-ant { background: rgba(17, 50, 168, 0.55); }
[data-theme="light"] .chay-robo-ant::before { background: #1132a8; box-shadow: 0 0 8px rgba(17, 50, 168, 0.45); }
[data-theme="light"] .chay-robo-heart { color: #1132a8; filter: drop-shadow(0 0 2px rgba(17, 50, 168, 0.3)); }
[data-theme="light"] .chay-robo-screen { border-color: rgba(17, 50, 168, 0.35); background: rgba(17, 50, 168, 0.05); }
[data-theme="light"] .chay-robo-screen::after { background: linear-gradient(90deg, transparent, rgba(17, 50, 168, 0.2), transparent); }
[data-theme="light"] .chay-robo-head { box-shadow: 0 4px 12px rgba(17, 50, 168, 0.12); }

/* Animaciones del robot */
@keyframes chay-ant-pulse {
    0%,100% { opacity:1; transform: translateX(-50%) scale(1); }
    50% { opacity:.45; transform: translateX(-50%) scale(.8); }
}
@keyframes chay-eye-blink {
    0%,88%,100% { transform: scaleY(1); }
    92% { transform: scaleY(.1); }
}
@keyframes chay-eye-think {
    0%,100% { opacity:1; transform: scale(1); }
    50% { opacity:.3; transform: scale(.7); }
}
@keyframes chay-bobbing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}
@keyframes chay-arm-l {
    0%,100% { transform: rotate(18deg) translateZ(5px); }
    50% { transform: rotate(-18deg) translateZ(-5px); }
}
@keyframes chay-arm-r {
    0%,100% { transform: rotate(-18deg) translateZ(-5px); }
    50% { transform: rotate(18deg) translateZ(5px); }
}
@keyframes chay-leg-l {
    0%,100% { transform: rotate(20deg) scaleY(1); }
    50% { transform: rotate(-20deg) scaleY(0.9); }
}
@keyframes chay-leg-r {
    0%,100% { transform: rotate(-20deg) scaleY(0.9); }
    50% { transform: rotate(20deg) scaleY(1); }
}
@keyframes chay-heart-beat {
    0%,100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 2px #00e5ff); }
    50% { opacity: 0.6; transform: scale(1.3); filter: drop-shadow(0 0 5px #00e5ff); }
}
@keyframes chay-shadow-pulse {
    from { width: 30px; opacity: 0.4; transform: translateX(-50%) scale(1); }
    to   { width: 22px; opacity: 0.15; transform: translateX(-50%) scale(0.8); }
}
@keyframes chay-scan-screen {
    from { left: -60%; }
    to   { left: 120%; }
}

/* Chip resaltado para contexto de artículo */
.chay-chip--highlight {
    background: rgba(0,229,255,.12);
    border-color: rgba(0,229,255,.4);
    font-weight: 800;
}
[data-theme="light"] .chay-chip--highlight {
    background: rgba(29,155,240,.1);
    border-color: rgba(29,155,240,.35);
}

/* Panel chat — flota sobre el robot */
.chay-panel {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 380px;
    display: flex;
    flex-direction: column;
    background: #080f1e;
    border: 1px solid rgba(0,229,255,0.25);
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(0,229,255,0.05), 0 24px 64px rgba(0,0,0,0.7), 0 0 40px rgba(0,229,255,0.08);
    z-index: 9999;
    overflow: hidden;
    animation: chay-enter 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes chay-enter {
    from { opacity: 0; transform: translateX(-14px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Rejilla neural */
.chay-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0,229,255,0.035) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Scanline */
.chay-scanner-line {
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    box-shadow: 0 0 8px var(--accent-blue);
    z-index: 10;
    display: none;
    animation: chay-scan 2s linear forwards;
}
@keyframes chay-scan {
    0%   { top: 0; opacity: 0.9; }
    85%  { opacity: 0.3; }
    100% { top: 100%; opacity: 0; }
}

/* Header */
.chay-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(90deg, rgba(0,229,255,0.09), rgba(0,229,255,0.03));
    border-bottom: 1px solid rgba(0,229,255,0.12);
    flex-shrink: 0;
}
.chay-header-info { display: flex; align-items: center; gap: 10px; }
.chay-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #00e5ff22, #0ea5e933);
    border: 1px solid rgba(0,229,255,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; color: var(--accent-blue);
    flex-shrink: 0;
}
.chay-header-name { font-size: .78rem; font-weight: 800; color: var(--text-primary); }
.chay-header-status { display: flex; align-items: center; gap: 5px; font-size: .65rem; color: #10b981; margin-top: 1px; }
.chay-online-dot {
    width: 6px; height: 6px; background: #10b981; border-radius: 50%;
    animation: chay-blink 2s ease infinite;
}
@keyframes chay-blink { 0%,100%{opacity:1} 50%{opacity:.4} }

.chay-close-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-secondary); font-size: .85rem;
    padding: 4px 7px; border-radius: 8px; transition: color .15s;
}
.chay-close-btn:hover { color: var(--text-primary); }

/* Messages area */
.chay-messages {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,229,255,0.15) transparent;
}
.chay-messages::-webkit-scrollbar { width: 3px; }
.chay-messages::-webkit-scrollbar-track { background: transparent; }
.chay-messages::-webkit-scrollbar-thumb { background: rgba(0,229,255,0.2); border-radius: 3px; }

/* Bubbles */
.chay-msg { display: flex; flex-direction: column; max-width: 88%; }
.chay-msg--bot { align-self: flex-start; }
.chay-msg--user { align-self: flex-end; align-items: flex-end; }

.chay-bubble {
    padding: 9px 12px;
    border-radius: 14px;
    font-size: .82rem;
    line-height: 1.55;
    word-break: break-word;
}
.chay-msg--bot .chay-bubble {
    background: rgba(0,229,255,0.07);
    border: 1px solid rgba(0,229,255,0.12);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.chay-msg--user .chay-bubble {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chay-msg-time { font-size: .6rem; color: var(--text-secondary); margin-top: 3px; padding: 0 3px; opacity: .6; }

/* Typing indicator */
.chay-typing-bubble {
    display: flex; align-items: center; gap: 4px; padding: 10px 14px;
}
.chay-typing-bubble span {
    width: 6px; height: 6px; background: var(--accent-blue);
    border-radius: 50%; opacity: .4;
    animation: chay-dot 1.2s ease-in-out infinite;
}
.chay-typing-bubble span:nth-child(2) { animation-delay: .2s; }
.chay-typing-bubble span:nth-child(3) { animation-delay: .4s; }
@keyframes chay-dot { 0%,60%,100%{opacity:.2;transform:translateY(0)} 30%{opacity:1;transform:translateY(-4px)} }

/* Suggestions chips */
.chay-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 4px; }
.chay-chip {
    background: rgba(0,229,255,0.06);
    border: 1px solid rgba(0,229,255,0.2);
    color: var(--accent-blue);
    font-size: .7rem; font-weight: 700;
    padding: 5px 10px; border-radius: 20px;
    cursor: pointer; transition: all .2s;
}
.chay-chip:hover { background: rgba(0,229,255,0.14); border-color: rgba(0,229,255,0.5); }

/* Input row */
.chay-input-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(0,229,255,0.08);
    background: rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.chay-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: .82rem;
    padding: 8px 14px;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}
.chay-input:focus { border-color: rgba(0,229,255,0.35); }
.chay-input::placeholder { color: var(--text-secondary); opacity: .6; }

.chay-send-btn {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #00e5ff, #0284c7);
    border: none; border-radius: 50%;
    color: #000; font-size: .8rem;
    cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, box-shadow .2s;
}
.chay-send-btn:hover { transform: scale(1.1); box-shadow: 0 0 12px rgba(0,229,255,0.4); }
.chay-send-btn:active { transform: scale(0.95); }

/* Botón de acción navegable */
.chay-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 13px;
    background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(14,165,233,0.12));
    border: 1px solid rgba(0,229,255,0.35);
    border-radius: 20px;
    color: var(--accent-blue);
    font-size: .74rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .03em;
    transition: all .2s;
    cursor: pointer;
}
.chay-action-btn:hover {
    background: linear-gradient(135deg, rgba(0,229,255,0.22), rgba(14,165,233,0.22));
    border-color: rgba(0,229,255,0.7);
    box-shadow: 0 0 14px rgba(0,229,255,0.2);
    transform: translateY(-1px);
    color: var(--accent-blue);
    text-decoration: none;
}
.chay-action-btn i { font-size: .65rem; }

@media (max-width: 768px) {
    .chay-panel {
        position: fixed !important;
        left: 8px !important;
        right: 8px !important;
        bottom: 78px !important;
        width: calc(100vw - 16px) !important;
        max-width: none !important;
        transform: none !important;
        height: min(420px, calc(100dvh - 160px)) !important;
    }
}

/* ── CHAY LIGHT MODE ── */
[data-theme="light"] .chay-panel {
    background: #ffffff;
    border-color: rgba(29,155,240,0.18);
    box-shadow: 0 8px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(29,155,240,0.05);
}
[data-theme="light"] .chay-panel::before {
    background-image: radial-gradient(rgba(29,155,240,0.045) 1px, transparent 1px);
}
[data-theme="light"] .chay-scanner-line {
    background: linear-gradient(90deg, transparent, rgba(29,155,240,0.7), transparent);
    box-shadow: 0 0 8px rgba(29,155,240,0.4);
}
[data-theme="light"] .chay-header {
    background: linear-gradient(90deg, rgba(29,155,240,0.07), rgba(29,155,240,0.02));
    border-bottom-color: rgba(29,155,240,0.1);
}
[data-theme="light"] .chay-avatar {
    background: linear-gradient(135deg, rgba(29,155,240,0.12), rgba(14,165,233,0.18));
    border-color: rgba(29,155,240,0.25);
}
[data-theme="light"] .chay-close-btn { color: var(--text-secondary); }
[data-theme="light"] .chay-close-btn:hover { color: var(--text-primary); background: rgba(0,0,0,0.05); }
[data-theme="light"] .chay-msg--bot .chay-bubble {
    background: rgba(29,155,240,0.06);
    border-color: rgba(29,155,240,0.14);
    color: var(--text-primary);
}
[data-theme="light"] .chay-input-row {
    background: rgba(0,0,0,0.02);
    border-top-color: rgba(29,155,240,0.08);
}
[data-theme="light"] .chay-input {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .chay-input:focus { border-color: rgba(29,155,240,0.4); }
[data-theme="light"] .chay-chip {
    background: rgba(29,155,240,0.06);
    border-color: rgba(29,155,240,0.2);
    color: var(--accent-blue);
}
[data-theme="light"] .chay-chip:hover { background: rgba(29,155,240,0.12); border-color: rgba(29,155,240,0.45); }
[data-theme="light"] .chay-messages::-webkit-scrollbar-thumb { background: rgba(29,155,240,0.18); }
[data-theme="light"] .chay-action-btn {
    background: linear-gradient(135deg, rgba(29,155,240,0.09), rgba(14,165,233,0.09));
    border-color: rgba(29,155,240,0.28);
}
[data-theme="light"] .chay-action-btn:hover {
    background: linear-gradient(135deg, rgba(29,155,240,0.16), rgba(14,165,233,0.16));
    border-color: rgba(29,155,240,0.55);
}
[data-theme="light"] .chay-panel { }/* light mode del panel ya cubierto abajo */

/* ══════════════════════════════════════════════
   PÁGINAS DE AUTH (recuperar / nueva contraseña)
   ══════════════════════════════════════════════ */
.ap-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: var(--bg-main);
}
.ap-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border: 1px solid var(--border-line);
    border-radius: 22px;
    padding: 40px 36px 32px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.08);
}
[data-theme="dark"] .ap-auth-card {
    background: #0a0f1e;
    border-color: rgba(0,229,255,0.1);
    box-shadow: 0 0 0 1px rgba(0,229,255,0.04), 0 24px 64px rgba(0,0,0,0.5);
}
.ap-auth-logo {
    text-align: center;
    margin-bottom: 28px;
}
.ap-auth-logo a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.ap-auth-logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--accent-blue), #0284c7);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
    box-shadow: 0 0 20px rgba(0,229,255,0.25);
}
.ap-auth-logo-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -.4px;
}
.ap-auth-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 8px;
    text-align: center;
}
.ap-auth-subtitle {
    font-size: .84rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.55;
}
.ap-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .84rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.45;
}
.ap-auth-alert--success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    color: #10b981;
}
.ap-auth-alert--error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #ef4444;
}
.ap-auth-form { display: flex; flex-direction: column; gap: 14px; }
.ap-auth-field {
    position: relative;
}
.ap-auth-field input {
    width: 100%;
    padding: 14px 14px 6px;
    border: 1.5px solid var(--border-line);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: .9rem;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
    font-family: inherit;
}
.ap-auth-field input:focus { border-color: var(--accent-blue); }
.ap-auth-field label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .88rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all .18s;
}
.ap-auth-field input:focus ~ label,
.ap-auth-field input:not(:placeholder-shown) ~ label {
    top: 8px;
    transform: none;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--accent-blue);
}
.ap-auth-pwd-wrap input { padding-right: 44px; }
.ap-auth-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: .9rem;
    padding: 4px;
}
.ap-auth-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--accent-blue), #0284c7);
    color: #fff;
    font-weight: 900;
    font-size: .92rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    margin-top: 4px;
    text-decoration: none;
    letter-spacing: .03em;
    box-shadow: 0 4px 20px rgba(0,229,255,0.2);
}
.ap-auth-btn-submit:hover { opacity: .9; transform: translateY(-1px); }
.ap-auth-btn-submit:active { transform: scale(.98); }
.ap-auth-footer-links {
    text-align: center;
    margin-top: 22px;
    font-size: .82rem;
}
.ap-auth-footer-links a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}
.ap-auth-footer-links a:hover { text-decoration: underline; }
/* Barra de fuerza */
.ap-auth-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 2px;
}
.ap-strength-fill {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--accent-blue);
    transition: width .3s, background .3s;
}
#ap-strength-label {
    font-size: .72rem;
    font-weight: 700;
    min-width: 68px;
    text-align: right;
}

.spd-initial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue, #22d3ee), #0ea5e9);
    color: #fff;
    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: none;
}

.single-title-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 18px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

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

/* ── Engagement bar (single post) ── */
.single-engagement-bar {
    width: 100%;
    border: none;
    margin: 20px 0 12px;
    padding: 2px 0;
    display: block;
}
/* ---- 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: #fff;
    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; }
[data-theme="dark"] .scp-btn { color: #000; }
[data-theme="dark"] .sce-submit { color: #000; }
[data-theme="dark"] .cqm-submit { color: #000; }
[data-theme="dark"] .spd-initial-avatar { color: #000; }

/* ---- 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: #fff; 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: var(--accent-blue);
    background: var(--accent-blue-light);
    border: 1px solid rgba(17,50,168,0.25);
    border-radius: 4px;
    padding: 3px 9px;
    margin-bottom: 10px;
}
[data-theme="dark"] .hero-v2-category {
    border-color: rgba(0,229,255,0.3);
}
.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: var(--accent-blue);
    color: #fff;
    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: var(--accent-blue-hover, #0e28c0); transform: translateY(-1px); }
[data-theme="dark"] .hero-v2-btn { color: #000; }
.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: 10px;
    padding: 11px 14px;
    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 {
    padding-bottom: 8px;
}
.tweet-left-avatar img {
    border-radius: 50%;
    width: 34px;
    height: 34px;
    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 {
    display: none;
}
.tr-divider,
.tr-date {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.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: 0.94rem;
    font-weight: 800;
    line-height: 1.24;
    margin-bottom: 3px;
    color: var(--text-primary);
}

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

.tr-excerpt-small {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tweet-thumbnail-side {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    border-radius: 10px;
    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: var(--accent-blue);
    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: var(--accent-blue-light); border-color: var(--accent-blue); color: var(--accent-blue); }
.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 {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    border-bottom: none;
    justify-content: center;
}

.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: #fff;
    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;
}
.intel-box-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 18px 12px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-blue);
}
.intel-box-header i { font-size: 0.75rem; }

.intel-cell {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 18px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.intel-cell:hover { background: rgba(0,0,0,0.03); }
[data-theme="dark"] .intel-cell:hover { background: rgba(255,255,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: var(--accent-blue);
    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: var(--accent-blue);
    text-decoration: none;
    transition: background .15s;
}
.view-all-intel:hover { background: var(--accent-blue-light); }

/* ── 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: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-blue-light);
}
.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: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
    position: relative;
}
.tr-more-dots:hover {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
}

/* ── POST CONTEXT MENU (dropdown de los 3 puntos) ── */
.post-ctx-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border-line);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
    z-index: 999;
    overflow: hidden;
    animation: ctx-enter .15s cubic-bezier(.34,1.4,.64,1) both;
}
@keyframes ctx-enter {
    from { opacity:0; transform: scale(.92) translateY(-4px); }
    to   { opacity:1; transform: scale(1)  translateY(0); }
}
.post-ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: background .12s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.post-ctx-item:hover { background: var(--hover-gray); }
.post-ctx-item i { width: 16px; text-align: center; font-size: .85rem; flex-shrink: 0; }
.post-ctx-item--follow i   { color: var(--accent-blue); }
.post-ctx-item--share i    { color: #10b981; }
.post-ctx-item--repost i   { color: #10b981; }
.post-ctx-item--report i   { color: #f97316; }
.post-ctx-item--report     { color: #f97316; }
.post-ctx-separator {
    height: 1px;
    background: var(--border-line);
    margin: 3px 0;
}
.tr-more-dots.following .post-ctx-item--follow i { color: var(--text-secondary); }



/* ============================================
   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;
    transform: none;
    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;
        justify-content: space-between;
        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(17,50,168,0.3);
        border-radius: 20px;
        padding: 6px 14px;
        margin: auto 4px;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        gap: 5px;
        background: var(--accent-blue-light);
        transition: background 0.2s, transform 0.15s;
    }
    [data-theme="dark"] .m-category-tabs .cat-tab-more {
        border-color: rgba(0,229,255,0.35);
    }
    .m-category-tabs .cat-tab-more:hover {
        background: rgba(17,50,168,0.12);
        transform: scale(1.04);
    }
    [data-theme="dark"] .m-category-tabs .cat-tab-more:hover {
        background: rgba(0,229,255,0.14);
    }

    .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: 14px;
        margin: 6px 12px;
        padding: 10px 12px;
        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: 32px;
        height: 32px;
    }

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

    [data-theme="dark"] .tr-user {
        display: none;
    }

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

    /* three dots shown in dark mobile */
    [data-theme="dark"] .tr-more-dots {
        display: inline-flex;
        opacity: 0.6;
    }
    [data-theme="dark"] .tr-more-dots:hover {
        opacity: 1;
        background: rgba(0,229,255,0.09);
        color: var(--accent-blue);
    }
    [data-theme="dark"] .post-ctx-menu {
        background: #1a1f2e;
        border-color: rgba(0,229,255,0.12);
        box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,255,0.04);
    }
    [data-theme="dark"] .post-ctx-item:hover { background: rgba(255,255,255,0.05); }
    [data-theme="dark"] .post-ctx-separator  { background: rgba(255,255,255,0.06); }

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

    /* Excerpt */
    [data-theme="dark"] .tr-excerpt-small {
        font-size: 0.8rem;
        line-height: 1.35;
        color: #8899b4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Miniatura compacta al lado del texto */
    [data-theme="dark"] .tweet-content-flex {
        flex-direction: row;
        gap: 10px;
    }

    [data-theme="dark"] .tweet-thumbnail-side {
        width: 74px;
        height: 74px;
        border-radius: 10px;
        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,
    [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 ---- */
    .feed-posts-list {
        background: var(--bg-main) !important;
        padding-bottom: 20px;
    }
    
    [data-theme="light"] .x-tweet-card-style {
        background: #ffffff !important;
        border-bottom: 1px solid #d0d9e4;
    }
    
    [data-theme="light"] .tr-post-title a { color: #000000 !important; }
    [data-theme="light"] .tr-excerpt-small { color: #536471 !important; }
    [data-theme="light"] .tr-name { color: #000000 !important; }

    /* ---- 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(17, 50, 168, 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,
    [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%;
    background: var(--card-bg) !important;
    color: var(--text-primary);
}

/* 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: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 204, 0.3);
    color: var(--accent-blue);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
@media (min-width: 900px) {
    .x-tweet-card-style .ai-badge-neural {
        position: relative;
        top: auto;
        right: auto;
        order: 10;
        margin-left: 0;
        background: rgba(0, 229, 255, 0.08);
        border: 1px solid rgba(0, 229, 255, 0.3);
        padding: 2px 6px;
        font-size: 0.58rem;
        box-shadow: none;
        backdrop-filter: none;
        animation: none;
        display: inline-flex;
        width: fit-content;
    }
}

.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-main);
    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: #fff; font-weight: 800; }
[data-theme="dark"] .tfilter-pill.active { color: #000; }
.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: #fff; font-weight: 800; text-decoration: none; }
[data-theme="dark"] .tfilter-btn-register { color: #000; }

.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: 56px;
    left: 50%;
    transform: translateX(-50%);
    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: 2px 6px 2px 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 10;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,229,255,0.15);
    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: translateX(-50%) 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; }

/* ── AI badge light mode ── */
[data-theme="light"] .ai-badge-neural-advanced {
    background: linear-gradient(135deg, rgba(29,155,240,0.08), rgba(14,165,233,0.12));
    border-color: rgba(29,155,240,0.3);
    box-shadow: 0 2px 8px rgba(29,155,240,0.1);
}
[data-theme="light"] .ai-badge-neural-advanced .ai-value {
    color: #1d9bf0;
    text-shadow: none;
}
[data-theme="light"] .ai-neural-pulse {
    background: #1d9bf0;
    box-shadow: 0 0 5px rgba(29,155,240,0.5);
}
[data-theme="light"] .ai-badge-scan {
    background: linear-gradient(90deg, transparent, rgba(29,155,240,0.2), transparent);
}
[data-theme="light"] .ai-badge-neural-advanced.status-verdadero { border-color: rgba(29,155,240,0.4); }
[data-theme="light"] .ai-badge-neural-advanced.status-dudoso { border-color: rgba(245,158,11,0.5); }
[data-theme="light"] .ai-badge-neural-advanced.status-dudoso .ai-value { color: #d97706; text-shadow: none; }
[data-theme="light"] .ai-badge-neural-advanced.status-dudoso .ai-neural-pulse { background: #d97706; box-shadow: 0 0 5px rgba(217,119,6,0.4); }
[data-theme="light"] .ai-badge-neural-advanced.status-falso { border-color: rgba(220,38,38,0.4); }
[data-theme="light"] .ai-badge-neural-advanced.status-falso .ai-value { color: #dc2626; text-shadow: none; }
[data-theme="light"] .ai-badge-neural-advanced.status-falso .ai-neural-pulse { background: #dc2626; box-shadow: 0 0 5px rgba(220,38,38,0.4); }
[data-theme="light"] .ai-badge-neural { background: rgba(29,155,240,0.08); border-color: rgba(29,155,240,0.25); }

/* ============================================
   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.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .urgent-news {
    color: var(--text-primary);
    background: linear-gradient(90deg, transparent, rgba(255,45,85,0.07), transparent);
}



/* 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); }
}




/* ══════════════════════════════════════════
   ⚽ MARCADORES EN VIVO
══════════════════════════════════════════ */
#ap-scores-strip {
    border-bottom: 1px solid var(--border-line);
    background: var(--bg-main);
}
#ap-scores-strip {
    background: var(--bg-main);
    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-main);
    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: none;
    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) {

    /* Ocultar labels en todos los botones de acción en PC */
    .ap-pill-label { display: none !important; }

    /* ── Contenedor principal de la tarjeta — Efecto Premium ── */
    .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: 4px solid transparent;
        background: transparent;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    /* Efecto Glassmorphism + Glow al Hover */
    .x-tweet-card-style:hover {
        border-left-color: var(--accent-blue);
        background: rgba(var(--accent-blue-rgb, 0, 229, 255), 0.04) !important;
        backdrop-filter: blur(2px);
        transform: translateX(4px);
        box-shadow: -4px 0 25px -5px rgba(0, 229, 255, 0.25);
        z-index: 2;
    }

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

    /* Mostrar el avatar del autor a la izquierda en desktop, ahora vertical */
    .x-tweet-card-style .tweet-left-avatar {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 15px;
        padding-bottom: 12px;
        width: 80px;
        flex-shrink: 0;
        border-right: 1px solid rgba(var(--border-line-rgb, 128, 128, 128), 0.05);
    }

    .x-tweet-card-style .tweet-left-avatar img {
        width: 44px;
        height: 44px;
        border: 2px solid var(--accent-blue);
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
    }

    /* ── Área de contenido derecha ── */
    .x-tweet-card-style .tweet-right-main {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        padding: 14px 20px 10px;
        gap: 0;
    }

    /* ── Línea de autor — compacta e inline ── */
    .x-tweet-card-style .tweet-author-line {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        flex-wrap: nowrap;
    }

    /* Restaurar handle @usuario de forma discreta */
    .x-tweet-card-style .tr-user {
        display: inline;
        font-size: 0.72rem;
        opacity: 0.5;
    }
    .x-tweet-card-style .tr-divider {
        display: inline;
        opacity: 0.3;
    }

    /* 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: inline-flex;
    }
    .x-tweet-card-style .post-ctx-menu {
        right: -8px;
        min-width: 170px;
    }

    /* Badge de categoría — Evolución "WOW" (Cyber-Pill) */
    .x-tweet-card-style .card-category-tag {
        order: -2;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.64rem;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #fff;
        background: linear-gradient(135deg, var(--accent-blue) 0%, #00d2ff 100%);
        border: none;
        border-radius: 20px; /* Redondeado tipo píldora */
        padding: 3px 12px;
        margin-bottom: 10px;
        align-self: flex-start;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }

    .x-tweet-card-style .card-category-tag:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
        filter: brightness(1.1);
    }

    /* Glow interno animado para el tag */
    .x-tweet-card-style .card-category-tag::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
        transform: rotate(45deg);
        transition: 0.5s;
        pointer-events: none;
    }

    .x-tweet-card-style .card-category-tag:hover::after {
        left: 100%;
    }

    .x-tweet-card-style .card-category-tag::before {
        content: '\f02b';
        font-family: 'Font Awesome 6 Free';
        font-size: 0.6rem;
    }

    /* ── Título — Impacto Visual ── */
    .x-tweet-card-style .tr-post-title {
        font-size: 1.15rem;
        font-weight: 800;
        line-height: 1.25;
        margin-bottom: 6px;
        color: var(--text-primary);
        letter-spacing: -0.015em;
        transition: color 0.2s ease;
    }

    .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 {
        display: none !important;
    }
    .ap-actions-bar--single .ap-pill-label {
        display: none !important;
    }
    .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: transparent;
    border-color: transparent;
}
.ap-pill-like.liked .ap-pill-icon i {
    color: #f43f5e;
}

/* ══════════════════════════════════
   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.1);
    border-color: rgba(16,185,129,0.35);
    box-shadow: 0 0 12px rgba(16,185,129,0.25);
}
.ap-pill-repost.ap-pill-reposted .ap-pill-icon {
    animation: apSpinOnce 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes apSpinOnce {
    0%   { transform: rotate(0deg) scale(0.8); }
    60%  { transform: rotate(200deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ══════════════════════════════════
   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 apHeartBeat {
    0%        { transform: scale(1); }
    10%       { transform: scale(1.4); }
    18%       { transform: scale(1.1); }
    28%       { transform: scale(1.32); }
    40%       { transform: scale(1); }
    100%      { transform: scale(1); }
}
@keyframes apLikedPulse {
    0%,  100% { box-shadow: 0 0 6px rgba(244,63,94,0.2),  inset 0 0 4px rgba(244,63,94,0.05); }
    30%       { box-shadow: 0 0 22px rgba(244,63,94,0.6), inset 0 0 12px rgba(244,63,94,0.15); }
    55%       { box-shadow: 0 0 10px rgba(244,63,94,0.3), inset 0 0 6px  rgba(244,63,94,0.08); }
    75%       { box-shadow: 0 0 18px rgba(244,63,94,0.45),inset 0 0 9px  rgba(244,63,94,0.12); }
}
@keyframes apHeartPulse {
    0%, 100% { transform: scale(1); }
    40%       { transform: scale(1.4); }
    65%       { transform: scale(1.15); }
}
@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 6px rgba(244,63,94,0.15); }
    50%       { box-shadow: 0 0 16px 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 .ap-pill-label {
        display: none !important;
    }
    .ap-actions-bar--v2 .ap-pill-btn .ap-pill-icon {
        font-size: 0.92rem;
    }
    .ap-actions-bar--v2 .ap-pill-views {
        font-size: 0.7rem;
        padding: 4px 6px;
    }

    /* Single en móvil: iconos grandes, centrados, limpios */
    .ap-actions-bar--single {
        gap: 4px;
        padding: 6px 0;
        flex-wrap: nowrap;
        border: none;
        justify-content: center;
    }
    .ap-actions-bar--single .ap-pill-btn {
        padding: 10px 16px;
        min-height: 46px;
        gap: 6px;
        flex: 0 0 auto;
        justify-content: center;
        border: none;
        border-right: none;
        background: transparent;
        border-radius: 8px;
    }
    .ap-actions-bar--single .ap-pill-label { display: none !important; }
    .ap-actions-bar--single .ap-pill-btn .ap-pill-icon { font-size: 1.2rem; }
    .ap-actions-bar--single .ap-pill-btn .ap-pill-count {
        font-size: 0.82rem;
        font-weight: 700;
        background: transparent !important;
        padding: 0;
        margin-left: 0;
    }
    .ap-actions-bar--single .ap-pill-views {
        flex: 0 0 auto;
        font-size: 0.78rem;
        padding: 8px 10px;
        border: none;
    }

    /* Móvil: estados activos sin filter (evita que el ícono desaparezca) */
    .ap-pill-like.liked {
        box-shadow: none !important;
        background: transparent !important;
        border-color: transparent !important;
    }
    .ap-pill-like.liked .ap-pill-icon i,
    .ap-pill-repost.ap-pill-reposted .ap-pill-icon,
    .ap-pill-share.ap-pill-success .ap-pill-icon {
        filter: none !important;
    }
}

/* ── Single — botones grandes y limpios ── */
.ap-actions-bar--single {
    justify-content: center;
    border: none;
    padding: 10px 0;
    margin: 0;
    gap: 4px;
}
.ap-actions-bar--single .ap-pill-btn {
    border: none !important;
    border-radius: 8px;
    padding: 7px 13px;
    min-height: 36px;
    gap: 5px;
    font-size: 0.82rem;
    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: 0.9rem; }
.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: transparent !important;
    padding: 0;
    margin-left: 1px;
}
.ap-actions-bar--single .ap-pill-views {
    font-size: 0.82rem;
    padding: 8px 0 8px 16px;
    opacity: 0.55;
    margin-left: auto;
    border: none;
}

/* ── Liked state — color only, sin fondo ni borde para evitar recuadro feo ── */
.ap-pill-like.liked,
.ap-actions-bar--single .ap-pill-like.liked {
    color: #f43f5e !important;
    background: transparent !important;
    border-color: transparent !important;
}
.ap-pill-like.liked .ap-pill-icon i,
.ap-actions-bar--single .ap-pill-like.liked .ap-pill-icon i {
    color: #f43f5e !important;
}

/* ── Botón denunciar ── */
.ap-pill-report { color: var(--text-secondary); }
.ap-pill-report:hover { color: #f97316; background: rgba(249,115,22,0.08); }
.ap-pill-report.reported { color: #f97316; }

/* ── Modal denuncia — razones ── */
.ap-report-reason-btn {
    width: 100%;
    text-align: left;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-line);
    background: transparent;
    color: var(--text-primary);
    font-size: .83rem;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.ap-report-reason-btn:hover { background: var(--hover-gray); }
.ap-report-reason-btn.selected {
    border-color: #f97316;
    color: #f97316;
    background: rgba(249,115,22,0.08);
}

/* ── Animación de entrada escalonada (derecha → izquierda) ── */
@keyframes apPillEnter {
    0%   { opacity: 0; transform: translateX(14px) scale(0.88); }
    60%  { transform: translateX(-3px) scale(1.04); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
.ap-pill-enter {
    opacity: 0;
    animation: apPillEnter 0.32s cubic-bezier(0.34,1.56,0.64,1) forwards;
    animation-delay: calc(var(--ap-enter-i, 0) * 55ms);
}

/* ── 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
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   MOBILE PERFORMANCE — reduce paint & composite cost on scroll
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Eliminar backdrop-filter en mobile — es la principal causa de jank */
    .sticky-feed-header,
    .neural-ticker-wrap,
    .ap-scores-strip,
    #ap-scores-strip,
    .x-nav-submenu,
    .m-translate-dropdown,
    .chay-panel,
    .ai-badge-neural-advanced,
    .ai-badge-neural,
    .post-ctx-menu,
    .ap-search-results,
    .profile-pill,
    .sidebar-profile-dropdown,
    .neural-loader-container {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Detener animaciones en tarjetas no activas — solo mantener las esenciales */
    .neural-bg-grid { display: none !important; }

    .heartbeat-icon,
    .x-logo-box i,
    .trend-cell::after,
    .ai-badge-scan,
    .chay-robo-screen::after {
        animation: none !important;
    }

    /* Contener repaint por tarjeta para que scroll no invalide todo el DOM */
    .x-tweet-card-style {
        contain: layout style;
    }

    /* Eliminar box-shadow costosas en tarjetas durante scroll */
    .x-tweet-card-style {
        box-shadow: none !important;
    }

    /* Promover el sticky header a su propia capa de composición */
    .sticky-feed-header {
        will-change: transform;
        transform: translateZ(0);
    }

    /* Reducir animación del robot a lo mínimo en mobile */
    .chay-robo-arm--l,
    .chay-robo-arm--r,
    .chay-robo-leg--l,
    .chay-robo-leg--r,
    .chay-robo-shadow,
    .chay-robo-screen::after,
    .chay-robo-heart,
    .chay-robo-ant {
        animation-duration: 1.2s !important;
    }

    /* Añadir contenimiento para evitar reflows en cascada */
    .feed-posts-list {
        contain: layout;
    }
}

/* Dark mode mobile — eliminar glows/shadows costosas que fuerzan composite layers extra */
@media (max-width: 768px) {
    [data-theme="dark"] .x-tweet-card-style {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    [data-theme="dark"] .sticky-feed-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(5, 8, 16, 0.98) !important;
    }
    [data-theme="dark"] .neural-ticker-wrap {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    [data-theme="dark"] .ap-scores-strip,
    [data-theme="dark"] #ap-scores-strip {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }
    /* Desactivar todos los pseudo-elementos con gradientes animados en dark mobile */
    [data-theme="dark"] .x-tweet-card-style::before,
    [data-theme="dark"] .x-tweet-card-style::after {
        display: none !important;
    }
    /* Reducir complejidad del ticker en dark mobile */
    [data-theme="dark"] .ticker-item {
        text-shadow: none !important;
    }
}


/* Dark mode — eliminar backdrop-filter en elementos por-tarjeta (N copias en el feed)
   y en el header sticky. Las fondos sólidos/semi-sólidos oscuros hacen el blur invisible. */
[data-theme="dark"] .ai-badge-neural {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.84);
}

[data-theme="dark"] .ai-badge-neural-advanced {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

[data-theme="dark"] .sticky-feed-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 10, 20, 0.97);
}

[data-theme="dark"] .community-notice {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(17, 24, 39, 0.88);
}

/* Attribution for Wikipedia images */
.img-wikipedia-credit {
    display: block;
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 6px;
    opacity: 0.7;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

[data-theme="dark"] .img-wikipedia-credit {
    color: rgba(255, 255, 255, 0.4);
}

/* Badge for Wikipedia images in feed cards */
.wiki-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.55rem;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 800;
    pointer-events: none;
    z-index: 5;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE PERFORMANCE FIXES
   ═══════════════════════════════════════════════════════════════ */

/* 1. backdrop-filter on cards with opaque bg (#16181c) is pure overhead —
      it forces a compositor layer per card with no visual benefit. */
[data-theme="dark"] .x-tweet-card-style {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 2. Sticky header: reduce blur radius and drop saturate() —
      saturate() forces extra GPU passes. blur(8px) is visually indistinct from 20px here. */
[data-theme="dark"] .sticky-feed-header {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* 3. Isolate the neural-bg-grid animation into its own compositor layer
      so opacity changes don't trigger a full-page repaint. */
.neural-bg-grid {
    will-change: opacity;
    transform: translateZ(0);
    contain: strict;
}

/* 4. Feed cards: limit layout/paint scope so a hover on one card
      doesn't force reflow on the entire list. */
.x-tweet-card-style {
    contain: layout style;
}

/* 5. body transition: animating background forces a full repaint each frame.
      Keep only color, which is cheap (text-only repaint). */
body {
    transition: color 0.3s !important;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE — IA gradient (blob mesh)
   Fondo fijo con blobs de luz, estructura transparente,
   tarjetas blancas flotando con glassmorphism sutil.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Gradiente IA fijo en body: base blanca con blobs de color muy sutiles ── */
:root:not([data-theme="dark"]) body {
    background-color: #f8fbff !important;
    background-image:
        radial-gradient(ellipse 60% 50% at 5%  3%,  rgba(99,179,237,0.13)  0%, transparent 55%),
        radial-gradient(ellipse 45% 38% at 95% 5%,  rgba(139,92,246,0.08)  0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 80% 97%, rgba(59,130,246,0.06)  0%, transparent 50%),
        radial-gradient(ellipse 35% 30% at 15% 92%, rgba(99,179,237,0.05)  0%, transparent 50%) !important;
    background-attachment: fixed !important;
}

/* ── 2. Toda la estructura es transparente — el gradiente se ve en todo el layout ── */
:root:not([data-theme="dark"]) .app-grand-wrap,
:root:not([data-theme="dark"]) .sidebar-primary,
:root:not([data-theme="dark"]) .feed-main-col {
    background: transparent !important;
    background-color: transparent !important;
}

/* ── 2b. Sidebar derecha: blanco limpio como panel elevado ── */
:root:not([data-theme="dark"]) .sidebar-secondary {
    background: transparent !important;
}
:root:not([data-theme="dark"]) .sidebar-secondary-sticky {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #d0dae6 !important;
    box-shadow: 0 2px 12px rgba(13,133,216,0.07), 0 0 1px rgba(0,0,0,0.05) !important;
    padding: 6px 0 16px !important;
    overflow: hidden !important;
}

/* ── 3. Dot grid sutil sobre el gradiente (efecto IA) ── */
:root:not([data-theme="dark"]) .neural-bg-grid {
    opacity: 1 !important;
    background-image: radial-gradient(circle at 1px 1px, rgba(29,155,240,0.055) 1px, transparent 0) !important;
    background-size: 36px 36px !important;
    animation: none !important;
}

/* ── 4. Sticky header: frosted glass ── */
:root:not([data-theme="dark"]) .sticky-feed-header {
    background: rgba(240, 247, 255, 0.82) !important;
    backdrop-filter: blur(18px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
    border-bottom: 1px solid rgba(99,179,237,0.2) !important;
}

/* ── 5. Ticker y scores: vidrio sutil ── */
:root:not([data-theme="dark"]) .neural-ticker-wrap {
    background: rgba(255,255,255,0.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(99,179,237,0.18) !important;
}
:root:not([data-theme="dark"]) #ap-scores-strip {
    background: rgba(255,255,255,0.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(99,179,237,0.18) !important;
}

/* ── 6. Tarjetas: blancas, limpias, flotando sobre el gradiente ── */
:root:not([data-theme="dark"]) .x-tweet-card-style {
    background: #ffffff !important;
    border: 1px solid #d0dae6 !important;
    border-radius: 14px !important;
    margin: 6px 10px !important;
    box-shadow: 0 1px 4px rgba(13,85,172,0.07), 0 0 1px rgba(0,0,0,0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s !important;
}
:root:not([data-theme="dark"]) .x-tweet-card-style:hover {
    background: #ffffff !important;
    box-shadow: 0 5px 18px rgba(13,85,172,0.10), 0 1px 3px rgba(0,0,0,0.05) !important;
    border-color: rgba(13,133,216,0.35) !important;
    transform: translateY(-2px) !important;
}

/* ══════════════════════════════════════════════════════════════
/* ══════════════════════════════════════════════════════════════
   SIDEBAR IZQUIERDA — grupos con etiqueta + tiles degradados
   (el detalle de estilos vive en template-parts/sidebar-nav.php)
   ══════════════════════════════════════════════════════════════ */
.sidebar-primary {
    width: 226px !important;
    padding: 0 16px !important;
}
.x-nav-menu {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    gap: 18px !important;
    align-items: stretch !important;
    margin-top: 12px !important;
}
@media (max-width: 1100px) {
    .sidebar-primary { width: 210px !important; }
}
/* ══════════════════════════════════════════════════════════════
   TENDENCIAS — quitar bordes apilados (widget + fila + acento
   izquierdo = hasta 3 bordes por celda). Separacion por color de
   fondo, no lineas.
   ══════════════════════════════════════════════════════════════ */
.trends-widget-box {
    border: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 20px rgba(0,0,0,.05) !important;
    background: var(--bg-secondary) !important;
}
[data-theme="dark"] .trends-widget-box {
    box-shadow: none !important;
    background: rgba(255,255,255,.035) !important;
}

.trend-cell {
    border-top: none !important;
    border-left: none !important;
}
.trend-cell:hover {
    border-left: none !important;
    background: rgba(0,0,0,.035) !important;
    border-radius: 10px !important;
}
[data-theme="dark"] .trend-cell:hover {
    background: rgba(255,255,255,.045) !important;
}

.trend-cell--hot {
    border-left: none !important;
    border-radius: 10px !important;
}
.trend-cell--color-1:hover, .trend-cell--color-2:hover, .trend-cell--color-3:hover,
.trend-cell--color-4:hover, .trend-cell--color-5:hover, .trend-cell--color-6:hover,
.trend-cell--color-7:hover {
    border-left: none !important;
    border-radius: 10px !important;
}

/* ── Columna derecha mas angosta / columna central mas ancha ── */
.sidebar-secondary { width: 300px !important; }

/* ── Alinear el area de perfil/tema con el resto del sidebar ── */
.sidebar-profile-wrap { justify-content: flex-start !important; }
.profile-pill { outline: none !important; width: auto !important; justify-content: flex-start !important; padding: 4px !important; }
.sidebar-bottom-area { margin-top: 4px !important; }


/* ══════════════════════════════════════════════════════════════
   NAVBAR SUPERIOR (ap-topnav) — logo, traductor, cuenta, suscribirse
   ══════════════════════════════════════════════════════════════ */
.ap-topnav {
    position: sticky; top: 0; z-index: 500;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border: none;
    box-shadow: none;
}
[data-theme="dark"] .ap-topnav {
    background: rgba(0,0,0,.55);
}
.ap-topnav-inner {
    max-width: 1600px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 10px 24px;
}
.ap-tn-logo {
    display: flex; align-items: center; gap: 9px;
    text-decoration: none; color: var(--text-primary);
    font-weight: 900; font-size: 1rem; flex-shrink: 0;
}
.ap-tn-logo i {
    color: var(--accent-blue);
    filter: drop-shadow(0 0 8px var(--accent-blue-light));
    animation: neuroPulse 3s ease-in-out infinite;
    font-size: 1.35rem;
}
.ap-tn-logo span { display: flex; flex-direction: column; line-height: 1.1; }
.ap-tn-logo small { font-size: .56rem; font-weight: 700; color: var(--text-secondary); letter-spacing: .08em; text-transform: uppercase; }
.ap-tn-actions { display: flex; align-items: center; gap: 10px; }
.ap-tn-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); cursor: pointer; font-size: .95rem;
    border: none; background: none; text-decoration: none; overflow: hidden;
}
.ap-tn-icon:hover { background: var(--bg-secondary); color: var(--accent-blue); }
.ap-tn-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ap-tn-avatar-initial {
    width: 100%; height: 100%; border-radius: 50%; background: var(--accent-blue-grad); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem;
}
.ap-tn-sub {
    background: var(--accent-blue-grad); color: #fff; font-weight: 800; font-size: .8rem;
    padding: 10px 20px; border-radius: 10px; border: none; cursor: pointer;
}
[data-theme="dark"] .ap-tn-sub { color: #001018; }

@media (max-width: 700px) {
    .ap-topnav { display: none !important; }
}

/* Logo del sidebar oculto: el masthead ahora vive solo en el navbar superior */
.x-logo-box { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   TENDENCIAS — numeracion destacada con degradado de marca
   ══════════════════════════════════════════════════════════════ */
.trend-cell {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
}
.trend-cell-num {
    flex-shrink: 0;
    width: 22px; height: 22px; border-radius: 7px;
    background: var(--accent-blue-grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 900;
    margin-top: 1px;
}
.trend-cell-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }


/* ══════════════════════════════════════════════════════════════
   TIPOGRAFIA COMPACTA ESTILO X.COM — titulares y tendencias
   ══════════════════════════════════════════════════════════════ */
.single-title { font-size: 1.3rem !important; }
@media (max-width: 700px) {
    .single-title { font-size: 1.12rem !important; }
}
.x-tweet-card-style .tr-post-title { font-size: 0.95rem !important; }
.cell-title { font-size: 0.85rem !important; }
.cell-cat, .cell-meta { font-size: 0.72rem !important; }

/* ══════════════════════════════════════════════════════════════
   COLUMNA CENTRAL MAS ANCHA — se veia muy delgada frente a los
   dos sidebars fijos
   ══════════════════════════════════════════════════════════════ */
.main-layout-constraint { max-width: 1380px !important; }
.feed-main-col { max-width: 820px !important; }


/* ══════════════════════════════════════════════════════════════
   ESCALA GENERAL -10% — la pagina se sentia demasiado grande /
   ocupando toda la pantalla tras ensanchar la columna central
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 701px) {
    /* Solo escritorio: en mobile el zoom interactuaba mal con los
       elementos que usan vw (ej. el panel del menu hamburguesa,
       max-width:85vw, quedaba corrido) */
    html { zoom: 90%; }
}


/* ══════════════════════════════════════════════════════════════
   WIDGET DE CLIMA — deteccion automatica por geolocalizacion,
   datos reales via Open-Meteo (sin API key)
   ══════════════════════════════════════════════════════════════ */
.wx-widget-box {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: linear-gradient(160deg, #5fb2ea 0%, #1c56c4 55%, #0a1a6b 100%);
    color: #fff;
    position: relative;
}
.wx-widget-box.wx-night {
    background: linear-gradient(160deg, #141c40 0%, #080b22 65%, #04060f 100%);
}
.wx-widget-box .intel-box-header {
    color: rgba(255,255,255,.85) !important;
    position: relative; z-index: 1;
}
.wx-widget-box .intel-box-header i { color: #ffd75e; }
.wx-body { padding: 4px 18px 18px; position: relative; z-index: 1; }
.wx-loading, .wx-error {
    font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.75);
    padding: 10px 0 6px;
}
.wx-top { display: flex; align-items: center; justify-content: space-between; }
.wx-loc { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.wx-refresh { width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .68rem; }
.wx-refresh:hover { background: rgba(255,255,255,.25); }
.wx-main { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; }
.wx-icon-wrap { width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.wx-icon-wrap i { font-size: 1.7rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.wx-icon-wrap .fa-sun { color: #ffd75e; }
.wx-temp { font-family: 'Plus Jakarta Sans', sans-serif !important; font-size: 1.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.wx-temp sup { font-size: 1rem; font-weight: 700; }
.wx-cond { font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.85); margin-top: 2px; }
.wx-stats { display: flex; gap: 14px; margin-top: 10px; font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.85); }
.wx-stats span { display: flex; align-items: center; gap: 5px; }


/* ══════════════════════════════════════════════════════════════
   BARRA DE TABS SUPERIOR (Pais/Mundo/Siguiendo/Viral/TV) — se
   quita en escritorio, esos accesos ahora viven en el sidebar.
   El mobile usa su propia barra independiente (.mobile-explore-header
   / .m-category-tabs) y no se ve afectado.
   ══════════════════════════════════════════════════════════════ */
.pc-header-tabs { display: none !important; }


/* ══════════════════════════════════════════════════════════════
   MOBILE +1px EN TEXTO DE NOTICIAS (titulares, extractos, cuerpo
   de articulo) — los menus/nav quedan igual.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    .x-tweet-card-style .tr-post-title { font-size: 1.0125rem !important; }
    .tr-excerpt-small { font-size: 0.8625rem !important; }
    .single-title { font-size: 1.1825rem !important; }
    .single-content { font-size: 1.1125rem !important; }
}


/* ══════════════════════════════════════════════════════════════
   TABS DE CATEGORIA MOBILE — centradas (Colombia/Mundo/Siguiendo/
   Viral/TV)
   ══════════════════════════════════════════════════════════════ */
.m-category-tabs, [data-theme="dark"] .m-category-tabs {
    justify-content: center !important;
}


/* ══════════════════════════════════════════════════════════════
   QUITAR BARRA "QUE ESTA PASANDO" EN MOBILE — el FAB "+" ya cubre
   crear publicacion, no hace falta duplicar el CTA
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    .mobile-prompt-bar { display: none !important; }
}


/* ══════════════════════════════════════════════════════════════
   POPUP INFO DE PARTIDO — clic en un marcador del home
   ══════════════════════════════════════════════════════════════ */
.match-popup-overlay {
    position: fixed; inset: 0; z-index: 9500;
    background: rgba(6,13,24,.6); backdrop-filter: blur(3px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.match-popup-overlay.open { display: flex; }
.match-popup-card {
    background: var(--card-bg); border: 1px solid var(--border-line);
    border-radius: 20px; width: 100%; max-width: 340px; padding: 26px 22px;
    position: relative; text-align: center;
}
.match-popup-close {
    position: absolute; top: 12px; right: 12px; width: 28px; height: 28px;
    border-radius: 50%; border: none; background: var(--bg-secondary);
    color: var(--text-secondary); cursor: pointer;
}
.match-popup-close:hover { color: var(--text-primary); }
.match-popup-league {
    font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-secondary); margin-bottom: 16px;
}
.match-popup-teams { display: flex; align-items: center; justify-content: center; gap: 16px; }
.match-popup-team { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.match-popup-logo { width: 44px; height: 44px; object-fit: contain; }
.match-popup-name { font-size: .8rem; font-weight: 700; color: var(--text-primary); }
.match-popup-score {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 900;
    color: var(--accent-blue); flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.match-popup-status {
    margin-top: 14px; font-size: .74rem; font-weight: 700; color: var(--text-secondary);
}
.match-popup-status.mp-status--live { color: #dc2626; }
[data-theme="dark"] .match-popup-status.mp-status--live { color: #f87171; }
.match-popup-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 18px; padding: 11px; border-radius: 11px;
    background: var(--accent-blue-grad, var(--accent-blue)); color: #fff;
    font-weight: 800; font-size: .82rem; text-decoration: none;
}
[data-theme="dark"] .match-popup-cta { color: #001018; }


/* ══════════════════════════════════════════════════════════════
   DROPDOWN DE CUENTA EN EL NAVBAR — Mi Perfil / Publicaciones /
   Configuracion / Salir
   ══════════════════════════════════════════════════════════════ */
.ap-tn-account { position: relative; }
.ap-tn-account .ap-tn-avatar { border: none; padding: 0; cursor: pointer; }
.ap-tn-account-menu {
    position: absolute; top: 44px; right: 0;
    background: var(--card-bg); border: 1px solid var(--border-line); border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.16); padding: 6px; min-width: 200px;
    display: none; flex-direction: column; gap: 2px; z-index: 600;
}
.ap-tn-account-menu.open { display: flex; }
.ap-tn-account-name {
    padding: 8px 10px 6px; font-size: .82rem; font-weight: 800; color: var(--text-primary);
    border-bottom: 1px solid var(--border-line); margin-bottom: 4px;
}
.ap-tn-account-menu a {
    display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px;
    font-size: .82rem; font-weight: 700; color: var(--text-secondary); text-decoration: none;
}
.ap-tn-account-menu a i { width: 15px; text-align: center; }
.ap-tn-account-menu a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.ap-tn-account-menu a.ap-tn-account-logout { color: #dc2626; }
[data-theme="dark"] .ap-tn-account-menu a.ap-tn-account-logout { color: #f87171; }


/* ══════════════════════════════════════════════════════════════
   BUSCADOR EN EL NAVBAR SUPERIOR (PC)
   ══════════════════════════════════════════════════════════════ */
.ap-tn-search.pc-search-wrap {
    flex: 1;
    max-width: 420px;
    margin: 0 24px;
}
.ap-tn-search .pc-search-pill-box {
    width: 100%;
}


/* ══════════════════════════════════════════════════════════════
   BUSQUEDAS RECIENTES EN EL DROPDOWN DE BUSCADOR
   ══════════════════════════════════════════════════════════════ */
.ap-search-recent-label {
    padding: 10px 14px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: var(--text-secondary);
}
.ap-search-recent-item { position: relative; }
.ap-search-remove-recent {
    margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: none;
    background: none; color: var(--text-secondary); cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.ap-search-remove-recent:hover { background: var(--bg-secondary); color: var(--text-primary); }


/* ══════════════════════════════════════════════════════════════
   PAGINAS DIVISAS Y COINS
   ══════════════════════════════════════════════════════════════ */
.fx-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px; margin-top: 18px;
}
.fx-grid--metals { margin-top: 14px; }
.fx-card {
    background: var(--card-bg); border: 1px solid var(--border-line); border-radius: 14px;
    padding: 16px;
}
.fx-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fx-flag { font-size: 1.3rem; line-height: 1; }
.fx-code { font-size: .74rem; font-weight: 800; color: var(--text-secondary); letter-spacing: .03em; }
.fx-value {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.4rem; font-weight: 800;
    color: var(--text-primary); font-variant-numeric: tabular-nums;
}
.fx-name { font-size: .74rem; color: var(--text-secondary); margin-top: 4px; }
.fx-card--metal .fx-flag { color: #f59e0b; }
.coin-change {
    margin-top: 8px; font-size: .76rem; font-weight: 800; font-variant-numeric: tabular-nums;
    display: flex; align-items: center; gap: 4px;
}
.coin-change.coin-up { color: #16a34a; }
.coin-change.coin-down { color: #dc2626; }
[data-theme="dark"] .coin-change.coin-up { color: #34d399; }
[data-theme="dark"] .coin-change.coin-down { color: #f87171; }


/* ══════════════════════════════════════════════════════════════
   MODAL DE GRAFICA HISTORICA (Divisas / Coins)
   ══════════════════════════════════════════════════════════════ */
.fx-card, .coin-card { cursor: pointer; transition: border-color .15s, transform .15s; }
.fx-card:hover, .coin-card:hover { border-color: var(--accent-blue); transform: translateY(-2px); }

.chart-overlay {
    position: fixed; inset: 0; z-index: 9600;
    background: rgba(6,13,24,.6); backdrop-filter: blur(3px);
    display: none; align-items: center; justify-content: center; padding: 16px;
}
.chart-overlay.open { display: flex; }
.chart-card {
    background: var(--card-bg); border: 1px solid var(--border-line); border-radius: 20px;
    width: 100%; max-width: 480px; padding: 24px; position: relative;
}
.chart-close {
    position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%;
    border: none; background: var(--bg-secondary); color: var(--text-secondary); cursor: pointer;
}
.chart-close:hover { color: var(--text-primary); }
.chart-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-right: 30px; }
.chart-icon { font-size: 1.6rem; line-height: 1; }
.chart-title { font-size: .82rem; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .03em; }
.chart-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.chart-price {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.6rem; font-weight: 900;
    color: var(--text-primary); font-variant-numeric: tabular-nums;
}
.chart-change { font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.chart-change.chart-up { color: #16a34a; }
.chart-change.chart-down { color: #dc2626; }
[data-theme="dark"] .chart-change.chart-up { color: #34d399; }
[data-theme="dark"] .chart-change.chart-down { color: #f87171; }

.chart-ranges { display: flex; gap: 6px; margin-bottom: 14px; }
.chart-range-btn {
    flex: 1; padding: 7px 0; border-radius: 8px; border: 1px solid var(--border-line);
    background: var(--bg-secondary); color: var(--text-secondary); font-size: .74rem; font-weight: 800;
    cursor: pointer; transition: all .15s;
}
.chart-range-btn:hover { border-color: var(--accent-blue); }
.chart-range-btn.active { background: var(--accent-blue-grad, var(--accent-blue)); color: #fff; border-color: transparent; }
[data-theme="dark"] .chart-range-btn.active { color: #001018; }

.chart-canvas-wrap { position: relative; height: 220px; width: 100%; }
#chart-canvas { width: 100%; height: 220px; display: block; transition: opacity .2s; }
.chart-loading {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 1.3rem;
}
.chart-tooltip {
    position: absolute; top: 0; transform: translateX(-50%);
    background: var(--text-primary); color: var(--bg-main); font-size: .7rem; font-weight: 700;
    padding: 5px 9px; border-radius: 8px; pointer-events: none; white-space: nowrap; text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.chart-stats-row {
    display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--border-line); font-size: .74rem; font-weight: 700; color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}


/* ══════════════════════════════════════════════════════════════
   DATOS CLAVE EN AZUL CLARO — la IA ya envuelve los datos
   importantes en <strong>, aqui se resaltan en color en vez de
   solo negrita
   ══════════════════════════════════════════════════════════════ */
.single-content strong,
.tr-excerpt-small strong {
    color: #0ea5e9;
    font-weight: 800;
}
[data-theme="dark"] .single-content strong,
[data-theme="dark"] .tr-excerpt-small strong {
    color: #7dd3fc;
}


/* ══════════════════════════════════════════════════════════════
   PRELOADER — momento de marca al cargar, siempre fondo oscuro
   sin importar el tema (igual que X)
   ══════════════════════════════════════════════════════════════ */
#ap-preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: radial-gradient(circle at 50% 40%, #0a1030 0%, #050818 60%, #000000 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 22px;
    opacity: 1; transition: opacity .5s ease;
}
#ap-preloader.ap-pl-hide { opacity: 0; pointer-events: none; }

.ap-pl-orb {
    position: relative; width: 92px; height: 92px;
    display: flex; align-items: center; justify-content: center;
}
.ap-pl-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid transparent;
}
.ap-pl-ring--1 {
    border-top-color: #00e5ff; border-right-color: rgba(0,229,255,.25);
    animation: ap-pl-spin 1.1s linear infinite;
}
.ap-pl-ring--2 {
    inset: 12px;
    border-bottom-color: #4f8dff; border-left-color: rgba(79,141,255,.25);
    animation: ap-pl-spin-rev 1.6s linear infinite;
}
.ap-pl-glow {
    position: absolute; inset: 22px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,255,.55) 0%, transparent 72%);
    animation: ap-pl-breathe 1.4s ease-in-out infinite;
    filter: blur(2px);
}
.ap-pl-bolt {
    position: relative; z-index: 1; font-size: 2.1rem;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(0,229,255,.9));
    animation: ap-pl-flicker 1.4s ease-in-out infinite;
}
.ap-pl-word {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900;
    font-size: .95rem; letter-spacing: .3em; color: #fff;
    opacity: 0; animation: ap-pl-fadein .6s ease .25s forwards;
}
.ap-pl-word span { color: #00e5ff; margin-left: .3em; }

@keyframes ap-pl-spin { to { transform: rotate(360deg); } }
@keyframes ap-pl-spin-rev { to { transform: rotate(-360deg); } }
@keyframes ap-pl-breathe {
    0%, 100% { transform: scale(.85); opacity: .6; }
    50%      { transform: scale(1.15); opacity: 1; }
}
@keyframes ap-pl-flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    45%      { opacity: .75; transform: scale(.94); }
    55%      { opacity: 1; transform: scale(1.05); }
}
@keyframes ap-pl-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .ap-pl-ring, .ap-pl-glow, .ap-pl-bolt { animation: none !important; }
    .ap-pl-word { animation: ap-pl-fadein .3s ease forwards; }
}


/* ══════════════════════════════════════════════════════════════
   TILE "ULTIMA HORA" — nombre del pais visible + boton animado
   para cambiarlo (antes era invisible, nadie sabia que se podia
   cambiar de pais)
   ══════════════════════════════════════════════════════════════ */
.nav-tile--country { position: relative; }
.nav-tile-country-name {
    font-size: .64rem !important; font-weight: 700 !important;
    color: var(--text-secondary) !important; margin-top: 2px !important;
    display: flex; align-items: center; gap: 3px;
}
.nav-tile-country-btn {
    position: absolute; top: 8px; right: 8px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent-blue-grad, var(--accent-blue)); color: #fff;
    border: none; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    font-size: .62rem;
    animation: ap-country-pulse 2.2s ease-in-out infinite;
}
[data-theme="dark"] .nav-tile-country-btn { color: #001018; }
.nav-tile-country-btn:hover { animation-play-state: paused; filter: brightness(1.1); }
@keyframes ap-country-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(17,50,168,.45); }
    50%      { box-shadow: 0 0 0 6px rgba(17,50,168,0); }
}
[data-theme="dark"] .nav-tile-country-btn {
    animation-name: ap-country-pulse-dark;
}
@keyframes ap-country-pulse-dark {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,.45); }
    50%      { box-shadow: 0 0 0 6px rgba(0,229,255,0); }
}
@media (prefers-reduced-motion: reduce) {
    .nav-tile-country-btn { animation: none !important; }
}


/* ══════════════════════════════════════════════════════════════
   MODAL DE IDIOMA — accesible desde el globo del navbar (PC) y
   desde el globo agregado junto al menu hamburguesa (mobile)
   ══════════════════════════════════════════════════════════════ */
.ap-lang-overlay {
    position: fixed; inset: 0; z-index: 9700;
    background: rgba(6,13,24,.6); backdrop-filter: blur(3px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.ap-lang-overlay.open { display: flex; }
.ap-lang-card {
    background: var(--card-bg); border: 1px solid var(--border-line); border-radius: 20px;
    width: 100%; max-width: 320px; padding: 24px; position: relative;
}
.ap-lang-close {
    position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%;
    border: none; background: var(--bg-secondary); color: var(--text-secondary); cursor: pointer;
}
.ap-lang-close:hover { color: var(--text-primary); }
.ap-lang-title {
    font-size: 1rem; font-weight: 800; color: var(--text-primary);
    display: flex; align-items: center; gap: 9px; margin-bottom: 16px;
}
.ap-lang-title i { color: var(--accent-blue); }
.ap-lang-grid { display: flex; flex-direction: column; gap: 3px; }
.ap-lang-opt {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    font-size: .86rem; font-weight: 700; color: var(--text-secondary); cursor: pointer;
    background: none; border: none; text-align: left; width: 100%;
}
.ap-lang-opt:hover { background: var(--bg-secondary); color: var(--text-primary); }
.ap-lang-opt.active { color: var(--accent-blue); background: var(--accent-blue-light); }
