/* ============================================================
   IGNIT — COMUNIDAD
   Feed simple estilo Instagram, solo para cuentas con sesión
   iniciada. Reutiliza los tokens y el patrón visual del resto
   del sitio (tarjetas oscuras, acento rojo, radios/sombras del
   design system).
   ============================================================ */

.community-container {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--sp-13) + var(--sp-6)) var(--sp-5) var(--sp-12);
  min-height: 60vh;
}

/* El navbar pasa a su tamaño reducido en 768px (ver navbar.css) — este
   breakpoint tiene que coincidir para no quedarse corto de espacio arriba.
   Mismo valor que usa .legal-container para el mismo problema. */
@media (max-width: 768px) {
  .community-container {
    padding-top: calc(var(--sp-11) + 36px);
  }
}

/* ============================================================
   ESTADO SIN SESIÓN
   ============================================================ */

.community-locked {
  text-align: center;
  padding: var(--sp-11) var(--sp-5);
}

.community-locked-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 4px;
  color: var(--ignit-red);
  font-weight: 700;
  margin: 0 0 var(--sp-4);
}

.community-locked h1 {
  font-size: var(--text-2xl);
  margin: 0 0 var(--sp-4);
  color: var(--text-primary);
}

.community-locked-sub {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto var(--sp-7);
  line-height: 1.6;
}

.community-locked-btn[hidden] {
  display: none;
}

.community-locked-btn {
  display: inline-block;
  padding: var(--sp-4) var(--sp-8);
  background: var(--ignit-red);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-btn);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.community-locked-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hov);
}

.community-locked-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.community-locked-login-link[hidden] {
  display: none;
}

.community-locked-login-link {
  display: block;
  margin-top: var(--sp-4);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--t-fast);
}

.community-locked-login-link:hover {
  color: var(--text-primary);
}

.community-locked-error p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  max-width: 380px;
  margin: 0 auto var(--sp-6);
  line-height: 1.6;
}

.community-locked-error .community-locked-btn {
  display: inline-block;
  width: auto;
  margin: 0;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.community-username-form {
  max-width: 340px;
  margin: 0 auto;
  text-align: left;
}

.community-username-form label {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--sp-3);
  text-align: center;
}

.community-username-input-row {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--sp-3) var(--sp-5);
  gap: var(--sp-1);
}

.community-username-at {
  color: var(--text-muted);
  font-weight: 700;
}

.community-username-input-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: inherit;
}

.community-username-input-row input:focus {
  outline: none;
}

.community-username-input-row input::placeholder {
  color: var(--text-ghost);
}

.community-username-hint {
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
  margin: var(--sp-3) 0 var(--sp-4);
  text-align: center;
}

.community-username-form .community-locked-btn {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   CABECERA DEL FEED
   ============================================================ */

.community-feed-header {
  margin-bottom: var(--sp-8);
}

.community-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 4px;
  color: var(--ignit-red);
  font-weight: 700;
  margin: 0 0 var(--sp-2);
}

.community-title {
  font-size: var(--text-2xl);
  margin: 0 0 var(--sp-2);
  color: var(--text-primary);
}

.community-subtitle {
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   SUB-NAVBAR — Inicio / Buscar / Publicar / Perfil
   ============================================================ */

.community-subnav {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-7);
}

.community-subnav-btn {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: var(--sp-2);
  width: auto;
  min-width: 0;
  height: auto;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: color var(--t-fast);
}

.community-subnav-btn:hover {
  color: var(--text-primary);
  background: none;
  transform: none;
  box-shadow: none;
}

.community-subnav-btn.is-active {
  color: var(--ignit-red);
}

.community-subnav-btn.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--ignit-red);
}

/* ============================================================
   PANEL DE BÚSQUEDA — se despliega desde el subnav, no está siempre visible
   ============================================================ */

.community-search-panel {
  margin-bottom: var(--sp-7);
}

.community-search-input-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.community-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: inherit;
}

.community-search-input:focus {
  outline: none;
}

.community-search-input::placeholder {
  color: var(--text-ghost);
}

.community-search-close {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--sp-1);
  line-height: 1;
  font-size: 13px;
  transition: color var(--t-fast);
}

.community-search-close:hover {
  color: var(--text-primary);
}

