/* ═══════════════════════════════════════════════════════════════════
   BUFATTY · profile.css v13 (IG-level · sin banner)
   Perfil público + Editor + Suscripciones + Ventas
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   TOKENS LOCALES
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --pr-gradient: linear-gradient(135deg, #7c5cff 0%, #ff6ba8 100%);
  --pr-green: #34C67D;
  --pr-red:   #EF5350;
  --pr-ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --pr-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
html[data-theme="light"] {
  --pr-green: #1F8A56;
  --pr-red:   #C93436;
}

/* ═══════════════════════════════════════════════════════════════════
   PERFIL PÚBLICO · IG-level (sin banner)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── PAGE ─── */
.profile-wrapper {
  max-width: 935px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ─── HEADER ─── */
.profile-header {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.profile-avatar-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.profile-avatar-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.profile-avatar-ring:hover { transform: scale(1.03); }

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card);
  border: 3px solid var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent) 85%, #000) 0%,
    var(--accent) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  border-radius: 50%;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding-top: 16px;
}

.profile-name-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.profile-identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.profile-username {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  line-height: 1.3;
}

.profile-handle {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0;
  margin-top: 2px;
  line-height: 1.4;
  letter-spacing: 0.1px;
}

.profile-username .verified-badge {
  width: 16px;
  height: 16px;
  margin-left: 0;
  margin-top: -1px;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 6px;
}

.profile-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s var(--pr-ease),
              border-color 0.15s var(--pr-ease),
              color 0.15s var(--pr-ease),
              transform 0.1s var(--pr-ease);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 34px;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
  line-height: 1.2;
}
.profile-btn:active {
  transform: scale(0.97);
}

.profile-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.profile-btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.profile-btn.secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: transparent;
}
.profile-btn.secondary:hover {
  background: var(--border-color);
  border-color: transparent;
}

.profile-btn.following {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: transparent;
  transition: background 0.15s var(--pr-ease),
              color 0.15s var(--pr-ease);
}
.profile-btn.following:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.profile-btn.following .follow-text {
  display: inline;
  font-size: 14px;
}
.profile-btn.following:hover .follow-text {
  font-size: 0;
}
.profile-btn.following:hover .follow-text::after {
  content: 'Dejar de seguir';
  font-size: 14px;
  display: inline;
}

.profile-btn.icon-only {
  padding: 8px;
  min-width: 34px;
  width: 34px;
  height: 34px;
  justify-content: center;
  border-radius: 8px;
  position: relative;
  background: transparent;
  border-color: transparent;
  color: var(--text-primary);
}
.profile-btn.icon-only:hover {
  background: var(--bg-hover);
  border-color: transparent;
}

.profile-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.profile-btn.icon-only::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s var(--pr-ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  z-index: 10;
}
.profile-btn.icon-only:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .profile-btn.icon-only::after { display: none; }
}

.profile-btn:focus-visible,
.profile-tab:focus-visible,
.profile-stat:focus-visible,
.profile-social-link:focus-visible,
.pr-more-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Menú ⋯ ─── */
.pr-more { position: relative; }
.pr-more-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 100;
  min-width: 220px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  animation: prMenuIn 0.15s ease;
}
.pr-more-panel[hidden] { display: none; }
@keyframes prMenuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pr-more-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.pr-more-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.pr-more-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.pr-more-item-danger { color: var(--danger); }
.pr-more-item-danger svg { color: var(--danger); }
.pr-more-item-danger:hover { background: var(--danger-soft); }

/* ─── Stats ─── */
.profile-stats {
  display: flex;
  gap: 36px;
  margin-top: 4px;
  flex-wrap: wrap;
  align-items: baseline;
}
.profile-stat {
  display: inline-flex;
  gap: 6px;
  font-size: 15px;
  color: var(--text-secondary);
  align-items: baseline;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  transition: opacity 0.15s ease;
}
.profile-stat:hover { opacity: 0.75; }
.profile-stat .stat-number,
.profile-stat strong {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* ─── Bio ─── */
.profile-bio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
}
.profile-bio-occupation {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}
.profile-bio-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.55;
  white-space: pre-line;
  word-break: break-word;
  margin: 0;
}
.profile-bio-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  line-height: 1.5;
}
.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}
.profile-meta-item svg {
  width: 13px;
  height: 13px;
  opacity: 0.85;
  flex-shrink: 0;
}
.profile-meta-item a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.profile-meta-item a:hover { text-decoration: underline; }

