/**
 * Tema Panel de Colección — Tarumba's Farm.
 * Fuente: docs/collector/BRANDING_DASHBOARD.md
 * Congelación / scope por página: docs/collector/VISUAL_CONTRACT_PAGE_FREEZE.md
 * Sistema de acciones y componentes: docs/collector/BRANDING_ACTIONS_AND_COMPONENTS_SYSTEM.md
 * Variables con prefijo --tf-
 */

:root {
  --tf-color-primary: #D9048E;
  --tf-color-secondary: #7CFC00;
  --tf-color-secondary-ink: #2e6b00;
  --tf-color-tertiary: #E8D5F0;
  --tf-color-accent: #ff2fb3;
  --tf-color-bg-light: #F8F8F8;
  --tf-bg: #f7f4ef;
  --tf-ink: #111;
  --tf-color-card-light: #FFFFFF;
  --tf-color-text: #1a1a1a;
  --tf-color-border: #000000;
  /* Dashboard: borde secundario para bloques colapsables y destacada (mejor contraste) */
  --tf-color-border-secondary: rgba(0, 0, 0, 0.18);
  --tf-color-error: #c00;

  /* Panel: cuadrado por defecto (excepciones documentadas en VISUAL_CONTRACT_PAGE_FREEZE.md §4) */
  --tf-radius-default: 0;
  --tf-radius-sticker: 1.5rem;
  --tf-border-width: 2px;
  --tf-shadow-sticker: 2px 2px 0 0 var(--tf-color-border);
  --tf-shadow-hover: 3px 3px 0 0 var(--tf-color-border);
  /* Sombras planas (sidebar, placeholders): sin blur tipo SaaS */
  --tf-shadow-flat-soft: 1px 1px 0 0 rgba(0, 0, 0, 0.08);

  --tf-font-display: 'Bangers', cursive;
  --tf-font-handwriting: 'Permanent Marker', cursive;
  --tf-font-body: 'Roboto', sans-serif;

  --tf-space-xs: 0.25rem;
  --tf-space-sm: 0.5rem;
  --tf-space-md: 1rem;
  --tf-space-lg: 1.5rem;
  --tf-space-xl: 2rem;
  /* Product Polish: padding vertical para heroes/cabeceras protagonistas (Fase 4: más respiración) */
  --tf-space-hero-py: 2.5rem;
  /* Refinamiento: ritmo vertical entre bloques dentro del hero */
  --tf-hero-block-gap: 1.75rem;
  /* Dashboard: separación entre secciones principales (hero, featured, items) */
  --tf-dashboard-section-gap: 2.25rem;
  --tf-container-max: 720px;
  /* System Consistency: ancho máximo único para vistas principales (dashboard, gallery, item, collection) */
  --tf-app-max: 1600px;
  --tf-app-padding: var(--tf-space-xl);
  /* Grid único gallery + collection */
  --tf-grid-collectibles-min: 220px;
  --tf-grid-collectibles-gap: var(--tf-space-xl);
  /* Fase 2 Mobile: sistema común (EXEC_REPORT_PHASE2_MOBILE_AUDIT) */
  --tf-touch-min: 44px;
  --tf-app-padding-mobile: 1rem;
  --tf-space-mobile-gap: var(--tf-space-md);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--tf-font-body);
  background-color: var(--tf-bg);
  color: var(--tf-ink);
  margin: 0;
  padding: var(--tf-space-md);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, .tf-title {
  font-family: var(--tf-font-display);
  letter-spacing: 0.02em;
}

.tf-card {
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.tf-btn-primary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-family: var(--tf-font-body);
  font-weight: 600;
  font-size: 1rem;
  color: white;
  background: var(--tf-color-primary);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.tf-btn-primary:hover {
  box-shadow: var(--tf-shadow-hover);
}

.tf-btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-family: var(--tf-font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--tf-color-text);
  background: var(--tf-color-secondary);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

/* Phase 5: CTA terciaria en hero (tercera acción, estilo enlace) */
.tf-btn-tertiary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-family: var(--tf-font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--tf-color-primary);
  background: transparent;
  border: none;
  border-radius: var(--tf-radius-default);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.tf-btn-tertiary:hover {
  text-decoration: underline;
}

.tf-input {
  width: 100%;
  max-width: 20rem;
  padding: 0.6rem;
  font-size: 1rem;
  border: var(--tf-border-width) solid #ccc;
  border-radius: var(--tf-radius-default);
}

.tf-input:focus {
  outline: none;
  border-color: var(--tf-color-primary);
  box-shadow: 0 0 0 2px rgba(217, 4, 142, 0.2);
}

.tf-badge {
  font-family: var(--tf-font-handwriting);
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--tf-radius-sticker);
  border: 1px solid var(--tf-color-border);
}

/* Admin — toolbar compartido (Usuarios, NFT mints, etc.) */
.tf-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-md);
  align-items: flex-end;
  margin-top: var(--tf-space-sm);
}

.tf-admin-section-prose {
  max-width: 60ch;
  margin-bottom: var(--tf-space-md);
  font-size: 0.9rem;
}
.tf-admin-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: var(--tf-space-lg);
  align-items: start;
}
.tf-admin-sidebar {
  position: sticky;
  top: var(--tf-space-lg);
}
.tf-admin-sidebar__context {
  margin: 0 0 var(--tf-space-sm) 0;
  font-size: 0.85rem;
}
.tf-admin-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-sm);
}
.tf-admin-section-link {
  width: 100%;
  text-align: left;
}
.tf-admin-section-link.is-active {
  outline: 2px solid var(--tf-color-primary);
  outline-offset: 1px;
}
.tf-admin-content {
  min-width: 0;
}
.tf-admin-summary-grid {
  margin-top: var(--tf-space-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--tf-space-md);
}
.tf-admin-summary-card {
  margin-bottom: 0;
}
.tf-admin-summary-card__label {
  margin: 0;
  font-size: 0.85rem;
}
.tf-admin-summary-card__value {
  margin: var(--tf-space-xs) 0;
  font-family: var(--tf-font-display);
  font-size: 2rem;
  line-height: 1;
}
.tf-admin-summary-card__detail {
  margin: 0;
  font-size: 0.85rem;
}
.tf-admin-summary-actions {
  margin-top: var(--tf-space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-sm);
}
.tf-admin-table-wrap {
  overflow: auto;
  margin-top: var(--tf-space-md);
  max-height: 28rem;
  border: var(--tf-border-width) solid var(--tf-color-border-secondary);
  border-radius: var(--tf-radius-default);
}
.tf-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tf-admin-table th,
.tf-admin-table td {
  padding: var(--tf-space-sm) var(--tf-space-md);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--tf-color-border-secondary);
}
.tf-admin-table th {
  font-weight: 700;
  background: var(--tf-color-bg-light);
  position: sticky;
  top: 0;
  z-index: 1;
}
.tf-admin-table td.tf-admin-table__mono {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}
.tf-admin-users-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-sm);
  align-items: center;
  margin-top: var(--tf-space-md);
}
.tf-admin-users-meta {
  font-size: 0.85rem;
  color: var(--tf-color-text);
  opacity: 0.9;
}
.tf-admin-users-status {
  margin-top: var(--tf-space-sm);
  font-size: 0.9rem;
  min-height: 1.35em;
}
.tf-admin-users-status--ok {
  color: var(--tf-color-secondary-ink);
}
.tf-admin-users-status--err {
  color: var(--tf-color-error);
  font-weight: 600;
}
.tf-badge--admin-role {
  background: var(--tf-color-tertiary);
  border-width: var(--tf-border-width);
}

/* Admin — estado de mint (solo lectura) */
.tf-badge--mint-status {
  text-transform: lowercase;
  border-width: var(--tf-border-width);
}
.tf-badge--mint-pending {
  background: var(--tf-color-bg-light);
  border-color: var(--tf-color-border);
}
.tf-badge--mint-submitted {
  background: var(--tf-color-tertiary);
  border-color: var(--tf-color-border);
}
.tf-badge--mint-confirmed {
  background: var(--tf-color-secondary);
  color: var(--tf-color-secondary-ink);
  border-color: var(--tf-color-border);
}
.tf-badge--mint-failed {
  background: var(--tf-color-error-bg, #fde8e8);
  color: var(--tf-color-error);
  border-color: var(--tf-color-error);
}

.tf-admin-tx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-xs);
  align-items: center;
}
.tf-admin-tx-actions .tf-btn-secondary {
  font-size: 0.8rem;
  padding: 0.2rem 0.45rem;
}

.tf-admin-explorer-link {
  font-size: 0.85rem;
}

.tf-admin-table__error-cell {
  max-width: 14rem;
}

/* Admin — ficha soporte “Buscar usuario” */
.tf-admin-support-result {
  margin-top: var(--tf-space-md);
}
.tf-admin-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--tf-space-lg);
  align-items: start;
}
.tf-admin-support-block--wide {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .tf-admin-shell {
    grid-template-columns: 1fr;
  }
  .tf-admin-sidebar {
    position: static;
  }
  .tf-admin-sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tf-admin-section-link {
    width: auto;
    text-align: center;
  }
}

.tf-item-thumb {
  max-width: 120px;
  max-height: 120px;
  border-radius: var(--tf-radius-default);
  border: var(--tf-border-width) solid var(--tf-color-border);
  box-shadow: var(--tf-shadow-sticker);
}

/* Layout */
.tf-container {
  max-width: var(--tf-container-max);
  margin-left: auto;
  margin-right: auto;
}

/* System Consistency: contenedor full width para vistas principales (dashboard, gallery, item, collection) */
.tf-app {
  max-width: var(--tf-app-max);
  margin: 0 auto;
  padding: 0 var(--tf-app-padding);
  width: 100%;
}

.tf-stack {
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-md);
}

.tf-stack-sm { gap: var(--tf-space-sm); }
.tf-stack-lg { gap: var(--tf-space-lg); }

.tf-grid {
  display: grid;
  gap: var(--tf-space-lg);
}

@media (min-width: 640px) {
  .tf-grid-dashboard {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.tf-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--tf-space-lg);
}

.tf-login-card {
  max-width: 24rem;
  width: 100%;
  text-align: center;
}

.tf-login-logo {
  height: 3rem;
  width: auto;
  margin-bottom: var(--tf-space-md);
}

.tf-login-copy {
  margin-bottom: var(--tf-space-md);
  font-size: 0.95rem;
}

.tf-login-card .tf-stack {
  align-items: stretch;
  text-align: left;
}

.tf-login-card form > div:first-of-type {
  margin-bottom: var(--tf-space-sm);
}

.tf-login-hint {
  margin-top: var(--tf-space-md);
  font-size: 0.9rem;
  opacity: 0.9;
}

.tf-login-form {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-md);
}

.tf-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tf-color-text);
}

.tf-btn-image {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tf-btn-image img {
  width: 100%;
  height: auto;
  display: block;
}

.tf-btn-image:focus-visible {
  outline: 3px solid var(--tf-color-primary);
  outline-offset: 4px;
  border-radius: 12px;
}

.tf-btn-image:hover img {
  transform: translateY(-1px);
}

.tf-btn-image:active img {
  transform: translateY(1px);
}

.tf-user-id {
  font-size: 0.75rem;
  color: var(--tf-color-text);
  opacity: 0.8;
  font-family: var(--tf-font-body);
  word-break: break-all;
  margin-top: var(--tf-space-xs);
}

.tf-message-success {
  color: var(--tf-color-primary);
  font-size: 0.95rem;
  margin-top: var(--tf-space-md);
}

.tf-login-result {
  margin-top: var(--tf-space-md);
  text-align: center;
}

.tf-login-result .tf-message-success,
.tf-login-result .tf-message-error {
  display: inline-block;
  margin: 0 auto;
}

/* Login — fondo ilustración a pantalla completa (cover + responsive); tarjeta opaca para legibilidad */
body.tf-page-login {
  background-color: var(--tf-bg);
  background-image: url("/assets/ui/background-login-dash.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
}

body.tf-page-login main.tf-panel {
  flex: 1;
  width: 100%;
  max-width: none;
  min-height: min(100vh, 100dvh);
}

.tf-page-login .tf-login-stage {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: var(--tf-space-xl) var(--tf-space-md);
}

.tf-page-login .tf-login-card {
  margin-left: auto;
  margin-right: auto;
  padding: var(--tf-space-lg) var(--tf-space-xl);
  max-width: 24rem;
}

.tf-page-login .tf-btn-image {
  min-height: var(--tf-touch-min);
}

@media (max-width: 639px) {
  body.tf-page-login {
    background-position: center top;
  }

  .tf-page-login .tf-login-stage {
    padding-top: var(--tf-space-md);
    padding-bottom: var(--tf-space-lg);
  }
}

/* Header / Nav — 3 zonas, estado activo, breadcrumb contextual (Phase 2 refinement) */
/* Header: 3 zonas, logo only, densidad según BRANDING_ACTIONS_AND_COMPONENTS_SYSTEM §6 */
.tf-header {
  width: 100%;
  background: var(--tf-color-card-light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: var(--tf-space-lg);
}

.tf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  padding: 1rem var(--tf-space-xl);
  gap: var(--tf-space-md);
}

.tf-nav-left,
.tf-nav-center,
.tf-nav-right {
  display: flex;
  align-items: center;
  gap: var(--tf-space-md);
}

.tf-nav-center {
  flex: 0 0 auto;
  gap: var(--tf-space-lg);
}

.tf-nav-home {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--tf-ink);
  transition: color 0.15s ease;
}

.tf-nav-home:hover {
  color: var(--tf-color-primary);
}

.tf-nav-logo {
  display: block;
  height: 3.35rem;
  width: auto;
}

.tf-nav-link {
  font-family: var(--tf-font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--tf-color-text);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--tf-radius-default);
  border-bottom: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tf-nav-link:hover {
  color: var(--tf-color-primary);
  background: rgba(217, 4, 142, 0.06);
}

.tf-nav-link:focus-visible {
  outline: 2px solid var(--tf-color-primary);
  outline-offset: 2px;
}

.tf-nav-link.is-active {
  color: var(--tf-color-primary);
  background: rgba(217, 4, 142, 0.1);
  border-bottom-color: var(--tf-color-primary);
}

.tf-nav-link.is-active:hover {
  color: var(--tf-color-primary);
  background: rgba(217, 4, 142, 0.14);
  border-bottom-color: var(--tf-color-primary);
}

.tf-nav-logout {
  display: inline;
  margin: 0;
}

.tf-btn-nav {
  padding: 0.6rem 1.15rem;
  font-size: 1rem;
  font-weight: 600;
  border: var(--tf-border-width) solid var(--tf-color-border);
  box-shadow: var(--tf-shadow-sticker);
}

/* Menú de usuario (dropdown): icono + Perfil, Configuración, Cerrar sesión */
.tf-nav-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.tf-nav-user-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  background: var(--tf-card-bg, #fff);
  box-shadow: var(--tf-shadow-sticker);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--tf-ink);
}
.tf-nav-user-trigger:hover {
  box-shadow: var(--tf-shadow-hover);
}
.tf-nav-user-trigger[aria-expanded="true"] {
  box-shadow: var(--tf-shadow-hover);
}
.tf-nav-user-icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}
.tf-nav-user-dropdown {
  position: absolute;
  top: calc(100% + var(--tf-space-xs));
  right: 0;
  min-width: 10rem;
  padding: var(--tf-space-xs);
  background: var(--tf-card-bg, #fff);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  z-index: 100;
}
.tf-nav-user-dropdown[hidden] {
  display: none;
}
.tf-nav-user-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--tf-ink);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.25rem;
  font-family: var(--tf-font-body);
}
.tf-nav-user-item:hover {
  background: rgba(0, 0, 0, 0.06);
}
/* Ítems del menú usuario con [hidden] (p. ej. otros ítems): .tf-nav-user-item { display: block } puede anular hidden. */
.tf-nav-user-item[hidden] {
  display: none !important;
}
/* Panel admin: no depender solo de [hidden]; clases con !important para oculto/visible frente a .tf-nav-user-item. */
.tf-nav-user-item.tf-nav-admin-link:not(.tf-nav-admin-link--visible) {
  display: none !important;
}
.tf-nav-user-item.tf-nav-admin-link.tf-nav-admin-link--visible {
  display: block !important;
}
.tf-nav-user-logout {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}
.tf-nav-user-logout .tf-nav-user-item {
  margin-top: var(--tf-space-xs);
  padding-top: var(--tf-space-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Fase 2 Mobile: header colapsable (checkbox hack, sin JS). Panel con nav-center + nav-right. */
.tf-nav-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.tf-nav-burger {
  display: none;
}
.tf-nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: var(--tf-space-md);
}
@media (max-width: 640px) {
  .tf-nav {
    position: relative;
    flex-wrap: wrap;
  }
  .tf-nav-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tf-touch-min);
    min-width: var(--tf-touch-min);
    height: var(--tf-touch-min);
    min-height: var(--tf-touch-min);
    padding: 0;
    margin-left: auto;
    background: var(--tf-color-card-light);
    border: var(--tf-border-width) solid var(--tf-color-border);
    border-radius: var(--tf-radius-default);
    box-shadow: var(--tf-shadow-sticker);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--tf-ink);
  }
  .tf-nav-burger::before {
    content: '\2630';
  }
  .tf-nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--tf-color-card-light);
    padding: var(--tf-space-md);
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 101;
  }
  .tf-nav-checkbox:checked ~ .tf-nav-panel {
    display: flex;
  }
  .tf-nav-panel .tf-nav-center {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: var(--tf-space-sm);
    margin-bottom: var(--tf-space-sm);
  }
  .tf-nav-panel .tf-nav-center .tf-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    min-height: var(--tf-touch-min);
    box-sizing: border-box;
  }
  .tf-nav-panel .tf-nav-right {
    justify-content: flex-start;
  }
  .tf-nav-panel .tf-btn-nav {
    min-height: var(--tf-touch-min);
    padding: 0.75rem 1rem;
  }
}
@media (min-width: 641px) {
  .tf-nav-checkbox,
  .tf-nav-burger {
    display: none !important;
  }
  .tf-nav-panel {
    position: static;
    display: flex !important;
    flex: 1;
    justify-content: space-between;
  }
}

