/* ═══════════════════════════════════════════════════════════════════════
   account.css — Página Cuenta (Fase 1)
   Dise\u00f1o oscuro premium fiel a la referencia visual: banner mesh
   p\u00farpura, avatar con anillo, chips redondeadas, tarjetas de stats
   con icono cuadrado a color, panel con pesta\u00f1as, actividad y muro.
   Todos los colores se derivan de --mml-a (acento del tema del usuario)
   para respetar el tema/apariencia.
   ═══════════════════════════════════════════════════════════════════════ */

/* Variables locales que dependen del acento global del tema */
.mml-account-page {
  --acc: rgb(var(--mml-a, 139, 92, 246));
  --acc-2: rgb(var(--mml-a, 139, 92, 246));
  --acc-soft: rgba(var(--mml-a, 139, 92, 246), .16);
  --acc-line: rgba(var(--mml-a, 139, 92, 246), .38);
  --surface-0: #0a0d1c;
  --surface-1: #10142a;
  --surface-2: #161b36;
  --surface-3: #1c2242;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --ink: #eef1ff;
  --ink-2: #c7cbe4;
  --ink-3: #8b90b3;

  max-width: none;
  margin: 0;
  padding: 0 0 120px;
  color: var(--ink);
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(139, 92, 246, .12), transparent 60%), var(--surface-0);
}

/* Modo claro: la p\u00e1gina siempre queda en su tema oscuro premium porque as\u00ed
   se ve la referencia. Si el usuario est\u00e1 en tema claro respetamos el
   acento (--mml-a) pero mantenemos la superficie oscura del panel. */

/* ══════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════ */
.acct-hero { position: relative; margin: 0; }

.acct-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-color: #0b0f22;
  background-image:
    radial-gradient(70% 100% at 12% 8%,  rgba(99, 102, 241, .55) 0%, transparent 62%),
    radial-gradient(65% 95% at 92% 100%, rgba(139, 92, 246, .48) 0%, transparent 68%),
    radial-gradient(60% 80% at 60% 40%,  rgba(236, 72, 153, .22) 0%, transparent 70%),
    linear-gradient(140deg, #08091a 0%, #0e1230 50%, #0d1224 100%);
  background-size: cover;
  background-position: center;
}
.acct-banner.has-img { background-size: cover; }
.acct-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255, 255, 255, .014) 3px 4px);
  pointer-events: none;
}
.acct-banner-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 14, .05) 0%, rgba(5, 6, 14, .35) 55%, rgba(10, 13, 28, .95) 100%),
    linear-gradient(90deg, rgba(5, 6, 14, .35) 0%, transparent 45%);
  pointer-events: none;
}

.acct-banner-actions {
  position: absolute; top: 16px; right: 18px;
  display: flex; gap: 8px; z-index: 3;
}
.acct-img-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(8, 10, 22, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #f1f5ff; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background .15s, transform .15s, border-color .15s;
}
.acct-img-btn:hover { background: rgba(8, 10, 22, .82); border-color: var(--acc-line); transform: translateY(-1px); }
.acct-img-btn-danger { color: #fca5a5; border-color: rgba(248, 113, 113, .3); padding: 8px 11px; font-size: 14px; line-height: 1; }

/* Fila del hero */
.acct-hero-row {
  display: flex; align-items: flex-end; gap: 24px;
  padding: 0 clamp(16px, 4vw, 56px);
  margin-top: -90px;
  position: relative; z-index: 4;
}

.acct-avatar-wrap { position: relative; flex: 0 0 auto; }
.acct-avatar {
  width: 168px; height: 168px; border-radius: 50%;
  background: linear-gradient(135deg, #1a2040 0%, #0f1330 100%);
  border: 4px solid var(--acc);
  box-shadow: 0 12px 40px -12px rgba(139, 92, 246, .55), 0 0 0 6px rgba(10, 13, 28, .9);
  overflow: hidden;
  display: grid; place-items: center;
  font-size: 68px; font-weight: 800; color: var(--acc);
  letter-spacing: -.02em;
}
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-avatar-cam {
  position: absolute; right: 6px; bottom: 6px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--acc); color: #fff; border: 3px solid #0a0d1c;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(139, 92, 246, .55);
  transition: transform .15s;
}
.acct-avatar-cam:hover { transform: scale(1.08); }

.acct-id { flex: 1 1 auto; min-width: 0; padding-bottom: 12px; }
.acct-kicker { display: none; }
.acct-name {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800; letter-spacing: -.02em;
  margin: 0 0 4px; color: #fff;
  line-height: 1.05;
}
.acct-email { margin: 0 0 12px; color: var(--ink-3); font-size: 14px; }

/* Chips: Google · Sincronizado */
.acct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.acct-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, .06); color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.acct-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.acct-chip-google { color: #93c5fd; }
.acct-chip-cloud  { color: #c4b5fd; }
.acct-chip-local  { color: #fcd34d; }

/* Info secundaria (ubicaci\u00f3n, miembro desde) */
.acct-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 10px; color: var(--ink-3); font-size: 13px;
}
.acct-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.acct-meta svg { opacity: .85; }

/* Bot\u00f3n editar perfil (right side) */
.acct-hero-actions { flex: 0 0 auto; padding-bottom: 8px; }
.acct-edit-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-2);
  color: var(--ink); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.acct-edit-pill:hover { background: rgba(255, 255, 255, .1); border-color: var(--acc-line); }

/* ══════════════════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL 2 COLUMNAS
   ══════════════════════════════════════════════════════════════════════ */
.acct-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 32px clamp(16px, 4vw, 56px) 0;
  align-items: start;
}
.acct-col-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.acct-col-right { display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 1024px) {
  .acct-page-layout { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   TARJETA GEN\u00c9RICA (card)
   ══════════════════════════════════════════════════════════════════════ */
.acct-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px -6px rgba(0, 0, 0, .5);
}
.acct-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: -4px 0 14px;
}
.acct-card-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.acct-card-more  { color: var(--acc); font-size: 12px; font-weight: 600; cursor: pointer; background: none; border: none; }
.acct-card-more:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════
   ESTAD\u00cdSTICAS GENERALES (6 tarjetas)
   ══════════════════════════════════════════════════════════════════════ */
