﻿/* Twemoji images: size to the surrounding text so emojis look consistent
   across devices without breaking layout. */
img.dv-emoji {
  height: 1em;
  width: 1em;
  margin: 0 0.05em 0 0.1em;
  vertical-align: -0.1em;
  display: inline-block;
}

:root {
  --bg: #171719;
  --bg-2: #0d0d0e;
  --surface: #131315;
  --surface-2: #0f0f11;
  --primary: #d2f365;
  --success: #006600;
  --accent: #826cf6;
  --text: #f4f4f3;
  --text-muted: #c7d2a5;
  --text-soft: #757c5d;
  --line: rgba(210, 243, 101, 0.24);
  --line-strong: rgba(210, 243, 101, 0.45);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  --chat-private-vh: 100dvh;
  --community-live-vh: 100dvh;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
}

html,
body {
  overscroll-behavior-y: contain;
}

.pull-refresh-indicator {
  --pull-offset: 0px;
  --pull-progress: 0;
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 50%;
  z-index: 1600;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, calc(-22px + var(--pull-offset)), 0) scale(calc(0.82 + (min(var(--pull-progress), 1) * 0.18)));
  transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
  filter: drop-shadow(0 10px 22px rgba(7, 8, 2, 0.24));
  will-change: transform, opacity;
}

.pull-refresh-indicator.is-active {
  opacity: 1;
}

.pull-refresh-indicator-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(222, 251, 127, 0.26);
  background:
    radial-gradient(circle at 30% 20%, rgba(234, 253, 173, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(14, 14, 16, 0.96), rgba(9, 9, 9, 0.98));
  color: rgba(238, 239, 237, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 16px 34px rgba(5, 5, 5, 0.24),
    inset 0 1px 0 rgba(233, 234, 231, 0.08);
}

.pull-refresh-indicator-icon i {
  font-size: 18px;
  transform: rotate(calc(min(var(--pull-progress), 1) * 180deg));
  transition: transform 0.12s linear, color 0.18s ease;
}

.pull-refresh-indicator.is-armed .pull-refresh-indicator-icon {
  border-color: rgba(220, 251, 116, 0.34);
  color: #ecfdb6;
}

.pull-refresh-indicator.is-armed .pull-refresh-indicator-icon i {
  transform: rotate(180deg);
}

.pull-refresh-indicator.is-refreshing .pull-refresh-indicator-icon i {
  animation: pull-refresh-spin 0.8s linear infinite;
}

@keyframes pull-refresh-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 981px) {
  .pull-refresh-indicator {
    display: none;
  }
}