.community-search-results {
  position: relative;
  margin-top: var(--sp-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 5;
}

.community-search-hint {
  margin: 0;
  padding: var(--sp-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.community-search-result {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--t-fast);
}

.community-search-result:last-child {
  border-bottom: none;
}

.community-search-result:hover {
  background: var(--bg-glass);
}

.community-search-result-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.community-search-result-name {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
}

.community-search-result-handle {
  color: var(--text-muted);
  font-size: 12px;
}

.community-search-following-tag {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.community-search-pending-tag {
  color: var(--ignit-red);
}

/* ============================================================
   CAMPANA DE NOTIFICACIONES — mismo patrón que el panel de búsqueda
   ============================================================ */

.community-notif-badge {
  position: absolute;
  top: 2px;
  right: 10px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ignit-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-full);
}

.community-notif-badge[hidden] {
  display: none;
}

.community-notif-panel {
  margin-bottom: var(--sp-7);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.community-notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
}

.community-notif-panel-header h3 {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.community-notif-list {
  /* ~10 filas visibles antes de que aparezca scroll (una fila normal mide
     unos 57px con su padding; las de solicitud de seguimiento, con los
     botones Aceptar/Rechazar, algo más — 600px es el punto medio). */
  max-height: 600px;
  overflow-y: auto;
}

.community-notif-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--t-fast);
}

.community-notif-row:last-child {
  border-bottom: none;
}

.community-notif-row:hover {
  background: var(--bg-glass);
}

.community-notif-row.is-unread {
  background: rgba(193, 18, 31, 0.06);
}

.community-notif-info {
  flex: 1;
  min-width: 0;
}

.community-notif-text {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.community-notif-time {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.community-notif-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.community-notif-actions button {
  width: auto;
  margin-top: 0;
  padding: 6px var(--sp-4);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: none;
}

.community-notif-accept {
  background: var(--ignit-red);
  border: none;
  color: #fff;
}

.community-notif-decline {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.community-notif-empty {
  margin: 0;
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ============================================================
   CABECERA DE PERFIL (comunidad.html?user=ID)
   ============================================================ */

.community-profile-header {
  margin-bottom: var(--sp-8);
}

.community-back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  margin-bottom: var(--sp-5);
  transition: color var(--t-fast);
}

.community-back-link:hover {
  color: var(--text-primary);
}

.community-profile-row {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.community-profile-info {
  flex: 1;
  min-width: 0;
}

.community-profile-name {
  font-size: var(--text-xl);
  margin: 0 0 4px;
  color: var(--text-primary);
}

.community-profile-handle {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.community-verified-badge {
  display: inline-block;
  color: var(--ignit-red);
  vertical-align: -2px;
  flex-shrink: 0;
}

.community-profile-category[hidden] {
  display: none;
}

.community-profile-category {
  display: inline-block;
  margin: 0 0 var(--sp-2);
  color: var(--ignit-red);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Solo la ve el dueño del perfil cuando no ha puesto categoría — invita a
   añadirla en vez de dejar el hueco en blanco. */
.community-profile-category-add {
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.community-profile-category-add:hover,
.community-profile-category-add:focus-visible {
  color: var(--ignit-red);
  border-color: var(--ignit-red);
  outline: none;
}

.community-profile-count {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ============================================================
   PRs (marcas personales) EN EL PERFIL
   ============================================================ */

.community-profile-prs[hidden] {
  display: none;
}

.community-profile-prs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-3);
}

.community-pr-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px var(--sp-3);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  line-height: 1.2;
}

.community-pr-chip strong {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 800;
}

.community-pr-chip small {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Solo la ve el dueño del perfil cuando no ha puesto ningún PR todavía —
   mismo criterio que .community-profile-category-add. */
.community-prs-add {
  display: inline-block;
  color: var(--text-muted);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.community-prs-add:hover,
.community-prs-add:focus-visible {
  color: var(--ignit-red);
  border-color: var(--ignit-red);
  outline: none;
}

.community-share-prs-btn[hidden] {
  display: none;
}

.community-share-prs-btn {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 var(--sp-3);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: color var(--t-fast);
}

.community-share-prs-btn:hover,
.community-share-prs-btn:focus-visible {
  color: var(--ignit-red);
  outline: none;
}

.community-profile-follow-counts {
  margin: var(--sp-1) 0 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.community-profile-actions[hidden] {
  display: none;
}

.community-profile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.community-follow-btn,
.community-block-btn {
  padding: var(--sp-2) var(--sp-6);
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-top: 0;
  white-space: nowrap;
}

.community-follow-btn.is-following {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: none;
}

.community-follow-btn.is-pending {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  box-shadow: none;
}

.community-block-btn {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  box-shadow: none;
}

.community-block-btn:hover {
  border-color: var(--ignit-red);
  color: var(--ignit-red);
  transform: none;
  box-shadow: none;
}

.community-block-btn.is-blocked {
  border-color: var(--ignit-red);
  color: var(--ignit-red);
}

.community-profile-blocked-msg {
  margin: var(--sp-4) 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-style: italic;
}

.community-profile-bio[hidden] {
  display: none;
}

.community-profile-bio {
  margin: var(--sp-3) 0 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.community-edit-profile-btn {
  padding: var(--sp-2) var(--sp-6);
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-top: 0;
  white-space: nowrap;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: none;
}

.community-edit-profile-btn:hover {
  border-color: var(--ignit-red);
  color: var(--ignit-red);
  transform: none;
  box-shadow: none;
}

/* ============================================================
   MODAL — EDITAR PERFIL
   ============================================================ */

.community-edit-modal-overlay[hidden] {
  display: none;
}

.community-edit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-popup);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  padding: var(--sp-5);
}

.community-edit-modal {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-7) var(--sp-6);
  box-shadow: var(--shadow-card);
}

.community-edit-modal h3 {
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: 800;
  margin: 0 0 var(--sp-5);
}

.community-edit-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

.community-edit-field input,
.community-edit-field select,
.community-edit-field textarea {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-sm);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.community-edit-field textarea {
  resize: vertical;
  min-height: 70px;
}

.community-edit-field input:focus,
.community-edit-field select:focus,
.community-edit-field textarea:focus {
  outline: none;
  border-color: var(--ignit-red);
}

.community-edit-field .community-username-input-row {
  padding: var(--sp-2) var(--sp-4);
}

.community-edit-field .community-username-input-row input {
  border: none;
  padding: 0;
  background: transparent;
}

.community-edit-hint {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--text-ghost);
  font-size: 11px;
}

.community-edit-field-title {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 var(--sp-2);
}

.community-edit-prs-row {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.community-edit-pr-field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.community-edit-prs-hint {
  display: block;
  margin: 0 0 var(--sp-4);
}

@media (max-width: 480px) {
  .community-edit-prs-row {
    flex-direction: column;
  }
}

.community-edit-modal-actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.community-edit-cancel-btn,
.community-edit-modal-actions .community-locked-btn {
  flex: 1;
  margin: 0;
  text-align: center;
}

.community-edit-cancel-btn {
  display: inline-block;
  width: auto;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: inherit;
  cursor: pointer;
  box-shadow: none;
}

.community-edit-cancel-btn:hover {
  border-color: var(--ignit-red);
  color: var(--ignit-red);
  transform: none;
  box-shadow: none;
}

@media (max-width: 500px) {
  .community-edit-modal {
    padding: var(--sp-6) var(--sp-5);
  }

  .community-edit-modal-actions {
    flex-direction: column;
  }
}

/* ============================================================
   AVATARES — imagen si hay foto, si no un círculo con la inicial
   (mismo patrón que el icono de cuenta del navbar).
   ============================================================ */

.community-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  /* No evita una captura de pantalla, pero sí arrastrar/soltar la imagen al
     escritorio y el menú de "Guardar imagen" al mantener pulsado en iOS. */
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.community-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.community-avatar-fallback[hidden],
.community-avatar[hidden] {
  display: none;
}

.community-avatar-lg,
.community-avatar-lg.community-avatar-fallback {
  width: 72px;
  height: 72px;
  font-size: var(--text-xl);
}

/* Envuelve el avatar grande del perfil para poder anclar el botón de
   "cambiar foto" en la esquina — igual que .account-avatar en cuenta.css,
   solo visible en tu propio perfil (se des-oculta desde JS con isMe). */
.community-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.community-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  margin-top: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--ignit-red);
  border: 2px solid var(--bg-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}

.community-avatar-edit:hover {
  background: var(--ignit-red-hov);
}

.community-avatar-edit[hidden] {
  display: none;
}

/* ============================================================
   COMPOSER — crear post
   ============================================================ */

.community-composer[hidden] {
  display: none;
}

.community-composer {
  position: relative;
  display: flex;
  gap: var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-8);
}

.community-composer-cancel {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
  padding: var(--sp-1);
  transition: color var(--t-fast);
}

.community-composer-cancel:hover {
  color: var(--ignit-red);
}

.community-composer-body {
  flex: 1;
  min-width: 0;
  padding-right: var(--sp-6); /* deja hueco a la ✕ de cancelar, arriba a la derecha */
}

.community-composer textarea {
  width: 100%;
  min-height: 44px;
  resize: vertical;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-sm);
  line-height: 1.5;
  padding: var(--sp-2) 0;
}

.community-composer textarea:focus {
  outline: none;
}

.community-composer textarea::placeholder {
  color: var(--text-ghost);
}

.community-composer-photo-preview {
  position: relative;
  margin: var(--sp-3) 0;
  max-width: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.community-composer-photo-preview img,
.community-composer-photo-preview video {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  background: #000;
}

.community-composer-photo-preview button {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

.community-composer-photo-preview button:hover {
  background: rgba(0, 0, 0, 0.85);
}

.community-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-subtle);
}

.community-photo-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color var(--t-fast);
}

.community-photo-btn:hover {
  color: var(--text-primary);
}

.community-publish-btn {
  margin: 0;
  padding: var(--sp-2) var(--sp-6);
  width: auto;
  min-width: 0;
  height: auto;
  font-size: var(--text-xs);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.community-publish-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: var(--shadow-btn) !important;
}

.community-error {
  color: var(--ignit-red);
  font-size: var(--text-xs);
  margin: var(--sp-2) 0 0;
}

/* ============================================================
   FEED / POSTS
   ============================================================ */

.community-feed {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.community-post {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
}

.community-post-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.community-post-avatar-link {
  flex-shrink: 0;
  line-height: 0;
}

.community-post-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.community-post-author {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-sm);
}

.community-post-author:hover {
  color: var(--ignit-red);
}

.community-post-handle {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
}

.community-post-time {
  color: var(--text-muted);
  font-size: 11px;
}

.community-post-delete {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--sp-1);
  line-height: 1;
  transition: color var(--t-fast);
}

.community-post-delete:hover {
  color: var(--ignit-red);
}

.community-post-menu {
  position: relative;
}

.community-post-menu-btn {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--sp-1) var(--sp-2);
  line-height: 1;
  font-size: 16px;
  font-weight: 700;
  transition: color var(--t-fast);
}

.community-post-menu-btn:hover {
  color: var(--text-primary);
}

.community-post-menu-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  z-index: 6;
}

