/**
 * Kethane Mobile CSS — v1.0
 * Mejoras mobile ÚNICAMENTE. Zero impacto en desktop (>768px).
 * Autor: Kethane Dev — 2026-03-03
 *
 * ÍNDICE:
 * 01. TOKENS & VARIABLES MOBILE
 * 02. SAFE AREA INSETS (iPhone notch/Dynamic Island)
 * 03. BODY & TIPOGRAFÍA MOBILE
 * 04. INPUTS — FIX ZOOM iOS
 * 05. HEADER MOBILE
 * 06. BOTTOM NAV BAR — FAB NOTCH (VOZ CRISTIANA)
 * 07. ACTIVE STATE EN NAV
 * 08. SIDEBAR OFFCANVAS — JERARQUÍA
 * 09. TOUCH TARGETS
 * 10. CARDS & ESPACIADO MOBILE
 * 11. SCROLL & TAP FEEDBACK
 * 12. VOZ CRISTIANA LIVE WIDGET FLOTANTE
 * 13. NOTIFICACIÓN DE FE (versículos)
 * 14. REACCIONES PERSONALIZADAS
 * 15. INSIGNIAS DE COMUNIDAD
 * 16. STORIES BAR MEJORADA
 * 17. ANIMACIONES
 */

/* ============================================================
   01. TOKENS & VARIABLES MOBILE
   ============================================================ */