@media (max-width: 900px) {
  #communityLiveModal.modal,
  #communityLiveWatchModal.modal,
  #communityThreadModal.modal,
  #communityThreadDetailModal.modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background:
      radial-gradient(circle at 14% 6%, rgba(225, 252, 135, 0.05), transparent 30%),
      rgba(6, 6, 6, 0.985);
    backdrop-filter: blur(0);
  }

  #communityLiveModal .community-thread-modal-panel,
  #communityLiveWatchModal .community-live-watch-panel,
  #communityThreadModal .community-thread-modal-panel,
  #communityThreadDetailModal .community-thread-detail-modal-panel {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #communityLiveModal .community-thread-modal-panel,
  #communityThreadModal .community-thread-modal-panel,
  #communityThreadDetailModal .community-thread-detail-modal-panel {
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 12px calc(env(safe-area-inset-bottom, 0px) + 14px);
    overflow: hidden;
    background: rgba(10, 10, 11, 0.995);
  }

  #communityLiveWatchModal .community-live-watch-panel {
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 10px calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  #communityLiveModal .modal-close,
  #communityLiveWatchModal .modal-close,
  #communityThreadModal .modal-close,
  #communityThreadDetailModal .modal-close {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: 12px;
  }

  #communityLiveModal .community-create,
  #communityThreadModal .community-create,
  #communityThreadDetailModal .community-thread-detail {
    flex: 1 1 auto;
    min-height: 0;
  }

  #communityLiveModal .community-thread-modal-panel,
  #communityThreadModal .community-thread-modal-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #communityThreadDetailModal .community-thread-detail-modal-panel {
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 10px;
  }

  #communityThreadDetailModal .community-thread-detail {
    height: 100%;
    max-height: none;
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  #communityLiveModal .community-thread-modal-head,
  #communityLiveWatchModal .community-thread-modal-head,
  #communityThreadModal .community-thread-modal-head,
  #communityThreadDetailModal .community-thread-detail-modal-panel > h3 {
    padding-right: 44px;
  }

  #communityLiveModal .community-thread-modal-panel,
  #communityThreadModal .community-thread-modal-panel {
    gap: 12px;
  }

  #communityLiveModal .community-live-setup-grid {
    gap: 12px;
  }

  #communityThreadModal .community-create button.primary,
  #communityLiveModal .community-live-modal-actions > .primary,
  #communityLiveModal .community-live-modal-actions > .ghost {
    width: 100%;
  }

  #communityLiveModal .community-live-modal-actions {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background:
  radial-gradient(
    120% 160% at 0% 0%,
    rgba(92, 106, 46, 0.18) 0%,
    rgba(92, 106, 46, 0.10) 25%,
    rgba(92, 106, 46, 0.04) 45%,
    transparent 70%
  ),
  linear-gradient(
    180deg,
    #090909 0%,
    #131706 40%,
    #0f1205 100%
  );  
  font-family: "Manrope", "Segoe UI", sans-serif;
  scrollbar-width: thin;
  scrollbar-color: rgba(221, 250, 124, 0.88) rgba(10, 10, 11, 0.72);
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: rgba(10, 10, 11, 0.72);
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb {
  background: rgba(221, 250, 124, 0.88);
  border: 1px solid rgba(10, 10, 11, 0.84);
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(228, 252, 148, 0.95);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.bg-orb-a {
  width: 300px;
  height: 300px;
  top: -80px;
  right: 8%;
  background: rgba(210, 243, 101, 0.18);
}

.bg-orb-b {
  width: 260px;
  height: 260px;
  bottom: 10%;
  left: -90px;
  background: rgba(130, 108, 246, 0.18);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  /*background-image:
    linear-gradient(rgba(210, 243, 101, 0.4) 2px, transparent 1px),
    linear-gradient(90deg, rgba(210, 243, 101, 0.4) 2px, transparent 1px);*/
  background-size: 44px 44px;
}

.app {
  position: relative;
  z-index: 1;
  width: min(1200px, 100% - 24px);
  margin: 0 auto;
  padding: 0 0 calc(var(--sp-7) + var(--sp-6));
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  gap: 10px;
  padding: var(--sp-2);
  border-radius: 0 0 18px 18px;
  isolation: isolate;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(210, 243, 101, 0.1);
  background: linear-gradient(180deg, rgba(15, 15, 17, 0.72), rgba(12, 12, 13, 0.64));
  box-shadow: inset 0 1px 0 rgba(239, 253, 192, 0.05), 0 10px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar.is-stuck::before {
  opacity: 1;
  border-color: rgba(210, 243, 101, 0.58);
  box-shadow: inset 0 1px 0 rgba(239, 253, 192, 0.08), 0 12px 26px rgba(0, 0, 0, 0.24);
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .topbar::before {
    -webkit-backdrop-filter: blur(6px) saturate(108%);
    backdrop-filter: blur(6px) saturate(108%);
  }
}

/* Flex, no grid. La rejilla de tres columnas venia del diseno viejo (marca |
   buscador | acciones); la barra de ahora tiene CUATRO piezas: historias,
   buscador, iconos rapidos y menu de cuenta. Con la rejilla, el buscador se
   quedaba clavado en la segunda columna -pegado a la izquierda- en todas las
   pestanas menos en el feed, que ya tenia su propio override en flex. Ahora la
   barra se comporta igual en el feed, en el perfil y en el resto. */
.topbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  position: relative;
  z-index: 3;
}

/* El buscador y las historias se reparten el hueco central: al abrir el
   buscador crece hacia la derecha, junto a la lupa, en vez de aparecer suelto
   en el borde izquierdo. */
#feedGuidedRail,
#searchCluster {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-quick,
.topbar-actions {
  flex: 0 0 auto;
}

/* Los iconos viven pegados a la derecha aunque no haya historias que empujen
   (en el perfil, por ejemplo, el carril de historias no se pinta). */
.topbar-quick {
  margin-left: auto;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  min-height: 44px;
}

.topbar-actions > button {
  height: 40px;
}

#profileBtn {
  width: 60px;
  min-width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}

