/* ============================================================
   TRES VALLES — Cyber-Glassmorphism Premium
   Layout-first · Discord/YouTube polish · Glass + Neon Cian
   ============================================================ */

/* =========== TOKENS =========== */
:root {
    /* Layout */
    --header-h: 64px;
    --sidebar-w: 280px;
    --sidebar-collapsed-w: 72px;
    --content-max: 760px;

    /* Color base */
    --bg: #0a0a0c;
    --bg-elevated: #131319;
    --bg-card: #15151c;
    --bg-glass: rgba(20, 20, 26, 0.55);
    --bg-glass-strong: rgba(15, 15, 20, 0.85);

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);

    /* Accent / acción */
    --accent: #00d2ff;
    --accent-2: #3a7bd5;
    --accent-grad: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --accent-glow: 0 0 20px rgba(0, 210, 255, 0.4);

    /* Texto */
    --text: #ffffff;
    --text-dim: #9ca3af;
    --text-muted: #6b7280;

    /* Estados */
    --success: #43b581;
    --danger: #ff4757;
    --warning: #ffd700;

    /* Sombra glass */
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.7);

    /* Tipografía */
    --fs-body: 1rem;
    --fs-sm: 0.85rem;
    --fs-xs: 0.75rem;
    --fs-title: 1.2rem;
    --fs-h1: 2.2rem;
}

/* =========== RESET / BASE =========== */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(circle at 20% 0%, rgba(0, 210, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(58, 123, 213, 0.07) 0%, transparent 40%);
    overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, video { max-width: 100%; display: block; }

.hidden { display: none !important; }

/* Scroll fino, oscuro */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 210, 255, 0.3); }

/* =========== HEADER / NAVBAR =========== */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1000;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.navbar {
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-left { display: flex; align-items: center; gap: 14px; }
.nav-center { flex: 1; display: flex; justify-content: center; }
.nav-right { display: flex; align-items: center; gap: 10px; }

.logo {
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.search-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 4px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all 0.25s ease;
}

.search-clear {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
}
.search-clear:hover { color: var(--accent); }

/* DROPDOWN tipo Google */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    max-height: 480px;
    overflow-y: auto;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: var(--shadow-strong);
    z-index: 1100;
    animation: searchFadeIn 0.15s ease;
}

@keyframes searchFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: var(--fs-sm);
}

.sd-section {
    padding: 8px 6px;
    border-bottom: 1px solid var(--border);
}

.sd-section:last-of-type { border-bottom: none; }

.sd-section h5 {
    margin: 0 0 6px;
    padding: 4px 14px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sd-section h5 i { color: var(--accent); }
.sd-section h5 small { margin-left: auto; color: var(--text-muted); font-size: 0.65rem; }

.sd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.12s ease;
    border-radius: 8px;
}

.sd-item:hover { background: rgba(0, 210, 255, 0.08); }

.sd-item img {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sd-item-icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 210, 255, 0.12);
    border-radius: 50%;
    color: var(--accent);
}

.sd-item-info {
    flex: 1;
    min-width: 0;
}

.sd-item-title {
    font-size: var(--fs-sm);
    color: var(--text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-item-sub {
    font-size: var(--fs-xs);
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-see-all {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(0, 210, 255, 0.08);
    border: none;
    border-top: 1px solid var(--border);
    color: var(--accent);
    font-weight: 700;
    font-size: var(--fs-sm);
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease;
}

.sd-see-all:hover { background: rgba(0, 210, 255, 0.15); }

/* Ruta de búsqueda completa */
.search-route { padding-bottom: 40px; }

.search-section-full {
    margin-bottom: 28px;
}

.search-section-full h3 {
    color: var(--accent);
    margin: 0 0 14px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.search-section-full h3 .net-count {
    margin-left: auto;
    background: rgba(0, 210, 255, 0.15);
    color: var(--accent);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    box-shadow: var(--accent-glow);
}

.search-box i { color: var(--accent); font-size: 0.9rem; margin-right: 10px; }

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    color: var(--text);
    outline: none;
    font-family: inherit;
    font-size: var(--fs-sm);
}

/* =========== BOTONES BASE =========== */
.btn-icon {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-icon:active { transform: scale(0.94); }
.btn-icon.spinning i { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-primary {
    padding: 10px 26px;
    background: var(--accent-grad);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.25);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 210, 255, 0.45);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent-grad);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 12px;
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.2);
    transition: all 0.25s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 210, 255, 0.4);
    letter-spacing: 1px;
}

.btn-cancel {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.btn-small {
    padding: 8px 16px;
    background: var(--accent-grad);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.3);
}

.btn-small:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-danger {
    width: 100%;
    padding: 14px;
    background: var(--danger);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-danger:hover { background: #ff6b75; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3); }

/* Notification badge en bell */
.badge {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 18px;
    padding: 2px 6px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 999px;
    text-align: center;
    display: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

/* =========== LAYOUT MAIN — flex container =========== */
.layout-main {
    padding-top: var(--header-h);
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* =========== SIDEBAR =========== */
#sidebar {
    position: fixed;
    top: var(--header-h); left: 0;
    width: var(--sidebar-w);
    height: calc(100vh - var(--header-h));
    z-index: 999;
    padding: 22px 14px;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.3s ease, opacity 0.3s ease;
}

#sidebar::-webkit-scrollbar { display: none; }

.sidebar-hidden {
    transform: translateX(-100%);
    opacity: 0;
}

/* Botón colapsar (chevron flotante en borde) */
.sidebar-collapse-btn {
    position: absolute;
    top: 12px; right: -14px;
    width: 28px; height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--accent-grad);
    border: 2px solid var(--bg);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0, 210, 255, 0.5);
    font-size: 0.85rem;
}

.sidebar-collapse-btn i { transition: transform 0.3s ease; }
body.sidebar-collapsed .sidebar-collapse-btn i { transform: rotate(180deg); }

/* Tarjeta de usuario actual */
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 16px;
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.sidebar-user-card img {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

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

.uc-name {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uc-meta {
    font-size: var(--fs-xs);
    color: var(--text-dim);
}

/* Botón crear publicación (sidebar) */
.sidebar-create-btn {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-grad);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: var(--fs-sm);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 210, 255, 0.25);
    transition: all 0.2s ease;
}

.sidebar-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 210, 255, 0.45);
}