/* Barra contextual (breadcrumbs) — solo item y collection */
.tf-nav-context {
  padding: 0.5rem var(--tf-space-xl);
  background: var(--tf-color-bg-light);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
}

.tf-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tf-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tf-breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.15rem;
  margin-right: 0.2rem;
  color: var(--tf-color-text);
  opacity: 0.75;
  font-weight: 400;
}

.tf-breadcrumb a {
  color: var(--tf-color-primary);
  text-decoration: none;
  font-weight: 500;
}

.tf-breadcrumb a:hover {
  text-decoration: underline;
}

.tf-breadcrumb .tf-breadcrumb-current {
  color: var(--tf-color-text);
  font-weight: 600;
}

.tf-claim-form {
  display: flex;
  gap: var(--tf-space-sm);
  align-items: center;
  flex-wrap: wrap;
}

/* Reclamar: composición elegante (Fase C) */
.tf-dashboard-card-panel .tf-claim-form {
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-md);
}

.tf-dashboard-card-panel .tf-claim-form .tf-input {
  width: 100%;
  max-width: none;
  flex: 1;
  min-width: 0;
}

.tf-dashboard-card-panel .tf-claim-form .tf-btn-primary {
  align-self: flex-start;
}

.tf-claim-form .tf-input {
  flex: 1;
  min-width: 12rem;
}

.tf-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tf-items-list li {
  margin-bottom: var(--tf-space-sm);
}

.tf-dashboard .tf-card {
  margin-bottom: var(--tf-space-lg);
}

/* No pisar el hero: .tf-dashboard h1 tiene más especificidad que .tf-dashboard-hero-title solo por clase */
.tf-dashboard h1:not(.tf-dashboard-hero-title) {
  font-size: 1.75rem;
  margin-bottom: var(--tf-space-sm);
}

.tf-dashboard p {
  margin: var(--tf-space-xs) 0;
}

.tf-claim-error {
  display: none;
  color: var(--tf-color-primary);
  margin-top: var(--tf-space-sm);
  font-size: 0.9rem;
}

/* Dashboard — full width, composición en 3 bloques (cabecera → paneles → tus ítems) */
body.tf-page-dashboard {
  padding: 0;
}

/* Ajustes del club (/my/account): mismo reset de body que dashboard; estilos de bloque en sección dedicada abajo */
body.tf-page-account {
  padding: 0;
}

.tf-dashboard-page {
  max-width: none;
  width: 100%;
  /* Mockup dashboard: sombra dura y esquinas cuadradas solo en esta vista */
  --tf-dashboard-radius-strong: 0;
  --tf-dashboard-shadow-hard: 4px 4px 0 0 var(--tf-color-border);
  --tf-dashboard-border-strong: 3px solid var(--tf-color-border);
}

.tf-dashboard-main {
  padding-inline: var(--tf-space-lg);
  padding-block: var(--tf-space-lg);
  max-width: var(--tf-app-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Dashboard: main ~75% / sidebar mockup */
.tf-dashboard-layout {
  display: grid;
  grid-template-columns: 1fr minmax(15.5rem, 22%);
  gap: var(--tf-space-xl);
  align-items: start;
}

.tf-dashboard-main-col {
  min-width: 0;
}

/* Sidebar dashboard: superficie secundaria, no compite con la columna principal */
.tf-dashboard-sidebar {
  position: sticky;
  top: var(--tf-space-md);
  align-self: start;
  background: var(--tf-bg);
  border: 1px solid var(--tf-color-border-secondary);
  border-radius: var(--tf-dashboard-radius-strong);
  box-shadow: none;
  padding: 0;
}

.tf-dashboard-sidebar-inner {
  display: flex;
  flex-direction: column;
  padding: var(--tf-space-lg) var(--tf-space-md);
  gap: 0;
}

.tf-dashboard-sidebar-module {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--tf-color-border-secondary);
  padding-top: var(--tf-space-lg);
}

.tf-dashboard-sidebar-module:first-child {
  padding-top: 0;
  border-top: none;
}

.tf-dashboard-sidebar-module:last-child {
  padding-bottom: 0;
}

.tf-dashboard-sidebar-block--placeholder {
  padding-top: var(--tf-space-md);
  padding-bottom: var(--tf-space-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tf-dashboard-sidebar-block--placeholder:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.tf-dashboard-sidebar-title {
  font-family: var(--tf-font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  margin: 0 0 var(--tf-space-md) 0;
  color: var(--tf-ink);
  opacity: 0.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Módulo 1: estado del perfil (profile module — layout + jerarquía) */
.tf-dashboard-sidebar .tf-dashboard-sidebar-profile-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--tf-space-md);
}

.tf-dashboard-sidebar .tf-dashboard-sidebar-avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--tf-color-border-secondary);
}

.tf-dashboard-sidebar .tf-dashboard-sidebar-profile-body {
  flex: 1;
  min-width: 0;
}

.tf-dashboard-sidebar .tf-dashboard-sidebar-profile-identity {
  margin: 0 0 var(--tf-space-sm) 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--tf-ink);
  word-break: break-word;
}

.tf-dashboard-sidebar .tf-dashboard-sidebar-profile-email-meta {
  margin: 0 0 var(--tf-space-md) 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--tf-color-text);
  opacity: 0.62;
  word-break: break-all;
}

.tf-dashboard-sidebar .tf-dashboard-sidebar-profile-status {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--tf-ink);
  opacity: 0.72;
}

.tf-dashboard-sidebar .tf-dashboard-sidebar-profile-status-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.tf-dashboard-sidebar .tf-dashboard-sidebar-profile-status-link:hover {
  color: var(--tf-color-primary);
  opacity: 1;
  text-decoration: underline;
}

.tf-dashboard-sidebar .tf-dashboard-sidebar-profile-status-link:focus-visible {
  color: var(--tf-color-primary);
  opacity: 1;
  outline: 2px solid var(--tf-color-primary);
  outline-offset: 2px;
}

.tf-dashboard-sidebar .tf-dashboard-profile-email {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tf-ink);
}

/* Noticias (si reaparecen en sidebar) */
.tf-dashboard-sidebar .tf-dashboard-news-inner {
  min-height: 2rem;
}

.tf-dashboard-sidebar .tf-dashboard-news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tf-dashboard-sidebar .tf-dashboard-news-item {
  margin-bottom: var(--tf-space-sm);
  padding-bottom: var(--tf-space-sm);
  font-size: 0.875rem;
}

.tf-dashboard-sidebar .tf-dashboard-news-title {
  font-size: 0.875rem;
}

.tf-dashboard-sidebar .tf-dashboard-news-excerpt,
.tf-dashboard-sidebar .tf-dashboard-news-date {
  font-size: 0.75rem;
}

/* Accesos rápidos: lista legible, hover discreto (no pseudo-card) */
.tf-dashboard-sidebar .tf-dashboard-quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--tf-space-sm) + var(--tf-space-xs));
}

.tf-dashboard-sidebar .tf-dashboard-quick-links li {
  margin: 0;
}

.tf-dashboard-sidebar .tf-dashboard-quick-links a {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tf-ink);
  text-decoration: none;
  padding: 0.5rem 0.625rem;
  line-height: 1.45;
  border-radius: var(--tf-radius-default);
  border: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.tf-dashboard-sidebar .tf-dashboard-quick-links a:hover {
  color: var(--tf-color-primary);
  background-color: rgba(0, 0, 0, 0.045);
  text-decoration: none;
}

.tf-dashboard-sidebar .tf-dashboard-quick-links a:focus-visible {
  outline: 2px solid var(--tf-color-primary);
  outline-offset: 2px;
}

/* Reclamar: grupo compacto, borde sutil; CTA clara sin competir con el main */
.tf-dashboard-sidebar-module--claim .tf-dashboard-sidebar-title {
  margin-bottom: var(--tf-space-md);
}

.tf-dashboard-sidebar-claim-shell {
  margin-top: 0;
  padding: var(--tf-space-md) 0 0 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--tf-color-border-secondary);
  border-radius: 0;
  box-shadow: none;
}

.tf-dashboard-sidebar .tf-claim-form {
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-md);
  margin: 0;
}

.tf-dashboard-sidebar .tf-claim-form .tf-input {
  width: 100%;
}

.tf-dashboard-sidebar .tf-claim-form .tf-btn-primary {
  width: 100%;
  margin: 0;
  min-height: var(--tf-touch-min);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--tf-color-primary);
  color: #fff;
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-dashboard-radius-strong);
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tf-dashboard-sidebar .tf-claim-form .tf-btn-primary:hover {
  background: var(--tf-color-primary);
  color: #fff;
  box-shadow: none;
  border-color: var(--tf-color-border);
}

.tf-dashboard-sidebar .tf-claim-error {
  margin: var(--tf-space-sm) 0 0 0;
}

.tf-dashboard-activity-ver {
  margin-top: var(--tf-space-md);
  font-size: 0.875rem;
}

.tf-dashboard-activity-ver a {
  color: var(--tf-color-primary);
  text-decoration: none;
}

.tf-dashboard-activity-ver a:hover {
  text-decoration: underline;
}

/* Colección destacada: banda horizontal (mockup: icono | copy | CTA) */
.tf-dashboard-featured-block {
  margin-bottom: var(--tf-dashboard-section-gap);
  padding: 0;
  border-radius: var(--tf-dashboard-radius-strong);
}

.tf-dashboard-featured-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--tf-space-lg) var(--tf-space-xl);
  align-items: center;
  padding: clamp(1.35rem, 2.5vw, 2rem) clamp(1.25rem, 2.5vw, 2.25rem);
  min-height: 5.5rem;
}

@media (max-width: 719px) {
  .tf-dashboard-featured-band {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

.tf-dashboard-featured-icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-dashboard-radius-strong);
  box-shadow: var(--tf-dashboard-shadow-hard);
  position: relative;
}

.tf-dashboard-featured-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: 1.15rem;
  height: 1.45rem;
  background: var(--tf-color-primary);
  clip-path: polygon(50% 0%, 100% 100%, 50% 78%, 0 100%);
  opacity: 0.95;
}

.tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) .tf-dashboard-featured-icon::after {
  background: var(--tf-color-primary);
}

.tf-dashboard-featured-block--empty .tf-dashboard-featured-icon::after {
  opacity: 0.35;
}

.tf-dashboard-featured-copy-wrap {
  min-width: 0;
}

.tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) {
  background: var(--tf-color-primary);
  border: var(--tf-dashboard-border-strong);
  box-shadow: var(--tf-dashboard-shadow-hard);
  color: #fff;
}

.tf-dashboard-featured-block--empty {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--tf-color-border-secondary);
  box-shadow: var(--tf-shadow-flat-soft);
}

.tf-dashboard-featured-block--empty .tf-dashboard-featured-band {
  align-items: start;
}

.tf-dashboard-featured-block--empty h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 var(--tf-space-md) 0;
  color: var(--tf-ink);
}

.tf-dashboard-featured-value-line {
  margin: 0 0 var(--tf-space-sm) 0;
  font-size: 0.9375rem;
  color: var(--tf-color-text);
  opacity: 0.92;
}

.tf-dashboard-featured-block--empty .tf-dashboard-placeholder-line {
  margin: 0 0 var(--tf-space-md) 0;
  font-size: 0.9375rem;
  color: var(--tf-color-text);
}

.tf-dashboard-featured-block--empty .tf-dashboard-featured-empty-cta {
  margin-top: var(--tf-space-lg);
}

.tf-dashboard-featured-title,
.tf-dashboard-featured-block h2.tf-dashboard-featured-title {
  font-family: var(--tf-font-body);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  margin: 0 0 var(--tf-space-sm) 0;
  color: var(--tf-ink);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) h2.tf-dashboard-featured-title {
  color: #fff;
}

.tf-dashboard-featured-block p {
  margin: 0 0 var(--tf-space-sm) 0;
  font-size: 0.95rem;
  color: var(--tf-color-text);
}

.tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) p,
.tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) .tf-dashboard-featured-value-line {
  color: rgba(255, 255, 255, 0.94);
}

/* Contenido dinámico: en desktop, CTA a la derecha (3er párrafo con enlaces) */
@media (min-width: 720px) {
  .tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) #featured-collection-content {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.35rem 1.5rem;
    align-items: center;
  }

  .tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) #featured-collection-content > p:first-child {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) #featured-collection-content > p:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
  }

  .tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) #featured-collection-content > p:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    justify-self: end;
    text-align: right;
  }

  .tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) .tf-dashboard-featured-band {
    grid-template-columns: auto 1fr;
  }
}

.tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) .tf-btn-secondary {
  background: var(--tf-color-card-light);
  color: var(--tf-ink);
  border: var(--tf-border-width) solid var(--tf-color-border);
  box-shadow: var(--tf-dashboard-shadow-hard);
  border-radius: var(--tf-dashboard-radius-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
  padding: 0.55rem 1rem;
}

.tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) .tf-btn-secondary:hover {
  box-shadow: var(--tf-shadow-hover);
}

.tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) .tf-btn-tertiary {
  color: #fff;
  font-weight: 600;
}

.tf-dashboard-featured-block:not(.tf-dashboard-featured-block--empty) .tf-btn-tertiary:hover {
  color: #fff;
  text-decoration: underline;
}

.tf-dashboard-placeholder-line {
  font-size: 0.875rem;
  color: var(--tf-color-text);
  margin: 0 0 var(--tf-space-xs) 0;
}

.tf-dashboard-placeholder-line a {
  color: var(--tf-color-primary);
  text-decoration: none;
}

.tf-dashboard-placeholder-line a:hover {
  text-decoration: underline;
}

/* Historial reciente — bloque editorial (mockup), enlace al pie vía order */
.tf-dashboard-activity {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--tf-dashboard-section-gap);
  padding: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1.25rem, 2.5vw, 2rem);
  background: var(--tf-color-card-light);
  border: var(--tf-dashboard-border-strong);
  border-radius: var(--tf-dashboard-radius-strong);
  box-shadow: var(--tf-dashboard-shadow-hard);
}

.tf-dashboard-activity-title-row {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--tf-space-lg);
  padding-bottom: var(--tf-space-md);
  border-bottom: 1px solid var(--tf-color-border-secondary);
}

.tf-dashboard-activity-title {
  font-family: var(--tf-font-body);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  margin: 0;
  color: var(--tf-ink);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tf-dashboard-activity-inner {
  order: 2;
  min-height: 2rem;
}

.tf-dashboard-activity-ver-toda {
  order: 3;
  margin: var(--tf-space-lg) 0 0 0;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tf-color-text);
  opacity: 0.65;
}

.tf-dashboard-activity-ver-toda .tf-dashboard-activity-link {
  color: var(--tf-color-primary);
  opacity: 1;
}

.tf-dashboard-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tf-dashboard-activity-item {
  display: grid;
  grid-template-columns: 0.75rem 1fr auto;
  gap: var(--tf-space-md) var(--tf-space-lg);
  align-items: start;
  padding: var(--tf-space-lg) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-left: none;
  font-size: 0.9375rem;
  color: var(--tf-color-text);
}

.tf-dashboard-activity-item::before {
  content: '';
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.35rem;
  border: 1px solid var(--tf-color-border);
  flex-shrink: 0;
}

.tf-dashboard-activity-item:nth-child(3n + 1)::before {
  background: var(--tf-color-secondary);
}

.tf-dashboard-activity-item:nth-child(3n + 2)::before {
  background: var(--tf-color-primary);
}

.tf-dashboard-activity-item:nth-child(3n + 3)::before {
  background: #5bb3d9;
}

.tf-dashboard-activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* PASOS PASADOS (solo dashboard): iconos PNG acotados, grid estable, sin doble marcador ::before + img */
body.tf-page-dashboard .tf-dashboard-activity .tf-activity-title-icon {
  display: block;
  max-height: 2.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

body.tf-page-dashboard .tf-dashboard-activity .tf-dashboard-activity-item {
  grid-template-columns: minmax(0, 2.75rem) 1fr auto;
}

body.tf-page-dashboard .tf-dashboard-activity img.tf-dashboard-activity-marker {
  display: block;
  max-width: 2rem;
  max-height: 2rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

body.tf-page-dashboard .tf-dashboard-activity img.tf-dashboard-activity-marker--mint {
  max-width: 2.25rem;
  max-height: 2rem;
}

body.tf-page-dashboard .tf-dashboard-activity .tf-dashboard-activity-item:has(.tf-activity-marker--image)::before,
body.tf-page-dashboard .tf-dashboard-activity .tf-dashboard-activity-item:has(.tf-dashboard-activity-marker--mint)::before {
  content: none;
  display: none;
}

@media (max-width: 560px) {
  body.tf-page-dashboard .tf-dashboard-activity .tf-dashboard-activity-item {
    grid-template-columns: minmax(0, 2.75rem) 1fr;
  }
}

.tf-dashboard-activity-link {
  color: var(--tf-color-primary);
  text-decoration: none;
  font-weight: 600;
}

.tf-dashboard-activity-link:hover {
  text-decoration: underline;
}

.tf-dashboard-activity-date {
  color: var(--tf-color-text);
  opacity: 0.72;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-left: 0;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .tf-dashboard-activity-item {
    grid-template-columns: 0.75rem 1fr;
    grid-template-rows: auto auto;
  }

  .tf-dashboard-activity-date {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }
}

.tf-dashboard-activity-empty {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--tf-color-text);
  opacity: 0.85;
}

.tf-dashboard-activity-error {
  margin: 0;
  font-size: 0.875rem;
  color: var(--tf-color-text);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .tf-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .tf-dashboard-sidebar {
    position: static;
  }
}

/* Coherencia: ritmo vertical entre hero, grid y ítems (Fase F) */

/* Bloque 1: Hero — panel horizontal protagonista (mockup aprobado, tokens Tarumba) */
.tf-dashboard-hero {
  margin-bottom: var(--tf-dashboard-section-gap);
  padding: 0;
  background: var(--tf-color-card-light);
  border: var(--tf-dashboard-border-strong);
  border-radius: var(--tf-dashboard-radius-strong);
  box-shadow: var(--tf-dashboard-shadow-hard);
}

.tf-dashboard-hero-shell {
  display: grid;
  grid-template-columns: 1fr minmax(11rem, 16rem);
  gap: var(--tf-space-xl) var(--tf-space-xl);
  align-items: start;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 3vw, 2.75rem);
}

.tf-dashboard-hero-primary {
  min-width: 0;
}

.tf-dashboard-hero-aside {
  align-self: center;
  justify-self: end;
  text-align: right;
  width: 100%;
}

.tf-dashboard-hero-title {
  font-family: var(--tf-font-display);
  font-size: clamp(3rem, 7vw, 4.75rem);
  letter-spacing: 0.06em;
  margin: 0 0 var(--tf-space-lg) 0;
  color: var(--tf-color-primary);
  line-height: 1.05;
  text-transform: uppercase;
}

.tf-dashboard-hero-tagline {
  font-size: 0.875rem;
  color: var(--tf-color-text);
  margin: 0 0 var(--tf-space-lg) 0;
  opacity: 0.82;
  max-width: 42ch;
  line-height: 1.45;
}

.tf-dashboard-hero-summary {
  margin: 0 0 var(--tf-space-md) 0;
}

.tf-dashboard-hero-summary p {
  margin: 0;
}

.tf-dashboard-hero-stats-bar {
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.tf-dashboard-hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tf-space-md) var(--tf-space-xl);
  align-items: end;
}

.tf-dashboard-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 1rem;
  color: var(--tf-color-text);
}

.tf-dashboard-hero-stat-value {
  font-family: var(--tf-font-body);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  color: var(--tf-ink);
  line-height: 1;
  order: 2;
}

.tf-dashboard-hero-stats-inner .tf-dashboard-hero-stat:nth-child(1) .tf-dashboard-hero-stat-value {
  color: var(--tf-ink);
}

.tf-dashboard-hero-stats-inner .tf-dashboard-hero-stat:nth-child(2) .tf-dashboard-hero-stat-value {
  color: var(--tf-color-secondary-ink);
}

.tf-dashboard-hero-stats-inner .tf-dashboard-hero-stat:nth-child(3) .tf-dashboard-hero-stat-value {
  color: var(--tf-color-primary);
}

.tf-dashboard-hero-stat-label {
  font-family: var(--tf-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tf-ink);
  opacity: 0.88;
  order: 1;
}

.tf-dashboard-hero-cta {
  margin: var(--tf-space-xl) 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-sm) var(--tf-space-md);
  align-items: center;
}

.tf-dashboard-hero-cta .tf-btn-primary,
.tf-dashboard-hero-cta .tf-btn-secondary,
.tf-dashboard-hero-cta .tf-btn-tertiary {
  margin-top: 0;
  font-size: 1rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--tf-dashboard-radius-strong);
  box-shadow: var(--tf-dashboard-shadow-hard);
}

.tf-dashboard-hero-cta .tf-btn-secondary:hover {
  box-shadow: var(--tf-shadow-hover);
}

.tf-dashboard-hero-identity {
  margin: 0;
}

.tf-dashboard-hero-aside .tf-dashboard-hero-identity-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--tf-space-sm);
  text-align: right;
}

.tf-dashboard-hero-identity-inner {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tf-ink);
  line-height: 1.35;
}

.tf-dashboard-hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: var(--tf-border-width) solid var(--tf-color-border);
  object-fit: cover;
  vertical-align: middle;
  margin-right: 0;
  margin-bottom: var(--tf-space-xs);
  box-shadow: var(--tf-dashboard-shadow-hard);
}

.tf-dashboard-hero-identity-inner a {
  color: var(--tf-color-primary);
  font-weight: 600;
}

.tf-dashboard-hero-identity-inner a:hover {
  text-decoration: underline;
}

.tf-dashboard-hero-progress {
  margin-top: var(--tf-space-md);
  font-size: 0.8125rem;
  color: var(--tf-color-text);
  opacity: 0.72;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .tf-dashboard-hero-shell {
    grid-template-columns: 1fr;
  }

  .tf-dashboard-hero-aside {
    justify-self: start;
    text-align: left;
    order: -1;
  }

  .tf-dashboard-hero-aside .tf-dashboard-hero-identity-inner {
    align-items: flex-start;
    text-align: left;
  }

  .tf-dashboard-hero-stats-inner {
    grid-template-columns: 1fr;
    gap: var(--tf-space-md);
  }
}

.tf-dashboard-card-title--secondary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tf-color-text);
  opacity: 0.95;
}

/* Perfil: tarjeta de identidad (Fase B) */
.tf-dashboard-profile-card {
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-sm);
}

.tf-dashboard-profile-email {
  font-weight: 600;
  font-size: 1rem;
  color: var(--tf-ink);
  margin: 0;
  word-break: break-word;
}

.tf-dashboard-profile-count {
  margin: 0;
  font-size: 0.95rem;
  color: var(--tf-color-text);
}

.tf-dashboard-profile-count-num {
  font-weight: 600;
  color: var(--tf-ink);
}

.tf-dashboard-profile-id {
  margin: 0;
  font-size: 0.75rem;
  color: var(--tf-color-text);
  opacity: 0.75;
  font-family: var(--tf-font-body);
  word-break: break-all;
}

/* Bloque 2: Grid de paneles (Perfil, Reclamar, Noticias) */
.tf-dashboard-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--tf-space-lg);
  margin-bottom: var(--tf-space-xl);
}