#profileBtn i {
  margin-right: 0;
  font-size: 15px;
}

.profile-btn-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 4px;
}

.brand-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: #1d2407;
  background: linear-gradient(145deg, #d2f365, #a8c83f);
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.brand-mini {
  display: inline;
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}

.logo {
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.sublogo {
  font-size: 12px;
  color: var(--text-muted);
}

.search-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 440px;
  min-width: 0;
  margin: 0 auto;
  z-index: 22;
}

.search-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-group {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(218, 250, 113, 0.28);
  background: linear-gradient(180deg, rgba(15, 15, 17, 0.95), rgba(9, 9, 10, 0.9));
  box-shadow: inset 0 1px 0 rgba(239, 253, 192, 0.08), 0 8px 20px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.search-group:focus-within {
  border-color: rgba(220, 251, 118, 0.65);
  box-shadow: inset 0 1px 0 rgba(233, 234, 231, 0.1), 0 0 0 4px rgba(210, 243, 101, 0.12), 0 12px 28px rgba(0, 0, 0, 0.34);
}

.search-addon-btn {
  width: 40px;
  min-width: 40px;
  height: 100%;
  border: 0;
  border-right: 1px solid rgba(218, 250, 113, 0.16);
  border-radius: 0;
  background: rgba(21, 21, 23, 0.72);
  color: rgba(218, 228, 185, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: none;
}

.search-addon-btn-right {
  border-right: 0;
  border-left: 1px solid rgba(218, 250, 113, 0.16);
}

.search-addon-btn i {
  margin-right: 0;
  font-size: 13px;
}

.search-addon-btn:hover {
  color: #ececeb;
  background: rgba(31, 31, 34, 0.82);
}

input,
textarea,
button,
select {
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--bg-2);
  padding: 10px 12px;
  font: inherit;
  line-height: 1.2;
  transition: all 0.2s ease;
}

input,
textarea {
  width: 100%;
}

select {
  width: 100%;
}

textarea {
  height: auto;
  min-height: 96px;
  resize: vertical;
}

input,
select,
button {
  height: 44px;
}

input[type="file"] {
  padding: 8px 10px;
  height: 46px;
}

input[type="datetime-local"] {
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(210, 243, 101, 0.1);
}

.search-wrap input {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 12px;
}

.search-wrap input::placeholder {
  color: rgba(218, 228, 185, 0.68);
}

.dj-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 18;
  border: 1px solid rgba(218, 250, 113, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.98), rgba(7, 7, 8, 0.96));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  padding: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.topbar-notif-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4d6d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  margin-left: 4px;
}

.topbar-notifications-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 18;
  border: 1px solid rgba(218, 250, 113, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.98), rgba(7, 7, 8, 0.96));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  padding: 10px;
}

.topbar-notifications-modal-panel {
  width: 560px;
  height: 520px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.topbar-notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar-notifications-head h3 {
  font-size: 22px;
}

.topbar-notifications-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-notifications-mark-btn {
  height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.topbar-notifications-close-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-notifications-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  border-radius: 12px;
  padding: 8px;
}

@media (max-width: 760px) {
  .topbar-notifications-modal-panel {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding:
      max(16px, env(safe-area-inset-top, 0px))
      12px
      max(12px, env(safe-area-inset-bottom, 0px));
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .topbar-notifications-head h3 {
    font-size: 20px;
  }

  .topbar-notifications-list {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }
}

.topbar-notifications-empty {
  font-size: 12px;
  color: rgba(218, 228, 185, 0.75);
  padding: 8px;
}

.topbar-notification-item {
  width: 100%;
  height: auto;
  min-height: 52px;
  cursor: pointer;
  padding: 4px 5px;
  display: grid;
  gap: 3px;
  text-align: left;
}

.topbar-notification-item:focus-visible {
  outline: none;
  border-color: rgba(220, 251, 118, 0.7);
  box-shadow: 0 0 0 3px rgba(210, 243, 101, 0.16);
}

.topbar-notification-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: center;
}

.topbar-notification-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar-notification-media {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(218, 250, 113, 0.22);
  background: rgba(21, 21, 23, 0.8);
}

.topbar-notification-avatar {
  border-radius: 999px;
}

.topbar-notification-media-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(218, 228, 185, 0.86);
}

