/* ==========================================================================
   SETTINGS — Account (account.php) y Edit profile (edit-profile.php) al estilo
   de los ajustes de Vercel: cabecera arriba (sitenav), menu lateral comun
   (includes/core/settings-nav.php) y una tarjeta por ajuste con pie
   "nota a la izquierda / Save a la derecha".
   ========================================================================== */
.st-wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--sp-10); }

/* Encabezado de la pagina */
.st-head { padding: 44px 0 28px; border-bottom: 1px solid var(--border-subtle); }
.st-head .st-wrap { display: flex; align-items: center; gap: 18px; }
.st-ava { display: grid; place-items: center; flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, var(--brand-accent), #155e75); font-size: 22px; font-weight: var(--fw-extrabold); color: #fff; }
.st-ava img { width: 100%; height: 100%; object-fit: cover; }
.st-head h1 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; color: var(--text-white); }
.st-head p { margin: 4px 0 0; font-size: 14px; color: var(--text-gray); }
.st-head-acts { margin-left: auto; display: flex; gap: var(--sp-3); }

/* Layout: menu + tarjetas */
.st-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 96px; }
.st-nav { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.st-nav-h { padding: 0 10px 6px; font: 500 11px var(--font-mono); letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--text-muted); }
.st-nav a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 6px; font-size: 14px; font-weight: var(--fw-medium); color: var(--text-gray); text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.st-nav a .lucide, .st-nav a svg { width: 16px; height: 16px; }
.st-nav a:hover { background: rgba(255,255,255,.05); color: var(--text-white); }
.st-nav a.on { background: rgba(255,255,255,.07); color: var(--text-white); }
.st-nav a.st-nav-danger { color: #f87171; }
.st-cards { display: flex; flex-direction: column; gap: 24px; max-width: 860px; min-width: 0; }

/* Tarjeta de ajuste */
.st-card { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-surface); scroll-margin-top: 96px; }
.st-card-b { padding: var(--sp-9); }
.st-card h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; color: var(--text-white); }
.st-desc { max-width: 620px; margin: 6px 0 18px; font-size: 14px; color: var(--text-gray); }
.st-desc a, .st-foot a { color: var(--text-white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-hover); }
/* Los botones-enlace del pie no heredan el estilo de enlace (si no, "Get Premium" sale blanco sobre blanco) */
.st-foot a.st-btn { text-decoration: none; }
.st-foot a.st-btn--pri { color: #111; }
.st-foot {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-7);
    min-height: 56px; padding: 10px var(--sp-9); border-top: 1px solid var(--border-subtle);
    border-radius: 0 0 var(--radius-md) var(--radius-md); background: rgba(255,255,255,.015);
    font-size: 14px; color: var(--text-muted);
}
.st-foot form { margin: 0; }
.st-card--danger { border-color: rgba(255,70,85,.35); }
.st-card--danger .st-foot { border-top-color: rgba(255,70,85,.25); background: rgba(255,70,85,.05); }