/* ─── Socials ─── */
.profile-socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.profile-socials .profile-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent !important;
  color: var(--text-secondary) !important;
  text-decoration: none;
  transition: transform 0.15s var(--pr-ease),
              background 0.15s var(--pr-ease),
              color 0.15s var(--pr-ease);
}
.profile-socials .profile-social-link:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
  transform: translateY(-2px);
}
.profile-socials .profile-social-link.ig:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) !important; color: #fff !important; }
.profile-socials .profile-social-link.x:hover  { background: #000 !important; color: #fff !important; }
.profile-socials .profile-social-link.tt:hover { background: #000 !important; color: #fff !important; }
.profile-socials .profile-social-link.yt:hover { background: #ff0000 !important; color: #fff !important; }
.profile-socials .profile-social-link.tw:hover { background: #9146ff !important; color: #fff !important; }
.profile-socials .profile-social-link svg {
  width: 17px;
  height: 17px;
  stroke: none;
  fill: currentColor;
}

/* ─── TABS sticky ─── */
.profile-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 48px;
  border-top: 1px solid var(--border-color-soft);
  border-bottom: 1px solid var(--border-color-soft);
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--bg-page) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.profile-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  border: none;
  border-top: 2px solid transparent;
  margin-top: -1px;
  transition: color 0.25s var(--pr-ease), border-color 0.25s var(--pr-ease);
  background: none;
  font-family: inherit;
}
.profile-tab:hover { color: var(--text-secondary); }
.profile-tab.active {
  color: var(--text-primary);
  border-top-color: var(--text-primary);
}
.profile-tab svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.profile-tab-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}
.profile-tab.active .profile-tab-count {
  color: var(--text-secondary);
}

/* ─── GRID ─── */
.profile-grid-wrap { padding-bottom: 40px; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.profile-grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-hover);
  display: block;
  text-decoration: none;
  color: inherit;
}
.profile-grid-item img,
.profile-grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--pr-ease);
  display: block;
}
.profile-grid-item:hover img,
.profile-grid-item:hover video { transform: scale(1.05); }
.profile-grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s var(--pr-ease);
  z-index: 1;
  pointer-events: none;
}
.profile-grid-item:hover::after { background: rgba(0, 0, 0, 0.3); }

.profile-grid-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: var(--bg-hover);
  color: var(--text-muted);
}
.profile-grid-fallback--text {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
}

.profile-grid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  z-index: 2;
  color: #fff;
  transition: opacity 0.25s var(--pr-ease);
  pointer-events: none;
}
.profile-grid-item:hover .profile-grid-overlay { opacity: 1; }

.profile-grid-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.profile-grid-stat svg {
  width: 18px;
  height: 18px;
  stroke: none;
  fill: currentColor;
}

.profile-grid-icon-video,
.profile-grid-icon-multi {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 24px;
  min-width: 24px;
  padding: 0 8px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  z-index: 3;
  pointer-events: none;
}
.profile-grid-icon-video { padding: 0; width: 24px; }
.profile-grid-icon-video svg { width: 11px; height: 11px; margin-left: 1px; }
.profile-grid-icon-multi svg { width: 13px; height: 13px; }

.profile-grid-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  z-index: 3;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.profile-grid-badge.free    { background: linear-gradient(135deg, #10b981, #059669); }
.profile-grid-badge.premium { background: linear-gradient(135deg, #f59e0b, #d97706); }
.profile-grid-badge.reel    { background: linear-gradient(135deg, #ef4444, #dc2626); }

.profile-grid-item.is-locked { position: relative; }
.profile-grid-item.is-locked img.is-blurred,
.profile-grid-item.is-locked img.profile-grid-blurred {
  filter: blur(12px) brightness(0.85);
  transform: scale(1.05);
}
.profile-grid-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
}
.profile-grid-lock svg { width: 22px; height: 22px; }

/* ─── EMPTY STATE ─── */
.profile-empty {
  padding: 80px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.profile-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.profile-empty-icon svg { width: 28px; height: 28px; }
.profile-empty-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 0;
}
.profile-empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  max-width: 340px;
  line-height: 1.5;
}

/* ─── MODAL · STATS ─── */
.pr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pr-modal-overlay.show {
  display: flex;
  opacity: 1;
}
.pr-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.3s var(--pr-spring), opacity 0.3s ease;
}
.pr-modal-overlay.show .pr-modal {
  transform: scale(1);
  opacity: 1;
}
.pr-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color-soft);
  flex-shrink: 0;
}
.pr-modal-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin: 0;
}
.pr-modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.pr-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.pr-modal-close svg { width: 15px; height: 15px; }
.pr-modal-body {
  padding: 14px 16px 20px;
  overflow-y: auto;
  flex: 1;
}
.pr-modal-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.pr-modal-empty--error { color: var(--danger); }
.pr-modal-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
.pr-modal-user:hover { background: var(--bg-hover); }
.pr-modal-user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.pr-modal-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pr-modal-user-info { flex: 1; min-width: 0; }
.pr-modal-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pr-modal-user-handle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .profile-wrapper { padding: 24px 16px 40px; }
  .profile-header {
    grid-template-columns: 180px 1fr;
    gap: 28px;
  }
  .profile-avatar-ring { width: 130px; height: 130px; }
  .profile-info { padding-top: 12px; }
}