.topbar-notification-item.is-unread {
  border-color: rgba(220, 251, 118, 0.52);
  background: rgba(23, 23, 25, 0.96);
}

.topbar-notification-title {
  font-size: 12px;
  font-weight: 700;
  color: #eff0ee;
}

.topbar-notification-body {
  font-size: 11px;
  color: rgba(228, 238, 198, 0.9);
}

.topbar-notification-date {
  font-size: 10px;
  color: rgba(218, 228, 185, 0.72);
}

.topbar-notification-inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 2px 2px 0;
}

.topbar-notification-inline-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.topbar-notification-inline-btn.ghost {
  background: rgba(255, 255, 255, 0.03);
}

.dj-search-item {
  width: 100%;
  height: auto;
  min-height: 52px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}

.dj-search-item + .dj-search-item {
  margin-top: 6px;
}

.dj-search-item:hover {
  border-color: rgba(218, 250, 113, 0.45);
  background: rgba(23, 23, 25, 0.96);
}

.dj-search-main {
  font-size: 13px;
  font-weight: 700;
  color: #eff0ee;
}

.dj-search-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dj-search-sub {
  font-size: 11px;
  color: #bec99a;
}

.dj-search-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(218, 250, 113, 0.34);
  background: rgba(6, 6, 7, 0.85);
}

.dj-search-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d2dab6;
}

.dj-search-empty {
  font-size: 12px;
  color: #c1cba3;
  padding: 8px 10px;
}

.search-wrap:focus-within input {
  border: 0;
  box-shadow: none;
}

.icon-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(210, 243, 101, 0.24);
  background: linear-gradient(180deg, rgba(21, 21, 23, 0.86), rgba(13, 13, 14, 0.82));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(240px, 88vw);
  z-index: 20;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(9, 9, 10, 0.96);
  box-shadow: var(--shadow);
}

.profile-dropdown button {
  justify-content: flex-start;
  text-align: left;
}

.profile-dropdown-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.profile-dropdown-row button {
  justify-content: center;
  text-align: center;
}

button {
  cursor: pointer;
}

button i {
}

.card-options-btn i {
  margin-right: 0;
}

button.primary {
  border: 0;
  color: #0d0d0f;
  font-weight: 700;
  background: linear-gradient(180deg, #dbf879, #c2e05f);
}

button.primary-danger {
  background: linear-gradient(180deg, #ff7a7a, #ff4d6d);
  color: #3f0f0f;
  font-weight: 700;
}

button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(210, 243, 101, 0.24);
}

button.ghost {
  background: rgba(16, 16, 18, 0.72);
}

button.ghost:hover {
  border-color: var(--line-strong);
}

button.btn-tone-view {
}

button.btn-tone-view:hover {
}

button.btn-tone-edit {
}

button.btn-tone-edit:hover {
}

button.btn-tone-delete {
}

button.btn-tone-delete:hover {
}

.hero {
  margin: var(--sp-5) 0 var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(210, 243, 101, 0.1), rgba(130, 108, 246, 0.09));
}

.hero h1 {
  margin: 0 0 var(--sp-2);
  font-family: "Sora", sans-serif;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.12;
}

.hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.filters {
  position: fixed;
  top: calc(var(--topbar-height, 70px) + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 16px;
  width: min(95vw, 920px);
  border-radius: 18px;
  border: 1px solid rgba(235, 253, 175, 0.18);
  background:
    linear-gradient(135deg, rgba(14, 14, 16, 0.96), rgba(12, 12, 14, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(235, 253, 175, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  z-index: 1100;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.filters.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
}

.topbar .filters {
  position: fixed;
}

.filters #applyFilters {
  height: 40px;
  min-height: 40px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  padding: 0 16px;
  background: linear-gradient(135deg, #cff946, #bedd57);
  color: #101012;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(188, 216, 97, 0.24);
}

.filters #applyFilters:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(188, 216, 97, 0.32);
}

.filters #applyFilters:active {
  transform: translateY(0);
}

.filters input,
.filters select {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(226, 251, 144, 0.2);
  background: rgba(8, 8, 9, 0.88);
  color: rgba(237, 238, 236, 0.92);
  font-size: 14px;
  padding: 0 12px;
  transition: all 0.2s ease;
}

.filters input:hover,
.filters select:hover {
  border-color: rgba(235, 253, 175, 0.28);
  background: rgba(9, 9, 10, 0.92);
}

.filters input:focus,
.filters select:focus {
  border-color: rgba(235, 253, 175, 0.4);
  background: rgba(10, 10, 11, 0.96);
  outline: none;
  box-shadow: 0 0 0 2px rgba(235, 253, 175, 0.12);
}

.filters input::placeholder {
  color: rgba(208, 216, 181, 0.48);
}

.filters select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(235, 253, 175, 0.7) 50%),
    linear-gradient(135deg, rgba(235, 253, 175, 0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 12px) calc(50% - 1px),
    calc(100% - 9px) calc(50% - 1px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  padding-right: 28px;
  cursor: pointer;
}

.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
  color: var(--text-muted);
  font-size: 13px;
  gap: 10px;
}

.feed-decor {
  display: none;
  position: relative;
  margin: 0 0 var(--sp-3);
  padding: 10px 12px;
  border: 1px solid rgba(210, 243, 101, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(209, 241, 103, 0.16), transparent 44%),
    radial-gradient(circle at 88% 100%, rgba(130, 108, 246, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(13, 13, 14, 0.84), rgba(10, 10, 11, 0.76));
}

.feed-decor-line {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(209, 241, 103, 0.08), rgba(221, 250, 124, 0.75), rgba(130, 108, 246, 0.55), rgba(209, 241, 103, 0.08));
  background-size: 220% 100%;
  animation: feed-glow 6s linear infinite;
}

.feed-decor-pills {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-decor-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-soft);
  border-radius: 999px;
  border: 1px solid rgba(210, 243, 101, 0.24);
  background: rgba(12, 12, 13, 0.6);
  padding: 4px 9px;
}

.feed-decor-pills i {
  color: rgba(221, 250, 124, 0.94);
}

.ad-shell {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(210, 243, 101, 0.22);
  background: linear-gradient(180deg, rgba(13, 13, 14, 0.84), rgba(10, 10, 11, 0.78));
}

.ad-shell-top {
  margin-top: 4px;
}

.ad-box {
  min-height: 100px;
}

.ad-card-shell {
  border-color: rgba(210, 243, 101, 0.24);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.ad-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.ad-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #e7e8e5;
  border: 1px solid rgba(210, 243, 101, 0.24);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(15, 15, 16, 0.7);
}

.feed-intro {
  margin: 8px 0 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(210, 243, 101, 0.24);
  background: linear-gradient(180deg, rgba(14, 14, 15, 0.86), rgba(10, 10, 11, 0.78));
}

.feed-intro p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.1px;
}

.programations-shell {
  margin: 8px 0 12px;
  padding: 10px 12px;
}

.programations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.programations-head h3 {
  margin: 0;
  font-size: 14px;
  font-family: "Sora", sans-serif;
  color: #f4f5f3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.programations-head span {
  font-size: 12px;
  color: var(--text-muted);
}

.programations-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
  -ms-overflow-style: none;
}

.programations-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.programations-rail::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.programations-rail::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 0;
}