/* Botones (mismo lenguaje que site.css) */
.st-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
    height: 40px; padding: 0 var(--sp-6); border: 1px solid transparent; border-radius: var(--radius-sm);
    background: none; cursor: pointer; white-space: nowrap; text-decoration: none;
    font: var(--fw-semibold) 14px var(--font-sans); color: var(--text-white);
    transition: background var(--t-normal), border-color var(--t-normal), filter var(--t-normal);
}
.st-btn .lucide, .st-btn svg { width: 15px; height: 15px; }
.st-btn--pri { background: var(--text-white); color: #111; }
.st-btn--pri:hover { background: #e5e5e5; }
.st-btn--sec { border-color: var(--border-hover); }
.st-btn--sec:hover { background: rgba(255,255,255,.06); }
.st-btn--riot { background: var(--valorant-red); color: #fff; }
.st-btn--riot:hover { filter: brightness(1.08); }
.st-btn--danger { background: var(--valorant-red); color: #fff; }
.st-btn--danger:hover { filter: brightness(1.08); }
.st-btn--danger-sec { border-color: rgba(255,70,85,.45); color: var(--valorant-red); }
.st-btn--danger-sec:hover { background: rgba(255,70,85,.08); }

/* Campos */
.st-fld { display: grid; gap: 6px; }
.st-fld + .st-fld, .st-row2 + .st-fld, .st-fld + .st-row2 { margin-top: var(--sp-7); }
.st-fld label, .st-label { font-size: 14px; font-weight: var(--fw-medium); color: var(--text-gray); }
.st-inp {
    width: 100%; max-width: 420px; height: 40px; padding: 0 var(--sp-5); box-sizing: border-box;
    border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); outline: 0;
    background: var(--bg-dark); color: var(--text-white); font: inherit; font-size: 14px;
    transition: border-color var(--t-normal), box-shadow var(--t-normal);
}
.st-inp:focus { border-color: var(--border-hover); box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.st-inp[disabled] { background: transparent; color: var(--text-muted); }
textarea.st-inp { max-width: none; height: 96px; padding: 10px var(--sp-5); resize: vertical; }
select.st-inp {
    appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
    background: var(--bg-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
}
.st-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); max-width: 560px; }
.st-row2 .st-inp { max-width: none; }
.st-row2 .st-fld + .st-fld { margin-top: 0; }
.st-pre { display: flex; max-width: 420px; }
.st-pre span { display: flex; align-items: center; padding: 0 var(--sp-5); border: 1px solid var(--border-subtle); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: rgba(255,255,255,.02); font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.st-pre .st-inp { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.st-count { font: 500 12.8px var(--font-mono); color: var(--text-muted); }

/* Avisos */
.st-alert { margin-bottom: var(--sp-8); }   /* estilo: base.css, "Avisos" */

/* Filas tipo "item" (juego vinculado, plan) */
.st-item { display: flex; align-items: center; gap: var(--sp-6); padding: var(--sp-6) var(--sp-7); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--bg-dark); }
.st-item + .st-item { margin-top: 10px; }
.st-item-logo { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); }
.st-item-logo img { width: 22px; height: 22px; object-fit: contain; }
.st-item b { display: block; font-size: 14px; color: var(--text-white); }
.st-item small { display: block; font-size: 14px; color: var(--text-muted); }
.st-item .st-mono { font: 500 12.8px var(--font-mono); }
.st-item-end { margin-left: auto; display: flex; align-items: center; gap: var(--sp-5); }
.st-item-end form { margin: 0; }
.st-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12.8px; color: var(--green); }
.st-ok .lucide, .st-ok svg { width: 13px; height: 13px; }
.st-pill { font: 600 11px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand-accent) 50%, transparent); color: var(--brand-accent); white-space: nowrap; }
.st-pill--off { border-color: var(--border-hover); color: var(--text-gray); }
.st-alt { margin-top: var(--sp-7); font-size: 14px; color: var(--text-muted); }
.st-alt summary { cursor: pointer; color: var(--text-gray); }
.st-link-form { display: flex; gap: var(--sp-3); max-width: 420px; margin-top: 10px; }
.st-link-form .st-inp { max-width: none; }

/* Zona de peligro */
.st-drow { display: flex; align-items: center; gap: var(--sp-7); padding: var(--sp-7) 0; }
.st-drow + .st-drow { border-top: 1px solid var(--border-subtle); }
.st-drow b { display: block; font-size: 14px; color: var(--text-white); }
.st-drow small { font-size: 14px; color: var(--text-muted); }
.st-drow form { margin: 0 0 0 auto; }