.community-post-menu-dropdown button {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

.community-post-menu-dropdown button:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.community-post-menu-dropdown button[data-action="block-author"] {
  color: var(--ignit-red);
}

.community-post-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0 0 var(--sp-3);
  white-space: pre-wrap;
  word-break: break-word;
}

.community-mention-link {
  color: var(--ignit-red);
  text-decoration: none;
  font-weight: 600;
}

.community-mention-link:hover {
  text-decoration: underline;
}

/* Foto a sangre — se sale del padding de la tarjeta con márgenes negativos
   para quedar borde a borde, estilo Instagram, en vez de ir "enmarcada"
   con su propio borde/radio dentro de la tarjeta. */
.community-post-photo {
  margin: 0 calc(-1 * var(--sp-4)) var(--sp-3);
  overflow: hidden;
}

.community-post-photo img,
.community-post-photo video {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  background: #000;
}

.community-post-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding-top: 2px;
}

.community-like-btn,
.community-comment-toggle {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
  transition: color var(--t-fast);
}

.community-like-btn:hover,
.community-comment-toggle:hover {
  color: var(--text-primary);
}

.community-like-btn svg {
  transition: transform var(--t-fast);
}

.community-like-btn:hover svg {
  transform: scale(1.12);
}

.community-like-btn.is-liked {
  color: var(--ignit-red);
}

