/* Novedades (What's New): modal de la app + estilos del contenido (también los usa la vista previa del panel admin) */
.nw-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #f23f43; color: #fff; font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; box-sizing: border-box; }
.nw-badge[hidden], .nw-dot[hidden] { display: none !important; }
.ms-row .nw-badge { margin-left: 0; margin-right: 8px; }
.sidebar-home { position: relative; }
.nw-dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: #f23f43; border: 3px solid var(--bg-dark, #191B20); box-sizing: content-box; pointer-events: none; z-index: 2; }

.nw-overlay { position: fixed; inset: 0; z-index: 100001; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .18s; }
.nw-overlay.open { opacity: 1; }
.nw-modal { position: relative; width: min(640px, 100%); max-height: min(88vh, 860px); height: min(88vh, 860px); display: flex; flex-direction: column; background: var(--bg-channel, #1D2026); color: var(--text, #dbdee1); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.55); overflow: hidden; transform: scale(.96); transition: transform .18s; }
.nw-overlay.open .nw-modal { transform: none; }
.nw-head { display: flex; align-items: center; gap: 8px; padding: 18px 20px 14px; flex: none; }
.nw-head-txt { flex: 1; min-width: 0; }
.nw-head h2 { margin: 0; font-size: 1.45rem; font-weight: 800; color: var(--text-header, #f2f3f5); line-height: 1.2; }
.nw-head-date { display: block; margin-top: 3px; font-size: .78rem; color: var(--text-muted, #949ba4); }
.nw-ib { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted, #949ba4); cursor: pointer; display: grid; place-items: center; }
.nw-ib:hover { background: rgba(255,255,255,.08); color: #fff; }
.nw-ib svg { width: 22px; height: 22px; }
.nw-ib[hidden] { display: none; }
.nw-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 18px; scrollbar-width: thin; scrollbar-color: #4a4d55 transparent; }
.nw-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: rgba(0,0,0,.2); border-top: 1px solid rgba(255,255,255,.06); min-height: 28px; }
.nw-foot .nw-grow { flex: 1; min-width: 0; font-size: .8rem; color: var(--text-muted, #949ba4); text-align: center; }
.nw-btn { border: 0; border-radius: 8px; padding: 9px 14px; background: var(--accent, #413CDD); color: #fff; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-btn:hover:not(:disabled) { background: var(--accent-hover, #3530b8); }
.nw-btn.ghost { background: rgba(255,255,255,.08); color: var(--text, #dbdee1); }
.nw-btn.ghost:hover:not(:disabled) { background: rgba(255,255,255,.14); }
.nw-btn:disabled { opacity: .4; cursor: default; }

/* filtros */
.nw-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.nw-filters::-webkit-scrollbar { display: none; }
.nw-chip { flex: none; border: 1px solid rgba(255,255,255,.1); background: transparent; color: var(--text-muted, #949ba4); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.nw-chip:hover { color: var(--text, #dbdee1); background: rgba(255,255,255,.05); }
.nw-chip.on { background: var(--accent, #413CDD); border-color: transparent; color: #fff; }

/* tarjetas */
.nw-list { display: flex; flex-direction: column; gap: 14px; }
.nw-card { position: relative; display: block; width: 100%; text-align: left; padding: 0; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: var(--bg-dark, #191B20); color: inherit; font: inherit; cursor: pointer; overflow: hidden; transition: border-color .15s, transform .12s; }
.nw-card:hover { border-color: rgba(255,255,255,.2); }
.nw-card:active { transform: scale(.995); }
.nw-card.unread { border-color: color-mix(in srgb, var(--accent, #413CDD) 70%, transparent); }
.nw-thumb { position: relative; aspect-ratio: 16/7; background: linear-gradient(135deg, var(--nw-c1, #413CDD), var(--nw-c2, #7c3aed)); display: grid; place-items: center; overflow: hidden; }
.nw-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nw-thumb svg { width: 46px; height: 46px; color: rgba(255,255,255,.85); }
.nw-new { position: absolute; top: 10px; left: 10px; background: #f23f43; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; }
.nw-card-b { padding: 12px 14px 14px; }
.nw-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .75rem; color: var(--text-muted, #949ba4); margin-bottom: 6px; }
.nw-cat { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .7rem; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--nw-cc) 18%, transparent); color: var(--nw-cc); }
.nw-ver { font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--text, #dbdee1); }
.nw-card h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; color: var(--text-header, #f2f3f5); }
.nw-card p { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--text-muted, #b5bac1); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-more { display: block; margin: 16px auto 0; }
.nw-empty, .nw-err { text-align: center; padding: 60px 16px; color: var(--text-muted, #949ba4); }
.nw-empty b, .nw-err b { display: block; color: var(--text, #dbdee1); font-size: 1.05rem; margin-bottom: 6px; }
.nw-err .nw-btn { margin-top: 12px; }
.nw-skel { height: 190px; border-radius: 12px; background: linear-gradient(90deg, #22252b, #2c3037, #22252b); background-size: 200% 100%; animation: nwShim 1.2s infinite linear; }
@keyframes nwShim { to { background-position: -200% 0; } }

/* detalle (como el «What's New» de Discord) */
.nw-banner { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--nw-c1, #413CDD), var(--nw-c2, #7c3aed)); display: grid; place-items: center; margin-bottom: 18px; }
.nw-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nw-banner svg { width: 72px; height: 72px; color: rgba(255,255,255,.85); }
.nw-sec { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; font-size: .95rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--nw-cc); }
.nw-sec::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--nw-cc) 55%, transparent); }
.nw-dtitle { margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; color: var(--text-header, #f2f3f5); line-height: 1.25; }
.nw-dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .78rem; color: var(--text-muted, #949ba4); }
.nw-ddesc { margin: 0 0 14px; color: var(--text, #dbdee1); font-size: 1rem; line-height: 1.5; opacity: .92; }

.nw-content { font-size: .98rem; line-height: 1.55; color: var(--text, #dbdee1); overflow-wrap: anywhere; }
.nw-content > *:first-child { margin-top: 0; }
.nw-content p { margin: 0 0 12px; }
.nw-content .nw-h { margin: 18px 0 8px; color: var(--text-header, #f2f3f5); line-height: 1.25; font-weight: 800; }
.nw-content h3.nw-h { font-size: 1.15rem; } .nw-content h4.nw-h { font-size: 1.02rem; } .nw-content h5.nw-h { font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted, #949ba4); }
.nw-content strong { color: var(--text-header, #fff); }
.nw-content a { color: #00a8fc; text-decoration: none; } .nw-content a:hover { text-decoration: underline; }
.nw-content ul, .nw-content ol { margin: 0 0 12px; padding-left: 22px; } .nw-content li { margin: 4px 0; }
.nw-content ul li::marker { color: var(--text-muted, #949ba4); }
.nw-content blockquote { margin: 0 0 12px; padding: 4px 12px; border-left: 4px solid #4e5058; color: var(--text-muted, #b5bac1); }
.nw-content code { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
.nw-content pre { margin: 0 0 12px; background: #111318; padding: 12px; border-radius: 8px; overflow-x: auto; } .nw-content pre code { background: none; padding: 0; }
.nw-content hr { border: 0; height: 1px; background: rgba(255,255,255,.1); margin: 16px 0; }
.nw-content .nw-fig { margin: 0 0 12px; }
.nw-content .nw-media { display: block; max-width: 100%; max-height: 460px; border-radius: 8px; background: #000; margin: 0 auto 12px; }
.nw-content p .nw-media { display: inline-block; vertical-align: middle; margin: 2px; }
.nw-embed { position: relative; margin: 0 0 12px; border-radius: 10px; overflow: hidden; background: #000; }
.nw-embed iframe { display: block; width: 100%; border: 0; }
.nw-yt iframe { aspect-ratio: 16/9; }
.nw-tw { background: transparent; } .nw-tw iframe { height: 520px; max-width: 550px; margin: 0 auto; }
.nw-embed-link { display: block; text-align: center; font-size: .78rem; padding: 6px; }
.nw-preview-box { --text: #dbdee1; --text-header: #f2f3f5; --text-muted: #949ba4; --bg-channel: #1D2026; --bg-dark: #191B20; --accent: #413CDD; background: #1D2026; color: #dbdee1; }

@media (max-width: 700px) {
  .nw-overlay { padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px)); align-items: center; }
  .nw-modal { width: 100%; height: auto; max-height: min(82vh, 720px); border-radius: 16px; }
  .nw-head { padding: 14px 12px 10px 16px; }
  .nw-body { padding: 0 14px 16px; }
  .nw-foot { padding: 10px 14px; }
  .nw-tw iframe { height: 460px; }
}