@media (max-width: 900px) {
  .tf-dashboard-panels {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .tf-dashboard-panels {
    grid-template-columns: 1fr;
  }
}

.tf-dashboard-card-panel {
  margin-bottom: 0;
}

.tf-dashboard-card-panel .tf-dashboard-card-title {
  font-size: 1.05rem;
  margin-bottom: var(--tf-space-sm);
}

/* Noticias: fallback elegante cuando no hay noticias (Fase D) */
.tf-dashboard-news-inner {
  min-height: 5rem;
}

/* Placeholder vacío elegante (sistema §3.6) */
.tf-dashboard-news-fallback {
  margin: 0;
  padding: var(--tf-space-lg) var(--tf-space-md);
  font-size: 0.95rem;
  color: var(--tf-color-text);
  opacity: 0.9;
  font-style: italic;
  border-left: 3px solid var(--tf-color-tertiary);
  padding-left: var(--tf-space-lg);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0 var(--tf-radius-default) var(--tf-radius-default) 0;
  line-height: 1.5;
}

.tf-dashboard-card-title {
  font-family: var(--tf-font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 var(--tf-space-sm) 0;
  color: var(--tf-ink);
}

.tf-dashboard-empty {
  color: var(--tf-color-text);
  opacity: 0.85;
  margin: 0;
}

.tf-dashboard-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tf-dashboard-news-item {
  margin-bottom: var(--tf-space-md);
  padding-bottom: var(--tf-space-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tf-dashboard-news-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tf-dashboard-news-title {
  display: block;
  font-size: 0.95rem;
  margin-bottom: var(--tf-space-xs);
}

.tf-dashboard-news-excerpt {
  font-size: 0.85rem;
  margin: 0 0 var(--tf-space-xs) 0;
  color: var(--tf-color-text);
  opacity: 0.9;
}

.tf-dashboard-news-date {
  font-size: 0.75rem;
  color: var(--tf-color-text);
  opacity: 0.7;
}

/* Bloque 3: Tus ítems — galería tipo mockup (grid + cards) */
.tf-dashboard-items-section {
  background: var(--tf-color-card-light);
  border: var(--tf-dashboard-border-strong);
  border-radius: var(--tf-dashboard-radius-strong);
  box-shadow: var(--tf-dashboard-shadow-hard);
  padding: var(--tf-space-xl) var(--tf-space-lg);
  margin-top: 0;
  margin-bottom: var(--tf-dashboard-section-gap);
}

.tf-dashboard-items-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--tf-space-lg);
  padding-bottom: var(--tf-space-md);
  border-bottom: 1px solid var(--tf-color-border-secondary);
}

.tf-dashboard-items-title {
  font-family: var(--tf-font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--tf-ink);
  text-transform: uppercase;
  line-height: 1.05;
}

/* Toggle colapsable: más presencia e indicador de estado */
.tf-dashboard-collapse-toggle {
  font-family: var(--tf-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--tf-color-primary, #1a1a1a);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  border-radius: var(--tf-radius-default);
  text-decoration: underline;
  transition: background-color 0.15s ease;
}

.tf-dashboard-collapse-toggle:hover {
  text-decoration: none;
  background: rgba(217, 4, 142, 0.06);
}

.tf-dashboard-collapse-toggle:focus-visible {
  outline: 2px solid var(--tf-color-primary);
  outline-offset: 2px;
}

.tf-dashboard-collapse-toggle[aria-expanded="true"]::after {
  content: ' \25BC';
  font-size: 0.75em;
  margin-left: 0.2rem;
  opacity: 0.85;
}

.tf-dashboard-collapse-toggle[aria-expanded="false"]::after {
  content: ' \25B6';
  font-size: 0.75em;
  margin-left: 0.2rem;
  opacity: 0.85;
}

/* Botón herramienta (ocultar/mostrar): cuadrado mockup; el texto lo actualiza el JS (a11y) */
.tf-dashboard-collapse-toggle.tf-dashboard-collapse-toggle--tool {
  min-width: var(--tf-touch-min);
  min-height: var(--tf-touch-min);
  padding: 0 0.65rem;
  margin: 0;
  text-decoration: none;
  border: var(--tf-dashboard-border-strong);
  border-radius: var(--tf-dashboard-radius-strong);
  box-shadow: var(--tf-dashboard-shadow-hard);
  background: var(--tf-color-card-light);
  color: var(--tf-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: box-shadow 0.12s ease;
}

.tf-dashboard-collapse-toggle.tf-dashboard-collapse-toggle--tool:hover {
  text-decoration: none;
  background: var(--tf-color-card-light);
  box-shadow: var(--tf-shadow-hover);
}

.tf-dashboard-collapse-toggle.tf-dashboard-collapse-toggle--tool:focus-visible {
  outline: 2px solid var(--tf-color-primary);
  outline-offset: 2px;
}

.tf-dashboard-items-cta {
  margin: var(--tf-space-md) 0 0 0;
}

.tf-dashboard-items-inner {
  min-height: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tf-dashboard-items-empty {
  margin: 0;
  padding: var(--tf-space-md) 0;
  font-size: 0.95rem;
  color: var(--tf-color-text);
  opacity: 0.85;
}

.tf-dashboard-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tf-space-lg);
}

@media (min-width: 640px) {
  .tf-dashboard-items-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .tf-dashboard-items-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .tf-dashboard-items-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.tf-dashboard-item-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: var(--tf-space-sm);
  min-height: 0;
  background: var(--tf-color-card-light);
  border: var(--tf-dashboard-border-strong);
  border-radius: var(--tf-dashboard-radius-strong);
  box-shadow: var(--tf-dashboard-shadow-hard);
}

.tf-dashboard-item-row:last-child {
  margin-bottom: 0;
}

.tf-dashboard-item-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--tf-space-sm);
  min-width: 0;
  flex: 1;
}

.tf-dashboard-item-thumb {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: var(--tf-dashboard-radius-strong);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  border: var(--tf-border-width) solid var(--tf-color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.tf-dashboard-item-thumb-placeholder {
  background: var(--tf-color-tertiary);
  opacity: 0.6;
}

.tf-dashboard-item-row .tf-dashboard-item-name {
  text-decoration: none;
  color: var(--tf-ink);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
  transition: color 0.15s ease;
  padding: 0 var(--tf-space-xs) var(--tf-space-xs);
}

.tf-dashboard-item-row .tf-dashboard-item-name:hover {
  color: var(--tf-color-primary);
}

.tf-dashboard-item-name {
  font-weight: 700;
  color: var(--tf-ink);
  font-size: 0.9375rem;
}

/* Badge sobre la imagen (mockup); handwriting según sistema */
.tf-dashboard-item-row .tf-badge {
  position: absolute;
  top: var(--tf-space-md);
  right: var(--tf-space-md);
  z-index: 2;
  flex-shrink: 0;
  font-family: var(--tf-font-handwriting);
  font-size: 0.72rem;
  font-weight: 400;
  padding: 0.2rem 0.45rem;
  border-radius: var(--tf-dashboard-radius-strong);
  border: var(--tf-border-width) solid var(--tf-color-border);
  color: var(--tf-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 1px 1px 0 0 var(--tf-color-border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tf-dashboard-item-row--claimed .tf-badge {
  background: var(--tf-color-secondary);
  color: #fff;
  border-color: var(--tf-color-border);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

/* TUS PIEZAS: marco del thumb + sello Pepe como acento acotado (no asset a resolución nativa) */
body.tf-page-dashboard .tf-dashboard-item-visual {
  position: relative;
  width: 100%;
}

body.tf-page-dashboard .tf-dashboard-item-stamp-pepe {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  width: min(32%, 4.25rem);
  max-width: 4.25rem;
  max-height: 4.25rem;
  height: auto;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}

/* Colección destacada: estrella dentro del hueco del icono; sin rombo ::after encima */
body.tf-page-dashboard .tf-dashboard-featured-icon:has(.tf-dashboard-featured-icon-image)::after {
  display: none;
}

body.tf-page-dashboard .tf-dashboard-featured-icon-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0.2rem;
  box-sizing: border-box;
  object-fit: contain;
  display: block;
}

/* Galería — Ancho completo y chrome (body sin padding para nav/footer full width) */
body.tf-page-gallery {
  padding: 0;
}

/* Galería: controles y CTAs con esquinas cuadradas (scope exclusivo body.tf-page-gallery) */
body.tf-page-gallery .tf-btn-primary,
body.tf-page-gallery .tf-btn-secondary,
body.tf-page-gallery .tf-btn-tertiary,
body.tf-page-gallery .tf-btn-nav,
body.tf-page-gallery .tf-gallery-state-btn,
body.tf-page-gallery .tf-gallery-filter-btn,
body.tf-page-gallery .tf-gallery-sort-select,
body.tf-page-gallery .tf-gallery-filter-select,
body.tf-page-gallery .tf-gallery-chip,
body.tf-page-gallery .tf-gallery-clear-filters,
body.tf-page-gallery .tf-gallery-card-ver-item,
body.tf-page-gallery .tf-gallery-card-btn-claim,
body.tf-page-gallery .tf-gallery-card-btn-mint,
body.tf-page-gallery .tf-nft-block .tf-btn-primary,
body.tf-page-gallery .tf-nft-block .tf-btn-secondary {
  border-radius: 0;
}

/* Galería: cajas contenedoras con esquinas cuadradas (sidebar, tarjetas, marco de imagen, banner) */
body.tf-page-gallery .tf-gallery-sidebar,
body.tf-page-gallery .tf-gallery-card,
body.tf-page-gallery .tf-gallery-card-image-wrap,
body.tf-page-gallery .tf-gallery-card-image-frame,
body.tf-page-gallery .tf-gallery-card-image-frame .tf-gallery-card-image,
body.tf-page-gallery .tf-gallery-card-image,
body.tf-page-gallery .tf-gallery-page > .tf-card,
body.tf-page-gallery .tf-nft-block {
  border-radius: 0;
}

.tf-gallery-page {
  max-width: var(--tf-app-max);
  flex: 1;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--tf-app-padding);
  padding-block: var(--tf-space-sm);
}

.tf-gallery-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--tf-space-lg);
  align-items: start;
}

/* Panel de cuenta /my/account — layout dos columnas (sidebar + contenido) */
.tf-account-page {
  max-width: var(--tf-app-max);
  flex: 1;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--tf-app-padding);
  padding-block: var(--tf-space-lg);
}

.tf-account-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 52rem);
  gap: var(--tf-space-xl);
  align-items: start;
}

.tf-account-sidebar {
  position: sticky;
  top: var(--tf-space-md);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  padding: var(--tf-space-md) var(--tf-space-lg);
}

.tf-account-sidebar-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tf-ink);
  opacity: 0.9;
  margin: 0 0 var(--tf-space-md) 0;
  font-family: var(--tf-font-body);
  line-height: 1.3;
}

.tf-account-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-account-nav-item {
  margin: 0 0 var(--tf-space-xs) 0;
}

.tf-account-nav-item--group-start {
  margin-top: var(--tf-space-lg);
  padding-top: var(--tf-space-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tf-account-nav-item a {
  display: block;
  padding: 0.5rem var(--tf-space-md);
  line-height: 1.35;
  font-family: var(--tf-font-body);
  font-size: 0.95rem;
  color: var(--tf-ink);
  text-decoration: none;
  border-radius: var(--tf-radius-default);
}

.tf-account-nav-item a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.tf-account-nav-item a.is-active,
.tf-account-nav-item a[aria-current="page"] {
  background: var(--tf-color-tertiary);
  color: var(--tf-ink);
  font-weight: 700;
}

.tf-account-nav-item + .tf-account-nav-item {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: var(--tf-space-xs);
  padding-top: var(--tf-space-xs);
}

.tf-account-sidebar .tf-account-sidebar-logout {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: var(--tf-space-lg);
  padding-top: var(--tf-space-md);
}

.tf-account-sidebar-logout-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  font-family: var(--tf-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tf-color-text);
  opacity: 0.75;
  text-decoration: none;
}

.tf-account-sidebar-logout-btn:hover {
  opacity: 1;
  text-decoration: underline;
}

.tf-account-panel {
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  padding: var(--tf-space-xl);
  min-height: 12rem;
}

.tf-account-panel-inner {
  max-width: 52rem;
}

.tf-account-section {
  display: none;
}

.tf-account-section.is-visible {
  display: block;
}

@media (max-width: 640px) {
  .tf-account-layout {
    grid-template-columns: 1fr;
  }

  .tf-account-sidebar {
    position: static;
  }
}

/* —— Ajustes del club: nav ícono a la izquierda + label alineado (solo body.tf-page-account).
   .tf-account-nav-item a { display: block } ganaba a .tf-account-nav-link; hay que vencer con scope + doble clase. —— */
body.tf-page-account .tf-account-nav-item a.tf-account-nav-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: var(--tf-space-md);
  width: 100%;
  box-sizing: border-box;
}

body.tf-page-account .tf-account-nav-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  display: block;
}

body.tf-page-account .tf-account-nav-label {
  flex: 1;
  min-width: 0;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.tf-account-section-lead {
  margin-bottom: var(--tf-space-lg);
}

.tf-account-section-lead--tight {
  margin-bottom: var(--tf-space-md);
}

.tf-account-privacy-status-block {
  margin-bottom: var(--tf-space-lg);
  padding: var(--tf-space-md) var(--tf-space-lg);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.tf-account-privacy-status-label {
  margin: 0 0 var(--tf-space-xs) 0;
  font-size: 0.875rem;
  color: var(--tf-color-text);
}

.tf-account-privacy-status-block .tf-privacy-status-value {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--tf-ink);
}

.tf-account-privacy-url-block {
  margin-top: var(--tf-space-md);
}

.tf-account-privacy-url-hint {
  margin: 0 0 var(--tf-space-xs) 0;
}

.tf-account-privacy-public-url {
  margin: 0 0 var(--tf-space-sm) 0;
  font-size: 0.95rem;
  word-break: break-all;
  color: var(--tf-ink);
}

.tf-account-privacy-view-cta {
  display: inline-block;
}

.tf-account-privacy-alcance {
  margin-bottom: var(--tf-space-lg);
  max-width: 52ch;
}

.tf-account-privacy-activity-wrap {
  margin-top: var(--tf-space-md);
}

.tf-account-alta-logout-form {
  margin-top: var(--tf-space-md);
}

body.tf-page-account .tf-account-sidebar,
body.tf-page-account .tf-account-panel,
body.tf-page-account .tf-account-nav-item a,
body.tf-page-account .tf-account-sidebar-logout-btn,
body.tf-page-account .tf-btn-primary,
body.tf-page-account .tf-btn-secondary,
body.tf-page-account .tf-input,
body.tf-page-account textarea.tf-input,
body.tf-page-account .tf-gallery-filter-select,
body.tf-page-account .tf-profile-edit-select,
body.tf-page-account .tf-account-privacy-status-block,
body.tf-page-account .tf-account-wallet-block,
body.tf-page-account .tf-nft-block.tf-account-wallet-block {
  border-radius: 0;
}

/* Phase 2B: Sidebar — jerarquía clara, más presencia (Product Polish) */
.tf-gallery-sidebar {
  position: sticky;
  top: var(--tf-space-md);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  padding: var(--tf-space-lg);
}

.tf-gallery-sidebar .tf-gallery-hero {
  margin-bottom: var(--tf-space-sm);
  padding: 0 0 var(--tf-space-sm) 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tf-gallery-sidebar .tf-gallery-hero-title {
  font-family: var(--tf-font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--tf-ink);
  margin: 0 0 0.25rem 0;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Galería: hero alineado al peso del dashboard (display primario) */
.tf-page-gallery .tf-gallery-sidebar .tf-gallery-hero-title {
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--tf-color-primary);
}

.tf-gallery-sidebar .tf-gallery-hero-subtitle {
  font-size: 0.875rem;
  color: var(--tf-color-text);
  opacity: 0.88;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
}

.tf-gallery-sidebar .tf-gallery-hero-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tf-ink);
  opacity: 0.92;
  margin: 0;
  line-height: 1.3;
}

.tf-page-gallery .tf-gallery-sidebar .tf-gallery-hero {
  margin-bottom: var(--tf-space-md);
  padding-bottom: var(--tf-space-md);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.tf-page-gallery .tf-gallery-sidebar .tf-gallery-hero-count {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tf-ink);
  opacity: 1;
}

.tf-gallery-sidebar-filter,
.tf-gallery-sidebar-state,
.tf-gallery-sidebar-sort {
  margin-top: 0;
  margin-bottom: var(--tf-space-sm);
  padding-bottom: var(--tf-space-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tf-page-gallery .tf-gallery-sidebar-filter,
.tf-page-gallery .tf-gallery-sidebar-state {
  margin-bottom: var(--tf-space-md);
  padding-bottom: var(--tf-space-md);
}

.tf-gallery-sidebar-sort {
  border-bottom: none;
  padding-bottom: 0;
  margin-top: var(--tf-space-md);
  margin-bottom: var(--tf-space-xs);
  padding-top: var(--tf-space-md);
  border-top: 2px solid rgba(0, 0, 0, 0.12);
}

.tf-page-gallery .tf-gallery-sidebar-sort {
  margin-top: var(--tf-space-lg);
  padding-top: var(--tf-space-lg);
}

.tf-page-gallery .tf-gallery-sidebar-label {
  margin-bottom: 0.45rem;
}

.tf-gallery-sidebar-filter .tf-gallery-filter {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  flex-direction: column;
}

.tf-gallery-sidebar-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tf-color-text);
  opacity: 0.85;
  margin: 0 0 0.35rem 0;
}

.tf-gallery-state {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-sm);
}

.tf-gallery-state-btn {
  padding: 0.4rem 0.8rem;
  font-family: var(--tf-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tf-color-text);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  cursor: pointer;
  transition: box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.tf-gallery-state-btn:hover {
  box-shadow: var(--tf-shadow-hover);
}

.tf-gallery-state-btn.is-active {
  background: var(--tf-color-primary);
  color: white;
  box-shadow: 2px 2px 0 0 var(--tf-color-border), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.tf-gallery-sort-select,
.tf-gallery-filter-select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.35rem 0.6rem;
  font-family: var(--tf-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tf-color-text);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tf-gallery-sort-select:hover,
.tf-gallery-filter-select:hover {
  box-shadow: var(--tf-shadow-hover);
}

.tf-gallery-sort-select:focus,
.tf-gallery-filter-select:focus {
  outline: 2px solid var(--tf-color-primary);
  outline-offset: 2px;
}

.tf-gallery-filters-active {
  margin-top: var(--tf-space-sm);
  margin-bottom: 0;
}

.tf-gallery-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tf-space-xs);
}

.tf-gallery-chip {
  font-size: 0.8rem;
  padding: 0.2rem 0.45rem;
  background: var(--tf-color-tertiary);
  border: 1px solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  color: var(--tf-color-text);
}

.tf-gallery-clear-filters {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  font-family: var(--tf-font-body);
  font-weight: 500;
  color: var(--tf-color-text);
  background: transparent;
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.tf-gallery-clear-filters:hover {
  background: var(--tf-color-bg-light);
}

.tf-gallery-result-count {
  font-size: 0.9rem;
  color: var(--tf-color-text);
  margin: 0;
  opacity: 0.9;
}

.tf-page-gallery .tf-gallery-result-count {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tf-ink);
  opacity: 0.95;
  letter-spacing: 0.02em;
}

/* Galería Phase 2B: main sin cabecera redundante, toolbar mínimo, composición limpia */
.tf-gallery-main-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--tf-space-sm);
  margin-bottom: var(--tf-space-md);
  min-height: 1.25rem;
  padding-bottom: 0;
  border: none;
}

.tf-page-gallery .tf-gallery-main-toolbar {
  padding-bottom: var(--tf-space-sm);
  margin-bottom: var(--tf-space-md);
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  min-height: 0;
}

/* Main galería: superficie protagonista (sistema §3.8) */
.tf-gallery-main {
  min-width: 0;
  background: var(--tf-color-card-light);
  padding: var(--tf-space-lg);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
}

.tf-page-gallery .tf-gallery-main {
  padding: var(--tf-space-md) var(--tf-space-lg) var(--tf-space-lg);
}

@media (max-width: 768px) {
  .tf-gallery-layout {
    grid-template-columns: 1fr;
  }

  .tf-gallery-sidebar {
    position: static;
  }
}

/* Galería — Hero (dentro del sidebar) */
.tf-gallery-hero {
  margin-bottom: var(--tf-space-xl);
  padding: var(--tf-space-xl) var(--tf-space-lg);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
}