@media (max-width: 768px) {
  .profile-wrapper { padding: 20px 12px 40px; }
  .profile-header {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
    text-align: center;
    justify-items: center;
  }
  .profile-avatar-wrapper { padding-top: 0; }
  .profile-avatar-ring { width: 96px; height: 96px; }
  .profile-avatar-placeholder { font-size: 38px; }
  .profile-info { align-items: center; gap: 16px; padding-top: 0; }
  .profile-name-row {
    justify-content: center;
    flex-direction: column;
    gap: 14px;
  }
  .profile-identity { align-items: center; text-align: center; }
  .profile-username { font-size: 18px; }
  .profile-handle { font-size: 13px; margin-top: 3px; }
  .profile-stats { gap: 24px; justify-content: center; }
  .profile-stat,
  .profile-stat .stat-number,
  .profile-stat strong { font-size: 14px; }
  .profile-bio { align-items: center; text-align: center; }
  .profile-bio-meta { justify-content: center; }
  .profile-socials { justify-content: center; }
  .profile-actions { justify-content: center; }
  .profile-tabs {
    gap: 0;
    justify-content: space-around;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tab {
    font-size: 11px;
    padding: 14px 14px;
    letter-spacing: 0.5px;
    flex: 1;
    justify-content: center;
  }
  .profile-tab svg { width: 11px; height: 11px; }
  .profile-tab span:not(.profile-tab-count) { display: none; }
  .profile-tab-count { margin-left: 4px; }
}

@media (max-width: 480px) {
  .profile-avatar-ring { width: 88px; height: 88px; }
  .profile-avatar-placeholder { font-size: 34px; }
  .profile-grid { gap: 2px; }
  .profile-grid-stat { font-size: 13px; }
  .profile-grid-stat svg { width: 16px; height: 16px; }
  .profile-tab { padding: 12px 8px; }
}

/* ═══════════════════════════════════════════════════════════════════
   EDITOR DE PERFIL · IG-level · plano (v5)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Página ─── */
.ed-page {
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ─── Header sticky plano ─── */
.ed-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-page) 92%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-color-soft);
}
.ed-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.ed-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.15s var(--pr-ease);
  flex-shrink: 0;
}
.ed-close:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}
.ed-close svg { width: 14px; height: 14px; }

.ed-header-h1 {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.ed-header-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-shrink: 0;
}
.ed-btn-text {
  padding: 6px 0;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: opacity 0.15s var(--pr-ease);
  white-space: nowrap;
}
.ed-btn-text:hover { opacity: 0.7; }
.ed-btn-text[data-ed-discard] {
  color: var(--text-secondary);
}
.ed-btn-text:disabled,
.ed-btn-text[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 640px) {
  .ed-header-inner { padding: 12px 14px; gap: 12px; }
  .ed-header-h1 { font-size: 15px; }
  .ed-btn-text { font-size: 13px; }
}

/* ─── Grid 2 columnas ─── */
.ed-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) {
  .ed-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 16px 40px;
  }
}

.ed-form-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* ─── Bloque (sección plana) ─── */
.ed-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--border-color-soft);
}
.ed-block:first-child { padding-top: 0; }
.ed-block:last-child { border-bottom: none; }

.ed-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.ed-block-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.ed-block-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}
.ed-block-count.is-complete { color: var(--pr-green); }

.ed-block-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ─── Foto de perfil (avatar row) ─── */
.ed-avatar-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.ed-avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent) 85%, #000) 0%,
    var(--accent) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ed-avatar-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ed-avatar-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ed-avatar-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}
.ed-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--pr-ease);
  align-self: flex-start;
}
.ed-avatar-btn:hover {
  background: var(--accent-soft);
  border-color: transparent;
}
.ed-avatar-btn input[type="file"] { display: none; }
.ed-avatar-btn svg { width: 14px; height: 14px; }