.acct-stats-wrap { display: flex; flex-direction: column; gap: 12px; }
.acct-stats-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px;
}
.acct-stats-title { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.acct-stats-period {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer;
}

.acct-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1280px) { .acct-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .acct-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.acct-stat {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.acct-stat-ico {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
}
.acct-stat-ico[data-c="purple"] { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 6px 18px -6px rgba(139, 92, 246, .55); }
.acct-stat-ico[data-c="indigo"] { background: linear-gradient(135deg, #6366f1, #4338ca); box-shadow: 0 6px 18px -6px rgba(99, 102, 241, .55); }
.acct-stat-ico[data-c="pink"]   { background: linear-gradient(135deg, #ec4899, #be185d); box-shadow: 0 6px 18px -6px rgba(236, 72, 153, .55); }
.acct-stat-ico[data-c="green"]  { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 6px 18px -6px rgba(34, 197, 94, .55); }
.acct-stat-ico[data-c="amber"]  { background: linear-gradient(135deg, #f59e0b, #b45309); box-shadow: 0 6px 18px -6px rgba(245, 158, 11, .55); }
.acct-stat-ico[data-c="rose"]   { background: linear-gradient(135deg, #f43f5e, #9f1239); box-shadow: 0 6px 18px -6px rgba(244, 63, 94, .55); }

.acct-stat-num { font-size: 24px; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.02em; }
.acct-stat-lbl { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; font-weight: 500; }

/* ══════════════════════════════════════════════════════════════════════
   PANEL CON PESTA\u00d1AS (Sobre m\u00ed, Logros, T\u00edtulos, Ajustes)
   ══════════════════════════════════════════════════════════════════════ */
.acct-panels-wrap {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.acct-panels-tabs {
  display: flex; gap: 4px;
  padding: 10px 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.acct-panels-tabs::-webkit-scrollbar { display: none; }

.acct-stab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px 10px 0 0;
  background: transparent; border: none;
  color: var(--ink-3); font-size: 13px; font-weight: 600; cursor: pointer;
  position: relative; white-space: nowrap;
  transition: color .15s, background .15s;
}
.acct-stab:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.acct-stab.active { color: #fff; background: rgba(255, 255, 255, .04); }
.acct-stab.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--acc); border-radius: 2px 2px 0 0;
}
.acct-stab svg { width: 15px; height: 15px; opacity: .85; }

.acct-panel { display: none; padding: 22px; }
.acct-panel.active { display: block; }

/* Grid interior de Sobre m\u00ed: bio + recomendaciones */
.acct-about-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .acct-about-grid { grid-template-columns: 1fr; } }

/* Bio card */
.acct-bio-card {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.acct-bio-card h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.acct-bio-textarea {
  width: 100%;
  min-height: 90px;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; color: var(--ink);
  font: inherit; font-size: 13px; line-height: 1.5;
  resize: vertical;
}
.acct-bio-textarea:focus { outline: none; border-color: var(--acc-line); }
.acct-bio-count { margin-top: 6px; text-align: right; font-size: 11px; color: var(--ink-3); }
.acct-bio-save {
  margin-top: 8px; padding: 8px 14px; border-radius: 10px;
  background: var(--acc); color: #fff; border: none;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
}

/* Fav rows dentro de Sobre m\u00ed */
.acct-fav-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.acct-fav-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 12px;
  background: var(--surface-1); border: 1px solid var(--line);
}
.acct-fav-thumb {
  width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex: 0 0 auto;
  background: var(--surface-3);
}
.acct-fav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-fav-label { font-size: 11px; color: var(--ink-3); }
.acct-fav-value { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 1px; }

/* ══════════════════════════════════════════════════════════════════════
   ACTIVIDAD RECIENTE (columna derecha)
   ══════════════════════════════════════════════════════════════════════ */
.acct-activity-list { display: flex; flex-direction: column; gap: 14px; }
.acct-act-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px; align-items: center;
}
.acct-act-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; flex: 0 0 auto;
}
.acct-act-ico[data-c="green"]  { background: linear-gradient(135deg, #22c55e, #15803d); }
.acct-act-ico[data-c="purple"] { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.acct-act-ico[data-c="indigo"] { background: linear-gradient(135deg, #6366f1, #4338ca); }
.acct-act-ico[data-c="amber"]  { background: linear-gradient(135deg, #f59e0b, #b45309); }
.acct-act-ico[data-c="pink"]   { background: linear-gradient(135deg, #ec4899, #be185d); }
.acct-act-text {
  min-width: 0; font-size: 13px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acct-act-when { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════════════
   MURO (columna derecha)
   ══════════════════════════════════════════════════════════════════════ */
.acct-wall-composer {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px; align-items: start;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.acct-wall-composer-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-3); overflow: hidden;
  display: grid; place-items: center; color: var(--acc); font-weight: 700;
}
.acct-wall-composer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-wall-input {
  width: 100%;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; color: var(--ink);
  font: inherit; font-size: 13px; resize: none; min-height: 36px;
}
.acct-wall-input:focus { outline: none; border-color: var(--acc-line); }
.acct-wall-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.acct-wall-tools { display: inline-flex; gap: 4px; }
.acct-wall-tool {
  width: 28px; height: 28px; border-radius: 8px;
  background: transparent; border: none;
  color: var(--ink-3); cursor: pointer;
  display: grid; place-items: center;
}
.acct-wall-tool:hover { color: var(--acc); background: rgba(255, 255, 255, .04); }
.acct-wall-post {
  padding: 7px 16px; border-radius: 10px;
  background: var(--acc); color: #fff; border: none;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.acct-wall-post:disabled { opacity: .5; cursor: not-allowed; }

.acct-wall-list { display: flex; flex-direction: column; gap: 16px; }
.acct-wall-post-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
}
.acct-wall-post-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden; background: var(--surface-3);
  display: grid; place-items: center; color: var(--acc); font-weight: 700;
}
.acct-wall-post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-wall-post-head {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; color: var(--ink);
}
.acct-wall-post-name { font-weight: 700; }
.acct-wall-post-when { font-size: 11px; color: var(--ink-3); }
.acct-wall-post-body { margin-top: 4px; font-size: 13px; color: var(--ink-2); line-height: 1.45; word-wrap: break-word; }
.acct-wall-post-actions {
  display: flex; gap: 14px; margin-top: 6px;
  color: var(--ink-3); font-size: 11.5px;
}
.acct-wall-post-actions .act {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
}
.acct-wall-post-actions .act:hover { color: var(--acc); }
.acct-wall-post-actions .act svg { width: 14px; height: 14px; }

.acct-empty {
  padding: 24px 8px; text-align: center;
  color: var(--ink-3); font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════════════
   DRAWER (menu lateral cuando se pulsa "Editar perfil")
   ══════════════════════════════════════════════════════════════════════ */
.acct-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px);
  z-index: 98; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mml-account-page.drawer-open .acct-drawer-overlay { opacity: 1; pointer-events: auto; }

#acct-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 92vw);
  z-index: 99; background: var(--surface-1); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.mml-account-page.drawer-open #acct-drawer { transform: translateX(0); }
.acct-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.acct-drawer-head-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.acct-drawer-close {
  background: none; border: none; color: var(--ink-3); cursor: pointer;
  font-size: 18px; padding: 4px 8px;
}
.acct-drawer-profile {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.acct-drawer-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface-3); overflow: hidden;
  display: grid; place-items: center; color: var(--acc); font-weight: 700;
}
.acct-drawer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-drawer-uname { font-size: 14px; font-weight: 700; color: var(--ink); }
.acct-drawer-ulvl  { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.acct-drawer-nav { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.acct-drawer-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.acct-dnav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: transparent; border: none; color: var(--ink-2);
  font-size: 13px; font-weight: 600; cursor: pointer; text-align: left;
  width: 100%;
}
.acct-dnav-btn:hover { background: rgba(255, 255, 255, .04); color: var(--ink); }
.acct-dnav-btn.active { background: var(--acc-soft); color: var(--acc); }
.acct-dnav-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.acct-drawer-foot { padding: 10px; border-top: 1px solid var(--line); }

/* ══════════════════════════════════════════════════════════════════════
   NIVEL (barra fina bajo el hero)
   ══════════════════════════════════════════════════════════════════════ */
#acct-level-bar { padding: 0 clamp(16px, 4vw, 56px); }

/* ══════════════════════════════════════════════════════════════════════
   ADJUSTES DE M\u00d3VIL
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .acct-banner { height: 200px; }
  .acct-hero-row { flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-top: -70px; }
  .acct-avatar { width: 128px; height: 128px; font-size: 52px; }
  .acct-name { font-size: 26px; }
  .acct-id { padding-bottom: 0; }
  .acct-chips { justify-content: center; }
  .acct-hero-actions { padding-bottom: 0; width: 100%; display: flex; justify-content: center; }
  .acct-page-layout { padding: 20px 14px 0; gap: 16px; }
  .acct-panel { padding: 16px; }
}

/* ══════════════════════════════════════════════════════════════════════
   FALLBACKS: mantener compat con estilos previos del proyecto
   (clases usadas por profile-social.js: .ps-*)
   ══════════════════════════════════════════════════════════════════════ */
.ps-empty { padding: 20px 0; text-align: center; color: var(--ink-3); font-size: 13px; }
.ps-ava { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--surface-3); color: var(--acc); font-weight: 700; }
.ps-ava img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════════════════════════════════
   REDISEÑO CUENTA v2 — Fiel a la referencia (pagina_cuenta.png)
   Añade: stats grid coloreado, charts row, sobre mí editable,
   logros hex-grid, colección destacada, actividad y muro social.
   ══════════════════════════════════════════════════════════════════════ */

/* Cabecera del hero: bio corta + ubicación + miembro desde */
.acct-hero-extra {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin-top: 10px; color: var(--ink-3); font-size: 13px;
}
.acct-hero-meta { display: inline-flex; align-items: center; gap: 6px; }
.acct-hero-meta svg { color: var(--acc); }
.acct-hero-bio {
  margin: 12px 0 0; color: var(--ink-2); font-size: 14px;
  max-width: 640px; line-height: 1.5;
}

/* Botón "Cómo lo ven los demás" */
.ps-btn-public {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--acc-soft); border: 1px solid var(--acc-line);
  color: var(--acc); font-size: 13px; font-weight: 600; cursor: pointer;
  margin: 8px 0 0;
  transition: filter .15s ease;
}
.ps-btn-public:hover { filter: brightness(1.15); }

/* ─── PS card / tipografía común ─────────────────────────────────── */
.ps-card {
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.ps-h2 {
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin: 0 0 12px; letter-spacing: .01em;
}
.ps-h2-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.ps-h2-row .ps-h2 { margin: 0; }
.ps-subtitle { color: var(--ink-2); font-size: 13px; margin: 6px 0; }
.ps-link-sm {
  color: var(--acc); font-size: 12px; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.ps-link-sm:hover { text-decoration: underline; }
.ps-period-chip {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05); color: var(--ink-2);
  font-size: 11px; font-weight: 600;
}

.ps-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: transparent;
  color: var(--ink); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: filter .15s ease, transform .1s ease;
}
.ps-btn:hover { filter: brightness(1.1); }
.ps-btn-primary {
  background: linear-gradient(135deg, var(--acc), var(--acc));
  border: none; color: #fff;
  box-shadow: 0 6px 18px rgba(var(--mml-a,139,92,246), .35);
}
.ps-btn-primary:hover { transform: translateY(-1px); }
.ps-icon-btn {
  background: transparent; border: none; color: var(--ink-3);
  padding: 6px; border-radius: 8px; cursor: pointer;
}
.ps-icon-btn:hover { color: var(--acc); background: rgba(255,255,255,.04); }
.ps-x {
  background: transparent; border: none; color: var(--ink-3);
  cursor: pointer; padding: 4px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ps-x:hover { color: #f87171; background: rgba(248,113,113,.1); }

/* ─── ESTADÍSTICAS: 6 tarjetas coloreadas ────────────────────────── */
.acct-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.acct-stat {
  display: flex; gap: 12px; align-items: center;
  padding: 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}
.acct-stat-ico {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  border-radius: 12px;
}
.acct-stat-body { display: flex; flex-direction: column; min-width: 0; }
.acct-stat-body b {
  font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1;
}
.acct-stat-l {
  font-size: 11px; color: var(--ink-3);
  margin-top: 4px; line-height: 1.25;
}

/* ─── CHARTS ROW ─────────────────────────────────────────────────── */
.acct-charts-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.acct-chart-card { padding: 16px 18px; margin: 0; }
.acct-chart-h {
  font-size: 13px; font-weight: 700; color: var(--ink);
  margin: 0 0 12px;
}
.acct-pie-wrap {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
}
.acct-pie { display: grid; place-items: center; }
.acct-pie-legend { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.acct-legend-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.acct-legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.acct-legend-lbl { color: var(--ink-2); }
.acct-legend-val { color: var(--ink-3); font-variant-numeric: tabular-nums; }

.acct-genres { display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.acct-genre-row {
  display: grid; grid-template-columns: 90px 1fr 44px;
  gap: 10px; align-items: center;
}
.acct-genre-name { color: var(--ink-2); }
.acct-genre-bar {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); overflow: hidden;
}
.acct-genre-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--acc), rgba(var(--mml-a,139,92,246),.55));
  border-radius: 999px;
}
.acct-genre-val { color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }

/* ─── SOBRE MÍ (editable) ────────────────────────────────────────── */
.acct-sobremi .acct-bio-textarea,
.acct-sobremi input[type="text"] {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-2); color: var(--ink);
  border-radius: 10px; padding: 10px 12px;
  font-family: inherit; font-size: 13px;
  outline: none; transition: border-color .15s ease;
}
.acct-sobremi input[type="text"]:focus,
.acct-sobremi .acct-bio-textarea:focus { border-color: var(--acc-line); }
.acct-sobremi .acct-bio-textarea { min-height: 78px; resize: vertical; }
.acct-sm-label {
  display: block; font-size: 12px; color: var(--ink-3);
  font-weight: 600; margin: 4px 0 6px;
}
.acct-bio-count {
  text-align: right; color: var(--ink-3); font-size: 11px; margin-top: 4px;
}
.acct-sm-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 14px;
}
.acct-sm-field label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-3); font-weight: 600; margin-bottom: 6px;
}
.acct-sm-field label svg { color: var(--acc); }

/* Vista de solo lectura */
.acct-sm-text { color: var(--ink-2); font-size: 14px; margin: 4px 0 12px; line-height: 1.5; }
.acct-sm-row {
  display: grid; grid-template-columns: 24px 140px 1fr;
  gap: 10px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--line);
  font-size: 13px;
}
.acct-sm-row:first-of-type { border-top: 0; }
.acct-sm-ico { color: var(--acc); display: inline-grid; place-items: center; }
.acct-sm-l { color: var(--ink-3); }
.acct-sm-v { color: var(--ink); font-weight: 600; }

/* ─── RECOMENDACIONES ────────────────────────────────────────────── */
.acct-recs-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.acct-rec-card {
  position: relative;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.acct-rec-card:hover { transform: translateY(-2px); border-color: var(--acc-line); }
.acct-rec-cover {
  aspect-ratio: 3/4; background: var(--surface-3);
  display: grid; place-items: center; color: var(--ink-3); font-size: 32px; font-weight: 700;
}
.acct-rec-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-rec-body { padding: 8px 10px; }
.acct-rec-title {
  font-size: 12px; font-weight: 700; color: var(--ink);
  margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acct-rec-type { font-size: 10px; color: var(--ink-3); margin: 2px 0 0; text-transform: uppercase; }
.acct-rec-x {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  color: #fff; border-radius: 50%;
  width: 22px; height: 22px;
}

/* ─── LOGROS: grid hex-badge ─────────────────────────────────────── */
.acct-ach-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.acct-ach-badge {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 12px 6px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.acct-ach-hex {
  width: 64px; height: 72px; display: grid; place-items: center;
  color: #fff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.acct-ach-name {
  font-size: 12px; font-weight: 700; color: var(--ink);
  line-height: 1.2;
}
.acct-ach-desc {
  font-size: 10px; color: var(--ink-3); line-height: 1.3;
  min-height: 26px;
}

/* ─── COLECCIÓN DESTACADA ────────────────────────────────────────── */
.acct-col-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.acct-col-section { min-width: 0; }
.acct-col-h {
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  margin: 0 0 10px; text-transform: uppercase; letter-spacing: .04em;
}
.acct-col-covers {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
}
.acct-col-cover {
  aspect-ratio: 2/3; border-radius: 8px; overflow: hidden;
  background: var(--surface-3); display: grid; place-items: center;
  color: var(--ink-3); font-weight: 700;
  border: 1px solid var(--line);
}
.acct-col-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-col-ph { font-size: 14px; }

/* ─── ACTIVIDAD RECIENTE ─────────────────────────────────────────── */
.acct-activity-card { padding: 18px 20px; }
.acct-act-list { display: flex; flex-direction: column; gap: 12px; }
.acct-act-row { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; }
.acct-act-ico {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
}
.acct-act-body { display: flex; flex-direction: column; min-width: 0; }
.acct-act-text {
  font-size: 12.5px; color: var(--ink); font-weight: 500;
  line-height: 1.35;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.acct-act-time { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }

/* ─── MURO ───────────────────────────────────────────────────────── */
.ps-composer {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.ps-composer-main { display: flex; flex-direction: column; gap: 8px; }
.ps-composer textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-2); color: var(--ink);
  border-radius: 12px; padding: 10px 12px;
  resize: vertical; font-family: inherit; font-size: 13px; outline: none;
}
.ps-composer textarea:focus { border-color: var(--acc-line); }
.ps-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ps-composer-tools { display: flex; gap: 2px; }

.ps-wall-list { display: flex; flex-direction: column; gap: 14px; }
.ps-post { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.ps-post-reply {
  grid-column: 1 / -1;
  margin-left: 44px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.ps-post-body { min-width: 0; }
.ps-post-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-3); margin-bottom: 4px;
}
.ps-post-head b { color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.ps-post-head b:hover { color: var(--acc); }
.ps-post-time { color: var(--ink-3); }
.ps-post-text {
  color: var(--ink); font-size: 13.5px; margin: 4px 0; line-height: 1.5;
  word-break: break-word;
}
.ps-post-actions { display: flex; gap: 12px; margin-top: 6px; }
.ps-reaction {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: none; color: var(--ink-3);
  font-size: 12px; cursor: pointer; padding: 2px 4px;
}
.ps-reaction:hover { color: var(--acc); }
.ps-reply-box { display: flex; gap: 8px; margin-top: 8px; }
.ps-reply-box textarea {
  flex: 1; background: rgba(255,255,255,.03); border: 1px solid var(--line-2);
  color: var(--ink); border-radius: 10px; padding: 8px 10px; font-family: inherit;
  font-size: 12.5px; outline: none;
}
.ps-user-link:hover { color: var(--acc); }
.ps-post-ava { cursor: pointer; }

/* ─── OVERLAY RECOMENDAR ─────────────────────────────────────────── */
.ps-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(4, 6, 20, .7); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.ps-modal {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(520px, 100%); max-height: 85vh;
  padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
}
.ps-modal-head { display: flex; align-items: center; justify-content: space-between; }
.ps-modal-head h3 { margin: 0; color: var(--ink); font-size: 16px; }
#ps-rec-search {
  width: 100%; box-sizing: border-box; background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2); color: var(--ink);
  border-radius: 10px; padding: 10px 12px; font-size: 13px; outline: none;
}
.ps-rec-pick-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.ps-rec-pick {
  display: grid; grid-template-columns: 44px 1fr; gap: 10px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px; cursor: pointer; text-align: left;
  color: var(--ink); align-items: center;
}
.ps-rec-pick:hover, .ps-rec-pick.active { border-color: var(--acc-line); background: var(--acc-soft); }
.ps-rec-pick-cover { width: 44px; height: 60px; border-radius: 6px; overflow: hidden; background: var(--surface-3); }
.ps-rec-pick-cover img { width: 100%; height: 100%; object-fit: cover; }
.ps-rec-pick-body { display: flex; flex-direction: column; min-width: 0; }
.ps-rec-pick-body b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-rec-pick-body small { color: var(--ink-3); font-size: 11px; }
.ps-rec-note-box { display: flex; flex-direction: column; gap: 8px; }
.ps-rec-note-box textarea {
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2);
  color: var(--ink); border-radius: 10px; padding: 10px; resize: vertical; outline: none;
  font-family: inherit; font-size: 13px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .acct-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acct-ach-grid  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acct-charts-row { grid-template-columns: 1fr 1fr; }
  .acct-charts-row .acct-chart-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .acct-col-grid  { grid-template-columns: 1fr; gap: 14px; }
  .acct-charts-row { grid-template-columns: 1fr; }
  .acct-charts-row .acct-chart-card:last-child { grid-column: auto; }
  .acct-sm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .acct-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-ach-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-col-covers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ps-card { padding: 16px; }
}

/* ══════════════════════════════════════════════════════════════════════
   V3 — Rediseño Cuenta: 2 columnas, modal Editar Perfil, recorte de
   imágenes, títulos por tier, logros premium, listas destacadas y muro
   con adjuntos. Todo usa los tokens del tema (--mml-*) para respetar el
   modo oscuro/claro y el color de acento del usuario.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Columna derecha (Actividad + Muro) ─────────────────────────────── */
.acct-col-right { position: sticky; top: 16px; min-width: 0; }
@media (max-width: 1024px) {
  .acct-col-right { position: static; }
}

/* ── Modal Editar Perfil ────────────────────────────────────────────── */
.acct-edit-overlay { z-index: 1200; }
.acct-edit-modal {
  width: min(680px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--mml-surface);
  border: 1px solid var(--mml-border-strong);
  border-radius: var(--mml-radius-lg);
  padding: 20px;
  box-shadow: var(--mml-shadow-lg);
}
.acct-edit-modal h3 { display: flex; align-items: center; gap: 8px; }
.acct-edit-hint { margin: 0; font-size: 12.5px; color: var(--mml-text-dim); }

/* Portada + avatar dentro del modal */
.acct-edit-media { display: flex; flex-direction: column; }
.acct-edit-banner {
  position: relative; height: 120px; border-radius: var(--mml-radius);
  background: var(--mml-grad-soft); background-size: cover; background-position: center;
  border: 1px solid var(--mml-border);
}
.acct-edit-banner.has-img { border-color: transparent; }
.acct-edit-banner-btns { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.acct-edit-ava-row { display: flex; align-items: flex-end; gap: 14px; margin: -34px 0 0 18px; }
.acct-edit-ava {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--mml-grad-primary); color: #fff; font-size: 30px; font-weight: 800;
  border: 3px solid var(--mml-surface); box-shadow: var(--mml-shadow-md);
}
.acct-edit-ava img { width: 100%; height: 100%; object-fit: cover; }

/* Campos del formulario */
.acct-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-edit-full { grid-column: 1 / -1; }
.acct-edit-field { display: flex; flex-direction: column; gap: 6px; }
.acct-edit-field > span {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--mml-text-dim);
  text-transform: uppercase; letter-spacing: .04em;
}
.acct-edit-field > span small { margin-left: auto; text-transform: none; font-weight: 500; }
.acct-edit-field input, .acct-edit-field textarea {
  background: var(--mml-bg-soft); color: var(--mml-text);
  border: 1px solid var(--mml-border); border-radius: var(--mml-radius-sm);
  padding: 10px 12px; font: inherit; font-size: 13.5px; resize: vertical;
}
.acct-edit-field input:focus, .acct-edit-field textarea:focus {
  border-color: var(--mml-accent); outline: none;
}
.acct-edit-foot { display: flex; justify-content: flex-end; gap: 10px; }

/* ── Selector de título activo (tiers progresivamente premium) ──────── */
.acct-edit-titles h4 {
  margin: 0 0 4px; display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--mml-text);
}
.acct-title-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px; margin-top: 10px;
}
.acct-title-opt {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border-radius: var(--mml-radius-sm); cursor: pointer;
  text-align: left; font: inherit; transition: transform .15s var(--mml-ease), box-shadow .15s;
  background: var(--mml-bg-soft); border: 1px solid var(--mml-border); color: var(--mml-text);
}
.acct-title-opt:hover:not(.locked) { transform: translateY(-1px); }
.acct-title-opt.locked { opacity: .38; cursor: not-allowed; filter: grayscale(.7); }
.acct-title-opt.selected { outline: 2px solid var(--mml-accent); outline-offset: 1px; }
.acct-title-lv { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; opacity: .75; }
.acct-title-name { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.acct-title-lock { position: absolute; top: 6px; right: 6px; opacity: .7; }

/* Tier 1 (Nv.1-4): sobrio */
.acct-title-t1 { border-color: var(--mml-border); }
/* Tier 2 (Nv.5-8): toque de acento */
.acct-title-t2 { border-color: var(--mml-border-strong); }
.acct-title-t2 .acct-title-lv { color: var(--mml-accent); }
/* Tier 3 (Nv.9-12): raro — borde acento + brillo suave */
.acct-title-t3 {
  border-color: var(--mml-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--mml-accent) 25%, transparent);
}
.acct-title-t3 .acct-title-lv { color: var(--mml-accent-2); }
/* Tier 4 (Nv.13-16): épico — degradado sutil */
.acct-title-t4 {
  border: 1px solid transparent;
  background: linear-gradient(var(--mml-surface-2), var(--mml-surface-2)) padding-box,
              var(--mml-grad-primary) border-box;
  box-shadow: 0 0 16px color-mix(in srgb, var(--mml-accent) 35%, transparent);
}
.acct-title-t4 .acct-title-lv { color: var(--mml-accent-3); }
/* Tier 5 (Nv.17-20): legendario — degradado animado dorado/acento */
.acct-title-t5 {
  border: 1px solid transparent;
  background: linear-gradient(var(--mml-surface-2), var(--mml-surface-2)) padding-box,
              linear-gradient(120deg, #f59e0b, var(--mml-accent), #f472b6, #f59e0b) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: acct-legendary 5s linear infinite;
  box-shadow: 0 0 20px rgba(245, 158, 11, .35);
}
.acct-title-t5 .acct-title-lv { color: #f59e0b; }
@keyframes acct-legendary {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 300% 50%; }
}

/* Chip del título activo en el hero (mismos tiers) */
.acct-chip-title { font-weight: 800; }
.acct-chip-title.acct-title-t3 { box-shadow: 0 0 10px color-mix(in srgb, var(--mml-accent) 30%, transparent); }
.acct-chip-title.acct-title-t4,
.acct-chip-title.acct-title-t5 { color: var(--mml-text); }

/* ── Modal de recorte (crop) ────────────────────────────────────────── */
.acct-crop-overlay { z-index: 1300; }
.acct-crop-modal {
  width: auto; max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; gap: 14px; align-items: stretch;
  background: var(--mml-surface); border: 1px solid var(--mml-border-strong);
  border-radius: var(--mml-radius-lg); padding: 20px; box-shadow: var(--mml-shadow-lg);
}
.acct-crop-stage {
  position: relative; margin: 0 auto; overflow: hidden;
  border-radius: var(--mml-radius-sm); border: 1px solid var(--mml-border);
  background: repeating-conic-gradient(rgba(255,255,255,.05) 0 25%, transparent 0 50%) 0 0/16px 16px;
  touch-action: none;
}
.acct-crop-stage canvas { display: block; cursor: grab; }
.acct-crop-stage canvas:active { cursor: grabbing; }
/* Máscara circular para el avatar */
.acct-crop-round::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .55);
}
.acct-crop-zoom {
  display: flex; align-items: center; gap: 10px; color: var(--mml-text-dim);
}
.acct-crop-zoom input[type="range"] { flex: 1; accent-color: var(--mml-accent); }

/* ── Logros premium: marcos por tier + animación de desbloqueo ──────── */
.acct-ach-badge { position: relative; border-radius: var(--mml-radius); padding: 10px 6px; }
.acct-ach-xp {
  display: inline-block; margin-top: 4px; padding: 2px 8px;
  font-size: 10.5px; font-weight: 800; border-radius: 999px;
  background: color-mix(in srgb, var(--mml-accent) 18%, transparent);
  color: var(--mml-accent-3);
}
.acct-ach-tier3 { background: color-mix(in srgb, var(--mml-accent) 6%, transparent); }
.acct-ach-tier4 {
  background: color-mix(in srgb, var(--mml-accent) 10%, transparent);
  box-shadow: inset 0 0 0 1px var(--mml-border-strong);
}
.acct-ach-tier5 {
  background: linear-gradient(160deg, rgba(245,158,11,.12), color-mix(in srgb, var(--mml-accent) 12%, transparent));
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .35);
}
/* Recién desbloqueado (<7 días): marco brillante + pulso suave */
.acct-ach-new { animation: acct-ach-pop .5s var(--mml-ease); }
.acct-ach-new .acct-ach-hex { animation: acct-ach-glow 2.2s ease-in-out infinite; }
.acct-ach-new::before {
  content: "NUEVO"; position: absolute; top: 6px; right: 6px;
  font-size: 8.5px; font-weight: 900; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 999px;
  background: var(--mml-grad-primary); color: #fff;
}
@keyframes acct-ach-pop {
  0% { transform: scale(.85); opacity: 0; }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes acct-ach-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35) saturate(1.2); }
}

/* ── Colección destacada: listas del usuario ────────────────────────── */
.acct-flists { display: flex; flex-direction: column; gap: 18px; }
.acct-flist-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acct-flist-head h4 { display: flex; align-items: center; gap: 6px; }
.acct-flist-head h4 small { color: var(--mml-text-mute); font-weight: 600; }
.acct-flist-tools { display: flex; gap: 4px; opacity: .75; }
.acct-flist-tools:hover { opacity: 1; }
.acct-flist-check { margin-left: auto; color: var(--mml-accent); display: flex; }
.ps-rec-pick.active { outline: 2px solid var(--mml-accent); outline-offset: -2px; }

/* ── Muro: adjuntos e imágenes/recomendaciones en posts ─────────────── */
.ps-attach-row { display: none; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ps-attach-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--mml-accent) 14%, transparent);
  color: var(--mml-text); border: 1px solid var(--mml-border-strong);
}
.ps-attach-chip .ps-x { display: inline-flex; }
.ps-post-img {
  display: block; max-width: 100%; max-height: 260px; margin-top: 8px;
  border-radius: var(--mml-radius-sm); border: 1px solid var(--mml-border);
  object-fit: cover;
}
.ps-post-rec {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  padding: 8px 12px 8px 8px; border-radius: var(--mml-radius-sm);
  background: var(--mml-bg-soft); border: 1px solid var(--mml-border-strong);
}
.ps-post-rec-cover {
  width: 34px; height: 46px; border-radius: 6px; overflow: hidden; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--mml-grad-soft); color: var(--mml-accent);
}
.ps-post-rec-cover img { width: 100%; height: 100%; object-fit: cover; }
.ps-post-rec-body { display: flex; flex-direction: column; line-height: 1.25; }
.ps-post-rec-body small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--mml-text-dim); }
.ps-post-rec-body b { font-size: 13px; color: var(--mml-text); }

/* ── Móvil: todo apilado en una sola columna ────────────────────────── */
@media (max-width: 640px) {
  .acct-edit-grid { grid-template-columns: 1fr; }
  .acct-edit-modal { padding: 16px; }
  .acct-title-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
}