.programation-card {
  border-radius: 12px;
  border: 1px solid rgba(210, 243, 101, 0.22);
  background: rgba(12, 12, 13, 0.78);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.programation-card:hover {
  border-color: rgba(221, 250, 124, 0.45);
  transform: translateY(-1px);
}

.programation-media-wrap {
  position: relative;
  height: 230px;
  width: 100%;
  overflow: hidden;
}

.programation-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: rgba(7, 7, 8, 0.88);
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
}

.programation-media-wrap:hover .programation-media {
  transform: scale(1.02);
}

.programation-media-empty {
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.programation-media,
.programation-media-empty {
  transition: transform 0.18s ease;
}

.programation-week-pill {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid rgba(210, 243, 101, 0.26);
  background: rgba(8, 8, 8, 0.85);
  color: #ebece9;
  padding: 4px 8px;
}

.programation-meta {
  padding: 8px 9px 10px;
  display: grid;
  gap: 2px;
}

.programation-meta strong {
  font-size: 13px;
  color: #f7f7f7;
}

.programation-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

.programation-meta em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-soft);
}

@media (min-width: 1024px) {
  .programations-shell {
    padding: 12px 14px;
  }

  .programations-head h3 {
    font-size: 16px;
  }

  .programations-rail {
    grid-auto-columns: 250px;
    gap: 12px;
  }

  .programation-media-wrap {
    height: 320px;
  }

  .programation-meta strong {
    font-size: 14px;
  }
}

.nonprofit-hero {
  margin: 14px 0 18px;
  padding: clamp(24px, 3.8vw, 40px);
  border-radius: 24px;
  border: 1px solid rgba(210, 243, 101, 0.24);
  background:
    radial-gradient(65% 110% at 100% 100%, rgba(32, 78, 163, 0.34), transparent 60%),
    linear-gradient(90deg, rgba(17, 21, 2, 0.98) 0%, rgba(26, 33, 2, 0.88) 55%, rgba(27, 34, 3, 0.62) 100%);
  display: none;
  min-height: clamp(300px, 36vw, 500px);
  box-shadow: inset 0 0 0 1px rgba(210, 243, 101, 0.08);
}

.nonprofit-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.nonprofit-hero-main {
  display: grid;
  gap: 14px;
  align-content: center;
}

.nonprofit-hero-kicker {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #e6fba2;
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  font-weight: 800;
  border: 1px solid rgba(204, 250, 54, 0.28);
  border-radius: 999px;
  background: rgba(143, 176, 34, 0.16);
  padding: 6px 12px;
}

.nonprofit-hero h1,
.nonprofit-hero h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(38px, 5.3vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #f7f7f7;
  max-width: 680px;
}

.nonprofit-hero-main > p {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 720px;
}

.nonprofit-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-primary-ghost {
  min-height: 56px;
  border-radius: 16px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(151, 164, 109, 0.32);
  background: rgba(22, 26, 8, 0.72);
  color: #ececeb;
  font-size: 18px;
  font-weight: 700;
}