/* Edit profile: avatar, banner, visibilidad */
.st-av-row { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.st-av { position: relative; display: grid; place-items: center; flex: none; width: 72px; height: 72px; overflow: hidden; border-radius: 50%; cursor: pointer; background: linear-gradient(135deg, var(--brand-accent), #155e75); font-size: 28px; font-weight: var(--fw-extrabold); color: #fff; }
.st-av img { width: 100%; height: 100%; object-fit: cover; }
.st-av::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.st-av-row p { max-width: 440px; margin: 0; font-size: 14px; color: var(--text-gray); }
.st-banner {
    position: relative; height: 150px; overflow: hidden; cursor: pointer;
    border: 1px dashed var(--border-hover); border-radius: var(--radius-sm);
    background: radial-gradient(120% 140% at 0% 0%, rgba(var(--brand-accent-rgb), .18), transparent 55%),
                repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px), #141414;
    background-size: cover; background-position: center;
}
.st-banner:hover { border-color: var(--text-white); }
.st-banner span { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--border-hover); border-radius: 6px; background: rgba(0,0,0,.6); font-size: 12.8px; font-weight: var(--fw-semibold); color: #fff; }
.st-banner span .lucide, .st-banner span svg { width: 14px; height: 14px; }
.st-toggle-row { display: flex; align-items: center; gap: var(--sp-7); margin-top: 10px; }
.st-toggle-row p { max-width: 560px; margin: 0; font-size: 14px; color: var(--text-gray); }
.st-sw { position: relative; flex: none; width: 40px; height: 22px; margin-left: auto; }
.st-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.st-sw i { position: absolute; inset: 0; border-radius: 999px; background: #3a3a3a; cursor: pointer; transition: background .15s; }
.st-sw i::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.st-sw input:checked + i { background: var(--brand-accent); }
.st-sw input:checked + i::before { transform: translateX(18px); }
.st-sw input:focus-visible + i { outline: 2px solid var(--text-white); outline-offset: 2px; }
.st-url { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; font: 500 12.8px var(--font-mono); color: var(--text-muted); }
.st-url a { color: var(--text-gray); text-decoration: none; }
.st-url a:hover { color: var(--text-white); }

@media (max-width: 1000px) {
    .st-wrap { padding-left: var(--sp-7); padding-right: var(--sp-7); }   /* solo los lados: el shorthand ponía a 0 el padding de abajo de .st-layout (sin espacio antes del footer) */
    .st-head { padding: 28px 0 20px; }
    .st-head h1 { font-size: 24px; }
    .st-head-acts { display: none; }
    .st-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; padding-bottom: 64px; }
    .st-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; margin: 0 calc(var(--sp-7) * -1); padding: 0 var(--sp-7) 10px; border-bottom: 1px solid var(--border-subtle); scrollbar-width: none; }
    .st-nav-h { display: none; }
    .st-nav a { flex: none; height: 32px; }
    .st-card-b { padding: var(--sp-8); }
    .st-foot { flex-wrap: wrap; padding: 10px var(--sp-8); }
    .st-row2 { grid-template-columns: 1fr; }
    .st-row2 .st-fld + .st-fld { margin-top: var(--sp-7); }
    .st-pre span { display: none; }
    .st-pre .st-inp { border-radius: var(--radius-sm); }
    .st-drow, .st-item { flex-wrap: wrap; }
    .st-drow form { margin-left: 0; }
}

/* ── Modo seguro: código por email antes de una acción delicada ─────── */
.st-sm-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; margin-right: var(--sp-3); border-radius: 999px; background: rgba(43,212,196,.10); color: var(--brand-accent); font: 500 12.8px var(--font-mono); white-space: nowrap; }
.st-sm-pill .lucide, .st-sm-pill svg { width: 14px; height: 14px; }
.sm-scrim[hidden] { display: none; }
.sm-scrim { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.6); }
.sm-modal { width: 100%; max-width: 420px; border: 1px solid var(--border-hover); border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.sm-b { padding: 24px 24px 20px; }
.sm-ey { font: 500 12.8px var(--font-mono); letter-spacing: .04em; color: var(--brand-accent); }
.sm-b h3 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.02em; color: var(--text-white); }
.sm-b p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-gray); }
.sm-b p b { color: var(--text-white); font-weight: var(--fw-medium); }
.sm-f { display: flex; justify-content: flex-end; gap: var(--sp-3); padding: 10px 24px; border-top: 1px solid var(--border-subtle); border-radius: 0 0 var(--radius-md) var(--radius-md); background: rgba(255,255,255,.015); }
.sm-digits { display: flex; gap: 8px; margin-top: 18px; }
.sm-dg { width: 44px; height: 50px; padding: 0; text-align: center; border: 1px solid var(--border-hover); border-radius: var(--radius-sm); background: var(--bg-dark); color: var(--text-white); font: 600 20px var(--font-mono); outline: 0; }
.sm-dg:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(43,212,196,.15); }
.sm-hint { margin-top: 14px; font-size: 14px; color: var(--text-muted); }
.sm-link { padding: 0; border: 0; background: none; font: inherit; color: var(--text-white); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sm-link:disabled { color: var(--text-muted); text-decoration: none; cursor: default; }
.sm-err { margin: 0 24px 16px; font-size: 14px; color: var(--valorant-red); }
.sm-err[hidden] { display: none; }
@media (max-width: 420px) { .sm-dg { width: 38px; height: 46px; } }



/* Confirmación dentro de la página (en lugar del confirm()/prompt() del navegador) */
.cf-danger .sm-ey { color: var(--valorant-red); }
.cf-inp { margin-top: 16px; max-width: none; font-family: var(--font-mono); letter-spacing: .08em; }
.st-btn--danger[disabled] { opacity: .45; cursor: not-allowed; filter: none; }



/* Guardado sin recargar: botón "Saved" y error en el pie de la tarjeta */
.st-btn--saved, .st-btn--saved:hover { background: var(--green); color: #0f1a19; }
.st-note-err { color: var(--valorant-red) !important; }
.st-foot .st-btn--pri[disabled] { opacity: .7; cursor: progress; }



/* Actividad reciente */
.st-act { list-style: none; margin: 0; padding: 0; display: grid; }
.st-act-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-subtle); }
.st-act-row:first-child { border-top: 0; }
.st-act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.st-act-fail .st-act-dot { background: var(--valorant-red); }
.st-act-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-act-main b { font-size: 14px; font-weight: var(--fw-medium); color: var(--text-white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-act-main small { font-size: 12.8px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-act-row time { font: 500 12.8px var(--font-mono); color: var(--text-gray); white-space: nowrap; }
@media (max-width: 600px) { .st-act-row { grid-template-columns: 10px minmax(0, 1fr); } .st-act-row time { grid-column: 2; } }

/* ── Billing: historial de pagos (billing.php) ───────────────────────── */
.bl-sec { margin-top: 26px; font: 500 11px var(--font-mono); letter-spacing: var(--ls-md, .06em); text-transform: uppercase; color: var(--text-muted); }
.bl-scroll { overflow-x: auto; }
.bl-table { width: 100%; min-width: 520px; margin-top: 10px; border-collapse: collapse; font-size: 14px; }
.bl-table th { padding: 8px 10px; border-bottom: 1px solid var(--border-subtle); font: 500 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; text-align: left; color: var(--text-muted); }
.bl-table td { padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--text-gray); vertical-align: middle; }
.bl-table td b { font-weight: var(--fw-medium, 500); color: var(--text-white); }
.bl-id { display: block; margin-top: 2px; font: 500 11px var(--font-mono); color: var(--text-muted); }
.bl-table .bl-n { text-align: right; white-space: nowrap; }
.bl-table td.bl-n { font-family: var(--font-mono); color: var(--text-white); }
.bl-table td.bl-st { font: 600 11px var(--font-mono); letter-spacing: .04em; color: var(--text-muted); }
.bl-table td.bl-st--paid { color: var(--green); }
.bl-table td.bl-st--failed { color: var(--valorant-red); }
.bl-table td.bl-inv a { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-white); text-decoration: none; }
.bl-table td.bl-inv a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bl-table td.bl-inv .lucide, .bl-table td.bl-inv svg { width: 13px; height: 13px; }
.bl-table td.bl-inv span { color: var(--text-muted); }

/* El atributo hidden manda sobre el display de .st-alert, .st-btn, .st-fld…
   (si no, los bloques que el JS oculta con hidden se seguían viendo) */
.st-card [hidden], .st-wrap [hidden] { display: none !important; }

/* ── Borrar la cuenta: resumen (account.php #delModal) ── */
.dl-modal { max-width: 540px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.dl-modal .sm-b { overflow-y: auto; }
.dl-ey { color: var(--valorant-red, #ff4655); }
.dl-warn { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(245,184,74,.35); border-radius: var(--radius-sm); background: rgba(245,184,74,.06); font-size: 14px; line-height: 1.5; color: var(--text-white); }
.dl-warn svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #f5b84a; }
.dl-warn b { color: #f5b84a; font-weight: var(--fw-semibold); }
.dl-lbl { margin: 18px 0 6px; font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.dl-sec { border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); }
.dl-row { display: flex; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--border-subtle); font-size: 14px; line-height: 1.45; }
.dl-row:first-child { border-top: 0; }
.dl-row[hidden] { display: none; }
.dl-row > svg { width: 26px; height: 26px; flex: none; padding: 6px; border-radius: 7px; }
.dl-del > svg { color: var(--valorant-red, #ff4655); background: rgba(255,70,85,.12); }
.dl-keep > svg { color: var(--text-gray); background: rgba(255,255,255,.06); }
.dl-row b { display: block; color: var(--text-white); font-weight: var(--fw-semibold); }
.dl-row span { color: var(--text-gray); font-size: 13px; }
.dl-chk { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-white); cursor: pointer; }
.dl-chk input { margin-top: 3px; accent-color: var(--valorant-red, #ff4655); }
.dl-chk span { display: block; margin-top: 2px; font-size: 13px; color: var(--text-gray); }
.sm-b p.dl-when { margin-top: 14px; font-size: 13px; }
.dl-type { display: block; margin-top: 16px; }
.dl-type span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-gray); }
.dl-type input { width: 100%; max-width: none; }

.dl-hid > svg { color: #f5b84a; background: rgba(245,184,74,.12); }

/* "Download my data" dentro de la ventana de borrar la cuenta */
.dl-export { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--brand-accent) 40%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--brand-accent) 7%, transparent); }
.dl-export > svg { width: 18px; height: 18px; color: var(--brand-accent); flex: none; }
.dl-export > div { flex: 1; min-width: 0; }
.dl-export b { display: block; font-size: 13.5px; color: var(--text-white); }
.dl-export span { font-size: 12.5px; color: var(--text-gray); }
.dl-export .st-btn { flex: none; }
@media (max-width: 520px) { .dl-export { flex-wrap: wrap; } .dl-export .st-btn { width: 100%; justify-content: center; } }

/* Teléfono en Account: bandera + prefijo y número en una fila */
.st-phone { display: flex; gap: var(--sp-3); max-width: 420px; }
.st-phone .cselect { flex: 0 0 120px; width: 120px; }
.st-phone .cselect .cselect-menu { width: 260px; }
.st-phone > .st-inp { flex: 1; min-width: 0; max-width: none; }

/* Tarjeta en el centro (mismo formato que "Sent" de los formularios, site.css .af-sent):
   aquí, la del pago al volver de Mollie (account.php #payCard). Con botones: no se cierra sola. */
.af-sent { position: fixed; inset: 0; z-index: 10150; display: grid; place-items: center; padding: 20px; background: rgba(5,5,5,.55); animation: afIn .18s ease-out; }
.af-sent-card { width: 100%; max-width: 340px; padding: 28px 24px 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #161616;
    box-shadow: 0 30px 80px rgba(0,0,0,.6); text-align: center; color: var(--text-gray); }
.af-sent-card.af-wide { max-width: 380px; }
.af-sent-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
    background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.af-sent-ic svg { width: 26px; height: 26px; }
.af-sent-card.is-err .af-sent-ic { background: color-mix(in srgb, var(--valorant-red) 14%, transparent); color: var(--valorant-red); }
.af-sent-card b { display: block; color: var(--text-white); font-size: 19px; font-weight: 700; }
.af-sent-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.af-list { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: 10px; background: rgba(255,255,255,.02);
    list-style: none; display: grid; gap: 6px; text-align: left; font-size: 13px; }
.af-list li { display: flex; gap: 8px; align-items: center; color: var(--text-white); }
.af-list li svg { flex: none; width: 14px; height: 14px; color: var(--green); }
.af-meta { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--text-muted); }
.af-acts { display: grid; gap: 8px; margin-top: 18px; }
.af-acts .st-btn { width: 100%; justify-content: center; }
.af-spin { width: 24px; height: 24px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--green); border-radius: 50%; animation: afSpin .8s linear infinite; }
@keyframes afIn { from { opacity: 0; } }
@keyframes afSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .af-spin { animation-duration: 2.4s; } }