.community-like-btn.is-liked svg {
  fill: var(--ignit-red);
  stroke: var(--ignit-red);
}

/* ============================================================
   CUADRÍCULA DE PERFIL (estilo Instagram) + LIGHTBOX
   ============================================================ */

.community-profile-sort-row[hidden] {
  display: none;
}

.community-profile-sort-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.community-profile-sort-row label {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.community-profile-sort-row select {
  padding: 6px var(--sp-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-xs);
  cursor: pointer;
}

.community-profile-sort-row select:focus {
  outline: none;
  border-color: var(--ignit-red);
}

.community-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.community-post-grid-item {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.community-post-grid-item img,
.community-post-grid-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  background: #000;
}

.community-post-grid-video-badge {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.community-post-grid-item-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  text-align: center;
}

.community-post-grid-item-text span {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.community-lightbox[hidden] {
  display: none;
}

.community-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-popup);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* El padding-top deja hueco de sobra por debajo del botón "X" fijo
     (que mide 34px y está a sp-5 del borde) para que no quede pegado a la
     cabecera de la publicación — sin este margen extra se solapaban. */
  padding: calc(var(--sp-5) + 34px + var(--sp-4)) var(--sp-5) var(--sp-5);
  overflow-y: auto;
}

.community-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.community-lightbox-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