:root {
    --km-nav-h: 72px;
    --km-safe: env(safe-area-inset-bottom, 0px);
    --km-fab-size: 54px;
    --km-fab-color: #fe2c55;
    --km-fab-glow: rgba(254, 44, 85, 0.4);
    --km-teal: #00d4c8;
    --km-indigo: #5e72e4;
    --km-gold: #f5a623;
    --km-bg: #080a0e;
    --km-card: #0f1218;
    --km-border: rgba(255, 255, 255, 0.07);
    --km-text-muted: #9899a1;
    --km-radius: 14px;
    --km-transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   02. SAFE AREA INSETS (iPhone notch/Dynamic Island)
   ============================================================ */
@media (max-width: 767px) {
    .footer-bottom-bar {
        padding-bottom: var(--km-safe) !important;
        height: calc(var(--km-nav-h) + var(--km-safe)) !important;
    }

    body {
        padding-bottom: calc(var(--km-nav-h) + var(--km-safe) + 10px) !important;
    }

    /* También corrige el see-more para no quedar tapado */
    .see-more {
        margin-bottom: calc(var(--km-nav-h) + var(--km-safe) + 10px) !important;
    }
}

/* ============================================================
   03. BODY & TIPOGRAFÍA MOBILE
   ============================================================ */
@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    /* Reducir padding del container en mobile */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* ============================================================
   04. INPUTS — FIX ZOOM iOS (Safari hace zoom si font < 16px)
   ============================================================ */
@media (max-width: 767px) {

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="number"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ============================================================
   05. HEADER MOBILE
   ============================================================ */
@media (max-width: 767px) {

    /* Hamburger icon — área táctil cómoda */
    .main-header .menu-icon {
        min-width: 48px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px !important;
    }

    /* Logo — centrado visual en mobile */
    .main-header .logo {
        font-size: 24px !important;
    }

    .main-header .logo img {
        max-height: 40px !important;
    }

    /* Notificaciones en header — área táctil */
    .navbar-wrapper>ul>li>a {
        padding: 0 8px !important;
        min-width: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================================
   06. BOTTOM NAV BAR — FAB NOTCH (VOZ CRISTIANA)
   ============================================================ */

/* Barra base mejorada */
@media (max-width: 767px) {

    .footer-bottom-bar {
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    }

    .footer-bottom-bar-links {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: space-around !important;
        padding: 0 4px !important;
        height: var(--km-nav-h) !important;
        position: relative;
    }

    /* Todos los ítems — más espacio táctil */
    .footer-bottom-bar-links .link {
        flex: 1 !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        min-height: 52px !important;
        padding-bottom: 8px !important;
    }

    .footer-bottom-bar-links .link a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 4px 6px !important;
        border-radius: 10px !important;
        transition: var(--km-transition) !important;
        -webkit-tap-highlight-color: rgba(94, 114, 228, 0.12);
    }

    .footer-bottom-bar-links .link .title {
        font-size: 10px !important;
        font-weight: 500 !important;
        margin-top: 3px !important;
        line-height: 1.1 !important;
        letter-spacing: 0.01em;
    }

    /* ─── VOZ CRISTIANA — FAB STYLE ─── */
    .footer-bottom-bar-links .link:has(a[href*="voz-cristiana"]),
    .footer-bottom-bar-links .link:has(a[href*="Voz-Cristiana"]) {
        flex: 1.4 !important;
        align-items: center !important;
        padding-bottom: 0 !important;
        margin-top: -14px !important;
        /* Crea el efecto de elevación */
    }

    .footer-bottom-bar-links .link a[href*="voz-cristiana"],
    .footer-bottom-bar-links .link a[href*="Voz-Cristiana"] {
        width: var(--km-fab-size) !important;
        height: var(--km-fab-size) !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #fe2c55, #c0003f) !important;
        box-shadow: 0 0 0 4px rgba(8, 10, 14, 1), 0 0 20px var(--km-fab-glow), 0 4px 16px rgba(0, 0, 0, 0.4) !important;
        padding: 0 !important;
        min-width: var(--km-fab-size) !important;
        min-height: var(--km-fab-size) !important;
        justify-content: center !important;
        position: relative;
        animation: km-fab-breathe 3s ease-in-out infinite !important;
    }

    /* Ícono dentro del FAB — blanco */
    .footer-bottom-bar-links .link a[href*="voz-cristiana"] .header-icon,
    .footer-bottom-bar-links .link a[href*="Voz-Cristiana"] .header-icon {
        color: #fff !important;
        fill: #fff !important;
        filter: none !important;
    }

    /* Label VOZ CRISTIANA debajo del FAB */
    .footer-bottom-bar-links .link a[href*="voz-cristiana"] .title,
    .footer-bottom-bar-links .link a[href*="Voz-Cristiana"] .title {
        color: var(--km-fab-color) !important;
        font-weight: 700 !important;
        font-size: 9px !important;
        margin-top: 6px !important;
        position: absolute;
        bottom: -16px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    /* Punto Live en el FAB */
    .footer-bottom-bar-links .link a[href*="voz-cristiana"]::after,
    .footer-bottom-bar-links .link a[href*="Voz-Cristiana"]::after {
        content: '';
        position: absolute;
        top: 4px;
        right: 4px;
        width: 10px;
        height: 10px;
        background: #fff;
        border: 2px solid var(--km-fab-color);
        border-radius: 50%;
        animation: km-live-blink 1.4s ease-in-out infinite !important;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    }

    /* ─── TV ítem — teal ─── */
    .footer-bottom-bar-links .link a[href*="kethane-tv"] .title,
    .footer-bottom-bar-links .link a[href*="kethane_tv"] .title {
        color: var(--km-teal) !important;
        font-weight: 600 !important;
    }

    .footer-bottom-bar-links .link a[href*="kethane-tv"] .header-icon,
    .footer-bottom-bar-links .link a[href*="kethane_tv"] .header-icon {
        filter: drop-shadow(0 0 3px rgba(0, 212, 200, 0.4)) !important;
    }

    /* Notch / arco en la barra detrás del FAB */
    .footer-bottom-bar .container::before {
        content: '';
        position: absolute;
        top: -18px;
        left: 50%;
        transform: translateX(-50%);
        width: 76px;
        height: 38px;
        background: inherit;
        border-radius: 0 0 40px 40px;
        box-shadow: 0 -1px 0 var(--km-border);
        pointer-events: none;
        z-index: -1;
    }
}

/* ============================================================
   07. ACTIVE STATE EN NAV — Punto indicador
   ============================================================ */
@media (max-width: 767px) {
    .footer-bottom-bar-links .link.active .header-icon {
        transform: translateY(-1px) !important;
        transition: transform 0.15s ease !important;
    }

    .footer-bottom-bar-links .link.active .title {
        color: var(--km-indigo) !important;
        font-weight: 700 !important;
    }

    /* Dot indicator */
    .footer-bottom-bar-links .link.active::after {
        content: '';
        display: block;
        width: 4px;
        height: 4px;
        background: var(--km-indigo);
        border-radius: 50%;
        margin: 0 auto;
        margin-top: -4px;
    }

    /* No sobreescribir el ::after del FAB */
    .footer-bottom-bar-links .link:has(a[href*="voz-cristiana"]).active::after,
    .footer-bottom-bar-links .link:has(a[href*="Voz-Cristiana"]).active::after {
        display: none !important;
    }
}

/* ============================================================
   08. SIDEBAR OFFCANVAS — JERARQUÍA VISUAL
   ============================================================ */
@media (max-width: 767px) {

    /* Scroll suave en sidebar */
    .sg-offcanvas-sidebar {
        -webkit-overflow-scrolling: touch !important;
        overflow-y: auto !important;
    }

    /* Todos los ítems — área táctil de 48px */
    .main-side-nav>li>a {
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        padding: 12px 16px !important;
        border-radius: 10px !important;
        transition: background 0.15s ease !important;
        margin: 1px 6px !important;
    }

    .main-side-nav>li>a:active {
        background: rgba(94, 114, 228, 0.12) !important;
    }

    /* TOP 2 ítems — más grandes */
    .main-side-nav>li:nth-child(1)>a {
        font-size: 16px !important;
        font-weight: 700 !important;
        min-height: 54px !important;
    }

    .main-side-nav>li:nth-child(2)>a {
        font-size: 15px !important;
        font-weight: 600 !important;
        min-height: 50px !important;
    }

    /* Sub-ítems colapsables */
    .main-side-nav .collapse ul li a {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        padding: 8px 16px 8px 32px !important;
    }

    /* Cabeceras de sección */
    .main-side-nav li small.text-muted {
        font-size: 10px !important;
        letter-spacing: 0.1em !important;
        padding: 14px 22px 4px !important;
        display: block !important;
        text-transform: uppercase !important;
        opacity: 0.6;
    }

    /* Card del sidebar */
    .main-side-nav-card {
        border-radius: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    /* Kethane TV en sidebar — teal */
    .main-side-nav a[href*="kethane-tv"],
    .main-side-nav a[href*="kethane_tv"] {
        color: var(--km-teal) !important;
        font-weight: 600 !important;
    }
}

/* ============================================================
   09. TOUCH TARGETS — Botones y acciones
   ============================================================ */
@media (max-width: 767px) {

    /* Herramientas del publisher */
    .x-form-tools>li {
        padding: 8px 6px !important;
        margin-left: 2px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Botones de acción en posts */
    .post-actions a,
    .post-action-btn {
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Dropdown items — más grandes */
    .dropdown-menu .dropdown-item {
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
}

/* ============================================================
   10. CARDS & ESPACIADO MOBILE
   ============================================================ */
@media (max-width: 767px) {
    .card {
        border-radius: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Posts con menos padding lateral */
    .post-header,
    .post-body,
    .post-comments-preview {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Publisher */
    ._publisher {
        padding: 10px 12px !important;
    }

    /* modal más compacto */
    .modal-dialog {
        margin: 8px auto !important;
    }

    .modal-header {
        padding: 14px 16px !important;
    }

    .modal-body {
        padding: 16px !important;
    }
}

/* ============================================================
   11. SCROLL & TAP FEEDBACK
   ============================================================ */
@media (max-width: 767px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Feedback táctil knápavé */
    a,
    button,
    [role="button"],
    .pointer {
        -webkit-tap-highlight-color: rgba(94, 114, 228, 0.1);
    }

    /* Evitar selección accidental de texto al hacer scroll */
    .footer-bottom-bar,
    .main-header {
        user-select: none !important;
        -webkit-user-select: none !important;
    }
}

/* ============================================================
   12. VOZ CRISTIANA — LIVE WIDGET FLOTANTE
   ============================================================ */

/* El widget se inyecta via JS en el footer */
#kthane-live-widget {
    display: none;
    position: fixed;
    top: 80px;
    right: 12px;
    z-index: 9990;
    width: 220px;
    background: rgba(8, 10, 14, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(254, 44, 85, 0.3);
    border-left: 3px solid #fe2c55;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(254, 44, 85, 0.15);
    animation: km-widget-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

#kthane-live-widget.visible {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

#kthane-live-widget .klw-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fe2c55;
    animation: km-live-blink 1.4s infinite;
}

#kthane-live-widget .klw-text {
    flex: 1;
    min-width: 0;
}

#kthane-live-widget .klw-title {
    font-size: 12px;
    font-weight: 700;
    color: #fe2c55;
    line-height: 1.2;
}

#kthane-live-widget .klw-sub {
    font-size: 10px;
    color: #9899a1;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#kthane-live-widget .klw-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

#kthane-live-widget .klw-waveform span {
    display: block;
    width: 3px;
    background: #fe2c55;
    border-radius: 2px;
    animation: km-wave 1s ease-in-out infinite;
    opacity: 0.8;
}

#kthane-live-widget .klw-waveform span:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}

#kthane-live-widget .klw-waveform span:nth-child(2) {
    height: 14px;
    animation-delay: 0.1s;
}

#kthane-live-widget .klw-waveform span:nth-child(3) {
    height: 6px;
    animation-delay: 0.2s;
}

#kthane-live-widget .klw-waveform span:nth-child(4) {
    height: 12px;
    animation-delay: 0.05s;
}

#kthane-live-widget .klw-waveform span:nth-child(5) {
    height: 10px;
    animation-delay: 0.15s;
}

#kthane-live-widget .klw-close {
    font-size: 14px;
    color: #9899a1;
    flex-shrink: 0;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    z-index: 1;
    position: absolute;
    top: 6px;
    right: 8px;
}

#kthane-live-widget .klw-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* En desktop, el widget aparece en la esquina inferior derecha */
@media (min-width: 768px) {
    #kthane-live-widget {
        top: auto;
        bottom: 24px;
        right: 24px;
        width: 260px;
    }
}

/* ============================================================
   13. NOTIFICACIÓN DE FE — Versículos bíblicos
   ============================================================ */

/* Estilo especial para posts/notificaciones con versículos */
.feeds-item[data-type="verse"],
.feeds-item.verse-post {
    border-left: 3px solid var(--km-gold) !important;
    background: rgba(245, 166, 35, 0.04) !important;
    border-radius: 0 var(--km-radius) var(--km-radius) 0 !important;
}

/* Toast de fe que aparece en la parte superior */
.kthane-fe-toast {
    display: none;
    position: fixed;
    top: 80px;
    left: 12px;
    right: 12px;
    z-index: 9991;
    background: rgba(8, 10, 14, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-left: 4px solid var(--km-gold);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(245, 166, 35, 0.1);
    animation: km-widget-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kthane-fe-toast.visible {
    display: block;
}

.kthane-fe-toast .kft-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--km-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.kthane-fe-toast .kft-verse {
    font-size: 13px;
    color: #d1c8b8;
    font-style: italic;
    line-height: 1.5;
}

.kthane-fe-toast .kft-ref {
    font-size: 11px;
    color: var(--km-gold);
    font-weight: 600;
    margin-top: 6px;
}

/* ============================================================
   14. REACCIONES PERSONALIZADAS — Amén, Fuego, Paz
   ============================================================ */

/* Re-etiquetado visual de las reacciones en mobile */
@media (max-width: 767px) {

    /* Si la plataforma ya tiene reacciones, hacemos los tooltips más claros */
    .reaction-popover .emoji-item[data-type="like"]::after {
        content: 'Amén';
    }

    .reaction-popover .emoji-item[data-type="love"]::after {
        content: 'Amor';
    }

    .reaction-popover .emoji-item[data-type="haha"]::after {
        content: 'Gozo';
    }

    .reaction-popover .emoji-item[data-type="wow"]::after {
        content: 'Asombro';
    }

    .reaction-popover .emoji-item[data-type="sad"]::after {
        content: 'Oración';
    }

    .reaction-popover .emoji-item[data-type="angry"]::after {
        content: 'Fuego';
    }

    /* Botón de like renombrado visualmente */
    .post-action-like .post-action-text,
    .js_post-reaction-btn .reaction-text {
        transition: var(--km-transition);
    }
}

/* Contadores de reacciones — más legibles en mobile */
@media (max-width: 767px) {

    .post-stats .reaction-counter,
    .post-stats-count {
        font-size: 13px !important;
    }
}

/* ============================================================
   15. INSIGNIAS DE COMUNIDAD
   ============================================================ */

/* Estilo mejorado para badges existentes */
@media (max-width: 767px) {
    .verified-badge {
        font-size: 14px !important;
        filter: drop-shadow(0 1px 3px rgba(212, 175, 55, 0.5)) !important;
    }

    .pro-badge {
        font-size: 14px !important;
    }

    /* Badge de Academia - si se añade clase .badge-academia */
    .badge-academia {
        background: linear-gradient(135deg, #ff6b35, #f5a623);
        color: #fff;
        font-size: 10px;
        padding: 2px 8px;
        border-radius: 10px;
        font-weight: 700;
        display: inline-block;
        margin-left: 4px;
        vertical-align: middle;
    }

    /* Badge de Comunidad - .badge-creyente */
    .badge-creyente {
        background: rgba(99, 102, 241, 0.2);
        border: 1px solid rgba(99, 102, 241, 0.4);
        color: #818cf8;
        font-size: 10px;
        padding: 2px 8px;
        border-radius: 10px;
        font-weight: 600;
        display: inline-block;
        margin-left: 4px;
        vertical-align: middle;
    }
}

/* ============================================================
   16. STORIES BAR MEJORADA (si existe en la plataforma)
   ============================================================ */
@media (max-width: 767px) {

    /* Story circles con gradient ring */
    .stories-wrapper .story-item img,
    .stories-list .story img {
        border: 2px solid transparent !important;
        background: linear-gradient(#080a0e, #080a0e) padding-box,
            linear-gradient(135deg, #ff6b35, #fe2c55) border-box !important;
        border-radius: 50% !important;
    }

    /* Voz Cristiana story — ring rojo pulsante */
    .stories-wrapper .story-item.live img,
    .stories-list .story.live img {
        background: linear-gradient(#080a0e, #080a0e) padding-box,
            linear-gradient(135deg, #fe2c55, #c0003f) border-box !important;
        animation: km-story-pulse 2s ease-in-out infinite !important;
    }

    /* Label de stories */
    .stories-wrapper .story-name,
    .stories-list .story-label {
        font-size: 10px !important;
        font-weight: 600 !important;
    }
}

/* ============================================================
   17. ANIMACIONES
   ============================================================ */

/* FAB respira suavemente */
@keyframes km-fab-breathe {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(8, 10, 14, 1), 0 0 20px var(--km-fab-glow), 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(8, 10, 14, 1), 0 0 30px rgba(254, 44, 85, 0.6), 0 6px 20px rgba(0, 0, 0, 0.5);
    }
}

/* Punto de live parpadea */
@keyframes km-live-blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

/* Barras de audio del widget */
@keyframes km-wave {

    0%,
    100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}

/* Widget entra con bounce */
@keyframes km-widget-in {
    from {
        transform: translateY(-10px) scale(0.9);
        opacity: 0;
    }

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

/* Story live ring pulsante */
@keyframes km-story-pulse {

    0%,
    100% {
        border-width: 2px;
    }

    50% {
        border-width: 3px;
        filter: drop-shadow(0 0 4px rgba(254, 44, 85, 0.6));
    }
}

/* Ripple en tap del FAB */
@keyframes km-fab-tap {
    from {
        transform: scale(1);
    }

    50% {
        transform: scale(0.93);
    }

    to {
        transform: scale(1);
    }
}

.footer-bottom-bar-links .link a[href*="voz-cristiana"]:active,
.footer-bottom-bar-links .link a[href*="Voz-Cristiana"]:active {
    animation: km-fab-tap 0.2s ease !important;
}

/* ============================================================
   18. DESKTOP IMPROVEMENTS (≥ 768px)
   Solo mejoras visuales — cero cambios estructurales
   ============================================================ */

/* ── Sidebar desktop ── */
@media (min-width: 768px) {

    /* Todos los nav items — hover más suave y área generosa */
    .main-side-nav>li>a {
        border-radius: 10px !important;
        transition: background 0.15s ease, color 0.15s ease !important;
        padding: 10px 14px !important;
        margin: 1px 4px !important;
    }

    .main-side-nav>li>a:hover {
        background: rgba(94, 114, 228, 0.08) !important;
        text-decoration: none !important;
    }

    .main-side-nav>li.active>a {
        background: rgba(94, 114, 228, 0.12) !important;
    }

    /* Voz Cristiana — más grande y llamativo */
    .main-side-nav>li:first-child>a {
        font-size: 15px !important;
        font-weight: 700 !important;
        padding: 12px 14px !important;
        background: rgba(254, 44, 85, 0.06) !important;
        border: 1px solid rgba(254, 44, 85, 0.15) !important;
        margin-bottom: 4px !important;
    }

    .main-side-nav>li:first-child>a:hover {
        background: rgba(254, 44, 85, 0.12) !important;
        border-color: rgba(254, 44, 85, 0.3) !important;
    }

    /* Kethane TV sidebar — teal */
    .main-side-nav a[href*="kethane-tv"],
    .main-side-nav a[href*="kethane_tv"],
    .main-side-nav a[href*="kethane_tv_demo"] {
        color: var(--km-teal) !important;
        font-weight: 600 !important;
    }

    /* Cabeceras de sección sidebar */
    .main-side-nav li small.text-muted {
        font-size: 10px !important;
        letter-spacing: 0.1em !important;
        padding: 12px 18px 4px !important;
        display: block !important;
        text-transform: uppercase !important;
        opacity: 0.55 !important;
    }

    /* Card contenedora del sidebar — sin borde agresivo */
    .main-side-nav-card {
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
}

/* ── Header desktop ── */
@media (min-width: 768px) {

    /* Iconos de navbar — hover más limpio */
    .navbar-wrapper>ul>li>a {
        transition: background 0.15s ease !important;
    }

    .navbar-wrapper>ul>li>a:hover {
        background: rgba(94, 114, 228, 0.08) !important;
        border-radius: 10px !important;
    }

    /* Search input — placeholder más amigable */
    .main-header .search-wrapper .form-control {
        border-radius: 10px !important;
        transition: background 0.2s ease, box-shadow 0.2s ease !important;
    }

    .main-header .search-wrapper .form-control:focus {
        box-shadow: 0 0 0 2px rgba(94, 114, 228, 0.25) !important;
        outline: none !important;
    }
}

/* ── Cards del feed — hover premium ── */
@media (min-width: 768px) {

    /* Post cards — sombra más elegante al hover */
    .post {
        transition: box-shadow 0.2s ease !important;
    }

    .post:hover {
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15) !important;
    }

    body.night-mode .post:hover {
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4) !important;
    }

    /* Botones de acción del post — hover más visible */
    .post-actions .btn,
    .post-action-btn {
        transition: background 0.15s ease, color 0.15s ease !important;
        border-radius: 8px !important;
    }

    .post-actions .btn:hover,
    .post-action-btn:hover {
        background: rgba(94, 114, 228, 0.08) !important;
    }

    body.night-mode .post-actions .btn:hover,
    body.night-mode .post-action-btn:hover {
        background: rgba(255, 255, 255, 0.06) !important;
    }
}

/* ── Sidebar derecha (widgets) ── */
@media (min-width: 768px) {

    /* Cards del sidebar derecho — transición suave */
    .side-widget .card,
    .side-widget-card {
        transition: box-shadow 0.2s ease !important;
    }

    /* Dropdowns — animación de entrada */
    .dropdown-menu.show {
        animation: km-widget-in 0.15s ease !important;
    }

    /* Items de dropdown — hover más suave */
    .dropdown-menu .dropdown-item {
        border-radius: 6px !important;
        margin: 1px 4px !important;
        width: calc(100% - 8px) !important;
        transition: background 0.12s ease !important;
    }
}

/* ── Scrollbar de escritorio — más elegante ── */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(128, 128, 128, 0.3);
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(128, 128, 128, 0.5);
    }
}

/* ── Popovers de usuario ── */
@media (min-width: 768px) {
    .user-popover-content {
        animation: km-widget-in 0.15s ease !important;
    }
}

/* ── Content tabs — indicador activo más evidente ── */
@media (min-width: 768px) {
    .content-tabs>ul>li>a {
        transition: color 0.15s ease !important;
        border-radius: 6px 6px 0 0 !important;
    }

    .content-tabs>ul>li>a:hover:not(.active) {
        background: rgba(94, 114, 228, 0.05) !important;
        color: rgba(94, 114, 228, 0.8) !important;
    }
}

/* ── Live widget en desktop más amplio ── */
@media (min-width: 768px) {
    #kthane-live-widget {
        width: 270px;
        padding: 12px 14px;
    }

    #kthane-live-widget .klw-title {
        font-size: 13px;
    }

    #kthane-live-widget .klw-sub {
        font-size: 11px;
    }

    /* Hover en widget desktop */
    #kthane-live-widget:hover {
        border-color: rgba(254, 44, 85, 0.5) !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(254, 44, 85, 0.2) !important;
        transform: translateY(-1px);
        transition: all 0.2s ease;
    }
}

/* ============================================================
   19. DESKTOP REDESIGN — Estilo TikTok/Facebook mejorado
   ============================================================ */

/* ── FUENTE Google: Inter para PC ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

@media (min-width: 768px) {

    /* Fuente Inter en todo el sitio desktop */
    body,
    .card,
    .post,
    .sidebar,
    input,
    textarea,
    button,
    .btn {
        font-family: 'Inter', 'Outfit', 'Poppins', sans-serif !important;
    }

    /* ── SIDEBAR — Estilo TikTok: pill activo, iconos grandes ── */
    .main-side-nav-card {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 8px 0 !important;
    }

    .main-side-nav-card .card-body {
        padding: 0 !important;
    }

    /* Todos los nav items */
    .main-side-nav>li>a {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 11px 16px !important;
        margin: 2px 8px !important;
        border-radius: 50px !important;
        /* Pill style TikTok */
        font-size: 15px !important;
        font-weight: 500 !important;
        transition: background 0.15s ease, font-weight 0.1s ease !important;
        color: inherit;
    }

    .main-side-nav>li>a .main-icon {
        width: 26px !important;
        height: 26px !important;
        flex-shrink: 0;
    }

    /* Hover — fondo gris muy suave (como TikTok) */
    .main-side-nav>li>a:hover {
        background: rgba(0, 0, 0, 0.06) !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }

    body.night-mode .main-side-nav>li>a:hover {
        background: rgba(255, 255, 255, 0.08) !important;
    }

    /* Active — pill sólido (como Facebook activo) */
    .main-side-nav>li.active>a {
        background: rgba(254, 44, 85, 0.1) !important;
        font-weight: 700 !important;
        color: #fe2c55 !important;
    }

    body.night-mode .main-side-nav>li.active>a {
        background: rgba(94, 114, 228, 0.15) !important;
        color: var(--km-indigo) !important;
    }

    /* ── VOZ CRISTIANA — Pill rojo brillante (TikTok-style CTA) ── */
    .main-side-nav>li:first-child>a {
        background: linear-gradient(135deg, rgba(254, 44, 85, 0.12), rgba(192, 0, 63, 0.08)) !important;
        border: 1.5px solid rgba(254, 44, 85, 0.25) !important;
        color: #fe2c55 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        border-radius: 50px !important;
        margin: 4px 8px !important;
        padding: 12px 16px !important;
    }

    .main-side-nav>li:first-child>a:hover {
        background: linear-gradient(135deg, rgba(254, 44, 85, 0.2), rgba(192, 0, 63, 0.14)) !important;
        border-color: rgba(254, 44, 85, 0.5) !important;
        transform: translateX(2px);
    }

    /* Badge Live más prominente */
    .main-side-nav>li:first-child .badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
        border-radius: 20px !important;
        font-weight: 700 !important;
        margin-left: auto !important;
        animation: km-live-blink 2s ease-in-out infinite !important;
    }

    /* Sub-ítems colapsables */
    .main-side-nav .collapse>ul>li>a {
        padding: 9px 16px 9px 56px !important;
        margin: 1px 8px !important;
        border-radius: 50px !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        transition: background 0.15s ease !important;
    }

    .main-side-nav .collapse>ul>li>a:hover {
        background: rgba(0, 0, 0, 0.05) !important;
        text-decoration: none !important;
    }

    /* Separadores de sección */
    .main-side-nav li small.text-muted {
        display: block !important;
        padding: 16px 24px 6px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        opacity: 0.45 !important;
    }

    /* ── HEADER — más limpio y centrado ── */
    .main-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    }

    body.night-mode .main-header {
        border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    }

    /* Search bar — Facebook style */
    .main-header .search-wrapper .form-control {
        border-radius: 50px !important;
        padding-left: 20px !important;
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .main-header .search-wrapper .form-control:focus {
        box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.2) !important;
    }

    /* ── CARDS / POSTS — Facebook style grande ── */
    .card {
        border-radius: 16px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.07) !important;
    }

    body.night-mode .card {
        border-color: rgba(255, 255, 255, 0.07) !important;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3) !important;
    }

    .post {
        border-radius: 16px !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.07) !important;
        margin-bottom: 14px !important;
        overflow: hidden;
        transition: box-shadow 0.2s ease, transform 0.2s ease !important;
    }

    body.night-mode .post {
        border-color: rgba(255, 255, 255, 0.07) !important;
    }

    .post:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
        transform: translateY(-1px) !important;
    }

    body.night-mode .post:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    }

    /* Post header — más padding */
    .post-header {
        padding: 16px 18px 12px !important;
    }

    .post-body {
        padding: 0 18px 14px !important;
    }

    /* ── PUBLISHER BOX — Más prominente como Facebook ── */
    ._publisher {
        border-radius: 16px !important;
        padding: 16px !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    ._publisher .publisher-input {
        border-radius: 50px !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        background: rgba(0, 0, 0, 0.04) !important;
        border: none !important;
    }

    body.night-mode ._publisher .publisher-input {
        background: rgba(255, 255, 255, 0.06) !important;
    }

    ._publisher .publisher-input:focus {
        background: rgba(0, 0, 0, 0.06) !important;
        box-shadow: none !important;
        outline: none !important;
    }

    /* ── BOTONES DE POST ACTIONS — Estilo Facebook ── */
    .post-actions {
        padding: 4px 10px 10px !important;
        display: flex;
        border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
        margin-top: 2px !important;
    }

    body.night-mode .post-actions {
        border-top-color: rgba(255, 255, 255, 0.06) !important;
    }

    .post-actions .btn,
    .post-action-btn {
        flex: 1 !important;
        border-radius: 10px !important;
        padding: 10px 8px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        transition: background 0.15s ease !important;
        color: #65676b !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    body.night-mode .post-actions .btn,
    body.night-mode .post-action-btn {
        color: #b0b3b8 !important;
    }

    .post-actions .btn:hover,
    .post-action-btn:hover {
        background: rgba(0, 0, 0, 0.06) !important;
        color: #050505 !important;
    }

    body.night-mode .post-actions .btn:hover,
    body.night-mode .post-action-btn:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #e4e6eb !important;
    }

    /* ── AVATARES — Estilo más redondeado ── */
    .post-avatar .post-avatar-picture,
    .user-avatar img {
        border-radius: 50% !important;
    }

    /* ── NOMBRE DE USUARIO en post — más bold ── */
    .data-content .name a {
        font-weight: 700 !important;
        font-size: 15px !important;
    }

    .data-content .details {
        font-size: 13px !important;
        margin-top: 1px !important;
    }

    /* ── CONTENT TABS (Actualizaciones Recientes, Populares) ── */
    .content-tabs {
        border-radius: 12px 12px 0 0 !important;
    }

    .content-tabs>ul>li>a {
        font-size: 15px !important;
        font-weight: 600 !important;
        padding: 14px 20px !important;
        border-radius: 0 !important;
        border-bottom: 3px solid transparent !important;
        transition: border-color 0.15s ease, color 0.15s ease !important;
    }

    .content-tabs>ul>li>a.active {
        border-bottom-color: #fe2c55 !important;
        color: #fe2c55 !important;
    }

    .content-tabs>ul>li>a:hover:not(.active) {
        background: rgba(0, 0, 0, 0.04) !important;
        color: inherit !important;
    }

    /* ── BOTONES GLOBALES — más redondeados y sólidos ── */
    .btn-primary {
        border-radius: 50px !important;
        padding: 10px 24px !important;
        font-weight: 600 !important;
        font-size: 14px !important;
    }

    .btn-outline-primary {
        border-radius: 50px !important;
        font-weight: 600 !important;
    }

    /* ── DROPDOWNS — más rápidos y redondeados ── */
    .dropdown-menu {
        border-radius: 12px !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
        padding: 8px !important;
        animation: km-widget-in 0.12s ease !important;
    }

    body.night-mode .dropdown-menu {
        border-color: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    }

    .dropdown-menu .dropdown-item {
        border-radius: 8px !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        transition: background 0.1s ease !important;
    }

    .dropdown-divider {
        margin: 6px 4px !important;
        opacity: 0.1 !important;
    }

    /* ── REACTION COUNT / POST STATS ── */
    .post-stats {
        padding: 8px 18px !important;
        font-size: 14px !important;
        color: #65676b !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    body.night-mode .post-stats {
        border-bottom-color: rgba(255, 255, 255, 0.06) !important;
        color: #b0b3b8 !important;
    }

    /* ── MODALS — más redondeados ── */
    .modal-content {
        border-radius: 16px !important;
        border: none !important;
        Box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
        overflow: hidden;
    }

    .modal-header {
        padding: 18px 20px 14px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        font-weight: 700 !important;
        font-size: 17px !important;
    }

    /* ── SCROLLBAR elegante en PC ── */
    *::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    *::-webkit-scrollbar-track {
        background: transparent;
    }

    *::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 10px;
    }

    body.night-mode *::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
    }

    *::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.25);
    }

    body.night-mode *::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.25);
    }
}