.tf-gallery-hero-title {
  font-family: var(--tf-font-display);
  font-size: 2.25rem;
  letter-spacing: 0.02em;
  margin: 0 0 var(--tf-space-md) 0;
  color: var(--tf-ink);
}

.tf-gallery-hero-subtitle {
  font-size: 1rem;
  color: var(--tf-color-text);
  margin: 0 0 var(--tf-space-xs) 0;
  opacity: 0.95;
}

.tf-gallery-hero-count {
  font-size: 0.95rem;
  color: var(--tf-color-text);
  margin: 0;
  opacity: 0.9;
}

.tf-gallery-empty {
  margin: var(--tf-space-lg) 0;
  text-align: center;
  color: var(--tf-color-text);
}

/* Galería por colección — ritmo tenso, sin aire muerto */
.tf-gallery-wrap {
  display: block;
  margin-top: 0;
  padding-top: 0;
}

.tf-gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-sm);
  margin-bottom: var(--tf-space-lg);
  padding-bottom: var(--tf-space-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.tf-gallery-filter-btn {
  padding: 0.4rem 0.8rem;
  font-family: var(--tf-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tf-color-text);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.tf-gallery-filter-btn:hover {
  box-shadow: var(--tf-shadow-hover);
}

.tf-gallery-filter-btn.is-active {
  background: var(--tf-color-primary);
  color: white;
  box-shadow: 2px 2px 0 0 var(--tf-color-border), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Phase 2B: Bloque de colección como protagonista — cabecera editorial del contenido */
.tf-gallery-section {
  margin-bottom: var(--tf-space-xl);
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.tf-page-gallery .tf-gallery-section {
  margin-bottom: var(--tf-space-lg);
}

.tf-gallery-section:first-child .tf-gallery-section-header {
  margin-top: 0;
}

.tf-gallery-section-header {
  margin-bottom: var(--tf-space-lg);
  margin-top: 0;
  padding-bottom: var(--tf-space-sm);
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

.tf-page-gallery .tf-gallery-section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--tf-space-xs);
  margin-bottom: var(--tf-space-md);
  padding-bottom: var(--tf-space-sm);
}

.tf-gallery-section-title {
  font-family: var(--tf-font-display);
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  letter-spacing: 0.02em;
  margin: 0 0 var(--tf-space-xs) 0;
  color: var(--tf-ink);
  line-height: 1.2;
  font-weight: 600;
}

.tf-gallery-section-meta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tf-color-text);
  opacity: 0.9;
  margin: 0;
}

.tf-gallery-section-collection-link {
  display: inline-block;
  margin-top: var(--tf-space-xs);
  font-family: var(--tf-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tf-color-primary);
  text-decoration: none;
}

.tf-gallery-section-collection-link:hover {
  text-decoration: underline;
}

.tf-page-gallery .tf-gallery-section-title {
  font-size: clamp(1.55rem, 2.9vw, 2.05rem);
  letter-spacing: 0.03em;
}

.tf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tf-grid-collectibles-min), 1fr));
  gap: var(--tf-grid-collectibles-gap);
}

/* Galería (/gallery): máximo 4 columnas y más aire en el main (no afecta colección ni :root grid vars) */
.tf-page-gallery .tf-gallery-main .tf-gallery-grid {
  grid-template-columns: 1fr;
  gap: calc(var(--tf-space-xl) + var(--tf-space-xs));
}

@media (min-width: 640px) {
  .tf-page-gallery .tf-gallery-main .tf-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .tf-page-gallery .tf-gallery-main .tf-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .tf-page-gallery .tf-gallery-main .tf-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tf-gallery-section.is-single-item .tf-gallery-grid {
  max-width: 260px;
}

.tf-page-gallery .tf-gallery-section.is-single-item .tf-gallery-grid {
  max-width: 340px;
}

/* Phase 2B: Cards elegantes — pieza coleccionable, relación imagen/footer cuidada */
.tf-gallery-card {
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  padding: var(--tf-space-md);
  transition: box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tf-page-gallery .tf-gallery-card {
  padding: var(--tf-space-lg);
  box-shadow: var(--tf-shadow-hover);
}

.tf-page-gallery .tf-gallery-card:hover {
  box-shadow: 4px 4px 0 0 var(--tf-color-border);
}

.tf-gallery-card:hover {
  box-shadow: var(--tf-shadow-hover);
}

/* Clase común para zoom en imágenes de coleccionables (dashboard, gallery, collection, item) */
.tf-collectible-image-wrapper {
  cursor: pointer;
}
.tf-collectible-image-wrapper:focus-visible {
  outline: 3px solid var(--tf-color-primary);
  outline-offset: 2px;
}

.tf-gallery-card-image-wrap {
  position: relative;
  margin-bottom: var(--tf-space-sm);
  border-radius: 0;
  overflow: hidden;
  background: var(--tf-color-bg-light);
  cursor: pointer;
  flex-shrink: 0;
}

.tf-gallery-card-image-wrap:focus-visible {
  outline: 3px solid var(--tf-color-primary);
  outline-offset: 2px;
}

.tf-page-gallery .tf-gallery-card-image-wrap {
  margin-bottom: var(--tf-space-md);
}

.tf-gallery-card-image-frame {
  padding: 6px;
  margin: 0;
  border-radius: 0;
  background: var(--tf-color-bg-light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  min-height: 0;
}

.tf-page-gallery .tf-gallery-card-image-frame {
  border: var(--tf-border-width) solid var(--tf-color-border-secondary);
  padding: var(--tf-space-sm);
}

.tf-gallery-card-image-frame .tf-gallery-card-image {
  border-radius: 0;
}

.tf-gallery-card-image-placeholder {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--tf-color-text);
  opacity: 0.65;
  aspect-ratio: 1;
}

.tf-gallery-card-link {
  color: var(--tf-ink);
  text-decoration: none;
  font: inherit;
}

.tf-gallery-card-link:hover {
  text-decoration: underline;
}

.tf-gallery-card-ver-item {
  display: inline-block;
  margin-top: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tf-ink);
  background: var(--tf-color-secondary);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.tf-gallery-card-ver-item:hover {
  box-shadow: var(--tf-shadow-hover);
}

.tf-gallery-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.tf-gallery-card-title {
  font-family: var(--tf-font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  color: var(--tf-ink);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.tf-page-gallery .tf-gallery-card .tf-gallery-card-title {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: var(--tf-space-md);
}

.tf-gallery-card-collection {
  font-size: 0.8rem;
  color: var(--tf-color-text);
  opacity: 0.85;
  margin-bottom: var(--tf-space-xs);
}

.tf-gallery-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
  padding-top: 0.25rem;
  margin-top: auto;
}

/* Phase 2B: Estados y CTAs con intención — badge y botón legibles de un vistazo */
.tf-gallery-card-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--tf-color-border);
  border-radius: var(--tf-radius-sticker);
  color: var(--tf-ink);
  background: rgba(0, 0, 0, 0.04);
  font-family: var(--tf-font-body);
}

/* Galería: badge sobre la imagen (zoom sigue en el wrapper; badge sin pointer-events) */
.tf-page-gallery .tf-gallery-card-image-wrap .tf-gallery-card-badge {
  position: absolute;
  top: var(--tf-space-sm);
  right: var(--tf-space-sm);
  z-index: 2;
  pointer-events: none;
  align-self: unset;
  max-width: min(11rem, calc(100% - var(--tf-space-md)));
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--tf-shadow-sticker);
  background: var(--tf-color-card-light);
}

.tf-gallery-card-actions {
  margin-top: 0.25rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.tf-page-gallery .tf-gallery-card-actions {
  align-items: stretch;
  width: 100%;
  margin-top: var(--tf-space-sm);
  gap: var(--tf-space-sm);
}

.tf-page-gallery .tf-gallery-card-ver-item,
.tf-page-gallery .tf-gallery-card-btn-claim {
  width: 100%;
  max-width: 15rem;
  align-self: center;
  box-sizing: border-box;
  text-align: center;
  margin-top: 0;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.875rem;
}

.tf-page-gallery .tf-gallery-card-btn-mint,
.tf-page-gallery .tf-nft-block .tf-btn-secondary.tf-nft-cta-connect {
  width: 100%;
  max-width: 15rem;
  align-self: center;
  box-sizing: border-box;
  text-align: center;
}

.tf-gallery-card-btn-claim {
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.tf-gallery-card-claim-msg {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--tf-color-text);
  opacity: 0.9;
}

.tf-gallery-card-claim-msg--error {
  color: var(--tf-color-primary);
  opacity: 1;
}

/* Bloque NFT (galería, ficha ítem, colección) — BRANDING_ACTIONS_AND_COMPONENTS_SYSTEM; precondiciones NFT */
.tf-nft-block {
  margin-top: var(--tf-space-sm);
  padding-top: var(--tf-space-sm);
  border-top: 1px solid var(--tf-color-border-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-xs);
  align-items: flex-start;
}

.tf-nft-block-label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tf-ink);
  line-height: 1.3;
}

.tf-nft-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-sm);
  align-items: center;
}

.tf-nft-block-error {
  margin: 0;
  font-size: 0.75rem;
  color: var(--tf-color-error);
  line-height: 1.3;
}

.tf-gallery-card-nft {
  margin-top: 0.25rem;
  padding-top: 0.35rem;
}

.tf-gallery-card-btn-mint {
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.tf-item-nft-wrap {
  margin-top: var(--tf-space-md);
  padding: var(--tf-space-md);
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--tf-radius-default);
  border: 1px solid var(--tf-color-border-secondary);
}

.tf-wallet-connect-block {
  margin-top: var(--tf-space-md);
  max-width: 36rem;
}

.tf-wallet-intro {
  margin-bottom: var(--tf-space-sm);
}

/* Zoom de imagen (galería) */
.tf-image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--tf-space-lg);
  padding-block: calc(2.75rem + var(--tf-space-sm));
}

.tf-zoom-close {
  position: absolute;
  top: var(--tf-space-lg);
  right: var(--tf-space-lg);
  z-index: 1001;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--tf-ink);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-zoom-close:hover {
  box-shadow: var(--tf-shadow-hover);
}

.tf-zoom-close::after {
  content: '\00d7';
}

.tf-image-zoom-img {
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
}

/* Galería — footer fino al final del contenido (no sticky) */
.tf-gallery-footer {
  margin-top: auto;
  padding: var(--tf-space-sm) var(--tf-space-lg);
  font-size: 0.8rem;
  color: var(--tf-color-text);
  opacity: 0.85;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--tf-color-card-light);
}

/* Pie de página común (dashboard, gallery, item, collection) para coherencia de chrome */
.tf-app-footer {
  margin-top: auto;
  padding: var(--tf-space-sm) var(--tf-app-padding);
  font-size: 0.8rem;
  color: var(--tf-color-text);
  opacity: 0.85;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--tf-color-card-light);
}

/* ========== Fase 2 Mobile system (EXEC_REPORT_PHASE2_MOBILE_AUDIT) ==========
   Reglas comunes: padding móvil, touch targets, controles, apilado.
   Breakpoint 768px para contenido; 640px para header colapsado (arriba). */
@media (max-width: 768px) {
  .tf-dashboard-main,
  .tf-gallery-page,
  body.tf-page-item .tf-item-page,
  .tf-page-collection .tf-collection-page {
    padding-inline: var(--tf-app-padding-mobile);
  }
  .tf-nav-context {
    padding-left: var(--tf-app-padding-mobile);
    padding-right: var(--tf-app-padding-mobile);
  }
  .tf-btn-primary,
  .tf-btn-secondary,
  .tf-btn-nav {
    min-height: var(--tf-touch-min);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-sizing: border-box;
  }
  .tf-nav-link {
    min-height: var(--tf-touch-min);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-sizing: border-box;
  }
  .tf-input {
    min-height: var(--tf-touch-min);
    padding: 0.75rem;
    box-sizing: border-box;
  }
  .tf-gallery-sort-select,
  .tf-gallery-filter-select {
    min-height: var(--tf-touch-min);
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
  }
  .tf-gallery-card-ver-item,
  .tf-gallery-card-btn-claim {
    min-height: var(--tf-touch-min);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
  }
  .tf-breadcrumb a {
    min-height: var(--tf-touch-min);
    padding: 0.5rem 0.25rem;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }
  .tf-app-footer {
    padding-left: var(--tf-app-padding-mobile);
    padding-right: var(--tf-app-padding-mobile);
  }
  /* Fase C: por vista (EXEC_REPORT_PHASE2_MOBILE_AUDIT); Phase 5: título hero proporcionalmente fuerte */
  .tf-dashboard-hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  }
  .tf-dashboard-hero-tagline {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
  }
  .tf-gallery-grid {
    --tf-grid-collectibles-min: 160px;
  }
  .tf-gallery-filter-btn {
    min-height: var(--tf-touch-min);
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
  }
  .tf-item-image-frame {
    padding: var(--tf-space-md);
  }
  .tf-collection-hero {
    padding-left: var(--tf-app-padding-mobile);
    padding-right: var(--tf-app-padding-mobile);
  }
  body.tf-page-collection #collection-hero.tf-collection-hero {
    padding-left: var(--tf-app-padding-mobile);
    padding-right: var(--tf-app-padding-mobile);
  }
  .tf-collection-hero-inner {
    grid-template-columns: 1fr;
  }
  .tf-collection-context-inner {
    grid-template-columns: 1fr;
    padding: var(--tf-space-md);
  }
  .tf-collection-context-visual {
    min-height: 160px;
  }
  body.tf-page-collection .tf-collection-items {
    padding: var(--tf-space-md);
  }
  .tf-collection-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
  }
  body.tf-page-collection #collection-hero .tf-collection-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

/* Página del ítem — ficha de coleccionable premium (ancho útil completo según BRANDING) */
body.tf-page-item {
  padding: 0;
}

body.tf-page-item .tf-item-page {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-inline: var(--tf-app-padding);
  flex: 1;
}

.tf-item-page {
  max-width: none;
  width: 100%;
}

.tf-item-loading,
.tf-item-not-found {
  padding: var(--tf-space-xl) 0;
  text-align: center;
  color: var(--tf-color-text);
}

.tf-item-not-found .tf-btn-primary {
  margin-top: var(--tf-space-md);
}

.tf-item-content {
  padding: var(--tf-space-xl) 0;
}

.tf-item-back {
  margin: 0 0 var(--tf-space-xl) 0;
}

.tf-item-back-link {
  color: var(--tf-color-primary);
  font-size: 0.95rem;
  text-decoration: none;
}

.tf-item-back-link:hover {
  text-decoration: underline;
}

/* Grid dos columnas: pieza (izq) | narrativa (der). Fase G: más aire y proporción */
.tf-item-ficha-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .tf-item-ficha-grid {
    /* ~42% visual / ~58% contenido: más aire horizontal para título, lore y datos */
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
  }

  /* Equilibrio desktop: imagen protagonista sin exceso de altura; meta compacta; remate de acciones */
  body.tf-page-item .tf-item-image-frame {
    padding: clamp(1.25rem, 2.25vw, 2rem);
  }

  body.tf-page-item .tf-item-image {
    aspect-ratio: unset;
    max-height: min(28rem, 58vh);
    width: auto;
    max-width: 100%;
    margin-inline: auto;
  }

  body.tf-page-item .tf-item-actions-wrap {
    margin-top: var(--tf-space-sm);
    padding-top: var(--tf-space-lg);
    padding-bottom: var(--tf-space-xl);
    border-top: 2px solid var(--tf-ink);
    border-bottom: none;
  }

  body.tf-page-item .tf-item-nft-wrap {
    margin-top: var(--tf-space-lg);
  }
}