.community-lightbox-content .community-post {
  border-radius: var(--radius-xl);
}

.community-lightbox-close {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  position: fixed;
  top: var(--sp-5);
  right: var(--sp-5);
  z-index: 2;
  cursor: pointer;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background var(--t-fast);
}

.community-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* ============================================================
   COMENTARIOS
   ============================================================ */

.community-comments {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}

.community-comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.community-comment {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.community-comment-avatar-link {
  flex-shrink: 0;
  line-height: 0;
}

.community-comment .community-avatar,
.community-comment .community-avatar-fallback {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.community-comment-body {
  flex: 1;
  min-width: 0;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);
}

.community-comment-author {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  margin-right: var(--sp-1);
}

.community-comment-handle {
  color: var(--text-muted);
  font-size: 11px;
  margin-right: var(--sp-2);
}

.community-comment-text {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.community-comment-delete {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

.community-comment-delete:hover {
  color: var(--ignit-red);
}

.community-comment-report {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  color: var(--text-ghost);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: color var(--t-fast);
}

.community-comment-report:hover {
  color: var(--ignit-red);
}

.community-comment-form {
  display: flex;
  gap: var(--sp-2);
}

.community-comment-form input {
  flex: 1;
  min-width: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-4);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
}

.community-comment-form input::placeholder {
  color: var(--text-ghost);
}

.community-comment-form input:focus {
  outline: none;
  border-color: var(--border-red-focus);
}

.community-comment-form button {
  /* El reset global de button{} pone width:100% — dentro de este flex row
     eso hacía que el botón "Enviar" intentara ocupar todo el ancho del
     formulario (empujando/aplastando el input de al lado). Con el resto de
     ajustes ya se anulaba casi todo el reset menos este, que faltaba. */
  width: auto;
  padding: var(--sp-2) var(--sp-5);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-top: 0;
  flex-shrink: 0;
}

/* ============================================================
   ESTADOS — vacío / cargando / cargar más
   ============================================================ */

.community-empty,
.community-loading {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  padding: var(--sp-8) 0;
}

.community-load-more[hidden] {
  display: none;
}

.community-load-more {
  display: block;
  margin: var(--sp-6) auto 0;
  padding: var(--sp-3) var(--sp-7);
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.community-load-more:hover {
  border-color: var(--ignit-red);
  color: var(--ignit-red);
  transform: none;
  box-shadow: none;
}

@media (max-width: 560px) {
  .community-subnav {
    margin-bottom: var(--sp-5);
  }

  .community-search-panel {
    margin-bottom: var(--sp-5);
  }

  .community-notif-panel {
    margin-bottom: var(--sp-5);
  }

  .community-notif-list {
    max-height: 60vh;
  }

  .community-feed-header {
    margin-bottom: var(--sp-6);
  }

  .community-composer {
    padding: var(--sp-4);
  }

  .community-post {
    padding: var(--sp-4);
  }

  .community-profile-row {
    flex-wrap: wrap;
  }

  .community-profile-actions {
    flex-direction: row;
    width: 100%;
    margin-top: var(--sp-3);
  }

  .community-follow-btn,
  .community-block-btn {
    flex: 1;
  }
}

/* ============================================================
   AJUSTES DE LA COMUNIDAD — botón de engranaje + panel
   ============================================================ */

#community-profile-own-actions {
  flex-direction: row;
  align-items: center;
}

.community-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin-top: 0;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--text-secondary);
  box-shadow: none;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.community-settings-btn:hover,
.community-settings-btn:focus-visible {
  border-color: var(--ignit-red);
  color: var(--ignit-red);
  transform: rotate(45deg);
  box-shadow: none;
  outline: none;
}

.community-settings-modal {
  max-width: 460px;
}

.community-settings-section {
  margin-bottom: var(--sp-6);
}

.community-settings-section-title {
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 var(--sp-3);
}

.community-settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.community-settings-toggle-row:last-child {
  border-bottom: none;
}

.community-settings-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.community-settings-toggle-text strong {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
}

.community-settings-toggle-text small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.community-settings-toggle {
  flex-shrink: 0;
}

.community-settings-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 38px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.community-settings-toggle input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--t-fast), background var(--t-fast);
}