/* ─── Filas de formulario planas ─── */
.ed-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ed-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.1px;
  margin-bottom: 2px;
}
.ed-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.ed-char-count {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.ed-char-count.is-warn { color: #ff6ba8; }
.ed-char-count.is-full { color: var(--pr-red); }

.ed-input-flat {
  width: 100%;
  padding: 8px 0 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color-soft);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.ed-input-flat::placeholder { color: var(--text-muted); }
.ed-input-flat:hover { border-bottom-color: var(--text-muted); }
.ed-input-flat:focus {
  border-bottom-color: var(--accent);
  border-bottom-width: 2px;
  padding-bottom: 9px;
}
.ed-textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.55;
  padding: 8px 0 10px;
}
.ed-error {
  font-size: 12px;
  color: var(--pr-red);
  margin-top: -2px;
}

/* ─── Filas de redes (planas) ─── */
.ed-row--social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color-soft);
  transition: border-color 0.15s var(--pr-ease),
              background 0.15s var(--pr-ease);
  border-radius: 6px;
}
.ed-row--social:hover {
  background: color-mix(in srgb, var(--bg-hover) 40%, transparent);
}
.ed-row--social:focus-within {
  border-bottom-color: var(--accent);
}
.ed-row--social.is-valid {
  border-bottom-color: color-mix(in srgb, var(--pr-green) 40%, transparent);
}
.ed-row--social.is-invalid {
  border-bottom-color: color-mix(in srgb, var(--pr-red) 40%, transparent);
}
.ed-social-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.15s var(--pr-ease);
}
.ed-social-icon svg { width: 16px; height: 16px; }
.ed-social-icon--ig { color: #833ab4; }
.ed-social-icon--x  { color: var(--text-primary); }
.ed-social-icon--tt { color: var(--text-primary); }
.ed-social-icon--yt { color: #ff0000; }
.ed-social-icon--tw { color: #9146ff; }

.ed-social-prefix {
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  user-select: none;
  letter-spacing: 0.1px;
}
.ed-social-input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: none;
}
.ed-row--social .ed-input-flat {
  border-bottom: none;
}
.ed-row--social:focus-within .ed-input-flat {
  border-bottom: none;
}
.ed-social-status {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}
.ed-social-status svg { width: 12px; height: 12px; }
.ed-row--social.is-valid .ed-social-status { color: var(--pr-green); }
.ed-row--social.is-invalid .ed-social-status { color: var(--pr-red); }

/* ─── Columna preview ─── */
.ed-preview-col { min-width: 0; }
.ed-preview-sticky {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 1024px) { .ed-preview-sticky { position: static; } }

.ed-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ed-preview-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.ed-preview-tabs {
  display: flex;
  gap: 4px;
}
.ed-preview-tab {
  padding: 4px 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s var(--pr-ease);
}
.ed-preview-tab:hover { color: var(--text-primary); }
.ed-preview-tab.is-active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ─── Preview (mockup dedicado) ─── */
.ed-preview {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 100%;
  transition: max-width 0.35s var(--pr-spring);
}
.ed-preview[data-mode="mobile"] {
  max-width: 300px;
  margin: 0 auto;
}

.ed-preview-mock {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ed-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ed-preview-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--accent) 85%, #000) 0%,
    var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ed-preview[data-mode="mobile"] .ed-preview-avatar {
  width: 54px; height: 54px;
}
.ed-preview-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ed-preview-avatar-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.ed-preview-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ed-preview-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.ed-preview-verified {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ed-preview-verified svg {
  width: 7px; height: 7px;
  stroke: #fff;
}
.ed-preview-handle {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.2;
}
.ed-preview-actions { flex-shrink: 0; }
.ed-preview-btn {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-hover);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}
.ed-preview[data-mode="mobile"] .ed-preview-actions { display: none; }

.ed-preview-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--border-color-soft);
  border-bottom: none;
}
.ed-preview-stat {
  display: inline-flex;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  align-items: baseline;
  line-height: 1.2;
}
.ed-preview-stat strong {
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.ed-preview-bio {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ed-preview-occupation {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}
.ed-preview-bio-text {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  white-space: pre-line;
  word-break: break-word;
}
.ed-preview-location {
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}
.ed-preview-location svg {
  width: 11px; height: 11px;
  opacity: 0.75;
  flex-shrink: 0;
}

.ed-preview-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ed-preview-social-link {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.15s var(--pr-ease);
}
.ed-preview-social-link svg {
  width: 14px; height: 14px;
  fill: currentColor;
  stroke: none;
}
.ed-preview-social-link.ig { color: #833ab4; }
.ed-preview-social-link.x  { color: var(--text-primary); }
.ed-preview-social-link.tt { color: var(--text-primary); }
.ed-preview-social-link.yt { color: #ff0000; }
.ed-preview-social-link.tw { color: #9146ff; }

/* ─── Completitud minimal ─── */
.ed-completeness {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ed-completeness-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.ed-completeness-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ed-completeness-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ed-completeness-bar {
  width: 100%;
  height: 3px;
  background: var(--bg-hover);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 4px;
}
.ed-completeness-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.4s var(--pr-spring);
}

.ed-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ed-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.ed-check-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-hover);
  flex-shrink: 0;
  transition: background 0.25s var(--pr-ease);
}
.ed-check-item.is-done {
  color: var(--text-primary);
}
.ed-check-item.is-done .ed-check-dot {
  background: var(--pr-green);
}

/* ─── Mobile editor ─── */
@media (max-width: 640px) {
  .ed-block { padding: 22px 0; }
  .ed-block-title { font-size: 14px; }
  .ed-avatar-row { gap: 18px; }
  .ed-avatar-preview { width: 72px; height: 72px; font-size: 26px; }
  .ed-avatar-btn { padding: 6px 12px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════
   MIS SUSCRIPCIONES · /profile/subscriptions
   ═══════════════════════════════════════════════════════════════════ */
.mysub-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 80px;
  min-height: 100vh;
}
.mysub-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--bg-page) 85%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-color-soft);
}
.mysub-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  flex-shrink: 0;
}
.mysub-close:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}
.mysub-close svg { width: 16px; height: 16px; }

.mysub-header-title { flex: 1; min-width: 0; }
.mysub-header-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.mysub-header-h1 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.mysub-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mysub-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 640px) {
  .mysub-wrap { padding: 24px 16px; }
}

.mysub-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--border-color-soft);
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .mysub-stats { grid-template-columns: 1fr; gap: 24px; }
}
.mysub-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.mysub-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mysub-stat-value {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1.2px;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mysub-stat-value small {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.mysub-list {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.mysub-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color-soft);
}
.mysub-item:last-child { border-bottom: none; }

.mysub-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.mysub-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mysub-avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mysub-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mysub-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mysub-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.2;
}
.mysub-name:hover { color: var(--accent); }

.mysub-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.mysub-badge-ok {
  background: color-mix(in srgb, var(--pr-green) 14%, transparent);
  color: var(--pr-green);
}
.mysub-badge-warn {
  background: var(--danger-soft);
  color: var(--danger);
}

.mysub-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.mysub-meta-item strong {
  color: var(--text-secondary);
  font-weight: 600;
}
.mysub-meta-dot { opacity: 0.4; }

.mysub-status-warn {
  display: inline-block;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.mysub-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
  align-self: flex-start;
  padding-top: 4px;
}
.mysub-form { margin: 0; }

.mysub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  min-height: 34px;
}
.mysub-btn-primary {
  background: transparent;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.mysub-btn-primary:hover {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.mysub-btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}
.mysub-btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}
.mysub-btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}
.mysub-btn-danger:hover {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 50%, transparent);
}

.mysub-foot-note {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 28px 0 0;
  text-align: center;
}