/* Columna izquierda: pieza protagonista (Fase A) */
.tf-item-ficha-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tf-item-image-frame {
  flex-shrink: 0;
  background: var(--tf-color-card-light);
  border: 3px solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: var(--tf-shadow-sticker), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
}

.tf-item-image-frame.is-zoomable {
  cursor: pointer;
}

.tf-item-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0;
}

/* Badge de estado sobre el marco (paridad lectura con galería; zoom sigue en el wrapper) */
.tf-item-image-frame .tf-item-badge {
  position: absolute;
  top: var(--tf-space-sm);
  right: var(--tf-space-sm);
  z-index: 2;
  pointer-events: none;
  max-width: min(12rem, calc(100% - var(--tf-space-md)));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: var(--tf-shadow-sticker);
  background: var(--tf-color-card-light);
}

.tf-item-badge {
  display: inline-block;
  margin: 0;
  font-size: 0.75rem;
  font-family: var(--tf-font-body);
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--tf-color-border);
  border-radius: var(--tf-radius-sticker);
  color: var(--tf-ink);
  background: rgba(0, 0, 0, 0.04);
}

/* Bloque colección: bajo el título, enlace protagonista */
.tf-item-collection-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  margin: 0 0 var(--tf-space-md) 0;
  padding-bottom: var(--tf-space-md);
  border-bottom: 1px solid var(--tf-color-border-secondary);
}

.tf-item-collection-block .tf-item-collection-label {
  font-family: var(--tf-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tf-color-text);
  opacity: 0.7;
  margin: 0;
}

.tf-item-collection-link {
  font-family: var(--tf-font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tf-color-primary);
  text-decoration: none;
}

.tf-item-collection-link:hover {
  text-decoration: underline;
}

/* Columna derecha: jerarquía editorial — título → colección → estado/código → lore → datos → acciones → NFT */
.tf-item-ficha-content {
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-sm);
  min-width: 0;
}

.tf-item-title {
  font-family: var(--tf-font-display);
  font-size: clamp(2.35rem, 6.5vw, 4.25rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 var(--tf-space-md) 0;
  color: var(--tf-ink);
  line-height: 1.05;
}

.tf-item-subtitle {
  font-family: var(--tf-font-handwriting);
  font-size: 0.95rem;
  color: var(--tf-color-text);
  margin: 0 0 var(--tf-space-lg) 0;
  opacity: 0.82;
}

.tf-item-belonging {
  margin: 0 0 var(--tf-space-md) 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--tf-color-text);
  opacity: 0.88;
  max-width: 52ch;
}

.tf-item-basic-cta {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--tf-color-text);
}

.tf-item-basic-cta .tf-btn-primary {
  display: inline-block;
  margin-top: var(--tf-space-xs);
}

/* Lore: módulo editorial (borde + sticker; etiqueta tipo pestaña en el borde) */
.tf-item-lore-wrap {
  position: relative;
  margin: var(--tf-space-md) 0 var(--tf-space-md) 0;
  padding: calc(var(--tf-space-lg) + 0.35rem) var(--tf-space-lg) var(--tf-space-lg);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  background: var(--tf-color-card-light);
  box-shadow: var(--tf-shadow-sticker);
}

.tf-item-lore-label {
  position: absolute;
  top: 0;
  left: var(--tf-space-md);
  transform: translateY(-50%);
  font-family: var(--tf-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  padding: 0.25rem 0.5rem;
  color: var(--tf-color-card-light);
  background: var(--tf-ink);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: 0;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.12);
}

.tf-item-lore {
  font-family: var(--tf-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0;
  color: var(--tf-color-text);
  max-width: 60ch;
  font-weight: 500;
  letter-spacing: 0.012em;
}

.tf-item-lore--placeholder {
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--tf-color-text);
  opacity: 0.72;
  padding: 0;
}

/* Metadatos: grid compacto secundario (celdas .tf-item-meta-group vía JS) */
.tf-item-meta-wrap {
  padding: var(--tf-space-md) 0 var(--tf-space-lg) 0;
  border-bottom: 1px solid var(--tf-color-border-secondary);
}

.tf-item-meta-label {
  font-family: var(--tf-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tf-color-text);
  opacity: 0.55;
  margin: 0 0 var(--tf-space-sm) 0;
}

.tf-item-meta-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tf-space-sm);
  font-size: 0.8125rem;
}

.tf-item-meta-group {
  margin: 0;
  padding: var(--tf-space-sm) var(--tf-space-md);
  border: 1px solid var(--tf-color-border-secondary);
  border-radius: var(--tf-radius-default);
  background: rgba(0, 0, 0, 0.025);
}

.tf-item-meta-list dt {
  margin: 0 0 0.2rem 0;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tf-color-text);
  opacity: 0.72;
}

.tf-item-meta-list dd {
  margin: 0;
  color: var(--tf-ink);
  opacity: 0.92;
  font-weight: 500;
  word-break: break-word;
}

/* Ficha ítem: bloque datos más compacto y secundario (todas las anchuras) */
body.tf-page-item .tf-item-meta-wrap {
  padding: var(--tf-space-sm) 0 var(--tf-space-md) 0;
}

body.tf-page-item .tf-item-meta-label {
  font-size: 0.65rem;
  opacity: 0.5;
  margin-bottom: var(--tf-space-xs);
}

body.tf-page-item .tf-item-meta-list {
  gap: 0.45rem;
  font-size: 0.78rem;
}

body.tf-page-item .tf-item-meta-group {
  padding: 0.4rem 0.55rem;
}

body.tf-page-item .tf-item-meta-list dt {
  font-size: 0.6rem;
  opacity: 0.65;
}

body.tf-page-item .tf-item-meta-list dd {
  font-size: 0.8125rem;
  opacity: 0.86;
}

@media (max-width: 480px) {
  .tf-item-meta-list {
    grid-template-columns: 1fr;
  }
}

/* Acciones: CTA directo sin aspecto “panel” */
.tf-item-actions-wrap {
  padding: var(--tf-space-md) 0 var(--tf-space-lg) 0;
  border-bottom: 1px solid var(--tf-color-border-secondary);
}

.tf-item-actions-label {
  font-family: var(--tf-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tf-color-text);
  opacity: 0.65;
  margin: 0 0 var(--tf-space-sm) 0;
}

.tf-item-actions-wrap:has(#item-resend-wrap) .tf-item-actions-label,
.tf-item-actions-wrap:has(.tf-item-basic-cta) .tf-item-actions-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tf-item-actions-wrap:has(#item-resend-wrap),
.tf-item-actions-wrap:has(.tf-item-basic-cta) {
  position: relative;
}

.tf-item-resend-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-xs);
}

.tf-item-resend-msg {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.tf-item-resend-msg--error {
  color: var(--tf-color-error);
}

/* Mint: módulo futura fase (sistema §3.6), menos peso visual que contenido actual */
.tf-item-mint-placeholder {
  margin-top: var(--tf-space-md);
  padding: var(--tf-space-md) var(--tf-space-lg);
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--tf-radius-default);
  text-align: center;
}

.tf-item-mint-label {
  font-family: var(--tf-font-body);
  font-size: 0.9rem;
  margin: 0 0 var(--tf-space-xs) 0;
  color: var(--tf-color-text);
  opacity: 0.85;
}

.tf-item-mint-hint {
  font-size: 0.8125rem;
  margin: 0;
  opacity: 0.65;
  color: var(--tf-color-text);
  line-height: 1.4;
}

/* Responsive: ficha apilada en estrecho (Fase G); breakpoint 768 alineado con gallery */
@media (max-width: 768px) {
  .tf-item-ficha-visual {
    order: 1;
  }

  .tf-item-ficha-content {
    order: 2;
  }

  .tf-item-image-frame {
    padding: var(--tf-space-lg);
  }

  .tf-item-title {
    font-size: clamp(1.9rem, 7.5vw, 3rem);
    margin-bottom: 0;
  }

  .tf-item-subtitle {
    margin-bottom: var(--tf-space-md);
  }

  .tf-item-collection-block {
    margin-bottom: 0;
    padding-bottom: var(--tf-space-sm);
  }

  .tf-item-lore-wrap {
    padding-left: var(--tf-space-md);
    padding-right: var(--tf-space-md);
    padding-bottom: var(--tf-space-md);
    padding-top: calc(var(--tf-space-md) + 0.35rem);
  }
}

/* Página de colección — Phase 3: full width estable, hero con carácter, narrativa editorial */
body.tf-page-collection {
  padding: 0;
}

.tf-page-collection .tf-collection-page {
  max-width: none;
  width: 100%;
  flex: 1;
  padding-inline: var(--tf-app-padding);
  padding-block: var(--tf-space-md);
}

.tf-collection-loading,
.tf-collection-not-found {
  padding: var(--tf-space-xl) 0;
  text-align: center;
  color: var(--tf-color-text);
}

.tf-collection-not-found .tf-btn-primary {
  margin-top: var(--tf-space-md);
}

/* Contenedor interno estable: mismo techo que resto de vistas (--tf-app-max) */
.tf-collection-content {
  width: 100%;
  max-width: var(--tf-app-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--tf-space-xl) 0;
}

.tf-collection-back {
  margin: 0 0 var(--tf-space-md) 0;
}

.tf-collection-back-link {
  color: var(--tf-color-primary);
  font-size: 0.95rem;
  text-decoration: none;
}

.tf-collection-back-link:hover {
  text-decoration: underline;
}

/* Hero colección / perfil: base compartida (perfil usa .tf-profile-hero.tf-collection-hero para padding) */
.tf-collection-hero {
  margin-bottom: calc(var(--tf-space-xl) * 1.5);
  padding: var(--tf-space-hero-py) var(--tf-space-xl);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
}

/* Página /collection: hero con rejilla título + estado (no afecta perfil público) */
body.tf-page-collection #collection-hero.tf-collection-hero {
  margin-bottom: calc(var(--tf-space-xl) * 1.75);
  padding: var(--tf-space-xl) var(--tf-space-xl);
}

.tf-collection-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: var(--tf-space-xl);
  align-items: start;
}

.tf-collection-hero-primary {
  min-width: 0;
}

.tf-collection-hero-aside {
  min-width: 0;
  padding: var(--tf-space-md) var(--tf-space-lg);
  background: var(--tf-color-bg-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: 3px 3px 0 0 var(--tf-color-border);
}

body.tf-page-collection #collection-hero .tf-collection-title {
  font-size: clamp(2.85rem, 7.5vw, 4.35rem);
  margin-bottom: var(--tf-space-md);
}

body.tf-page-collection #collection-hero .tf-collection-hero-subtitle {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  max-width: 52ch;
}

body.tf-page-collection .tf-collection-hero-aside .tf-collection-belonging:first-child {
  margin-top: 0;
}

body.tf-page-collection .tf-collection-hero-aside .tf-collection-meta:last-child {
  margin-bottom: 0;
}

.tf-collection-title {
  font-family: var(--tf-font-display);
  font-size: clamp(2.5rem, 6.5vw, 3.75rem);
  letter-spacing: 0.02em;
  margin: 0 0 var(--tf-space-sm) 0;
  color: var(--tf-ink);
  line-height: 1.1;
}

.tf-collection-hero-subtitle {
  margin: 0 0 var(--tf-space-xs) 0;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--tf-color-text);
  max-width: 60ch;
}

.tf-collection-belonging {
  margin: 0 0 var(--tf-space-xs) 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tf-color-secondary, #7CFC00);
}

.tf-collection-progress-wrap {
  margin: 0 0 var(--tf-space-xs) 0;
  font-size: 0.9375rem;
  color: var(--tf-color-text);
}

.tf-collection-meta {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--tf-color-text);
  opacity: 0.9;
}

/* Prose: ancho de lectura consistente en toda la página */
.tf-collection-prose {
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--tf-color-text);
}

.tf-collection-prose p {
  margin: 0 0 var(--tf-space-md) 0;
}

.tf-collection-prose p:last-child {
  margin-bottom: 0;
}

/* Bloque contexto: columna visual decorativa (sin asset de API) + narrativa */
body.tf-page-collection .tf-collection-context {
  margin-bottom: calc(var(--tf-space-xl) * 1.6);
}

.tf-collection-context-heading {
  font-family: var(--tf-font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.02em;
  margin: 0 0 var(--tf-space-md) 0;
  color: var(--tf-ink);
  font-weight: 600;
}

.tf-collection-context-inner {
  display: grid;
  grid-template-columns: minmax(200px, 0.95fr) minmax(0, 1.25fr);
  gap: var(--tf-space-xl);
  align-items: stretch;
  padding: var(--tf-space-lg);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
}

.tf-collection-context-visual {
  min-height: 200px;
  border-radius: 0;
  border: var(--tf-border-width) solid var(--tf-color-border);
  background:
    linear-gradient(145deg, rgba(217, 4, 142, 0.35) 0%, transparent 45%),
    linear-gradient(215deg, rgba(124, 252, 0, 0.35) 0%, transparent 42%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 14px,
      rgba(0, 0, 0, 0.04) 14px,
      rgba(0, 0, 0, 0.04) 15px
    ),
    var(--tf-color-bg-light);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.tf-collection-context-copy {
  min-width: 0;
}

body.tf-page-collection .tf-collection-context-copy .tf-collection-prose {
  max-width: none;
}

body.tf-page-collection .tf-collection-context-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  padding-left: var(--tf-space-md);
  border-left: 3px solid var(--tf-color-primary);
  margin-bottom: var(--tf-space-lg);
}

body.tf-page-collection .tf-collection-context-subheading.tf-collection-section-heading {
  margin-top: var(--tf-space-sm);
  margin-bottom: var(--tf-space-sm);
  font-size: 1.3rem;
}

/* Grid de ítems: módulo “la colección” con cabecera y cards alineadas a galería */
body.tf-page-collection .tf-collection-items {
  margin-top: 0;
  margin-bottom: calc(var(--tf-space-xl) * 1.5);
  padding: var(--tf-space-xl) var(--tf-space-lg);
  background: var(--tf-color-bg-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.08);
}

body.tf-page-collection .tf-collection-items-header {
  margin-bottom: var(--tf-space-lg);
  padding-bottom: var(--tf-space-md);
  border-bottom: 2px solid var(--tf-color-border);
}

.tf-collection-items-heading {
  font-family: var(--tf-font-display);
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  margin: 0 0 var(--tf-space-lg) 0;
  color: var(--tf-ink);
  font-weight: 600;
}

body.tf-page-collection .tf-collection-items-heading {
  font-size: clamp(1.55rem, 3.5vw, 2.05rem);
  margin: 0;
}

.tf-collection-page .tf-gallery-grid {
  margin-top: 0;
}

body.tf-page-collection .tf-collection-page .tf-gallery-card {
  padding: var(--tf-space-lg);
  box-shadow: var(--tf-shadow-sticker);
}

body.tf-page-collection .tf-collection-page .tf-gallery-card:hover {
  box-shadow: 4px 4px 0 0 var(--tf-color-border);
}

body.tf-page-collection .tf-collection-page .tf-gallery-card-image-wrap {
  margin-bottom: var(--tf-space-md);
}

body.tf-page-collection .tf-collection-page .tf-gallery-card-image-frame {
  border: var(--tf-border-width) solid var(--tf-color-border-secondary);
  padding: var(--tf-space-sm);
}

/* Alineado a tratamiento de estados vacíos (ej. .tf-dashboard-news-fallback) */
.tf-collection-empty {
  margin: 0;
  padding: var(--tf-space-lg) var(--tf-space-md);
  font-size: 0.95rem;
  color: var(--tf-color-text);
  opacity: 0.9;
  font-style: italic;
  border-left: 3px solid var(--tf-color-tertiary);
  padding-left: var(--tf-space-lg);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0 var(--tf-radius-default) var(--tf-radius-default) 0;
  line-height: 1.5;
}

/* Secciones editoriales compartidas */
.tf-collection-section {
  margin-bottom: var(--tf-space-xl);
  padding: var(--tf-space-md) 0;
}

.tf-collection-section-heading {
  font-family: var(--tf-font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  margin: 0 0 var(--tf-space-md) 0;
  color: var(--tf-ink);
  font-weight: 600;
}

.tf-collection-section .tf-collection-prose {
  margin-top: 0;
}

/* Cómo funciona: superficie mint / secundario acotada (solo página colección) */
body.tf-page-collection .tf-collection-how.tf-collection-section {
  margin-bottom: calc(var(--tf-space-xl) * 1.35);
  padding: var(--tf-space-xl);
  background: linear-gradient(
    160deg,
    rgba(124, 252, 0, 0.14) 0%,
    var(--tf-color-card-light) 45%,
    var(--tf-color-card-light) 100%
  );
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
}

body.tf-page-collection .tf-collection-how .tf-collection-section-heading {
  margin-bottom: var(--tf-space-md);
}

body.tf-page-collection .tf-collection-how .tf-collection-prose {
  max-width: 62ch;
}

/* Fase 4 — Perfil público /u/:slug */
.tf-page-profile .tf-app {
  padding: 0 var(--tf-app-padding);
  width: 100%;
  max-width: var(--tf-app-max);
}

.tf-profile-loading,
.tf-profile-not-found {
  padding: var(--tf-space-xl);
  text-align: center;
}

.tf-profile-not-found a {
  margin-top: var(--tf-space-md);
  display: inline-block;
}

.tf-profile-hero.tf-collection-hero {
  padding: var(--tf-space-lg) var(--tf-space-xl);
}

.tf-profile-hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-xl);
  align-items: flex-start;
}