.community-settings-toggle input[type="checkbox"]:checked {
  background: var(--ignit-red-25);
  border-color: var(--ignit-red);
}

.community-settings-toggle input[type="checkbox"]:checked::before {
  transform: translateX(16px);
  background: var(--ignit-red);
}

.community-settings-empty {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.community-settings-msg {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  margin: 0 0 var(--sp-4);
}

.community-settings-msg[hidden] {
  display: none;
}

.community-settings-msg-error {
  color: var(--ignit-red);
}

.community-settings-danger-desc {
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
  margin: 0 0 var(--sp-3);
}

.community-settings-danger-link {
  color: var(--ignit-red);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.community-settings-danger-link:hover {
  text-decoration: underline;
}

.community-blocked-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-height: 220px;
  overflow-y: auto;
}

.community-blocked-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.community-avatar-sm,
.community-avatar-sm.community-avatar-fallback {
  width: 32px;
  height: 32px;
  font-size: var(--text-xs);
  flex-shrink: 0;
}

.community-blocked-info {
  flex: 1;
  min-width: 0;
}

.community-blocked-name {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-blocked-username {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.community-unblock-btn {
  width: auto;
  margin-top: 0;
  flex-shrink: 0;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.community-unblock-btn:hover,
.community-unblock-btn:focus-visible {
  border-color: var(--ignit-red);
  color: var(--ignit-red);
  box-shadow: none;
  outline: none;
}

.community-unblock-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   MODAL — SEGUIDORES / SEGUIDOS
   ============================================================ */

.community-profile-follow-counts {
  display: flex;
  gap: 6px;
}

.community-follow-count-btn {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: color var(--t-fast);
}

.community-follow-count-btn:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.community-follows-modal {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.community-follows-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.community-follows-header h3 {
  margin: 0;
}

.community-follows-tabs {
  display: flex;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}

.community-follows-tab {
  all: unset;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  flex: 1;
  text-align: center;
  padding: var(--sp-3) 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  position: relative;
}

.community-follows-tab.is-active {
  color: var(--text-primary);
}

.community-follows-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--ignit-red);
}

.community-follows-search-row {
  margin-bottom: var(--sp-4);
}

.community-follows-search {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-sm);
}

.community-follows-search:focus {
  outline: none;
  border-color: var(--ignit-red);
}

.community-follows-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  overflow-y: auto;
  min-height: 60px;
}

.community-follows-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
}

.community-follows-info {
  flex: 1;
  min-width: 0;
}

.community-follows-name {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-follows-username {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

/* ============================================================
   MODAL — NORMAS DE LA COMUNIDAD (bloqueante, 1 sola vez)
   ============================================================ */

.community-terms-modal {
  max-width: 480px;
}

.community-terms-body {
  max-height: 45vh;
  overflow-y: auto;
  margin-bottom: var(--sp-5);
  padding-right: var(--sp-2);
}

.community-terms-body p {
  margin: 0 0 var(--sp-3);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.community-terms-body p:last-child {
  margin-bottom: 0;
}

.community-terms-body strong {
  color: var(--text-primary);
}

.community-terms-body a {
  color: var(--ignit-red);
  text-decoration: underline;
}

.community-terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
  cursor: pointer;
}

.community-terms-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--ignit-red);
  cursor: pointer;
}

.community-terms-overlay .community-edit-modal-actions {
  margin-top: 0;
}

.community-terms-overlay .community-locked-btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

.community-terms-underage-link {
  display: block;
  width: 100%;
  margin-top: var(--sp-3);
  padding: var(--sp-4) var(--sp-8);
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: var(--text-sm);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.community-terms-underage-link:hover {
  border-color: var(--ignit-red);
  color: var(--ignit-red);
}

.community-terms-underage-panel[hidden] {
  display: none;
}

.community-terms-underage-panel {
  text-align: center;
}

.community-terms-underage-panel h3 {
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: 800;
  margin: 0 0 var(--sp-4);
}

.community-terms-underage-panel p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0 0 var(--sp-3);
}

.community-terms-underage-panel a {
  color: var(--ignit-red);
  text-decoration: underline;
}

.community-terms-underage-countdown {
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.community-terms-underage-countdown span {
  color: var(--ignit-red);
  font-weight: 800;
}