.mysub-empty {
  padding: 80px 24px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.mysub-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
}
.mysub-empty-icon svg { width: 28px; height: 28px; }
.mysub-empty-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 0;
}
.mysub-empty-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 8px;
  max-width: 340px;
}

@media (max-width: 640px) {
  .mysub-header { padding: 12px 14px; gap: 10px; }
  .mysub-header-h1 { font-size: 17px; }
  .mysub-header-eyebrow { font-size: 10px; }
  .mysub-close { width: 32px; height: 32px; }
  .mysub-close svg { width: 15px; height: 15px; }
  .mysub-stat-value { font-size: 26px; letter-spacing: -0.8px; }
  .mysub-item {
    flex-wrap: wrap;
    padding: 16px 0;
  }
  .mysub-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color-soft);
  }
}
.mysub-meta-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.mysub-meta-link:hover { color: var(--accent); }
.mysub-status-ok {
  display: inline-block;
  font-size: 12.5px;
  color: var(--pr-green);
  margin-top: 2px;
  font-weight: 500;
}
.mysub-meta-item strong {
  color: var(--text-primary);
  font-weight: 600;
}
.mysub-avatar {
  transition: opacity var(--dur) var(--ease);
}
.mysub-avatar:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════════════════════════════
   CONFIGURAR SUSCRIPCIÓN · /profile/subscription
   ═══════════════════════════════════════════════════════════════════ */
.sb-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 100px;
  min-height: 100vh;
}
.sb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-page) 85%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-color-soft);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
}
.sb-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s var(--pr-ease);
  flex-shrink: 0;
}
.sb-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: translateX(-2px);
}
.sb-close svg { width: 18px; height: 18px; }
.sb-header-title { flex: 1; min-width: 0; }
.sb-header-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.sb-header-h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.sb-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sb-toggle-form { margin: 0; }

.sb-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .sb-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px;
  }
}

.sb-form-col,
.sb-stats-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.sb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.25s var(--pr-ease);
}
.sb-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-color));
}
.sb-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color-soft);
}
.sb-card-head-tight {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color-soft);
}
.sb-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.sb-card-icon svg { width: 18px; height: 18px; }
.sb-card-title-group { flex: 1; min-width: 0; }
.sb-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 0 0 2px;
  line-height: 1.2;
}
.sb-card-title-sm { font-size: 14px; }
.sb-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.sb-intro {
  padding: 28px 26px;
  background: var(--bg-card);
}
.sb-intro-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 16px;
}
.sb-intro-icon svg { width: 22px; height: 22px; }
.sb-intro-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.2;
}
.sb-intro-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 18px;
  max-width: 520px;
}
.sb-intro-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb-intro-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-primary);
}
.sb-intro-list svg {
  width: 16px;
  height: 16px;
  color: var(--pr-green);
  flex-shrink: 0;
}

.sb-form {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sb-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.sb-field-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 4px;
}
.sb-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sb-char-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.sb-char-count.is-warn { color: #ff6ba8; }
.sb-char-count.is-full { color: var(--danger); }

.sb-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1.5px solid transparent;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: all 0.2s var(--pr-ease);
  box-sizing: border-box;
}
.sb-input::placeholder { color: var(--text-muted); }
.sb-input:hover { border-color: var(--border-color); }
.sb-input:focus {
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.sb-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
  font-family: inherit;
}

.sb-price-input {
  position: relative;
  display: flex;
  align-items: center;
}
.sb-price-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}
.sb-price-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  pointer-events: none;
  text-transform: uppercase;
}
.sb-input-price {
  padding-left: 40px;
  padding-right: 70px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.sb-input-price::-webkit-outer-spin-button,
.sb-input-price::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sb-input-price[type=number] { -moz-appearance: textfield; }
.sb-error {
  font-size: 12.5px;
  color: var(--danger);
  margin-top: -2px;
}

.sb-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--pr-ease);
}
.sb-switch:hover {
  border-color: var(--border-color);
}
.sb-switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sb-switch-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--text-muted) 30%, transparent);
  transition: background 0.25s var(--pr-ease);
  flex-shrink: 0;
}
.sb-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--pr-spring);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.sb-switch-input:checked + .sb-switch-track {
  background: var(--accent);
}
.sb-switch-input:checked + .sb-switch-track .sb-switch-thumb {
  transform: translateX(18px);
}
.sb-switch-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-switch-label strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.sb-switch-label span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.sb-notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.sb-notice svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.sb-notice-info {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--text-primary);
}
.sb-notice-info svg { color: var(--accent); }
.sb-notice strong { color: var(--text-primary); }

.sb-form-actions {
  display: flex;
  gap: 8px;
  padding-top: 4px;
  align-items: center;
}