/* Recortar avatar y banner (js/img-crop.js): en la tarjeta en ordenador, a pantalla completa en móvil */
.ic { margin-top: 4px; }
.ic-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ic-tl { display: grid; }
.ic-title { font-size: 14px; color: var(--text-white); }
.ic-help { font-size: 12.5px; color: var(--text-muted); }
.ic-tr { display: flex; gap: 8px; }
.ic-body { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 16px; align-items: start; }
.ic-stage { position: relative; overflow: hidden; width: 100%; max-width: 360px; aspect-ratio: 1; border-radius: var(--radius-sm);
    background: #0a0a0a; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.ic-stage:active { cursor: grabbing; }
.ic-stage:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.ic-stage--wide { max-width: none; aspect-ratio: 2.6; }
.ic-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; will-change: transform; }
.ic-frame { position: absolute; z-index: 1; pointer-events: none; box-shadow: 0 0 0 9999px rgba(0,0,0,.6); outline: 2px solid #fff; outline-offset: -1px; }
.ic-frame--circle { border-radius: 50%; }
.ic-ghost { position: absolute; left: 4%; bottom: 9%; display: flex; align-items: center; gap: 8px; }
.ic-ghost i { display: block; border-radius: 50%; border: 2px dashed rgba(255,255,255,.8); background: rgba(255,255,255,.08); }
.ic-ghost span { display: block; width: 90px; height: 8px; margin: 4px 0; border-radius: 4px; background: rgba(255,255,255,.55); }
.ic-ghost span + span { width: 60px; }
.ic-side { display: grid; gap: 14px; min-width: 0; }
.ic-zoom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ic-zoom input { flex: 1; min-width: 0; width: 100%; accent-color: #fff; }
.ic-zb { width: 30px; padding: 0; justify-content: center; font-size: 15px; }
.ic-prev { display: grid; gap: 10px; }
.ic-pv { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.ic-pv canvas { border: 1px solid var(--border-subtle); border-radius: 6px; background: #111; max-width: 100%; }
.ic--circle .ic-pv canvas { border-radius: 50%; }
.ic-stage--wide + .ic-side, .ic-body:has(.ic-stage--wide) { grid-template-columns: 1fr; }
.ic-body:has(.ic-stage--wide) .ic-zoom { max-width: 420px; }
.ic-body:has(.ic-stage--wide) .ic-prev { display: flex; flex-wrap: wrap; gap: 14px; }
.ic-body:has(.ic-stage--wide) .ic-pv { display: grid; gap: 4px; }
.ic-help--m { display: none; }
/* Móvil: pantalla completa, estilo cámara del iPhone (foto en negro, marco en medio, acciones abajo) */
html.ic-lock, html.ic-lock body { overflow: hidden; }
.ic--full { position: fixed; inset: 0; z-index: 10200; margin: 0; display: flex; flex-direction: column; background: #000; }
.ic--full .ic-top { margin: 0; padding: calc(env(safe-area-inset-top) + 8px) 8px 8px; }
.ic--full .ic-title { flex: 1; text-align: center; font-size: 15px; }
.ic-x, .ic-sp { width: 40px; height: 40px; flex: none; }
.ic-x { border: 0; background: none; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.ic--full .ic-body { flex: 1; display: flex; padding: 0; min-height: 0; }
.ic--full .ic-stage { flex: 1; max-width: none; aspect-ratio: auto; height: 100%; border-radius: 0; background: #000; }
.ic--full .ic-frame { box-shadow: 0 0 0 9999px rgba(0,0,0,.55); outline-width: 1px; outline-color: rgba(255,255,255,.7); }
.ic-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 20px calc(env(safe-area-inset-bottom) + 18px); background: #141414; }
.ic-bar .ic-help { font-size: 12px; }
.ic-link { border: 0; background: none; padding: 6px 0; color: #fff; font: 500 17px var(--font-sans); cursor: pointer; }
.ic-link--pri { font-weight: 700; }
.ic-link:disabled { opacity: .5; }
@media (max-width: 760px) { .ic-body { grid-template-columns: 1fr; } .ic-prev { display: flex; flex-wrap: wrap; gap: 14px; } }

/* Social networks: solo las añadidas, una por fila; el desplegable añade más (includes/core/socials.php) */
.soc-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.soc-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 38px; gap: var(--sp-4); align-items: center; }
.soc-row[hidden] { display: none; }
.soc-nm { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-gray); }
.soc-nm svg { flex: none; color: var(--text-white); }
.soc-row .st-pre { max-width: none; }
.st-pre--none .st-inp { border-radius: var(--radius-sm); }
.soc-x { width: 38px; height: 38px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }
.soc-x:hover { color: var(--text-white); border-color: var(--border-hover); }
.soc-empty { margin: 0; font-size: 14px; color: var(--text-muted); }
.soc-add { margin-top: var(--sp-5); }
.soc-add select { max-width: 260px; }
@media (max-width: 560px) { .soc-row { grid-template-columns: minmax(0, 1fr) 38px; } .soc-nm { grid-column: 1 / -1; } }
