/* =========================================================================
   PROFILE.CSS — Vista Perfil Editorial Museístico ("Tú")
   Espacio en blanco estructurado, estética pura Neo-Bauhaus sin cajas cerradas
   Totalmente alineado con los tokens globales de base.css
   ========================================================================= */

html,
html:has(body.profile-body),
body.profile-body {
  height: auto !important;
  min-height: 100% !important;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: auto !important;
  position: static !important;
  background-color: var(--bg, #F8F1DF) !important;
  color: var(--fg, #141411) !important;
}

body.profile-body.dark-mode {
  background-color: var(--bg, #141411) !important;
  color: var(--fg, #F8F1DF) !important;
}

.hidden {
  display: none !important;
}

/* =========================================================================
   1. EL LIENZO BASE Y CABECERA SUPERIOR
   ========================================================================= */
.profile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  background: var(--bg, #F8F1DF);
  z-index: 950;
  padding: max(10px, env(safe-area-inset-top)) 24px 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border, #D8D6CE);
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.dark-mode .profile-header {
  background: var(--bg, #141411);
  border-bottom-color: var(--border, #32322E);
}

.profile-canvas {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding-top: calc(max(10px, env(safe-area-inset-top)) + 80px) !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  padding-bottom: calc(180px + env(safe-area-inset-bottom)) !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.profile-main {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.profile-logo {
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--accent, #E84E1B);
  text-decoration: none;
  line-height: 1;
}

.profile-logo span {
  color: var(--fg, #141411);
}

body.dark-mode .profile-logo span {
  color: var(--fg, #F8F1DF);
}

.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-minimal-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--fg, #141411);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.85;
  transition: opacity 0.1s ease, color 0.1s ease;
}

.profile-minimal-btn i,
.profile-minimal-btn svg,
.mobile-nav-btn i,
.mobile-nav-btn svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

body.dark-mode .profile-minimal-btn {
  color: var(--fg, #F8F1DF);
}

.profile-minimal-btn:hover {
  opacity: 1;
  color: var(--accent, #E84E1B);
}

.profile-mobile-logout {
  display: none !important;
}

@media (max-width: 819px) {
  .profile-header {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    padding-bottom: 12px;
  }

  .profile-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: calc(100vw - 120px);
  }

  .profile-mobile-logout {
    display: inline-flex !important;
    margin-top: 12px;
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid var(--accent, #E84E1B);
    color: var(--accent, #E84E1B);
    background: transparent;
  }
}

/* =========================================================================
   ESTADO: AUTENTICACIÓN REQUERIDA
   ========================================================================= */
.profile-auth-message {
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-login-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--fg, #141411);
  color: var(--bg, #F8F1DF);
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0px var(--accent, #E84E1B);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

body.dark-mode .profile-login-cta-btn {
  background: var(--accent, #E84E1B);
  color: #FFFFFF;
  box-shadow: 4px 4px 0px var(--border-strong, #4E4E48);
}

.profile-login-cta-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--accent, #E84E1B);
}

/* =========================================================================
   2. HERO MONUMENTAL (IDENTIDAD)
   ========================================================================= */
.profile-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-hero-name {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 8.5vw, 48px);
  line-height: 1.08;
  color: var(--fg, #141411);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  text-align: left;
}

body.dark-mode .profile-hero-name {
  color: var(--fg, #F8F1DF);
}

.profile-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-dim, #6B6B6B);
  margin: 0;
  text-align: left;
}

body.dark-mode .profile-hero-sub {
  color: var(--fg-dim, #9A9A92);
}

/* =========================================================================
   3. MÉTRICAS (GRID INVISIBLE)
   ========================================================================= */
.profile-metrics-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 36px;
  width: 100%;
}

.profile-metric-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border, #D8D6CE);
  padding: 0 16px 0 0;
  margin-right: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.1s ease;
}

body.dark-mode .profile-metric-item {
  border-right-color: var(--border, #32322E);
}

.profile-metric-item:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.profile-metric-item:active {
  opacity: 0.7;
}

.profile-metric-num {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  color: var(--fg, #141411);
}

body.dark-mode .profile-metric-num {
  color: var(--fg, #F8F1DF);
}

.profile-metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg-dim, #6B6B6B);
}

body.dark-mode .profile-metric-label {
  color: var(--fg-dim, #9A9A92);
}

/* =========================================================================
   4. NAVEGACIÓN CURATORIAL
   ========================================================================= */
.profile-curatorial-nav {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--border, #D8D6CE);
  padding: 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.profile-curatorial-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.dark-mode .profile-curatorial-nav {
  border-bottom-color: var(--border, #32322E);
}

.profile-curatorial-tab {
  flex: 1 1 auto;
  min-width: max-content;
  text-align: center;
  background: none;
  border: none;
  padding: 8px 10px 10px 10px;
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-dim, #6B6B6B);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.12s ease, border-color 0.12s ease;
  margin-bottom: -1.5px;
}

body.dark-mode .profile-curatorial-tab {
  color: var(--fg-dim, #9A9A92);
}

.profile-curatorial-tab:hover {
  color: var(--fg, #141411);
}

body.dark-mode .profile-curatorial-tab:hover {
  color: var(--fg, #F8F1DF);
}

.profile-curatorial-tab.active {
  color: var(--fg, #141411) !important;
  border-bottom: 3px solid var(--accent, #E84E1B) !important;
}

body.dark-mode .profile-curatorial-tab.active {
  color: var(--fg, #F8F1DF) !important;
  border-bottom-color: var(--accent, #E84E1B) !important;
}

/* =========================================================================
   5. FEED DE OBRAS (ARCHIVO)
   ========================================================================= */
.profile-feed-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-bottom: 160px !important;
}

.profile-feed-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.1s ease;
}

.profile-feed-item:active {
  opacity: 0.7;
}

.profile-feed-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--bg-raised, #ECE6D8);
  border-radius: 0 !important;
  display: block;
}

body.dark-mode .profile-feed-thumb {
  background-color: #252522;
}

.profile-feed-thumb-fallback {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  background: var(--bg-raised, #ECE6D8);
  color: var(--accent, #E84E1B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 20px;
}

body.dark-mode .profile-feed-thumb-fallback {
  background: #252522;
}

.profile-feed-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.profile-feed-title {
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  color: var(--fg, #141411);
  text-transform: uppercase;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.dark-mode .profile-feed-title {
  color: var(--fg, #F8F1DF);
}

.profile-feed-meta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--fg-dim, #6B6B6B);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark-mode .profile-feed-meta {
  color: var(--fg-dim, #9A9A92);
}

/* Colecciones en Feed Curatorial */
.profile-feed-collection-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  cursor: pointer;
}

.profile-collection-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.profile-collection-name {
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--fg, #141411);
  margin: 0;
}

body.dark-mode .profile-collection-name {
  color: var(--fg, #F8F1DF);
}

.profile-collection-count-badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--fg-dim, #6B6B6B);
  font-weight: 600;
}

body.dark-mode .profile-collection-count-badge {
  color: var(--fg-dim, #9A9A92);
}

.profile-collection-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--fg-dim, #6B6B6B);
  margin: 0;
}

body.dark-mode .profile-collection-desc {
  color: var(--fg-dim, #9A9A92);
}

.profile-collection-items-mini {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.profile-collection-mini-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  object-fit: cover;
  background-color: var(--bg-raised, #ECE6D8);
  border-radius: 0;
}

body.dark-mode .profile-collection-mini-thumb {
  background-color: #252522;
}

/* Notas en Feed */
.profile-feed-note-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.profile-feed-note-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.profile-feed-note-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg, #141411);
  margin: 0;
}

body.dark-mode .profile-feed-note-text {
  color: var(--fg, #F8F1DF);
}

.profile-feed-empty {
  padding: 32px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--fg-dim, #6B6B6B);
}

body.dark-mode .profile-feed-empty {
  color: var(--fg-dim, #9A9A92);
}

/* =========================================================================
   6. CALL TO ACTION FLOTANTE
   ========================================================================= */
.profile-floating-cta {
  position: fixed !important;
  bottom: 80px !important;
  left: 24px !important;
  width: calc(100% - 48px) !important;
  max-width: 772px !important;
  height: 48px !important;
  background: var(--fg, #141411) !important;
  color: var(--bg, #F8F1DF) !important;
  font-family: 'League Spartan', sans-serif !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  border: 1px solid var(--border-strong, #141411) !important;
  box-sizing: border-box !important;
  z-index: 900 !important;
  box-shadow: 2px 2px 0px var(--border-strong, #141411) !important;
  transition: transform 0.08s ease, background 0.12s ease !important;
}

body.dark-mode .profile-floating-cta {
  background: var(--accent, #E84E1B) !important;
  color: #FFFFFF !important;
  border-color: var(--border-strong, #4E4E48) !important;
  box-shadow: 2px 2px 0px var(--border-strong, #4E4E48) !important;
}

.profile-floating-cta:active {
  transform: scale(0.98) !important;
}

@media (min-width: 820px) {
  .profile-floating-cta {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .profile-floating-cta:active {
    transform: translateX(-50%) scale(0.98) !important;
  }
}

/* =========================================================================
   7. MODAL / BOTTOM SHEET DE PERSONALIZACIÓN DE PERFIL (NEO-BAUHAUS)
   ========================================================================= */
#modal-edit-profile.modal-overlay {
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 0 !important;
  background: rgba(20, 20, 17, 0.55) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  z-index: 1050 !important;
}

.profile-edit-sheet {
  width: 100% !important;
  max-width: 540px !important;
  background: var(--bg-panel, #F8F1DF) !important;
  border: none !important;
  border-top: 2px solid var(--border-strong, #141411) !important;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25) !important;
  border-radius: 0 !important;
  margin: 0 auto !important;
  padding: 24px 24px calc(28px + env(safe-area-inset-bottom)) 24px !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  max-height: 90vh;
  overflow-y: auto;
}

body.dark-mode .profile-edit-sheet {
  background: var(--bg-panel, #1c1c1a) !important;
  border-top-color: var(--border-strong, #4E4E48) !important;
}

#modal-edit-profile.open .profile-edit-sheet {
  transform: translateY(0) !important;
}

.profile-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.profile-edit-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-edit-title {
  font-family: 'League Spartan', sans-serif !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  color: var(--fg, #141411) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

body.dark-mode .profile-edit-title {
  color: var(--fg, #F8F1DF) !important;
}

.profile-edit-subtitle {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  color: var(--fg-dim, #6B6B6B) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

body.dark-mode .profile-edit-subtitle {
  color: var(--fg-dim, #9A9A92) !important;
}

.profile-edit-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  color: var(--fg, #141411);
  cursor: pointer;
  touch-action: manipulation;
  margin: -10px -10px 0 0;
  padding: 0;
  border-radius: 0 !important;
  transition: color 0.12s ease;
}

body.dark-mode .profile-edit-close {
  color: var(--fg, #F8F1DF);
}

.profile-edit-close:hover {
  color: var(--accent, #E84E1B);
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-form-row {
  display: flex;
  gap: 12px;
}

.profile-form-row .profile-form-group {
  flex: 1;
}

.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  color: var(--fg-dim, #6B6B6B);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.dark-mode .profile-form-label {
  color: var(--fg-dim, #9A9A92);
}

.profile-edit-form .tech-input {
  width: 100%;
  background: var(--bg, #F8F1DF);
  border: 1px solid var(--border-strong, #141411);
  color: var(--fg, #141411);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 0 !important;
  box-sizing: border-box;
}

body.dark-mode .profile-edit-form .tech-input {
  background: #141411;
  border-color: var(--border-strong, #4E4E48);
  color: var(--fg, #F8F1DF);
}

.profile-edit-form .tech-input:focus {
  outline: 2px solid var(--accent, #E84E1B);
  outline-offset: 1px;
}

.profile-save-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  background: var(--fg, #141411) !important;
  color: var(--bg, #F8F1DF) !important;
  border: none;
  box-shadow: 4px 4px 0px var(--accent, #E84E1B);
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 0 !important;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}

body.dark-mode .profile-save-btn {
  background: var(--accent, #E84E1B) !important;
  color: #FFFFFF !important;
  box-shadow: 4px 4px 0px var(--border-strong, #4E4E48);
}

.profile-save-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--accent, #E84E1B);
}

.profile-edit-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent, #E84E1B);
  padding: 6px 0;
}

/* =========================================================================
   8. MODALS GENERALES Y GESTIÓN DE ACCIONES (NEO-BAUHAUS)
   ========================================================================= */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(20, 20, 17, 0.55) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  z-index: 1050 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s !important;
}

.modal-overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition-delay: 0s !important;
}

.modal-overlay.open .profile-edit-sheet {
  transform: translateY(0) !important;
}

.profile-action-btn {
  min-height: 48px;
  background: var(--bg-raised, #ECE6D8);
  color: var(--fg, #141411);
  border: 1px solid var(--border-strong, #141411);
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  transition: transform 0.08s ease, background 0.12s ease;
}

body.dark-mode .profile-action-btn {
  background: #252522;
  color: var(--fg, #F8F1DF);
  border-color: var(--border-strong, #4E4E48);
}

.profile-action-btn:active {
  transform: scale(0.96);
}

.profile-action-btn-danger {
  min-height: 48px;
  background: transparent;
  color: #D6201D;
  border: 1px solid #D6201D;
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  transition: transform 0.08s ease, background 0.12s ease;
}

.profile-action-btn-danger:active {
  transform: scale(0.96);
  background: rgba(214, 32, 29, 0.1);
}

/* Filas de feed con acciones rápidas */
.profile-feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, #D8D6CE);
}

body.dark-mode .profile-feed-row {
  border-bottom-color: var(--border, #32322E);
}

.profile-feed-row .profile-feed-item {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.profile-feed-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.profile-card-action-btn {
  background: var(--bg-raised, #ECE6D8);
  border: 1px solid var(--border-strong, #141411);
  color: var(--fg, #141411);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.1s ease;
}

body.dark-mode .profile-card-action-btn {
  background: #252522;
  color: var(--fg, #F8F1DF);
  border-color: var(--border-strong, #4E4E48);
}

.profile-card-action-btn:hover {
  border-color: var(--accent, #E84E1B);
  color: var(--accent, #E84E1B);
}

.profile-card-action-btn.danger {
  color: #D6201D;
  border-color: #D6201D;
}

.profile-card-action-btn.danger:hover {
  background: #D6201D;
  color: #FFFFFF;
}

/* Cabecera y tarjetas de Mis Listas */
.profile-collections-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.profile-new-list-btn {
  padding: 8px 14px;
  background: var(--fg, #141411);
  color: var(--bg, #F8F1DF);
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 0 !important;
  box-shadow: 2px 2px 0px var(--accent, #E84E1B);
  transition: transform 0.08s ease;
}

body.dark-mode .profile-new-list-btn {
  background: var(--accent, #E84E1B);
  color: #FFFFFF;
  box-shadow: 2px 2px 0px var(--border-strong, #4E4E48);
}

.profile-new-list-btn:active {
  transform: translate(1px, 1px);
}

.profile-collection-card {
  border: 1.5px solid var(--border-strong, #141411);
  background: var(--bg-panel, #F8F1DF);
  box-shadow: 3px 3px 0px var(--border-strong, #141411);
  margin-bottom: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.dark-mode .profile-collection-card {
  background: #1c1c1a;
  border-color: var(--border-strong, #4E4E48);
  box-shadow: 3px 3px 0px var(--border-strong, #4E4E48);
}

.profile-collection-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-collection-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-collection-tool-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong, #141411);
  background: var(--bg-raised, #ECE6D8);
  color: var(--fg, #141411);
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 0 !important;
  transition: all 0.1s ease;
}

body.dark-mode .profile-collection-tool-btn {
  background: #252522;
  color: var(--fg, #F8F1DF);
  border-color: var(--border-strong, #4E4E48);
}

.profile-collection-tool-btn:hover {
  border-color: var(--accent, #E84E1B);
  color: var(--accent, #E84E1B);
}

.profile-collection-tool-btn.active {
  background: var(--accent, #E84E1B);
  color: #FFFFFF;
  border-color: var(--accent, #E84E1B);
}

.profile-collection-tool-btn.btn-delete {
  color: #D6201D;
  border-color: #D6201D;
}

.profile-collection-tool-btn.btn-delete:hover {
  background: #D6201D;
  color: #FFFFFF;
}

.profile-collection-items-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.profile-collection-work-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  background: var(--bg-raised, #ECE6D8);
  border: 1px solid var(--border, #D8D6CE);
}

body.dark-mode .profile-collection-work-row {
  background: #252522;
  border-color: var(--border, #32322E);
}

.profile-collection-work-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.profile-collection-work-thumb {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  object-fit: cover;
}

.profile-collection-work-title {
  font-family: 'League Spartan', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--fg, #141411);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark-mode .profile-collection-work-title {
  color: var(--fg, #F8F1DF);
}

.profile-collection-work-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--fg-dim, #6B6B6B);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark-mode .profile-collection-work-meta {
  color: var(--fg-dim, #9A9A92);
}

.profile-collection-item-remove-btn {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border, #D8D6CE);
  background: transparent;
  color: var(--fg-dim, #6B6B6B);
  cursor: pointer;
  border-radius: 0 !important;
  font-size: 12px;
}

.profile-collection-item-remove-btn:hover {
  border-color: #D6201D;
  color: #D6201D;
}