.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  min-height: 36px;
}
.sb-btn-primary {
  background: transparent;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.sb-btn-primary:hover {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.sb-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.sb-btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.sb-btn-ghost.is-on {
  color: var(--pr-green);
  border-color: color-mix(in srgb, var(--pr-green) 35%, transparent);
  background: color-mix(in srgb, var(--pr-green) 6%, transparent);
}
.sb-btn-ghost.is-on:hover {
  background: color-mix(in srgb, var(--pr-green) 12%, transparent);
  border-color: color-mix(in srgb, var(--pr-green) 50%, transparent);
}
.sb-btn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.sb-stat-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sb-stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sb-stat-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  line-height: 1.1;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}
.sb-stat-value small {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-left: 4px;
}
.sb-stat-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.sb-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sb-stat-mini {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sb-stat-mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 4px;
}
.sb-stat-mini-icon svg { width: 15px; height: 15px; }
.sb-stat-mini-icon--violet {
  background: var(--accent-soft);
  color: var(--accent);
}
.sb-stat-mini-icon--coral {
  background: rgba(255, 107, 168, 0.15);
  color: #ff6ba8;
}
.sb-stat-mini-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.1;
}
.sb-stat-mini-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sb-subs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sb-subs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color-soft);
  transition: background 0.15s ease;
}
.sb-subs-item:last-child { border-bottom: none; }
.sb-subs-item:hover { background: var(--bg-hover); }
.sb-subs-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.sb-subs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sb-subs-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-subs-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-subs-name:hover { color: var(--accent); }
.sb-subs-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}
.sb-subs-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sb-subs-status--active {
  background: var(--pr-green);
}

.sb-empty-card {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-style: dashed;
}
.sb-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 6px;
}
.sb-empty-icon svg { width: 26px; height: 26px; }
.sb-empty-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.sb-empty-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  max-width: 280px;
}

@media (max-width: 640px) {
  .sb-header { padding: 12px 14px; gap: 10px; }
  .sb-header-h1 { font-size: 17px; }
  .sb-header-eyebrow { font-size: 9px; }
  .sb-close { width: 36px; height: 36px; }
  .sb-close svg { width: 16px; height: 16px; }
  .sb-stat-value { font-size: 28px; letter-spacing: -1px; }
  .sb-stat-mini-value { font-size: 18px; }
  .sb-form { padding: 18px; gap: 16px; }
  .sb-card-head { padding: 14px 18px; }
  .sb-intro { padding: 22px 20px; }
  .sb-intro-title { font-size: 19px; }
}

/* ═══════════════════════════════════════════════════════════════════
   PÁGINA PÚBLICA DE SUSCRIPCIÓN · /p/subscribe/<username>
   ═══════════════════════════════════════════════════════════════════ */
