/* Pappitas — Confianza dentro del app (ver trust.js). Colores del theme; letras legibles en claro y oscuro. */

/* Foto de la persona de soporte (siempre redonda, nunca estirada) */
.pt-sup-ph { position: relative; flex: none; width: 44px; height: 44px; min-width: 44px; aspect-ratio: 1; border-radius: 50%; display: inline-block; }
.pt-sup-img { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--bg-hover, #eef0f4); display: grid; place-items: center; }
.pt-sup-img img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover; border-radius: 50%; margin: 0; }
.pt-sup-img > b { font-size: 17px; font-weight: 800; color: var(--text-primary); }
.pt-sup-ph--sm { width: 30px; height: 30px; min-width: 30px; }
.pt-sup-ph--sm .pt-sup-img > b { font-size: 13px; }
.pt-sup-ph--sm .pt-sup-wa { display: none; }
.pt-sup-wa { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-primary, #c6f432); color: #111; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg-card, #fff); }
.pt-sup-wa svg { width: 11px; height: 11px; }
.pt-sup-tx { display: flex; flex-direction: column; min-width: 0; }
.pt-sup-tx b { font-size: 15px; font-weight: 800; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-sup-tx small { font-size: 13px; font-weight: 600; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bienvenida: una línea discreta */
.pt-sup-slot:empty { display: none; }
.pt-sup-slot { width: 100%; display: flex; justify-content: center; margin: 14px auto 0; }
.pt-sup-mini { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 10px; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--text-secondary, var(--text-muted)); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s; }
.pt-sup-mini:hover { background: var(--bg-hover, rgb(127 127 127 / .08)); color: var(--text-primary); }

/* Menú lateral (computadora) */
#pt-sup-side { padding: 0 10px 10px; }
.pt-sup-side { width: 100%; border: 0; font: inherit; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--bg-hover, rgb(127 127 127 / .08)); text-decoration: none; transition: background .15s; }
.pt-sup-side:hover { background: color-mix(in srgb, var(--brand-primary, #c6f432) 16%, var(--bg-hover, transparent)); }
.pt-sup-side .pt-sup-ph { width: 38px; height: 38px; }
.pt-sup-side .pt-sup-tx b { font-size: 13.5px; color: var(--nav-text-color, var(--text-primary)); }
.pt-sup-side .pt-sup-tx small { font-size: 12px; }
.sidebar:not(.pinned-open) #pt-sup-side { padding: 0 0 10px; display: flex; justify-content: center; }
.sidebar:not(.pinned-open) .pt-sup-side { padding: 4px; background: none; }
.sidebar:not(.pinned-open) .pt-sup-side .pt-sup-tx { display: none; }

/* Hoja «Cuenta» del celular */
.pt-sup-sheetwrap { margin: 10px 0 4px; }
.pt-sup-sheet { width: 100%; font: inherit; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.pt-sup-sheet .pt-sup-tx { flex: 1; }
.pt-sup-go { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--brand-primary, #c6f432); color: #111; font-size: 13.5px; font-weight: 800; }
.pt-sup-go svg { width: 15px; height: 15px; }
a.mnav-row { text-decoration: none; }
.mnav-row > svg:not(.icon) { width: 20px; height: 20px; flex: none; color: var(--text-muted); }

/* Menú de la cuenta (computadora): Términos / Privacidad */
.pt-legal .dropdown-item { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 8px; }
.pt-legal .dropdown-item svg { width: 16px; height: 16px; flex: none; }

/* Pasarela de Pago: el dinero va directo al suscriptor */
.pt-money { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, #16a34a 8%, var(--bg-card)); border: 1px solid color-mix(in srgb, #16a34a 22%, var(--border)); font-size: 14px; line-height: 1.5; color: var(--text-secondary, var(--text-muted)); }
.pt-money b { color: var(--text-primary); font-weight: 800; }
.pt-money-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; }
.pt-money-ic svg { width: 18px; height: 18px; }

/* Planes: cancelás cuando quieras + enlaces legales */
.pt-plans-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; margin: 22px auto 8px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); text-align: center; }
.pt-plans-legal > span { display: inline-flex; align-items: center; gap: 6px; }
.pt-plans-legal svg { width: 16px; height: 16px; flex: none; }
.pt-plans-legal a { color: var(--text-secondary, var(--text-muted)); font-weight: 700; text-decoration: none; }
.pt-plans-legal a:hover { color: var(--text-primary); }
.pt-pl-links i { font-style: normal; margin: 0 8px; opacity: .5; }

/* MASTER: configuración */
.pt-cfg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 28px; align-items: start; }
.pt-cfg-form { max-width: 460px; }
.pt-cfg-ph { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pt-cfg-ph b { display: block; font-size: 14px; font-weight: 800; color: var(--text-primary); }
.pt-cfg-ph small { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.pt-cfg-photo { flex: none; width: 72px; height: 72px; border-radius: 50%; border: 1.5px dashed var(--border); background: var(--bg-hover, transparent); padding: 0; cursor: pointer; overflow: hidden; display: grid; place-items: center; }
.pt-cfg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-cfg-photo span span { font-size: 26px; color: var(--text-muted); }
.pt-cfg-rm { margin-top: 6px; border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: #dc2626; cursor: pointer; }
.pt-cfg-hint { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.pt-cfg-prev > small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 10px; }
.pt-cfg-prev .pt-sup-mini { pointer-events: none; }
.pt-cfg-mini { display: flex; justify-content: center; margin-top: 12px; }
.pt-sup-prev { cursor: default; }
@media (max-width: 900px) { .pt-cfg-grid { grid-template-columns: 1fr; } }

/* Soporte (suscriptor): la foto de la persona, redonda y completa */
.support-thread-avatar.is-person img { object-fit: cover; padding: 0; background: none; border-radius: 50%; }

/* Menú lateral: foto en lugar del ícono de Soporte */
.nav-icon.pt-nav-ph { display: inline-flex; align-items: center; justify-content: center; }
.pt-sup-ph--nav { width: 22px; height: 22px; min-width: 22px; }
.pt-sup-ph--nav .pt-sup-wa { display: none; }
.pt-sup-ph--nav .pt-sup-img > b { font-size: 11px; }
/* Celular: fila «Soporte · nombre» en Cuenta */
.pt-sup-row .pt-sup-ph { width: 24px; height: 24px; min-width: 24px; }
.pt-sup-row small { font-weight: 600; color: var(--text-muted); font-size: 13.5px; }

/* En línea: un punto verde sobre la foto (sin texto) */
.pt-sup-ph.is-on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px var(--bg-sidebar, var(--bg-card, #fff)); z-index: 2; }
.mnav-row .pt-sup-ph.is-on::after { box-shadow: 0 0 0 2px var(--bg-card, #fff); }