/* ============================================================
   20. ICON IMPROVEMENTS — Desktop (≥ 768px)
   Todos los íconos SVG (.main-icon, .action-icon) y FA
   ============================================================ */

@media (min-width: 768px) {

    /* ── SVG container base — transición suave ── */
    .svg-container {
        transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
            filter 0.18s ease,
            opacity 0.15s ease !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* ── ICONOS DE SIDEBAR (.main-icon) ── */

    /* Tamaño ligeramente mayor que el inline 24px */
    .main-side-nav .svg-container.main-icon {
        width: 22px !important;
        height: 22px !important;
        flex-shrink: 0;
        opacity: 0.75;
        transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    /* Al hover del link padre — el ícono se ilumina y crece levemente */
    .main-side-nav>li>a:hover .svg-container.main-icon {
        opacity: 1 !important;
        transform: scale(1.12) !important;
    }

    /* Item activo — ícono a full */
    .main-side-nav>li.active>a .svg-container.main-icon {
        opacity: 1 !important;
    }

    /* Voz Cristiana: ícono rojo pulsante */
    .main-side-nav>li:first-child>a .svg-container.main-icon {
        opacity: 1 !important;
        filter: drop-shadow(0 0 4px rgba(254, 44, 85, 0.5)) !important;
        animation: km-icon-breathe 2.5s ease-in-out infinite !important;
    }

    /* ── ICONOS DE ACCIONES (.action-icon en posts) ── */

    .action-btn .svg-container.action-icon,
    .action-btn .far,
    .action-btn .fas,
    .action-btn .fa {
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
            color 0.15s ease,
            filter 0.15s ease !important;
    }

    /* React / smiley — hover con bounce */
    .reactions-wrapper:hover .svg-container.action-icon,
    .reactions-wrapper:hover .far.fa-smile {
        transform: scale(1.2) rotate(-10deg) !important;
        color: #f5a623 !important;
        filter: drop-shadow(0 0 4px rgba(245, 166, 35, 0.4)) !important;
    }

    /* Comment — hover con bounce */
    .action-btn.js_comment:hover .svg-container.action-icon {
        transform: scale(1.18) translateY(-2px) !important;
        filter: drop-shadow(0 0 4px rgba(94, 114, 228, 0.5)) !important;
    }

    /* Share — hover gira levemente */
    .action-btn[data-url*="share"]:hover .svg-container.action-icon {
        transform: scale(1.15) rotate(15deg) !important;
        filter: drop-shadow(0 0 4px rgba(0, 212, 200, 0.4)) !important;
    }

    /* Tip — hover dorado */
    .action-btn[data-url*="tip"]:hover .svg-container.action-icon,
    .action-btn[data-url*="send-tip"]:hover .svg-container.action-icon {
        transform: scale(1.2) !important;
        filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.6)) !important;
    }

    /* Review/Star — hover dorado giratorio */
    .action-btn[data-url*="review"]:hover .svg-container.action-icon {
        transform: scale(1.2) rotate(20deg) !important;
        filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.5)) !important;
    }

    /* ── ICONOS FA EN POST STATS ── */
    .post-stats .fa-comments {
        color: var(--km-indigo) !important;
        transition: transform 0.15s ease !important;
    }

    .post-stats .pointer:hover .fa-comments {
        transform: scale(1.2) !important;
    }

    .post-stats .fa-share {
        color: var(--km-teal) !important;
    }

    .post-stats .pointer:hover .fa-share {
        transform: scale(1.2) rotate(10deg) !important;
    }

    .post-stats .fa-eye {
        color: #9899a1 !important;
    }

    .post-stats .fa-play-circle {
        color: #fe2c55 !important;
    }

    .post-stats .fa-star {
        color: var(--km-gold) !important;
    }

    /* ── ICONOS HEADER (.header-icon) ── */

    /* Notificaciones — wiggle al hover */
    .main-header .svg-container.header-icon {
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    .main-header li:hover .svg-container.header-icon {
        transform: scale(1.1) !important;
    }

    /* Bell especial — wiggle */
    .main-header .notification-btn:hover .svg-container.header-icon {
        animation: km-bell-wiggle 0.4s ease !important;
    }

    /* Chat — bounce */
    .main-header .chat-btn:hover .svg-container.header-icon {
        transform: scale(1.12) translateY(-2px) !important;
    }

    /* ── ICONOS EN DROPDOWNS ── */
    .dropdown-menu .svg-container.main-icon {
        opacity: 0.7;
        width: 18px !important;
        height: 18px !important;
        transition: opacity 0.12s ease, transform 0.15s ease !important;
    }

    .dropdown-menu .dropdown-item:hover .svg-container.main-icon {
        opacity: 1 !important;
        transform: scale(1.1) !important;
    }

    /* ── ICONOS EN BOTONES DE HERRAMIENTAS (_publisher) ── */
    .x-form-tools .svg-container,
    .x-form-tools .fa,
    .x-form-tools .fas,
    .x-form-tools .far {
        transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
            color 0.15s ease !important;
    }

    .x-form-tools>li:hover .svg-container,
    .x-form-tools>li:hover .fa,
    .x-form-tools>li:hover .fas,
    .x-form-tools>li:hover .far {
        transform: scale(1.2) !important;
        color: var(--km-indigo) !important;
    }

    /* ── POKE / GIFT ICONS en popovers ── */
    .user-popover-content .svg-container {
        transition: transform 0.18s ease !important;
    }

    .user-popover-content a:hover .svg-container {
        transform: scale(1.15) !important;
    }
}