.sb-sub-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .sb-sub-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px;
  }
}
.sb-sub-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1024px) {
  .sb-sub-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 24px 16px;
  }
}
.sb-sub-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.sb-sub-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border-color-soft);
}
.sb-sub-section:first-child { padding-top: 0; }
.sb-sub-section:last-child { border-bottom: none; padding-bottom: 0; }
.sb-sub-creator-section {
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--border-color-soft);
}
.sb-sub-creator {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.sb-sub-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sb-sub-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sb-sub-creator-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sb-sub-creator-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.sb-sub-creator-name svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.sb-sub-creator-handle {
  font-size: 13px;
  color: var(--text-muted);
}
.sb-sub-price-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sb-sub-price-value {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sb-sub-price-value small {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.sb-sub-price-period {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.sb-sub-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  white-space: pre-wrap;
  word-break: break-word;
}
.sb-sub-benefits-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.sb-sub-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sb-sub-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}
.sb-sub-benefits-list svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.sb-sub-benefits-list strong {
  color: var(--text-primary);
  font-weight: 700;
}
.sb-sub-muted {
  color: var(--text-muted);
}
.sb-sub-aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 84px;
}
@media (max-width: 1024px) {
  .sb-sub-aside { position: static; }
}
.sb-sub-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sb-sub-cta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.sb-sub-cta-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}
.sb-sub-active {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--pr-green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--pr-green) 25%, transparent);
}
.sb-sub-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pr-green);
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pr-green) 20%, transparent);
}
.sb-sub-active-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sb-sub-active-info strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.sb-sub-active-info span {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}
.sb-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.sb-btn-primary {
  background: var(--accent);
  color: #fff;
}
.sb-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.sb-btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}
.sb-btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}
.sb-btn-lg {
  padding: 14px 22px;
  font-size: 14px;
}
.sb-sub-how {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border-color-soft);
}
.sb-sub-how-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--text-primary);
  margin: 0;
}
.sb-sub-how-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sb-sub-how-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sb-sub-how-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.sb-sub-how-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sb-sub-how-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.sb-sub-how-text span {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}
.sb-sub-notice {
  display: flex;
  gap: 12px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border-color-soft);
}
.sb-sub-notice > svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
}
.sb-sub-notice-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sb-sub-notice-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.sb-sub-notice-text p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
.sb-sub-notice-text p strong {
  display: inline;
  color: var(--text-primary);
}
@media (max-width: 640px) {
  .sb-header { padding: 12px 14px; gap: 10px; }
  .sb-header-h1 { font-size: 17px; }
  .sb-header-eyebrow { font-size: 10px; }
  .sb-close { width: 32px; height: 32px; }
  .sb-close svg { width: 15px; height: 15px; }
  .sb-sub-price-value { font-size: 36px; letter-spacing: -1.2px; }
  .sb-sub-section { padding: 20px 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   USUARIOS BLOQUEADOS · /profile/blocked
   ═══════════════════════════════════════════════════════════════════ */
.mysub-item .mysub-avatar {
  background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
}
html[data-theme="light"] .mysub-item .mysub-avatar {
  background: linear-gradient(135deg, #d0d0d0 0%, #b0b0b0 100%);
  color: #333;
}

/* ═══════════════════════════════════════════════════════════════════
   SUSCRIPCIÓN · panel del creador (IG-level · sin cards)
   ═══════════════════════════════════════════════════════════════════ */
.sb-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 80px;
  min-height: 100vh;
}
.sb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--bg-page) 85%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-color-soft);
}
.sb-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  flex-shrink: 0;
}
.sb-close:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}
.sb-close svg { width: 16px; height: 16px; }
.sb-header-title { flex: 1; min-width: 0; }
.sb-header-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.sb-header-h1 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.sb-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
}
.sb-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.sb-status-pill--active {
  color: var(--pr-green);
  background: color-mix(in srgb, var(--pr-green) 10%, transparent);
  border-color: color-mix(in srgb, var(--pr-green) 30%, transparent);
}
.sb-status-pill--active .sb-status-dot {
  opacity: 1;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pr-green) 20%, transparent);
}
.sb-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1024px) {
  .sb-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 24px 16px;
  }
}
.sb-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sb-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color-soft);
}
.sb-section:first-child { padding-top: 0; }
.sb-section:last-of-type { border-bottom: none; }
.sb-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.sb-section-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--text-primary);
  margin: 0;
}
.sb-section-hint {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sb-field-meta {
  display: flex;
  justify-content: flex-end;
}
.sb-field-price {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 0;
}
.sb-price-symbol {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
}
.sb-input-price {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.sb-input-price::placeholder { color: var(--text-muted); opacity: 0.5; }
.sb-input-price::-webkit-outer-spin-button,
.sb-input-price::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.sb-input-price[type=number] { -moz-appearance: textfield; }
.sb-price-currency {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sb-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  box-sizing: border-box;
}
.sb-input::placeholder { color: var(--text-muted); }
.sb-input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
}
.sb-textarea {
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
}
.sb-char-count {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.sb-char-count.is-near { color: #ff6ba8; }
.sb-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 4px 0;
}
.sb-switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sb-switch-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--text-muted) 30%, transparent);
  transition: background var(--dur) var(--ease);
  flex-shrink: 0;
}
.sb-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--dur-spring, 0.25s) cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.sb-switch-input:checked + .sb-switch-track {
  background: var(--accent);
}
.sb-switch-input:checked + .sb-switch-track .sb-switch-thumb {
  transform: translateX(18px);
}
.sb-switch-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.sb-switch-label strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.sb-switch-label span {
  font-size: 13px;
  color: var(--text-muted);
}
.sb-note {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin: 20px 0 0;
  border-radius: var(--r-md);
  background: var(--accent-soft, rgba(124, 92, 255, 0.08));
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.5;
}
.sb-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
}
.sb-note p { margin: 0; }
.sb-note strong { color: var(--text-primary); font-weight: 700; }
.sb-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  padding-top: 0;
}
.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.sb-btn-primary {
  background: var(--accent);
  color: #fff;
}
.sb-btn-primary:hover {
  background: var(--accent-hover);
}
.sb-btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}
.sb-btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}
.sb-intro {
  padding: 8px 0 32px;
  border-bottom: 1px solid var(--border-color-soft);
}
.sb-intro-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.2;
}
.sb-intro-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 20px;
  max-width: 520px;
}
.sb-intro-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb-intro-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-primary);
}
.sb-intro-list svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.sb-aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 84px;
}
@media (max-width: 1024px) {
  .sb-aside { position: static; }
}
.sb-mrr {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sb-mrr-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sb-mrr-value {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sb-mrr-value small {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.sb-mrr-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.sb-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color-soft);
  border-bottom: 1px solid var(--border-color-soft);
}
.sb-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sb-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sb-stat-value {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.sb-recent {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sb-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sb-recent-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--text-primary);
  margin: 0;
}
.sb-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.sb-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color-soft);
}
.sb-recent-item:last-child { border-bottom: none; }
.sb-recent-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.sb-recent-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sb-recent-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sb-recent-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-recent-name:hover { color: var(--accent); }
.sb-recent-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}
.sb-recent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pr-green);
  flex-shrink: 0;
}
.sb-recent-empty {
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}
@media (max-width: 640px) {
  .sb-header { padding: 12px 14px; gap: 10px; }
  .sb-header-h1 { font-size: 17px; }
  .sb-header-eyebrow { font-size: 10px; }
  .sb-close { width: 32px; height: 32px; }
  .sb-close svg { width: 15px; height: 15px; }
  .sb-mrr-value { font-size: 32px; letter-spacing: -1px; }
  .sb-stat-value { font-size: 18px; }
  .sb-form-actions { flex-direction: column-reverse; }
  .sb-form-actions .sb-btn { width: 100%; }
  .sb-input-price { font-size: 26px; }
  .sb-price-symbol { font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════════════════
   PÁGINA PÚBLICA DE SUSCRIPCIÓN · /p/subscribe/<username>
   ═══════════════════════════════════════════════════════════════════ */
.sbs-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 80px;
  min-height: 100vh;
}
.sbs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--bg-page) 85%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-color-soft);
}
.sbs-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  flex-shrink: 0;
}
.sbs-close:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}
.sbs-close svg { width: 16px; height: 16px; }
.sbs-header-title { flex: 1; min-width: 0; }
.sbs-header-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.sbs-header-h1 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.sbs-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1024px) {
  .sbs-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 24px 16px;
  }
}
.sbs-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.sbs-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color-soft);
}
.sbs-section:first-child { padding-top: 0; }
.sbs-section:last-child { border-bottom: none; padding-bottom: 0; }
.sbs-section-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.sbs-creator-section { padding-top: 4px; padding-bottom: 24px; }
.sbs-creator {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.sbs-creator-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sbs-creator-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sbs-creator-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sbs-creator-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.sbs-creator-name svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.sbs-creator-handle {
  font-size: 13px;
  color: var(--text-muted);
}
.sbs-price-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sbs-price-value {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sbs-price-value small {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.sbs-price-period {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.sbs-plan-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  white-space: pre-wrap;
  word-break: break-word;
}
.sbs-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sbs-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}
.sbs-benefits svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.sbs-benefits strong {
  color: var(--text-primary);
  font-weight: 700;
}
.sbs-benefits-muted {
  color: var(--text-muted);
}
.sbs-aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 84px;
}
@media (max-width: 1024px) {
  .sbs-aside { position: static; }
}
.sbs-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sbs-cta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.sbs-cta-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}
.sbs-cta-active {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--pr-green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--pr-green) 25%, transparent);
}
.sbs-cta-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pr-green);
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pr-green) 20%, transparent);
}
.sbs-cta-active-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sbs-cta-active-info strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.sbs-cta-active-info span {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.sbs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}
.sbs-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.sbs-btn-primary {
  background: var(--accent);
  color: #fff;
}
.sbs-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.sbs-btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}
.sbs-btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}
.sbs-btn-lg {
  padding: 14px 22px;
  font-size: 14px;
}
.sbs-how {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border-color-soft);
}
.sbs-how-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--text-primary);
  margin: 0;
}
.sbs-how-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sbs-how-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sbs-how-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.sbs-how-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sbs-how-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.sbs-how-text span {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}
.sbs-notice {
  display: flex;
  gap: 12px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border-color-soft);
}
.sbs-notice > svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
}
.sbs-notice-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sbs-notice-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.sbs-notice-text p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
.sbs-notice-text strong:not(:first-child) {
  display: inline;
  color: var(--text-primary);
}
@media (max-width: 640px) {
  .sbs-header { padding: 12px 14px; gap: 10px; }
  .sbs-header-h1 { font-size: 17px; }
  .sbs-header-eyebrow { font-size: 10px; }
  .sbs-close { width: 32px; height: 32px; }
  .sbs-close svg { width: 15px; height: 15px; }
  .sbs-price-value { font-size: 36px; letter-spacing: -1.2px; }
  .sbs-section { padding: 20px 0; }
  .sbs-cta-active { flex-direction: row; }
}