.tf-profile-avatar-wrap {
  flex-shrink: 0;
}

.tf-profile-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--tf-radius-default);
  border: var(--tf-border-width) solid var(--tf-color-border);
  box-shadow: var(--tf-shadow-sticker);
}

.tf-profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: var(--tf-radius-default);
  border: var(--tf-border-width) solid var(--tf-color-border);
  box-shadow: var(--tf-shadow-sticker);
  background: var(--tf-color-tertiary);
  color: var(--tf-color-primary);
  font-family: var(--tf-font-display);
  font-size: 3rem;
  line-height: 1;
}

.tf-profile-hero-text {
  flex: 1;
  min-width: 200px;
}

.tf-profile-title.tf-collection-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--tf-space-xs);
}

.tf-profile-collecting-since {
  margin: 0 0 var(--tf-space-sm) 0;
  font-size: 0.9rem;
  color: var(--tf-color-text);
  opacity: 0.85;
}

.tf-profile-bio {
  margin: 0;
}

.tf-profile-section {
  margin-bottom: var(--tf-dashboard-section-gap);
}

.tf-profile-section:last-of-type {
  margin-bottom: 0;
}

#profile-featured .tf-profile-featured-inner {
  padding: var(--tf-space-lg);
  text-align: center;
}

#profile-featured .tf-profile-featured-title {
  font-family: var(--tf-font-display);
  font-size: 1.5rem;
  margin: 0 0 var(--tf-space-md) 0;
}

#profile-featured .tf-profile-featured-inner .tf-btn-primary {
  display: inline-block;
}

.tf-profile-featured-desc {
  margin: 0 0 var(--tf-space-md) 0;
  font-size: 0.95rem;
  color: var(--tf-color-text);
  opacity: 0.9;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.tf-profile-own-actions-wrap {
  padding: var(--tf-space-md) 0;
}

.tf-profile-own-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-md);
  align-items: center;
}

.tf-profile-own-actions .tf-btn-primary,
.tf-profile-own-actions .tf-btn-secondary {
  display: inline-block;
}

.tf-profile-social-wrap {
  padding: 0;
}

.tf-profile-social-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tf-space-md);
}

.tf-profile-social-counts {
  margin: 0;
  font-size: 0.95rem;
  color: var(--tf-color-text, #333);
}

.tf-profile-follow-cta-wrap .tf-btn-secondary {
  display: inline-block;
}

.tf-profile-follow-error {
  margin: var(--tf-space-xs) 0 0 0;
  font-size: 0.875rem;
  color: var(--tf-color-text, #333);
}

.tf-profile-visibility-note {
  margin-top: var(--tf-space-lg);
  padding: var(--tf-space-lg) var(--tf-space-xl);
  background: var(--tf-color-card-light);
  border-radius: var(--tf-radius-default);
  border: var(--tf-border-width) solid var(--tf-color-border);
}

.tf-profile-visibility-note .tf-collection-section-heading,
.tf-profile-about .tf-profile-about-heading {
  margin-bottom: var(--tf-space-sm);
}

.tf-profile-about .tf-profile-about-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tf-color-text);
  opacity: 0.85;
}

.tf-profile-empty-card .tf-profile-empty-text,
.tf-profile-empty-text {
  margin: 0 0 var(--tf-space-xs) 0;
  font-size: 0.95rem;
  color: var(--tf-color-text);
}

.tf-profile-empty-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--tf-color-text);
  opacity: 0.8;
}

.tf-profile-activity-empty {
  margin-bottom: var(--tf-space-sm);
}

.tf-profile-panel {
  margin-top: var(--tf-space-md);
}

.tf-profile-panel-loading,
.tf-profile-panel-empty {
  padding: var(--tf-space-lg);
  color: var(--tf-color-text);
}

.tf-profile-panel-empty p {
  margin: 0;
  font-size: 0.95rem;
}

.tf-profile-panel-list .tf-activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tf-profile-visibility-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--tf-color-text);
  opacity: 0.9;
  max-width: 55ch;
}

.tf-profile-collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tf-grid-collectibles-min), 1fr));
  gap: var(--tf-grid-collectibles-gap);
}

.tf-profile-collection-card.tf-card {
  padding: var(--tf-space-lg);
  min-height: 120px;
  display: flex;
  align-items: stretch;
}

.tf-profile-collection-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.tf-profile-collection-card .tf-gallery-card-title {
  margin: 0 0 var(--tf-space-sm) 0;
}

.tf-profile-collection-card .tf-gallery-card-ver-item,
.tf-profile-collection-card a.tf-btn-primary {
  margin-top: var(--tf-space-sm);
  display: inline-block;
}

.tf-profile-collection-private-msg {
  margin: var(--tf-space-sm) 0 0 0;
  font-size: 0.85rem;
  color: var(--tf-color-text);
  opacity: 0.9;
  max-width: 32ch;
}

.tf-profile-empty-state {
  padding: var(--tf-space-xl);
  text-align: center;
  max-width: 40ch;
  margin: 0 auto;
}

.tf-profile-collection-card.tf-card .tf-profile-collection-card-inner .tf-gallery-card-ver-item {
  margin-top: var(--tf-space-md);
}

.tf-profile-edit-hint {
  margin: var(--tf-space-xs) 0 0 0;
  font-size: 0.85rem;
  color: var(--tf-color-text);
  opacity: 0.85;
}

.tf-profile-edit-checkbox {
  display: flex;
  align-items: center;
  gap: var(--tf-space-sm);
  cursor: pointer;
}

.tf-profile-edit-checkbox input {
  width: auto;
}

.tf-collection-summary {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--tf-color-text);
  max-width: 60ch;
}

/* Cierre “Y después” — base; variante capítulo en página colección */
.tf-collection-editorial {
  margin-top: var(--tf-space-xl);
  padding: var(--tf-space-xl) 0 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
}

.tf-collection-editorial .tf-collection-section-heading {
  margin-bottom: var(--tf-space-md);
}

.tf-collection-editorial .tf-collection-prose {
  margin: 0;
}

body.tf-page-collection .tf-collection-chapter-next.tf-collection-editorial {
  margin-top: 0;
  padding: 0;
  border-top: none;
  background: transparent;
}

.tf-collection-chapter-next-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 220px);
  gap: var(--tf-space-lg);
  align-items: stretch;
  padding: var(--tf-space-xl);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  overflow: hidden;
}

.tf-collection-chapter-next-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tf-collection-chapter-next-copy .tf-collection-section-heading {
  margin-bottom: var(--tf-space-sm);
}

.tf-collection-chapter-next-copy .tf-collection-prose {
  max-width: 58ch;
}

.tf-collection-chapter-next-accent {
  border-radius: 0;
  border: var(--tf-border-width) solid var(--tf-color-border);
  min-height: 140px;
  background:
    linear-gradient(125deg, var(--tf-ink) 0%, #252525 38%, rgba(217, 4, 142, 0.85) 100%),
    var(--tf-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .tf-collection-chapter-next-inner {
    grid-template-columns: 1fr;
  }

  .tf-collection-chapter-next-accent {
    min-height: 100px;
    order: -1;
  }
}

/* /collections — layout full width (vista principal del panel) */
body.tf-page-collections {
  padding: 0;
  margin: 0;
}

body.tf-page-collections .tf-app.tf-collections-page {
  max-width: none;
  width: 100%;
  padding-block: var(--tf-space-md);
}

/* /collectors — layout full width (vista principal del panel) */
body.tf-page-collectors {
  padding: 0;
  margin: 0;
}

body.tf-page-collectors .tf-app.tf-collectors-page {
  max-width: none;
  width: 100%;
  padding-block: var(--tf-space-md);
}

.tf-collections-hero-lead,
.tf-collectors-hero-lead {
  max-width: 65ch;
}

/* Fase 5.4 — Páginas colecciones, coleccionistas, actividad, listas seguidores/siguiendo */
.tf-collections-page .tf-collections-hero,
.tf-collectors-page .tf-collectors-hero,
.tf-activity-page .tf-activity-hero,
.tf-profile-list-page .tf-profile-list-hero {
  margin-bottom: var(--tf-dashboard-section-gap);
  padding: var(--tf-space-hero-py) var(--tf-space-xl);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
}

.tf-collections-page .tf-collections-hero .tf-collection-title,
.tf-collectors-page .tf-collectors-hero .tf-collection-title,
.tf-activity-page .tf-activity-hero .tf-collection-title {
  font-family: var(--tf-font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 var(--tf-space-sm) 0;
  letter-spacing: 0.02em;
}

.tf-collections-page .tf-collections-hero .tf-collection-prose,
.tf-collectors-page .tf-collectors-hero .tf-collection-prose {
  margin: 0;
  font-size: 1rem;
  color: var(--tf-color-text);
  opacity: 0.9;
}

/* /collectors — hero reforzado (solo esta ruta; collections/activity conservan el bloque compartido anterior).
   Valores alineados al hero del dashboard; vars --tf-dashboard-* no aplican fuera de .tf-dashboard-page. */
.tf-collectors-page .tf-collectors-hero {
  border: 3px solid var(--tf-color-border);
  border-radius: 0.125rem;
  box-shadow: 4px 4px 0 0 var(--tf-color-border);
  padding: clamp(1.5rem, 3.5vw, 2.75rem) var(--tf-space-xl);
}

.tf-collectors-page .tf-collectors-hero .tf-collection-title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tf-color-primary);
  margin: 0 0 var(--tf-space-md) 0;
}

.tf-collectors-page .tf-collectors-hero .tf-collection-prose.tf-collectors-hero-lead {
  font-size: 0.875rem;
  line-height: 1.45;
  max-width: 42ch;
  opacity: 0.82;
}

/* /collections — escena decorativa hero (Rebeca persiguiendo a Pepe); solo esta ruta */
body.tf-page-collections .tf-collections-page .tf-collections-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, min(34vw, 17.5rem));
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  align-items: center;
  padding-right: clamp(1rem, 3vw, 2.25rem);
}

body.tf-page-collections .tf-collections-hero-text {
  min-width: 0;
}

body.tf-page-collections .tf-collections-hero-scene {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 17.5rem;
  height: clamp(6.5rem, 16vw, 10.5rem);
  max-height: 10.5rem;
  pointer-events: none;
  transform: translateX(-6%);
}

body.tf-page-collections .tf-collections-hero-scene img {
  position: absolute;
  bottom: 0;
  height: auto;
  width: auto;
  max-height: 100%;
  max-width: 58%;
  object-fit: contain;
  object-position: bottom center;
}

/* Rebeca detrás / persiguiendo; Pepe delante, más a la derecha (va delante) */
body.tf-page-collections .tf-collections-hero-scene-keka {
  left: 2%;
  z-index: 1;
  transform: scale(0.92);
  transform-origin: bottom left;
}

body.tf-page-collections .tf-collections-hero-scene-pepe {
  right: 0;
  z-index: 2;
  max-width: 62%;
}

@media (max-width: 52rem) {
  body.tf-page-collections .tf-collections-page .tf-collections-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: var(--tf-space-md);
    padding-right: var(--tf-space-xl);
  }

  body.tf-page-collections .tf-collections-hero-scene {
    justify-self: center;
    max-width: 15rem;
    height: clamp(5.5rem, 22vw, 8.5rem);
    max-height: 8.5rem;
    transform: none;
  }
}

@media (max-width: 22rem) {
  body.tf-page-collections .tf-collections-hero-scene img.tf-collections-hero-scene-keka {
    display: none;
  }

  body.tf-page-collections .tf-collections-hero-scene img.tf-collections-hero-scene-pepe {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: 85%;
    max-height: 100%;
    margin-inline: auto;
    display: block;
  }

  body.tf-page-collections .tf-collections-hero-scene {
    height: clamp(4.5rem, 38vw, 6.5rem);
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
}

.tf-collections-loading,
.tf-collectors-loading,
.tf-activity-loading {
  padding: var(--tf-space-xl);
  text-align: center;
  color: var(--tf-color-text);
  opacity: 0.85;
}

.tf-collections-empty,
.tf-collectors-empty,
.tf-activity-empty {
  padding: var(--tf-space-xl);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  text-align: center;
  color: var(--tf-color-text);
}

.tf-collections-empty p,
.tf-collectors-empty p,
.tf-activity-empty p {
  margin: 0 0 var(--tf-space-md) 0;
}

.tf-collections-empty a,
.tf-collectors-empty a,
.tf-activity-empty a {
  color: var(--tf-color-primary);
  font-weight: 600;
  text-decoration: none;
}

.tf-collections-empty a:hover,
.tf-collectors-empty a:hover,
.tf-activity-empty a:hover {
  text-decoration: underline;
}

.tf-collections-list,
.tf-collectors-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: var(--tf-app-max);
}

.tf-collections-row {
  margin: 0 0 var(--tf-space-md) 0;
}

.tf-collections-row:last-child {
  margin-bottom: 0;
}

.tf-collections-row-card {
  margin: 0;
  padding: 0;
}

.tf-collections-row-inner {
  display: grid;
  grid-template-columns: minmax(88px, 120px) minmax(0, 1fr) auto;
  gap: var(--tf-space-lg);
  align-items: center;
  padding: var(--tf-space-lg) var(--tf-space-xl);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
  transition: box-shadow 0.15s ease;
}

.tf-collections-row-inner:hover {
  box-shadow: var(--tf-shadow-hover);
}

.tf-collections-row:first-child .tf-collections-row-inner {
  background: var(--tf-color-bg-light);
}

.tf-collections-row-visual {
  width: 100%;
  aspect-ratio: 1;
  max-width: 120px;
  margin: 0 auto;
}