.sidebar-create-btn i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

/* Navegación de la sidebar */
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.sidebar-section {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-section-title {
    margin: 0 0 8px;
    padding: 0 12px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-panel-title { margin-bottom: 10px !important; }

.sidebar-show-more {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 0;
}

.sidebar-show-more:hover { text-decoration: underline; }

/* Links del sidebar — estilo Discord/YouTube */
.sidebar-link-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: var(--fs-sm);
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-link-btn i {
    width: 20px;
    font-size: 0.95rem;
    color: var(--text-dim);
    text-align: center;
    transition: color 0.2s ease;
}

.sidebar-link-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transform: translateX(2px);
}

.sidebar-link-btn:hover i { color: var(--accent); }

.sidebar-link-btn.active {
    background: rgba(0, 210, 255, 0.12);
    color: var(--accent);
    border-color: rgba(0, 210, 255, 0.25);
    box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-link-btn.active i { color: var(--accent); }

.sidebar-link-sub { padding: 9px 14px; font-size: var(--fs-sm); }

.highlight-link {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.06), rgba(58, 123, 213, 0.06));
    border-color: rgba(0, 210, 255, 0.15);
}

/* Badge de notificaciones en sidebar */
.sb-noti-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
    animation: pulse 2s infinite;
}

body.sidebar-collapsed .sb-noti-badge {
    position: absolute;
    top: 6px; right: 6px;
    margin: 0;
    padding: 1px 5px;
    font-size: 0.55rem;
}

/* User pill (siguiendo / recomendados) */
.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-bottom: 2px;
}

.user-pill:hover { background: rgba(0, 210, 255, 0.06); }

.avatar-wrap {
    position: relative;
    width: 36px; height: 36px;
    flex-shrink: 0;
}

.avatar-wrap img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 0; right: 0;
    width: 11px; height: 11px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    background: var(--text-muted);
}