/* ═══════════════════════════════════════════════════════════════════
   MIS VENTAS · /sales/
   ═══════════════════════════════════════════════════════════════════ */
.sales-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  min-height: 100vh;
}
@media (max-width: 640px) {
  .sales-page { padding: 24px 16px 64px; }
}
.sales-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color-soft);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sales-header-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sales-header-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sales-header-h1 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.15;
}
.sales-header-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.sales-header-link:hover {
  color: var(--accent-hover);
}
.sales-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--border-color-soft);
}
@media (max-width: 480px) {
  .sales-summary { gap: 24px; }
}
.sales-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.sales-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sales-stat-value {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1.2px;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sales-stat-value small {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-left: 4px;
}
.sales-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.sales-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color-soft);
}
.sales-item:last-child { border-bottom: none; }
.sales-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
  display: block;
  text-decoration: none;
  transition: opacity var(--dur) var(--ease);
}
.sales-thumb:hover { opacity: 0.85; }
.sales-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sales-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.sales-thumb-empty svg { width: 22px; height: 22px; }
.sales-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sales-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.15px;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--dur) var(--ease);
}
.sales-title:hover { color: var(--accent); }
.sales-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.sales-meta-item { color: var(--text-muted); }
.sales-meta-dot { opacity: 0.4; }
.sales-amounts {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.sales-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.1px;
}
.sales-amount small {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-left: 2px;
}
.sales-commission {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.sales-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sales-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}
.sales-badge-ok {
  background: color-mix(in srgb, var(--pr-green) 14%, transparent);
  color: var(--pr-green);
}
.sales-badge-warn {
  background: color-mix(in srgb, #ffb74d 15%, transparent);
  color: #d68a1f;
}
html[data-theme="light"] .sales-badge-warn { color: #b06b00; }
.sales-badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.sales-badge-muted {
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.sales-more {
  padding: 24px 0 0;
  text-align: center;
}
.sales-more-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.sales-more-link:hover { color: var(--accent-hover); }
.sales-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  min-height: 36px;
}
.sales-btn-primary {
  background: transparent;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.sales-btn-primary:hover {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.sales-empty {
  padding: 80px 24px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.sales-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
}
.sales-empty-icon svg { width: 28px; height: 28px; }
.sales-empty-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 0;
}
.sales-empty-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 8px;
  max-width: 340px;
}
@media (max-width: 640px) {
  .sales-header-h1 { font-size: 22px; letter-spacing: -0.4px; }
  .sales-stat-value { font-size: 26px; letter-spacing: -0.8px; }
  .sales-item {
    flex-wrap: wrap;
    gap: 12px;
  }
  .sales-thumb {
    width: 56px;
    height: 56px;
  }
  .sales-info {
    flex: 1 1 calc(100% - 72px);
  }
  .sales-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color-soft);
  }
}