.tf-collections-row-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--tf-radius-default);
  border: var(--tf-border-width) solid var(--tf-color-border);
}

.tf-collections-row-placeholder {
  width: 100%;
  height: 100%;
  min-height: 88px;
  border-radius: var(--tf-radius-default);
  border: var(--tf-border-width) solid var(--tf-color-border);
  background: var(--tf-color-bg-light);
}

.tf-collections-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-xs);
}

.tf-collections-row-title {
  margin: 0;
  font-family: var(--tf-font-body);
  font-size: 1.125rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tf-ink);
}

.tf-collections-row-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--tf-color-text);
  opacity: 0.88;
  max-width: 60ch;
}

.tf-collections-row-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--tf-color-text);
  opacity: 0.85;
}

.tf-collections-row-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-right: 0.35rem;
}

.tf-collections-row-cta {
  flex-shrink: 0;
  align-self: center;
}

.tf-collections-row-btn {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .tf-collections-row-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tf-collections-row-visual {
    max-width: 160px;
  }

  .tf-collections-row-desc {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .tf-collections-row-cta {
    justify-self: center;
  }
}

/* /collections — radios cuadrados e imagen featured contenida (no afecta otras rutas) */
body.tf-page-collections .tf-collections-hero,
body.tf-page-collections .tf-collections-empty,
body.tf-page-collections .tf-collections-row-inner,
body.tf-page-collections .tf-collections-row-img,
body.tf-page-collections .tf-collections-row-placeholder {
  border-radius: 0;
}

body.tf-page-collections .tf-btn-primary,
body.tf-page-collections .tf-btn-secondary {
  border-radius: 0;
}

body.tf-page-collections .tf-collections-row-img {
  object-fit: contain;
  background: var(--tf-color-bg-light);
}

.tf-collectors-list-item {
  margin-bottom: var(--tf-space-md);
}

.tf-collectors-list-link {
  display: flex;
  align-items: center;
  gap: var(--tf-space-md);
  padding: var(--tf-space-lg) var(--tf-space-xl);
  background: var(--tf-color-card-light);
  border: var(--tf-border-width) solid var(--tf-color-border);
  border-radius: var(--tf-radius-default);
  color: var(--tf-ink);
  text-decoration: none;
  box-shadow: var(--tf-shadow-sticker);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.tf-collectors-list-item:first-child .tf-collectors-list-link {
  background: var(--tf-color-bg-light);
}

.tf-collectors-list-link:hover {
  background: var(--tf-color-bg-light);
  box-shadow: var(--tf-shadow-hover);
}

.tf-collectors-list-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tf-collectors-list-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tf-color-tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.tf-collectors-list-body {
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-xs);
}

.tf-collectors-list-name {
  font-weight: 600;
}

.tf-collectors-list-meta {
  font-size: 0.875rem;
  color: var(--tf-color-text);
  opacity: 0.85;
}

/* /collectors: grid de cards — tamaño, alineación, jerarquía */
.tf-collectors-page .tf-collectors-grid.tf-gallery-grid {
  display: grid;
  gap: var(--tf-space-lg);
  grid-template-columns: 1fr;
  width: 100%;
  max-width: none;
  padding-inline: var(--tf-space-xl);
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .tf-collectors-page .tf-collectors-grid.tf-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .tf-collectors-page .tf-collectors-grid.tf-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tf-collectors-card.tf-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin-bottom: 0;
  border-width: 2px;
  transition: box-shadow 0.15s ease;
}

.tf-collectors-card.tf-card:hover {
  box-shadow: var(--tf-shadow-hover);
}

.tf-collectors-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: var(--tf-space-xl);
  gap: var(--tf-space-md);
}

/* Zona clicable: identidad + contexto + métricas (sin CTAs) */
.tf-collectors-card-hit {
  display: flex;
  flex-direction: column;
  gap: var(--tf-space-lg);
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.tf-collectors-card-hit:hover .tf-collectors-list-name {
  color: var(--tf-color-primary);
}

.tf-collectors-card-identity-row {
  display: flex;
  align-items: flex-start;
  gap: var(--tf-space-md);
}

.tf-collectors-card-hit .tf-collectors-list-avatar,
.tf-collectors-card-hit .tf-collectors-list-avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--tf-color-border);
  box-shadow: var(--tf-shadow-sticker);
  object-fit: cover;
}

.tf-collectors-card-hit .tf-collectors-list-avatar-fallback {
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--tf-font-body);
  color: var(--tf-ink);
  background: var(--tf-color-secondary);
}

.tf-collectors-card-identity-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.tf-collectors-card-identity-text .tf-collectors-list-name {
  font-size: 1.1875rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  font-family: var(--tf-font-body);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tf-ink);
}

.tf-collectors-handle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--tf-color-text);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  word-break: break-all;
  opacity: 0.8;
}

.tf-collectors-card-context {
  padding: var(--tf-space-md) var(--tf-space-lg);
  background: linear-gradient(
    145deg,
    var(--tf-color-card-light) 0%,
    var(--tf-color-bg-light) 100%
  );
  border: 2px solid var(--tf-color-border);
  border-left: 4px solid var(--tf-color-primary);
  border-radius: var(--tf-radius-default);
  box-shadow: var(--tf-shadow-sticker);
}

.tf-collectors-context-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tf-color-primary);
  opacity: 0.9;
  margin-bottom: var(--tf-space-xs);
}

.tf-collectors-featured {
  margin: 0;
  font-size: 0.875rem;
  color: var(--tf-ink);
  line-height: 1.4;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tf-collectors-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-top: auto;
}

.tf-collectors-meta-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tf-color-text);
  opacity: 0.7;
}

.tf-collectors-followers-count {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--tf-font-body);
  line-height: 1.2;
  color: var(--tf-ink);
  opacity: 0.92;
}

body.tf-page-collectors .tf-collectors-followers-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.tf-page-collectors .tf-collectors-te-vigilan-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.tf-collectors-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tf-space-sm);
  margin-top: 0;
  padding-top: var(--tf-space-lg);
  border-top: 2px solid var(--tf-color-border);
}

.tf-collectors-profile-cta {
  flex: 1 1 auto;
  min-width: 8rem;
  text-align: center;
}

@media (max-width: 480px) {
  .tf-collectors-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tf-collectors-card-actions .tf-btn-primary,
  .tf-collectors-card-actions .tf-btn-secondary,
  .tf-collectors-card-actions .tf-collectors-follow-btn {
    width: 100%;
  }

  .tf-collectors-profile-cta {
    min-width: 0;
  }
}

.tf-collectors-follow-error {
  width: 100%;
  font-size: 0.875rem;
  color: var(--tf-color-error, #b71c1c);
  margin-top: var(--tf-space-xs);
}

/* /collectors — todo cuadrado (solo esta ruta); avatares en cards siguen circulares (contrato §4) */
body.tf-page-collectors .tf-collectors-page .tf-collectors-hero,
body.tf-page-collectors .tf-collectors-empty,
body.tf-page-collectors .tf-collectors-card.tf-card,
body.tf-page-collectors .tf-collectors-card-context {
  border-radius: 0;
}

body.tf-page-collectors .tf-btn-primary,
body.tf-page-collectors .tf-btn-secondary,
body.tf-page-collectors .tf-btn-neutral,
body.tf-page-collectors .tf-collectors-follow-btn,
body.tf-page-collectors .tf-collectors-profile-cta {
  border-radius: 0;
}

.tf-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tf-profile-list-back {
  margin-bottom: var(--tf-space-md);
}

/* Actividad: separación del hero y ritmo de lista */
.tf-activity-content {
  margin-top: 0;
  margin-bottom: var(--tf-dashboard-section-gap);
}

.tf-activity-group {
  margin-bottom: var(--tf-space-xl);
}

.tf-activity-group-title {
  font-family: var(--tf-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--tf-color-text-secondary, #555);
  margin: 0 0 var(--tf-space-sm) 0;
}

.tf-activity-icon {
  margin-right: var(--tf-space-xs);
}

.tf-activity-page .tf-activity-item--expandable {
  padding: 0;
}

.tf-activity-page .tf-activity-row-toggle {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tf-space-md);
  padding: var(--tf-space-md) 0;
  min-height: var(--tf-touch-min);
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.tf-activity-page .tf-activity-row-toggle:hover {
  background: rgba(0, 0, 0, 0.03);
}

.tf-activity-page .tf-activity-row-toggle:focus-visible {
  outline: 2px solid var(--tf-color-primary);
  outline-offset: 2px;
  border-radius: var(--tf-radius-default);
}

.tf-activity-page .tf-activity-row-main {
  min-width: 0;
}

.tf-activity-page .tf-activity-row-affordance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-right: var(--tf-space-xs);
  color: var(--tf-color-text);
  opacity: 0.6;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tf-activity-page .tf-activity-row-toggle:hover .tf-activity-row-affordance,
.tf-activity-page .tf-activity-row-toggle:focus-visible .tf-activity-row-affordance,
.tf-activity-page .tf-activity-item--expandable[data-state="open"] .tf-activity-row-affordance {
  opacity: 0.95;
}

.tf-activity-page .tf-activity-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 1.125rem;
  height: 1.125rem;
}

.tf-activity-page .tf-activity-chevron svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}

.tf-activity-page .tf-activity-chevron svg {
  transition: transform 0.2s ease;
  transform-origin: center;
  stroke-width: 2.15;
}

.tf-activity-page .tf-activity-item--expandable[data-state="open"] .tf-activity-chevron svg {
  transform: rotate(180deg);
}

.tf-activity-page .tf-activity-item--expandable[data-state="loading"] .tf-activity-row-affordance {
  opacity: 0.7;
}

.tf-activity-detail {
  width: 100%;
  flex-basis: 100%;
  margin-top: var(--tf-space-sm);
  padding: var(--tf-space-md);
  border-radius: var(--tf-radius-md, 8px);
  border: 1px solid var(--tf-color-border-secondary, rgba(0, 0, 0, 0.12));
  background: var(--tf-color-surface-muted, rgba(0, 0, 0, 0.03));
}

.tf-activity-detail-line {
  margin: 0 0 var(--tf-space-xs) 0;
  font-family: var(--tf-font-body);
  font-size: 0.9rem;
  color: var(--tf-color-text);
}

.tf-activity-detail-label {
  font-weight: 600;
  color: var(--tf-color-text-secondary, #555);
  margin-right: var(--tf-space-xs);
}

.tf-activity-detail-value {
  font-weight: 400;
}

.tf-activity-detail-actions {
  margin: var(--tf-space-sm) 0 0 0;
}

.tf-activity-detail-loading,
.tf-activity-detail-empty,
.tf-activity-detail-error {
  margin: 0;
  font-family: var(--tf-font-body);
  font-size: 0.9rem;
  color: var(--tf-color-text-secondary, #555);
}

.tf-activity-detail-value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.tf-activity-load-more {
  margin-top: var(--tf-space-lg);
  margin-bottom: var(--tf-space-xl);
  text-align: center;
}

.tf-activity-page .tf-dashboard-activity-item {
  padding: var(--tf-space-md) 0;
}

.tf-activity-page .tf-dashboard-activity-item.tf-activity-item--mint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tf-space-xs) var(--tf-space-sm);
}

/* /activity — quitar cuadrados de color del pseudo global, fila tipo flex, marcadores PNG, radios 0 en la vista */
body.tf-page-activity .tf-dashboard-activity-item::before {
  content: none;
  display: none;
}

body.tf-page-activity .tf-dashboard-activity-item:not(.tf-activity-item--mint) {
  display: block;
}

body.tf-page-activity .tf-activity-row-main {
  display: flex;
  align-items: flex-start;
  gap: var(--tf-space-md);
  flex: 1;
  min-width: 0;
}

body.tf-page-activity .tf-activity-row-content {
  flex: 1;
  min-width: 0;
}

body.tf-page-activity .tf-activity-row-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--tf-space-xs) var(--tf-space-sm);
}

body.tf-page-activity .tf-dashboard-activity-marker.tf-activity-marker--image,
body.tf-page-activity .tf-dashboard-activity-marker--mint {
  display: block;
  width: 2.5rem;
  height: auto;
  max-height: 2.75rem;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

body.tf-page-activity span.tf-dashboard-activity-marker:empty {
  display: block;
  flex-shrink: 0;
  width: 2.5rem;
  min-height: 2.5rem;
}

body.tf-page-activity .tf-activity-icon.tf-dashboard-activity-marker {
  margin-right: 0;
}

body.tf-page-activity .tf-activity-row-side-action {
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 0.15rem;
}

body.tf-page-activity .tf-activity-item--mint > .tf-activity-row-toggle {
  flex: 1 1 100%;
  max-width: 100%;
}

body.tf-page-activity .tf-activity-hero .tf-collection-prose {
  margin: 0;
  font-size: 1rem;
  color: var(--tf-color-text);
  opacity: 0.9;
}

body.tf-page-activity .tf-activity-hero,
body.tf-page-activity .tf-activity-empty,
body.tf-page-activity .tf-activity-loading,
body.tf-page-activity .tf-activity-detail,
body.tf-page-activity .tf-app.tf-activity-page .tf-btn-secondary,
body.tf-page-activity .tf-app.tf-activity-page .tf-btn-tertiary,
body.tf-page-activity .tf-activity-row-toggle:focus-visible {
  border-radius: 0;
}

body.tf-page-activity .tf-activity-page .tf-activity-row-toggle {
  border-radius: 0;
}

@media (max-width: 560px) {
  body.tf-page-activity .tf-dashboard-activity-item .tf-dashboard-activity-date {
    text-align: left;
    white-space: normal;
  }
}

/* Perfil público: tabs, website, follows_you, actividad reciente */
.tf-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tf-space-sm);
  margin: 0 0 var(--tf-space-xl) 0;
  padding: 0 0 var(--tf-space-md) 0;
  border-bottom: 1px solid var(--tf-color-border-secondary, rgba(0, 0, 0, 0.12));
}

.tf-profile-tab {
  font-family: var(--tf-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--tf-color-text);
  text-decoration: none;
  padding: var(--tf-space-xs) var(--tf-space-sm);
  border-radius: var(--tf-radius-default);
}

.tf-profile-tab:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--tf-color-primary);
}

.tf-profile-tab--active {
  color: var(--tf-color-primary);
  border-bottom: 2px solid var(--tf-color-primary);
  margin-bottom: -1px;
}

.tf-profile-website-wrap {
  margin: var(--tf-space-sm) 0 0 0;
}

.tf-profile-website {
  font-size: 0.95rem;
  color: var(--tf-color-primary);
  text-decoration: none;
  word-break: break-all;
}

.tf-profile-website:hover {
  text-decoration: underline;
}

.tf-profile-follows-you {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tf-color-primary);
  margin-right: 0.25em;
}

#profile-featured .tf-profile-featured-progress {
  margin: var(--tf-space-xs) 0 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tf-color-text);
}

#profile-activity-recent .tf-dashboard-activity-list-wrap {
  margin: 0 0 var(--tf-space-sm) 0;
}

#profile-activity-recent .tf-profile-activity-recent-cta,
#profile-activity-recent #profile-activity-recent-cta {
  margin: var(--tf-space-md) 0 0 0;
}

.tf-profile-collection-progress {
  font-size: 0.95rem;
  font-weight: 600;
  margin: var(--tf-space-xs) 0;
  color: var(--tf-color-text);
}

.tf-badge--complete {
  display: inline-block;
  margin-top: var(--tf-space-xs);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15em 0.5em;
  background: var(--tf-color-primary);
  color: var(--tf-color-card-light, #fff);
  border-radius: var(--tf-radius-default);
}