/* ── Animaciones de iconos (todas las pantallas) ── */

/* Ícono de Voz Cristiana respira */
@keyframes km-icon-breathe {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(254, 44, 85, 0.5));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(254, 44, 85, 0.8));
        transform: scale(1.05);
    }
}

/* Bell wiggle */
@keyframes km-bell-wiggle {
    0% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(15deg) scale(1.1);
    }

    40% {
        transform: rotate(-12deg) scale(1.1);
    }

    60% {
        transform: rotate(8deg);
    }

    80% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0);
    }
}

/* ============================================================
   21. MOBILE LIGHT MODE — Rediseño estilo TikTok
   Mejoras de navegación intuitiva para light mode (default)
   ============================================================ */

@media (max-width: 767px) {

    /* ── FONDO GENERAL — gris suave como TikTok/Facebook ── */
    body:not(.night-mode) {
        background-color: #f0f2f5 !important;
    }

    /* Cards y posts sobre fondo gris — efecto de flotación visual */
    body:not(.night-mode) .card,
    body:not(.night-mode) .post,
    body:not(.night-mode) ._publisher,
    body:not(.night-mode) .stories-wrapper,
    body:not(.night-mode) .content-tabs {
        background: #ffffff !important;
        border: none !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
        border-radius: 14px !important;
    }

    body:not(.night-mode) .post {
        margin-bottom: 10px !important;
    }

    /* ── HEADER MOBILE — más limpio y definido ── */
    body:not(.night-mode) .main-header {
        background: #ffffff !important;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08) !important;
        border-bottom: none !important;
    }

    /* Línea de acento naranja bajo el header — identidad Kethane */
    body:not(.night-mode) .main-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #ff6b35, #fe2c55, #5e72e4);
        opacity: 0.6;
    }

    /* Logo más grande y visible */
    .main-header .logo img {
        height: 36px !important;
        max-height: 36px !important;
    }

    /* Iconos del header — más grandes */
    .main-header .navbar-wrapper>ul>li>a {
        min-width: 46px !important;
        min-height: 46px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }

    body:not(.night-mode) .main-header .navbar-wrapper>ul>li>a:hover,
    body:not(.night-mode) .main-header .navbar-wrapper>ul>li>a:active {
        background: rgba(0, 0, 0, 0.06) !important;
    }

    /* ── STORIES — anillo de gradiente naranja-rojo (Instagram style) ── */
    body:not(.night-mode) .stories-wrapper {
        padding: 12px 8px !important;
        border-radius: 14px !important;
        overflow-x: auto !important;
    }

    /* Anillo de color en cada historia */
    .stories-list .story img,
    .stories-wrapper .story-item img,
    .story-avatar-picture {
        border: 0 solid transparent !important;
        background-origin: border-box !important;
        box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px #fe2c55 !important;
        border-radius: 50% !important;
    }

    /* Tu Historia — anillo punteado */
    .stories-wrapper .story-item:first-child img,
    .stories-list .story:first-child img {
        box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #bbb !important;
    }

    /* ── PUBLISHER — más TikTok/Instagram ── */
    body:not(.night-mode) ._publisher {
        padding: 14px 12px !important;
    }

    /* Input del publisher — pill redondeado */
    body:not(.night-mode) ._publisher .publisher-wrapper {
        background: #f0f2f5 !important;
        border-radius: 50px !important;
        border: none !important;
        padding: 10px 16px !important;
    }

    body:not(.night-mode) ._publisher .publisher-input,
    body:not(.night-mode) ._publisher [contenteditable] {
        background: transparent !important;
        border: none !important;
        font-size: 15px !important;
        color: #65676b !important;
    }

    /* ── TABS DEL FEED — indicador rojo TikTok ── */
    body:not(.night-mode) .content-tabs {
        border-radius: 0 !important;
        margin-bottom: 0 !important;
    }

    body:not(.night-mode) .content-tabs>ul>li>a {
        font-size: 14px !important;
        font-weight: 600 !important;
        padding: 12px 16px !important;
        border-bottom: 2.5px solid transparent !important;
        transition: border-color 0.15s ease, color 0.15s ease !important;
        color: #65676b !important;
    }

    body:not(.night-mode) .content-tabs>ul>li>a.active {
        border-bottom-color: #fe2c55 !important;
        color: #050505 !important;
    }

    /* ── BOTTOM NAV BAR — TikTok style ── */
    body:not(.night-mode) .footer-bottom-bar {
        background: rgba(255, 255, 255, 0.97) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Nav items — tamaño adecuado para touch */
    .footer-bottom-bar-links .link a {
        padding: 6px 4px !important;
        min-height: 52px !important;
    }

    /* Título de nav — más legible */
    .footer-bottom-bar-links .link .title {
        font-size: 10px !important;
        font-weight: 500 !important;
        color: #65676b !important;
        margin-top: 3px !important;
    }

    /* Item ACTIVO — ícono + texto se vuelven negros, bolder (TikTok) */
    .footer-bottom-bar-links .link.active .title {
        color: #0a0a0a !important;
        font-weight: 700 !important;
    }

    .footer-bottom-bar-links .link.active .svg-container.header-icon svg path,
    .footer-bottom-bar-links .link.active .svg-container.header-icon svg circle,
    .footer-bottom-bar-links .link.active .svg-container.header-icon svg rect {
        fill: #0a0a0a !important;
        stroke: #0a0a0a !important;
    }

    /* "Agregar" (+ botón) — TikTok style: blanco con doble borde rojo/teal */
    .footer-bottom-bar-links .link:has(a .header-icon + .title) a[class*="dropdown"] .svg-container,
    .footer-bottom-bar-links .link .title:contains("Agregar")~* {
        /* no funciona :contains, se aplica al .header-plus via nth trick */
    }

    /* Agregar: el ícono + tiene fondo bicolor como TikTok */
    .footer-bottom-bar-links .link:nth-child(4) a {
        background: linear-gradient(90deg, #fe2c55 0%, #fe2c55 45%, #20d0c4 55%, #20d0c4 100%) !important;
        border-radius: 10px !important;
        padding: 6px 14px !important;
        min-width: 56px !important;
        min-height: 32px !important;
        margin-bottom: 4px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .footer-bottom-bar-links .link:nth-child(4) a .svg-container {
        filter: brightness(10) !important;
        /* ícono blanco sobre fondo colorido */
    }

    .footer-bottom-bar-links .link:nth-child(4) .title {
        margin-top: 6px !important;
    }

    /* VOZ CRISTIANA FAB — ajuste fino para light mode */
    body:not(.night-mode) .footer-bottom-bar-links .link a[href*="voz-cristiana"],
    body:not(.night-mode) .footer-bottom-bar-links .link a[href*="Voz-Cristiana"] {
        box-shadow: 0 0 0 4px #fff, 0 0 20px rgba(254, 44, 85, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    }

    /* ── POST BODY — texto más legible ── */
    body:not(.night-mode) .post-body .post-content,
    body:not(.night-mode) .post-body p {
        font-size: 15px !important;
        line-height: 1.55 !important;
        color: #050505 !important;
    }

    /* ── POST ACTIONS — estilo TikTok, flex igual ── */
    body:not(.night-mode) .post-actions {
        border-top: 1px solid #e4e6eb !important;
        padding: 4px 8px !important;
        display: flex !important;
        gap: 0 !important;
    }

    body:not(.night-mode) .post-actions .action-btn {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        padding: 10px 4px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #65676b !important;
        transition: background 0.12s ease !important;
    }

    body:not(.night-mode) .post-actions .action-btn:active {
        background: rgba(0, 0, 0, 0.05) !important;
    }

    /* ── POST STATS — más limpio ── */
    body:not(.night-mode) .post-stats {
        padding: 6px 14px !important;
        font-size: 13px !important;
        color: #65676b !important;
        border-bottom: 1px solid #e4e6eb !important;
    }

    /* ── NOMBRE Y AVATAR EN POSTS ── */
    body:not(.night-mode) .data-content .name a {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #050505 !important;
    }

    body:not(.night-mode) .data-content .details {
        font-size: 12px !important;
        color: #65676b !important;
    }

    /* ── SEPARACIÓN ENTRE SECCIONES ── */
    .main-content .card+.card,
    .main-content .post+.post {
        margin-top: 8px !important;
    }

    /* ── DROPDOWN DEL MENÚ — más cómodo en touch ── */
    body:not(.night-mode) .dropdown-menu {
        border-radius: 16px !important;
        border: none !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        padding: 8px !important;
    }

    body:not(.night-mode) .dropdown-menu .dropdown-item {
        border-radius: 10px !important;
        padding: 13px 16px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #050505 !important;
    }

    body:not(.night-mode) .dropdown-menu .dropdown-item:active {
        background: #f0f2f5 !important;
        color: #050505 !important;
    }

    /* ── MODAL SHEETS — desde abajo como TikTok/iOS ── */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .modal-dialog {
            margin-bottom: calc(env(safe-area-inset-bottom) + 8px) !important;
        }
    }

    body:not(.night-mode) .modal-content {
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15) !important;
    }

    /* ── BADGE DE NOTIFICACIÓN — más prominente ── */
    .main-header .badge {
        font-size: 10px !important;
        min-width: 18px !important;
        height: 18px !important;
        padding: 2px 5px !important;
        border: 2px solid #fff !important;
        font-weight: 700 !important;
    }
}