.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-quick-tag {
  border: 1px solid rgba(153, 160, 128, 0.34);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(14, 14, 15, 0.78);
  color: #dde0d2;
  font-size: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.hero-quick-tag:hover {
  border-color: rgba(207, 249, 70, 0.38);
  transform: translateY(-1px);
}

.nonprofit-donate-link {
  min-height: 56px;
  border-radius: 16px;
  padding: 0 24px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #0d0d0e;
  background: linear-gradient(180deg, #cdfa3a, #c5f42c);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.nonprofit-donate-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(210, 243, 101, 0.24);
}

.nonprofit-donate-link.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.nonprofit-hero-note {
  font-size: 12px;
  color: var(--text-soft);
}

.nonprofit-hero-side {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.nonprofit-hero-side h3 {
  margin: 0;
  font-size: 16px;
  color: #f4f5f3;
}

.nonprofit-hero-points {
  display: grid;
  gap: 8px;
}

.nonprofit-hero-point {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(239, 240, 238, 0.82);
}

.nonprofit-hero-point i {
  color: rgba(211, 250, 82, 0.88);
}

@media (max-width: 860px) {
  .nonprofit-hero {
    min-height: 0;
    border-radius: 18px;
    padding: 22px 18px;
  }
  .nonprofit-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .nonprofit-hero-kicker {
    font-size: 11px;
    padding: 5px 10px;
  }
  .nonprofit-hero h1,
  .nonprofit-hero h2 {
    font-size: clamp(32px, 11vw, 52px);
    max-width: 100%;
  }
  .nonprofit-hero-main > p {
    font-size: 16px;
    max-width: 100%;
  }
  .nonprofit-donate-link,
  .hero-primary-ghost {
    min-height: 46px;
    border-radius: 12px;
    font-size: 16px;
    padding: 0 16px;
  }
  .hero-quick-tag {
    font-size: 13px;
    padding: 7px 11px;
  }
}

.feed-guided-rail {
  margin: 0 0 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.feed-guided-block-skeleton,
.feed-home-carousel-skeleton {
  pointer-events: none;
}

.feed-guided-skeleton-copy {
  min-width: min(280px, 72%);
  display: grid;
  gap: 8px;
}

.feed-guided-skeleton-subline {
  width: 44%;
  margin-bottom: 0;
}

.feed-guided-block {
  padding: 12px;
  display: grid;
  gap: 9px;
}

.feed-guided-block.is-featured {
  border-color: rgba(210, 243, 101, 0.38);
  background:
    radial-gradient(circle at 0% 0%, rgba(210, 243, 101, 0.2), transparent 44%),
    radial-gradient(circle at 100% 100%, rgba(135, 111, 244, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(11, 11, 12, 0.94), rgba(8, 8, 9, 0.9));
}

.feed-guided-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.feed-guided-title {
  margin: 0;
  font-size: 14px;
  color: #efefee;
  font-weight: 700;
}

.feed-guided-count {
  font-size: 11px;
  color: rgba(236, 251, 184, 0.9);
  border: 1px solid rgba(210, 243, 101, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(12, 12, 13, 0.7);
}

.feed-guided-list {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-guided-list.is-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feed-guided-item {
  width: 100%;
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(210, 243, 101, 0.2);
  background: rgba(9, 9, 9, 0.7);
  color: #f5f5f4;
  padding: 8px 9px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.feed-guided-item.is-featured {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 8px;
}

.feed-guided-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(210, 243, 101, 0.24);
}

.feed-guided-thumb.is-featured {
  width: 100%;
  height: 160px;
  border-radius: 10px;
}

.feed-guided-thumb-fallback {
  display: grid;
  place-items: center;
  color: rgba(226, 247, 156, 0.9);
  background: rgba(11, 11, 12, 0.85);
}

.feed-guided-copy {
  min-width: 0;
}

.feed-guided-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-guided-item span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.feed-guided-empty {
  font-size: 12px;
  color: var(--text-soft);
  border: 1px dashed rgba(210, 243, 101, 0.24);
  border-radius: 10px;
  padding: 8px 9px;
  display: grid;
  gap: 8px;
}

.feed-guided-cta {
  justify-self: start;
  border: 1px solid rgba(210, 243, 101, 0.28);
  background: rgba(12, 12, 13, 0.78);
  color: #f4f4f3;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.feed-home-block {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: #09090a;
  padding: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.feed-live-strip-shell {
  display: grid;
  gap: 6px;
  padding: 12px 12px 4px;
  border-radius: 20px;
}

.feed-live-strip-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.feed-live-strip-head h3 {
  margin: 0;
  font-size: 18px;
  color: #f6f6f6;
}

.feed-live-strip-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(239, 240, 238, 0.58);
}

.feed-live-strip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  /* Extra top/bottom padding so the ring's glow/pulse and corner badge have
     room to breathe without getting clipped by the row's scroll box.
     overflow-x: auto forces overflow-y to clip too (even though it's set to
     visible), so the shadow needs real padding, not just "visible".
     El padding lateral (12px) + scroll-padding evitan que la PRIMERA y la
     ultima historia (y su insignia de esquina) queden cortadas contra el borde. */
  padding: 14px 12px 26px;
  scroll-padding: 0 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feed-live-strip::-webkit-scrollbar {
  display: none;
}

/* Historias plegadas: por defecto solo se ve "Tus aportes" (el bubble propio va