.status-dot.online { background: var(--success); }
.status-dot.offline { background: #4f5563; }

.user-pill-info { flex: 1; min-width: 0; }

.user-pill-name {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-pill-sub {
    font-size: var(--fs-xs);
    color: var(--text-dim);
}

.user-pill-action {
    padding: 4px 10px;
    background: var(--accent-grad);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

/* =========== CONTAINER PRINCIPAL — scroll independiente =========== */
.container {
    flex: 1;
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 24px 100px;
    margin-left: 0;
}

#forum-controls { display: none; }
#feed-container { max-width: var(--content-max); margin: 0 auto; }

/* =========== TARJETAS DE HILO =========== */
.thread-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, transform 0.2s ease;
    animation: fadeInUp 0.4s ease;
}

.thread-card:hover { border-color: var(--border-strong); }

.t-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.t-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.thread-card p {
    margin: 0 0 12px;
    font-size: var(--fs-title);
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.thread-card img,
.thread-card video {
    max-width: 100%;
    border-radius: 14px;
    margin: 12px 0;
}

.thread-card video { background: #000; width: 100%; }

.mini-pfp {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mini-pfp:hover { transform: scale(1.06); }

/* Username con jerarquía visual */
.username-citizen { color: var(--text); font-weight: 600; cursor: pointer; }
.username-verified { color: var(--accent); font-weight: 700; cursor: pointer; }
.username-admin { color: #ffb84d; font-weight: 700; cursor: pointer; }

/* Badge de IA en hilos automáticos */
.bot-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(58, 123, 213, 0.12));
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.15);
}

.bot-badge i { font-size: 0.65rem; }

/* Badges de verificación */
.badge-verified, .badge-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    margin-left: 4px;
    border-radius: 50%;
    font-size: 0.62rem;
    color: white;
    vertical-align: middle;
}

.badge-verified {
    background: var(--accent-grad);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

.badge-gold {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Acciones del hilo */
.thread-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(0, 210, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

.action-btn.liked {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.35); }
}

.action-btn.liked i { animation: heartPulse 0.5s ease-out; }

/* Animación fresh: noticias recién inyectadas */
@keyframes newsFreshIn {
    0% { opacity: 0; transform: translateY(-25px) scale(0.98); box-shadow: 0 0 0 rgba(0, 210, 255, 0); }
    40% { opacity: 1; box-shadow: 0 0 35px rgba(0, 210, 255, 0.45); }
    100% { opacity: 1; transform: translateY(0) scale(1); box-shadow: var(--shadow); }
}

.thread-card.news-fresh {
    animation: newsFreshIn 1.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-color: var(--accent);
}

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

/* =========== COMENTARIOS =========== */
.comment {
    margin: 10px 0;
    padding: 12px 14px;
    background: rgba(0, 210, 255, 0.04);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
}

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

.comment-pfp {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.comment p {
    margin: 0 0 6px;
    font-size: var(--fs-sm);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-actions { display: flex; gap: 12px; }

.comment-actions button {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: var(--fs-xs);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.comment-actions button:hover { color: var(--accent); }

.input-comment {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: var(--fs-sm);
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.input-comment:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

/* =========== MODALES =========== */
.modal {
    position: fixed; inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    padding: 20px;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    box-shadow: var(--shadow-strong), 0 0 60px rgba(0, 210, 255, 0.1);
    animation: modalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.close-btn {
    position: absolute;
    top: 18px; right: 18px;
    width: 32px; height: 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover { background: var(--danger); color: white; border-color: var(--danger); }

/* =========== AUTH MODAL SPLIT (estilo Pinterest) =========== */
.auth-modal-content {
    max-width: 820px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--bg-elevated);
}

.auth-split {
    display: flex;
    min-height: 480px;
}

.auth-form-side {
    flex: 1;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.auth-brand-side {
    flex: 0 0 320px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a14 0%, #1a0e2e 50%, #0a1a2e 100%);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 30px;
}

.ab-orb {
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.35), transparent 70%);
    top: -80px; right: -80px;
    animation: orbPulse 5s ease-in-out infinite;
    filter: blur(20px);
    pointer-events: none;
}

.ab-orb-2 {
    background: radial-gradient(circle, rgba(255, 0, 110, 0.25), transparent 70%);
    bottom: -100px; left: -80px;
    top: auto; right: auto;
    animation-delay: 1.5s;
    width: 260px; height: 260px;
}

.ab-content {
    position: relative;
    z-index: 2;
    color: white;
}

.ab-logo {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #00d2ff, #ff006e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.ab-tag {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ab-features {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

.ab-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ab-features li:last-child { border-bottom: none; }

.ab-features li i {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 210, 255, 0.15);
    border-radius: 50%;
    color: var(--accent);
    flex-shrink: 0;
    font-size: 0.85rem;
}

.ab-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
}

.ab-footer i { color: var(--success); }

.auth-primary {
    background: var(--accent-grad) !important;
    margin: 14px 0 6px !important;
    padding: 13px !important;
    font-size: 0.95rem !important;
}

.google-btn-host {
    margin-bottom: 8px;
    min-height: 44px;
    display: flex;
    justify-content: center;
}

.google-config-msg {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(52, 168, 83, 0.08));
    border: 1px dashed rgba(66, 133, 244, 0.4);
    border-radius: 12px;
    text-align: center;
}

.google-config-msg i.fa-google {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc04, #ea4335);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.google-config-msg p {
    margin: 4px 0 4px;
    font-size: var(--fs-sm);
    color: var(--text);
}

.google-config-msg small {
    color: var(--text-dim);
    font-size: var(--fs-xs);
    line-height: 1.4;
    display: block;
}

@media (max-width: 720px) {
    .auth-modal-content { max-width: 95vw !important; }
    .auth-split { flex-direction: column; min-height: auto; }
    .auth-brand-side {
        flex: 0 0 auto;
        order: -1;
        border-left: none;
        border-bottom: 1px solid var(--border);
        padding: 24px;
    }
    .auth-form-side { padding: 28px; }
    .ab-features { display: none; }
    .ab-footer { display: none; }
}

/* Auth views */
.auth-view h3 { margin: 0 0 6px; font-size: 1.4rem; color: var(--text); }

.switch-text {
    margin-top: 20px;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--text-dim);
}

.switch-text span {
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
}

.switch-text span:hover { text-shadow: 0 0 10px rgba(0, 210, 255, 0.5); }

.sep {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sep::before, .sep::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.sep span { padding: 0 14px; }

.input-modern {
    width: 100%;
    padding: 13px 16px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: var(--fs-sm);
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.input-modern:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

textarea.input-modern { resize: vertical; min-height: 60px; }

/* =========== SETTINGS TABS =========== */
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 10px 14px;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn:hover { color: var(--accent); }

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-btn.danger { color: var(--danger); }
.tab-btn.danger:hover { color: #ff8e96; }

.tab-content { display: none; animation: fadeInUp 0.3s ease; }
.tab-content.active { display: block; }
.tab-content h3 { margin-top: 0; color: var(--accent); font-size: var(--fs-title); }
.tab-content h4 { margin: 12px 0 8px; font-size: 0.9rem; color: var(--text); }

.theme-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.theme-option {
    padding: 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.theme-option:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* =========== EDITOR ENRIQUECIDO =========== */
.editor-modal {
    max-width: 720px !important;
    width: 95% !important;
    padding: 28px !important;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.tb-group {
    display: flex;
    gap: 2px;
    padding: 0 6px;
    border-right: 1px solid var(--border);
}

.tb-group:last-child { border-right: none; }

.editor-toolbar button,
.editor-toolbar .tb-file {
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.editor-toolbar button:hover,
.editor-toolbar .tb-file:hover {
    background: rgba(0, 210, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

.tb-file input[type="file"] {
    position: absolute; inset: 0;
    opacity: 0;
    cursor: pointer;
}

.editor-toolbar select {
    height: 34px;
    max-width: 130px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: var(--fs-xs);
    cursor: pointer;
    outline: none;
}

.editor-toolbar select:focus { border-color: var(--accent); }

.editor-toolbar input[type="color"] {
    width: 34px; height: 34px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
}

.editor-body {
    min-height: 180px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    color: var(--text);
    outline: none;
    line-height: 1.6;
}

.editor-body.rich { min-height: 240px; }

.editor-body.drag-over {
    background: rgba(0, 210, 255, 0.06);
    border-color: var(--accent);
    box-shadow: inset 0 0 30px rgba(0, 210, 255, 0.1);
}

.editor-body:empty:before {
    content: attr(placeholder);
    color: var(--text-muted);
    pointer-events: none;
}

.editor-body img,
.editor-body video {
    max-width: 100%;
    border-radius: 12px;
    margin: 10px 0;
}

.editor-body video { background: #000; }

.doc-attachment {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 6px 0;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

.doc-attachment:hover { background: rgba(0, 210, 255, 0.15); transform: translateY(-2px); }

.editor-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.editor-actions button { flex: 1; }

.editor-hint {
    margin: 8px 0 0;
    color: var(--text-dim);
    font-size: var(--fs-xs);
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-hint i { color: var(--accent); }

.editor-notify {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 4px;
    padding: 10px 14px;
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--text-dim);
    transition: all 0.2s ease;
    user-select: none;
}

.editor-notify:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent);
    color: var(--text);
}

.editor-notify input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    margin: 0;
}

.editor-notify span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.editor-notify span i { color: var(--accent); }

/* =========== HUB REGIONAL — Explora Tres Valles =========== */
.hub-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 56px 36px;
    text-align: center;
    border-radius: 22px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(10, 10, 12, 0.45), rgba(10, 10, 12, 0.15)),
        linear-gradient(135deg, #00d2ff 0%, #3a7bd5 50%, #ff006e 100%);
}

.hub-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 55%);
    pointer-events: none;
}

.hub-hero h1 {
    margin: 0 0 8px;
    font-size: var(--fs-h1);
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    position: relative;
}

.hub-hero p {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    position: relative;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.hub-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

.hub-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }

.hub-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
    z-index: 0;
}

.hub-card > * { position: relative; z-index: 1; }

.hub-card-icon {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.9rem;
}

.hub-card h3 {
    margin: 0 0 6px;
    font-size: var(--fs-title);
    font-weight: 800;
    color: white;
}

.hub-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.hub-card.history   { background: linear-gradient(135deg, #614385, #516395); }
.hub-card.economy   { background: linear-gradient(135deg, #f7971e, #ffd200); }
.hub-card.regional  { background: linear-gradient(135deg, #11998e, #38ef7d); }
.hub-card.cana      { background: linear-gradient(135deg, #c79100, #6e370a); }
.hub-card.railway   { background: linear-gradient(135deg, #4a4a4a, #1a1a1a); }
.hub-card.geo       { background: linear-gradient(135deg, #00b4db, #0083b0); }
.hub-card.geology   { background: linear-gradient(135deg, #6d4c41, #3e2723); }
.hub-card.food      { background: linear-gradient(135deg, #ff5722, #c62828); }
.hub-card.music     { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.hub-card.tradition { background: linear-gradient(135deg, #ec407a, #ad1457); }
.hub-card.nature    { background: linear-gradient(135deg, #2e7d32, #1b5e20); }
.hub-card.sport     { background: linear-gradient(135deg, #1976d2, #0d47a1); }
.hub-card.edu       { background: linear-gradient(135deg, #00897b, #004d40); }
.hub-card.gallery   { background: linear-gradient(135deg, #ff006e, #8338ec); }

.hub-section {
    margin-bottom: 22px;
    padding: 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hub-section h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hub-section-lead {
    margin: 0 0 14px;
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.65;
}

.business-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.business-filter input,
.business-filter select {
    flex: 1;
    min-width: 180px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: var(--fs-sm);
    outline: none;
}

.business-filter input:focus,
.business-filter select:focus { border-color: var(--accent); }

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.business-card {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.25s ease;
}

.business-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.12);
}

.business-card h4 {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 1rem;
}

.biz-cat {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 10px;
}

.business-card p {
    margin: 4px 0;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.business-card p i {
    color: var(--accent);
    width: 12px;
    margin-right: 6px;
}

.business-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-dim);
}

/* =========== PAGINACIÓN =========== */
.pagination {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.pag-btn {
    min-width: 36px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pag-btn:hover:not(:disabled) {
    background: rgba(0, 210, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.pag-btn.current {
    background: var(--accent-grad);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 210, 255, 0.35);
}

.pag-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pag-ellipsis {
    color: var(--text-muted);
    padding: 0 6px;
}

.pag-info {
    margin-left: auto;
    color: var(--text-dim);
    font-size: var(--fs-xs);
}

/* =========== LOGIN RÁPIDO =========== */
.quick-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-login-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.quick-login-btn.guest {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 140, 0, 0.08));
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.quick-login-btn.guest:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 140, 0, 0.18));
    border-color: #ffd700;
}

.quick-login-btn.google-fallback {
    background: linear-gradient(135deg, #4285f4, #34a853);
    border-color: transparent;
    color: white;
}

.quick-login-btn.google-fallback:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.35);
}

/* =========== POPOVER DE PERFIL =========== */
.user-popover {
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(20px) saturate(180%);
    animation: popoverIn 0.25s ease;
}

@keyframes popoverIn {
    from { opacity: 0; transform: scale(0.92) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.popover-banner { width: 100%; height: 70px; }

.popover-pfp {
    width: 60px; height: 60px;
    margin: -30px auto 0;
    display: block;
    border-radius: 50%;
    border: 3px solid var(--bg-elevated);
    object-fit: cover;
    background: var(--bg-card);
}

.popover-content { padding: 12px 20px 20px; text-align: center; }

.popover-content h3 {
    margin: 8px 0 4px;
    font-size: 1.05rem;
    color: var(--text);
}

.popover-badges {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 6px 0;
}

.popover-badges .badge-verified,
.popover-badges .badge-gold {
    width: 22px; height: 22px;
    font-size: 0.85rem;
}

.popover-content p {
    margin: 0 0 12px;
    color: var(--text-dim);
    font-size: var(--fs-sm);
}

.popover-stats {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    margin: 12px 0;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.popover-stats span { font-size: var(--fs-xs); color: var(--text-dim); flex: 1; }
.popover-stats span:first-child { border-right: 1px solid var(--border); }

.popover-actions { display: flex; gap: 8px; justify-content: center; }

/* =========== PANEL DE NOTIFICACIONES (slide) =========== */
.notifications-panel {
    position: fixed;
    top: var(--header-h); right: -360px;
    width: 340px;
    max-height: 520px;
    z-index: 1500;
    overflow-y: auto;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(24px) saturate(180%);
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 0 18px;
    box-shadow: var(--shadow-strong);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.notifications-panel.visible { right: 0; }

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 210, 255, 0.04);
}

.panel-header h3 {
    margin: 0;
    color: var(--accent);
    font-size: 1rem;
}

.panel-header button {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.4rem;
    cursor: pointer;
}

.panel-header button:hover { color: var(--accent); }

#notifications-list { padding: 14px; }

.notification {
    padding: 10px 14px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notification.unread {
    background: rgba(0, 210, 255, 0.08);
    border-left-color: var(--accent);
}

.notification p { margin: 0; font-size: var(--fs-sm); }
.notification small {
    display: block;
    margin-top: 4px;
    color: var(--text-dim);
    font-size: var(--fs-xs);
}

/* Ruta de notificaciones a pantalla completa */
.notifications-route .notification {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid transparent;
    border-radius: 12px;
    margin-bottom: 10px;
}

.notifications-route .notification.unread {
    background: rgba(0, 210, 255, 0.06);
    border-left-color: var(--accent);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.empty-state i {
    display: block;
    margin-bottom: 14px;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.4;
}

/* =========== TOASTS =========== */
#toast-container {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 220px;
    max-width: 340px;
    padding: 12px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--accent);
    border-radius: 12px;
    color: var(--text);
    font-size: var(--fs-sm);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(15px);
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show { transform: translateX(0); }
.toast.error { border-color: var(--danger); }
.toast.success { border-color: var(--success); }
.toast.warning { border-color: var(--warning); }

/* =========== FAB =========== */
.fab {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 60px; height: 60px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-grad);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 40px rgba(0, 210, 255, 0.55);
}

.fab:active { transform: scale(0.94); }

/* =========== MISC =========== */
.highlight {
    padding: 1px 4px;
    background: rgba(0, 210, 255, 0.25);
    color: var(--accent);
    font-weight: 600;
    border-radius: 3px;
}

.doc-card {
    margin: 10px 0;
    padding: 15px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.doc-card i {
    display: block;
    margin-bottom: 6px;
    font-size: 2rem;
    color: var(--accent);
}

/* =========== VIDEO EMBED (YouTube / Vimeo) =========== */
.video-embed-wrap { margin: 12px 0; }

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    border: 1px solid var(--border);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-fallback {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #ff0033;
    font-size: 0.78rem;
    text-decoration: none;
    opacity: 0.85;
}

.video-fallback:hover { opacity: 1; text-decoration: underline; }
.video-fallback i { font-size: 0.95rem; }

/* Link plano dentro de hilo o editor */
.rich-link, .thread-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 210, 255, 0.4);
    text-underline-offset: 3px;
    word-break: break-word;
}

.rich-link:hover, .thread-content a:hover {
    text-decoration-color: var(--accent);
}

/* Contenido de hilo con HTML rico */
.thread-content {
    font-size: var(--fs-title);
    line-height: 1.55;
    margin: 0 0 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.thread-content img,
.thread-content video,
.thread-content .video-embed {
    margin: 12px 0;
}

/* =========== REACCIONES =========== */
.thread-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
}

.reaction-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.reaction-chip:hover {
    background: rgba(0, 210, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.reaction-chip.mine {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.rx-emoji { font-size: 0.95rem; line-height: 1; }
.rx-count { font-size: 0.72rem; }

.reaction-picker {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(20px);
    animation: popoverIn 0.18s ease;
}

.reaction-picker button {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.reaction-picker button:hover {
    transform: scale(1.3);
    background: rgba(0, 210, 255, 0.1);
}

/* =========== MI RED (Network route) =========== */
.network-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.network-tab {
    padding: 10px 18px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.network-tab:hover { color: var(--accent); }

.network-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.net-count {
    margin-left: 6px;
    padding: 1px 8px;
    background: rgba(0, 210, 255, 0.15);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.7rem;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.network-card {
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    transition: all 0.25s ease;
}

.network-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.12);
}

.network-card h4 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
}

.network-card p {
    margin: 0 0 10px;
    color: var(--text-dim);
    font-size: var(--fs-xs);
    min-height: 32px;
    line-height: 1.4;
}

.network-card-stats {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.network-card-stats b { color: var(--accent); }

/* Tabs de red dentro de Settings */
.settings-network-tabs {
    display: flex;
    gap: 8px;
    margin: 14px 0;
}

.snw-tab {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-dim);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.snw-tab:hover { color: var(--accent); border-color: var(--accent); }

.snw-tab.active {
    background: rgba(0, 210, 255, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

#settings-network-list {
    max-height: 320px;
    overflow-y: auto;
}

/* =========== PROFILE PREVIEW (Settings) =========== */
.profile-preview {
    position: relative;
    margin-bottom: 18px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.pp-banner {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(58, 123, 213, 0.2));
    background-size: cover;
    background-position: center;
}

.pp-pfp {
    position: absolute;
    bottom: 12px;
    left: 16px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--bg-elevated);
    object-fit: cover;
    background: var(--bg-card);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.settings-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.settings-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--accent);
    cursor: pointer;
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 130px;
    justify-content: center;
}

.settings-file-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* =========== ACTIVIDAD (Settings tab) =========== */
.activity-section {
    margin-bottom: 18px;
}

.activity-section h4 {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-section h4 i {
    width: 16px;
    text-align: center;
    opacity: 0.85;
}

.activity-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: var(--fs-sm);
    transition: background 0.15s ease;
}

.activity-item:hover { background: rgba(0, 210, 255, 0.05); }

.activity-item .ai-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.activity-item .ai-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: rgba(0, 210, 255, 0.15);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.78rem;
}

.activity-item small {
    flex-shrink: 0;
    color: var(--text-dim);
    font-size: var(--fs-xs);
}

/* Comentarios con HTML rico */
.comment-body {
    font-size: var(--fs-sm);
    line-height: 1.55;
    margin: 0 0 6px;
    word-wrap: break-word;
}

.comment-body img,
.comment-body video,
.comment-body .video-embed {
    max-width: 100%;
    border-radius: 10px;
    margin: 6px 0;
}

.comment-actions button i { margin-right: 4px; }

/* =========== SPLASH SCREEN ========== */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(ellipse at center, #0a0a14 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.splash.splash-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.splash-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 210, 255, 0.18), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 110, 0.15), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(58, 123, 213, 0.12), transparent 60%);
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: contentRise 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.splash-logo-wrap {
    position: relative;
    margin-bottom: 32px;
}

.splash-orb {
    position: absolute;
    top: 50%; left: 50%;
    width: min(320px, 70vw); height: min(320px, 70vw);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 210, 255, 0.25), transparent 60%);
    border-radius: 50%;
    animation: orbPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orbPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.7; }
    50%      { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.splash-title {
    margin: 0;
    font-size: clamp(2.4rem, 8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 50%, #ff006e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.st-letter {
    display: inline-block;
    animation: letterDrop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
    animation-delay: calc(var(--d) * 0.07s);
    transition: transform 0.2s ease;
}

.st-letter:hover {
    transform: translateY(-8px) scale(1.15);
}

.st-space { display: inline-block; width: 0.3em; }

@keyframes letterDrop {
    from { opacity: 0; transform: translateY(-50px) rotate(-15deg); }
    to   { opacity: 1; transform: translateY(0) rotate(0); }
}

.splash-tagline {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: contentRise 1.2s 0.6s backwards;
}

.splash-bar {
    width: min(240px, 60vw);
    height: 3px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.splash-bar-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    animation: barLoad 1.6s ease-in-out infinite;
}

@keyframes barLoad {
    to { transform: translateX(100%); }
}

.splash-hint {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    animation: hintBlink 2s ease-in-out infinite;
}

@keyframes hintBlink {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.85; }
}

.splash-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-p {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    animation: pFloat 6s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes pFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50%      { transform: translateY(-30px) translateX(15px); opacity: 0.9; }
}

/* =========== BOTONES BORRAR ========== */
.thread-delete {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
    color: #ff4757;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    font-size: 0.78rem;
    z-index: 5;
}

.thread-card, .news-card { position: relative; }
.thread-card:hover .thread-delete,
.news-card:hover .thread-delete { opacity: 1; }

.thread-delete:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.08);
}

.activity-item .ai-text { cursor: pointer; }
.activity-item .ai-text:hover { color: var(--accent); }

.ai-del {
    background: transparent;
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
    width: 26px; height: 26px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.ai-del:hover {
    background: var(--danger);
    color: white;
}

/* =========== SELECTS GLOBALES (acorde a la temática) ========== */
select, .input-modern, .business-filter select, .editor-toolbar select {
    background-color: var(--bg-elevated) !important;
    color: var(--text) !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2300d2ff' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px !important;
}

select option, option {
    background-color: var(--bg-elevated);
    color: var(--text);
    padding: 8px;
}

select option:checked, select option:hover {
    background: var(--accent-grad);
    color: white;
}

/* =========== MAPA HUB (Leaflet) acorde a temática =========== */
.hub-map {
    width: 100%;
    height: 380px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0a0e15;
    margin-bottom: 10px;
}

.hub-map .leaflet-container {
    background: #0a0e15;
    font-family: inherit;
}

/* Controles de zoom (+/-) */
.leaflet-bar,
.leaflet-touch .leaflet-bar {
    background: var(--bg-glass-strong) !important;
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.leaflet-bar a,
.leaflet-bar a:hover,
.leaflet-touch .leaflet-bar a {
    background: transparent !important;
    color: var(--accent) !important;
    border-bottom: 1px solid var(--border) !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 30px !important;
    font-size: 1.2rem !important;
    font-weight: 700;
    transition: all 0.2s ease;
}

.leaflet-bar a:last-child {
    border-bottom: none !important;
}

.leaflet-bar a:hover {
    background: rgba(0, 210, 255, 0.15) !important;
    color: var(--text) !important;
    text-shadow: 0 0 8px var(--accent);
}

.leaflet-bar a.leaflet-disabled {
    color: var(--text-muted) !important;
    background: transparent !important;
    cursor: not-allowed;
    opacity: 0.4;
}

/* Atribución */
.leaflet-control-attribution {
    background: var(--bg-glass-strong) !important;
    backdrop-filter: blur(10px);
    color: var(--text-dim) !important;
    border-top-left-radius: 8px;
    font-size: 0.65rem !important;
    padding: 3px 8px !important;
    border: 1px solid var(--border);
    border-right: none;
    border-bottom: none;
}

.leaflet-control-attribution a {
    color: var(--accent) !important;
    text-decoration: none !important;
}

.leaflet-control-attribution a:hover {
    text-decoration: underline !important;
}

/* Popups del mapa con glassmorphism */
.hub-map .leaflet-popup-content-wrapper {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px) saturate(180%);
    color: var(--text);
    border-radius: 12px;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-strong);
    padding: 4px;
}

.hub-map .leaflet-popup-content {
    margin: 10px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.5;
}

.hub-map .leaflet-popup-content b {
    color: var(--accent);
    font-size: 0.95rem;
}

.hub-map .leaflet-popup-tip {
    background: var(--bg-glass-strong);
    border: 1px solid var(--accent);
}

.hub-map .leaflet-popup-close-button {
    color: var(--text-dim) !important;
    font-size: 1.4rem !important;
    padding: 6px 8px 0 0 !important;
}

.hub-map .leaflet-popup-close-button:hover {
    color: var(--danger) !important;
}

/* Marcadores con glow cian */
.hub-map .leaflet-marker-icon {
    filter: hue-rotate(180deg) drop-shadow(0 0 6px rgba(0, 210, 255, 0.7));
}

.hub-map-note {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hub-map-note i { color: var(--accent); }
.hub-map-note code {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* =========== GALERÍA + LIGHTBOX =========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: white;
    font-size: 0.75rem;
}

.gallery-del {
    position: absolute;
    top: 8px; right: 8px;
    width: 30px; height: 30px;
    background: rgba(255, 71, 87, 0.85);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-del { opacity: 1; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(12px);
    cursor: zoom-out;
    animation: searchFadeIn 0.2s ease;
}

.lightbox img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 22px; right: 22px;
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: var(--danger);
    border-color: var(--danger);
}

.lightbox-caption {
    margin-top: 18px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--fs-sm);
    text-align: center;
}

/* =========== OUTLETS / NOTICIAS / VERIFICACIÓN =========== */

/* Badge medio verificado */
.badge-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    margin-left: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.55rem;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
    vertical-align: middle;
}

/* Chip de atribución a outlet en cada noticia */
.outlet-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    margin-left: 6px;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.15), rgba(58, 123, 213, 0.15));
    border: 1px solid rgba(24, 119, 242, 0.4);
    color: #4ea2ff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.outlet-chip:hover {
    background: rgba(24, 119, 242, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.outlet-chip i.fa-arrow-up-right-from-square {
    font-size: 0.6rem;
    opacity: 0.8;
}

/* Hint contextual del editor */
.editor-context-hint {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 10px;
    color: var(--text-dim);
    font-size: var(--fs-xs);
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-context-hint i { color: var(--accent); }
.editor-context-hint b { color: var(--accent); font-weight: 700; }

/* =========== TARJETAS DE NOTICIA (estructuradas) =========== */
.news-card {
    position: relative;
    margin-bottom: 18px;
    padding: 22px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid #4ea2ff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, transform 0.2s ease;
    animation: fadeInUp 0.4s ease;
}

.news-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.news-card.news-fresh {
    animation: newsFreshIn 1.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left-color: var(--accent);
}

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.news-source-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.18), rgba(58, 123, 213, 0.18));
    border: 1px solid rgba(24, 119, 242, 0.4);
    border-radius: 999px;
    color: #4ea2ff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-source-tag:hover {
    background: rgba(24, 119, 242, 0.28);
    transform: translateY(-1px);
}

.news-source-tag.bot {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(58, 123, 213, 0.15));
    border-color: rgba(0, 210, 255, 0.4);
    color: var(--accent);
    cursor: default;
}

.news-date {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-card-body {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 14px;
    color: var(--text);
}

.news-card-body img,
.news-card-body video,
.news-card-body .video-embed {
    margin: 12px 0;
    border-radius: 12px;
}

.news-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 12px;
    padding: 8px 14px;
    background: rgba(78, 162, 255, 0.1);
    border: 1px solid rgba(78, 162, 255, 0.3);
    border-radius: 10px;
    color: #4ea2ff;
    font-size: var(--fs-sm);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-source-link:hover {
    background: rgba(78, 162, 255, 0.2);
    transform: translateX(2px);
}

.news-source-link i { font-size: 0.7rem; }

/* Pie de bibliografía al final del feed de noticias */
.news-bibliography {
    margin: 24px 0 10px;
    padding: 22px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.news-bibliography h4 {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.biblio-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.biblio-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: var(--fs-sm);
    transition: color 0.2s ease;
}

.biblio-list a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.biblio-list a i {
    color: #4ea2ff;
    width: 14px;
}

.biblio-note {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-style: italic;
    line-height: 1.5;
}

/* Filas de outlets en settings */
.outlet-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 6px;
}

.outlet-row-info {
    flex: 1;
    min-width: 0;
}

.outlet-row-info b {
    display: block;
    color: var(--text);
    font-size: var(--fs-sm);
}

.outlet-row-info a {
    display: block;
    color: var(--text-dim);
    font-size: var(--fs-xs);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.outlet-row-info a:hover { color: var(--accent); }

/* =========== DESKTOP — sidebar persistente, layout flex =========== */
@media (min-width: 1024px) {
    #sidebar {
        position: relative;
        top: 0;
        height: 100%;
        transform: none !important;
        opacity: 1 !important;
        flex-shrink: 0;
    }
    .sidebar-collapse-btn { display: flex; }
    #toggle-sidebar { display: none !important; }
    .container { padding: 32px 40px 100px; }
    .fab { right: 36px; }

    /* Modo colapsado: rail de iconos */
    body.sidebar-collapsed #sidebar {
        width: var(--sidebar-collapsed-w);
        padding: 22px 8px;
    }
    body.sidebar-collapsed .sb-label,
    body.sidebar-collapsed .sidebar-section-title,
    body.sidebar-collapsed .uc-info,
    body.sidebar-collapsed .user-pill-info,
    body.sidebar-collapsed .user-pill-action,
    body.sidebar-collapsed .sidebar-show-more {
        display: none !important;
    }
    body.sidebar-collapsed .sidebar-link-btn {
        justify-content: center;
        padding: 12px 8px;
        gap: 0;
    }
    body.sidebar-collapsed .sidebar-link-btn:hover { transform: none; }
    body.sidebar-collapsed .sidebar-user-card { justify-content: center; padding: 6px; }
    body.sidebar-collapsed .sidebar-user-card img { width: 36px; height: 36px; }
    body.sidebar-collapsed .sidebar-create-btn { justify-content: center; padding: 12px 8px; }
    body.sidebar-collapsed .user-pill { justify-content: center; padding: 4px; }
    body.sidebar-collapsed .sidebar-section { padding-top: 10px; margin-top: 10px; }
}

/* =========== MOBILE / TABLET =========== */
@media (max-width: 1023px) {
    .nav-center { display: none; }
    .container { padding: 22px 18px 100px; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 14px; }
    .modal-content { padding: 26px; border-radius: 18px; }
    .notifications-panel { width: 100%; right: -100%; border-radius: 0; }
    .theme-selector { grid-template-columns: 1fr; }
    .editor-actions { flex-direction: column; }
    .hub-hero { padding: 40px 20px; }
    .hub-hero h1 { font-size: 1.8rem; }
    .business-grid { grid-template-columns: 1fr; }
    .fab { bottom: 20px; right: 20px; width: 56px; height: 56px; }
    .toast { min-width: auto; }
    #toast-container { left: 16px; right: 16px; bottom: 16px; }
}

/* ============================================================
   COMMAND PALETTE — Estilo Linear / Slack / Raycast
   ============================================================ */
.cp-trigger {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-soft, #a8a8b3);
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-right: 4px;
}
.cp-trigger:hover {
    background: rgba(0,210,255,0.08);
    border-color: rgba(0,210,255,0.25);
    color: var(--accent);
}
.cp-trigger kbd {
    font-family: 'SF Mono', ui-monospace, Menlo, monospace;
    font-size: 0.65rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1px 5px;
    border-radius: 3px;
    color: inherit;
    line-height: 1;
}
@media (max-width: 768px) {
    .cp-trigger { display: none; }
}

.cp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    animation: cpFadeIn 0.18s ease-out;
}
.cp-overlay.hidden { display: none; }

.cp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
}

.cp-panel {
    position: relative;
    width: min(92vw, 640px);
    background: linear-gradient(180deg, rgba(22,22,30,0.95) 0%, rgba(15,15,22,0.95) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        0 0 0 1px rgba(0,210,255,0.08),
        0 0 80px rgba(0,210,255,0.06);
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    animation: cpSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

.cp-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cp-search-icon {
    color: var(--accent, #00d2ff);
    font-size: 0.95rem;
    flex-shrink: 0;
}
#cp-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text, #fff);
    font-size: 1rem;
    font-family: inherit;
    padding: 0;
    min-width: 0;
}
#cp-input::placeholder {
    color: var(--text-soft, #6a6a78);
}
.cp-esc {
    font-family: 'SF Mono', ui-monospace, Menlo, monospace;
    font-size: 0.65rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2px 7px;
    border-radius: 4px;
    color: var(--text-soft, #a8a8b3);
    flex-shrink: 0;
}

.cp-results {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.cp-results::-webkit-scrollbar { width: 8px; }
.cp-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

.cp-group-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft, #6a6a78);
    padding: 10px 18px 6px;
}

.cp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    margin: 0 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s ease;
    color: var(--text, #fff);
}
.cp-item:hover,
.cp-item.active {
    background: linear-gradient(90deg, rgba(0,210,255,0.12), rgba(0,210,255,0.04));
    box-shadow: inset 0 0 0 1px rgba(0,210,255,0.2);
}
.cp-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0,210,255,0.08);
    color: var(--accent, #00d2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.cp-item-icon.action { background: rgba(255,140,0,0.12); color: #ff9540; }
.cp-item-icon.user { background: rgba(170,100,255,0.12); color: #c896ff; }
.cp-item-icon.thread { background: rgba(0,210,255,0.1); color: var(--accent, #00d2ff); }
.cp-item-icon.business { background: rgba(50,220,150,0.12); color: #5fe3a3; }
.cp-item-icon.shortcut { background: rgba(255,210,80,0.12); color: #ffd84a; }
.cp-item-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.cp-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cp-item-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cp-item-sub {
    font-size: 0.78rem;
    color: var(--text-soft, #8a8a98);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cp-item-shortcut {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
    opacity: 0.7;
}
.cp-item-shortcut kbd {
    font-family: 'SF Mono', ui-monospace, Menlo, monospace;
    font-size: 0.65rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-soft, #a8a8b3);
    line-height: 1;
}
.cp-item.active .cp-item-shortcut { opacity: 1; }

.cp-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-soft, #8a8a98);
    font-size: 0.9rem;
}
.cp-empty i {
    font-size: 2rem;
    color: var(--accent, #00d2ff);
    opacity: 0.3;
    display: block;
    margin-bottom: 12px;
}

.cp-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.2);
    font-size: 0.72rem;
    color: var(--text-soft, #8a8a98);
}
.cp-footer kbd {
    font-family: 'SF Mono', ui-monospace, Menlo, monospace;
    font-size: 0.65rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1px 5px;
    border-radius: 3px;
    margin: 0 2px;
}
.cp-footer-spacer { flex: 1; }
.cp-brand {
    color: var(--accent, #00d2ff);
    font-weight: 500;
}
.cp-brand i { margin-right: 4px; }

.cp-hl {
    background: linear-gradient(180deg, transparent 60%, rgba(0,210,255,0.25) 60%);
    color: var(--accent, #00d2ff);
    font-weight: 600;
    padding: 0 1px;
    border-radius: 2px;
}

@keyframes cpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cpSlideIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .cp-overlay { padding-top: 6vh; }
    .cp-panel { width: 94vw; max-height: 80vh; }
    .cp-footer { font-size: 0.68rem; gap: 8px; flex-wrap: wrap; }
}

/* ============================================================
   MOBILE / PWA — drawer, full-screen modals, touch targets,
   safe-area insets para iOS instalado en pantalla de inicio.
   ============================================================ */

/* Backdrop del sidebar drawer (solo visible en móvil cuando sidebar está abierto) */
#sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
@media (max-width: 1023px) {
    body.sidebar-open #sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}
@media (min-width: 1024px) {
    #sidebar-backdrop { display: none; }
}

/* Tablet (768-1023px): sidebar más estrecho como drawer */
@media (max-width: 1023px) {
    #sidebar {
        width: min(320px, 85vw);
        padding: 18px 12px;
    }
    .nav-center { display: none; }

    /* Mostrar disparador de paleta como icono en móvil para mantener acceso a búsqueda */
    .cp-trigger { display: none !important; }
}

/* Móvil (≤768px): refinamiento de toques y modales */
@media (max-width: 768px) {
    :root { --header-h: 56px; }

    .navbar { padding: 0 10px; gap: 6px; }
    .nav-left, .nav-right { gap: 4px; }
    .logo span { font-size: 1.05rem; }

    /* Botones de navbar más cómodos para dedos (mín. 44×44 touch target) */
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
    .btn-primary { padding: 10px 14px; font-size: 0.85rem; min-height: 40px; }

    /* Modales casi pantalla completa */
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        border-radius: 14px 14px 0 0 !important;
        margin: 0;
        padding: 18px !important;
    }
    .modal {
        align-items: flex-end !important;
    }
    .modal-content.auth-modal-content { border-radius: 14px !important; }

    /* Auth modal: stack el branding debajo en móvil */
    .auth-split { flex-direction: column !important; }
    .auth-brand-side { display: none; }

    /* Inputs: 16px previene auto-zoom en iOS Safari */
    .input-modern, input, textarea, select {
        font-size: 16px !important;
    }

    /* Editor toolbar: mejor wrap, scroll horizontal si no cabe */
    .editor-toolbar {
        gap: 4px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .editor-toolbar .tb-group { flex-shrink: 0; }

    /* Settings: tabs scrollables horizontalmente */
    .settings-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
    }
    .settings-tabs .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    /* Theme selector: 2 columnas en lugar de 1 (más compacto) */
    .theme-selector { grid-template-columns: 1fr 1fr; gap: 8px; }

    /* Notificaciones: panel ocupa pantalla completa con cierre */
    .notifications-panel {
        width: 100%;
        right: 0;
        top: var(--header-h);
        height: calc(100vh - var(--header-h));
        border-radius: 0;
    }

    /* Container con padding inferior generoso para FAB */
    .container { padding: 18px 14px 110px; }

    /* FAB: posición fija más cómoda */
    .fab {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: 18px;
        width: 56px;
        height: 56px;
    }

    /* Toast stack en franja inferior */
    #toast-container {
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
    }
    .toast { min-width: 0; width: 100%; }
}

/* Móvil pequeño (≤480px): aún más compacto */
@media (max-width: 480px) {
    .navbar { padding: 0 8px; }
    .logo span { display: none; }
    .btn-primary { padding: 8px 10px; font-size: 0.8rem; }
    .container { padding: 14px 10px 110px; }
    .splash-title { font-size: 2.2rem !important; }
    .hub-hero h1 { font-size: 1.5rem; }

    /* Theme selector vuelve a 1 col en muy pequeño para que se lea */
    .theme-selector { grid-template-columns: 1fr; }

    /* Modales con padding más ajustado en pantallas chicas */
    .modal-content { padding: 14px !important; }
    .editor-modal { padding: 14px !important; }

    /* Search del navbar: que no fuerce ancho mínimo */
    .search-wrap { max-width: 100%; }

    /* Command Palette: más compacto en pantallas chicas */
    .cp-panel { max-height: 85vh; }
    .cp-footer { padding: 8px 10px !important; gap: 6px !important; }

    /* Notifications panel: ya es fullscreen a 768px, pero reforzamos altura */
    .notifications-panel { max-height: none; }
}

/* Safe area insets para PWA instalada en iOS / Android (notch, gesture bar) */
@supports (padding: env(safe-area-inset-top)) {
    #main-header {
        padding-top: env(safe-area-inset-top);
        height: calc(var(--header-h) + env(safe-area-inset-top));
    }
    .layout-main {
        padding-top: calc(var(--header-h) + env(safe-area-inset-top));
    }
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* Modo standalone (PWA instalada): oculta UI específica de navegador si quisieras */
@media all and (display-mode: standalone) {
    /* Espacio extra reservado en cabecera para que no choque con la barra de estado */
    body { background-attachment: fixed; }
}

/* Reduce motion: respeta la preferencia del sistema */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
