/* Subiendo ID — perfil del pasajero. Reutiliza bloques de wallet-pro.css y trips-pro.css. */

.pf-page{padding:1rem 1rem 1.25rem;touch-action:pan-y}
.pf-page > *{flex-shrink:0}
.pf-page [data-subite-account-docs-slot]{display:contents}
.pf-page .subite-account-docs{margin:0;border-radius:18px}
.pf-page #terms-banner-slot:empty{display:none}

/* ---------- Hero ---------- */
.pf-hero{
  min-height:0;display:flex;flex-direction:column;gap:1rem;
  background:
    radial-gradient(120% 140% at 100% 0%,rgba(45,212,191,.38) 0%,transparent 55%),
    radial-gradient(90% 120% at 0% 100%,rgba(99,102,241,.42) 0%,transparent 60%),
    linear-gradient(135deg,#041530 0%,#0b2a6b 55%,#1e40af 100%);
  box-shadow:0 18px 40px rgba(30,64,175,.3),inset 0 1px 0 rgba(255,255,255,.18);
}
.pf-hero .wx-brand b{color:#5eead4}
.pf-hero .wx-brand-dot{background:#2dd4bf;box-shadow:0 0 0 3px rgba(45,212,191,.22),0 0 12px #2dd4bf}
.pf-hero .pf-logout{
  margin:0;width:auto;padding:.36rem .75rem;border-radius:99px;
  border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.1);color:#fecaca;
  font-size:.7rem;font-weight:700;letter-spacing:.02em;box-shadow:none;
}
.pf-hero .pf-logout:active{transform:scale(.96);background:rgba(248,113,113,.2)}

.pf-id{display:flex;align-items:center;gap:.9rem;min-width:0}
.pf-avatar{
  position:relative;flex:0 0 64px;width:64px;height:64px;border-radius:20px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.45rem;font-weight:800;letter-spacing:-.02em;color:#fff;
  background-color:rgba(255,255,255,.12);background-size:cover;background-position:center;
  border:1px solid rgba(255,255,255,.3);
  box-shadow:0 0 0 3px rgba(45,212,191,.25),0 10px 24px rgba(0,0,0,.28);
}
.pf-avatar.has-photo{color:transparent}
.pf-id-text{min-width:0;display:flex;flex-direction:column;gap:.35rem}
.pf-hero .pf-name{
  font-size:1.25rem;font-weight:800;letter-spacing:-.02em;line-height:1.15;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pf-hero .pf-status{
  align-self:flex-start;max-width:100%;padding:.22rem .6rem;border-radius:99px;
  font-size:.7rem;font-weight:700;opacity:1;
  background:rgba(45,212,191,.18);border:1px solid rgba(94,234,212,.45);color:#ccfbf1;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.pf-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}
.pf-stat{
  display:flex;flex-direction:column;align-items:flex-start;gap:.1rem;min-width:0;
  padding:.6rem .7rem;border-radius:14px;cursor:pointer;font:inherit;color:#fff;text-align:left;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);
  transition:transform .15s,background .2s;
}
.pf-stat:active{transform:scale(.97);background:rgba(255,255,255,.16)}
.pf-stat-value{
  max-width:100%;font-size:1rem;font-weight:800;letter-spacing:-.01em;font-variant-numeric:tabular-nums;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pf-stat-label{font-size:.64rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.7}

/* ---------- Grupos de menú ---------- */
.pf-page .pf-group{margin:0;padding:.85rem .9rem .35rem}
.pf-page .pf-group .menu-section-label{margin:0 0 .25rem .1rem;font-size:.66rem;font-weight:800;letter-spacing:.1em}
.pf-page .menu-item{gap:.8rem;padding:.7rem .1rem;border-bottom:1px solid var(--border,#e2e8f0)}
.pf-page .menu-item:last-child{border-bottom:none}
.pf-page .menu-item:active{margin:0;padding:.7rem .1rem;background:transparent;opacity:.7}
.pf-page .menu-label{font-weight:700}
.pf-page .menu-sub{margin-top:.05rem}
.pf-page .menu-badge{
  padding:.15rem .5rem;font-size:.66rem;font-weight:800;color:#fff;
  background:linear-gradient(135deg,#ec4899,#7c3aed);box-shadow:0 4px 10px rgba(124,58,237,.3);
}
.pf-page .menu-badge[hidden]{display:none}
.pf-page .menu-arrow{
  display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:8px;
  font-size:1rem;line-height:1;background:var(--surface,#f1f5f9);color:var(--text3,#64748b);
}

.pf-ico{width:38px;height:38px;border-radius:12px;color:#fff;box-shadow:0 6px 14px rgba(15,23,42,.14)}
.pf-ico svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pf-ico.c-blue{background:linear-gradient(135deg,#38bdf8,#2563eb)}
.pf-ico.c-green{background:linear-gradient(135deg,#34d399,#059669)}
.pf-ico.c-orange{background:linear-gradient(135deg,#fbbf24,#ea580c)}
.pf-ico.c-indigo{background:linear-gradient(135deg,#818cf8,#4338ca)}
.pf-ico.c-pink{background:linear-gradient(135deg,#f472b6,#be185d)}
.pf-ico.c-cyan{background:linear-gradient(135deg,#22d3ee,#0e7490)}
.pf-ico.c-sky{background:linear-gradient(135deg,#7dd3fc,#0284c7)}
.pf-ico.c-rose{background:linear-gradient(135deg,#fb7185,#e11d48)}
.pf-ico.c-violet{background:linear-gradient(135deg,#a78bfa,#6d28d9)}
.pf-ico.c-slate{background:linear-gradient(135deg,#94a3b8,#475569)}
.pf-ico.c-teal{background:linear-gradient(135deg,#2dd4bf,#0f766e)}

/* ---------- Modo oscuro ---------- */
html[data-theme="dark"] #screen-profile .pf-page{background:var(--bg) !important}
html[data-theme="dark"] #screen-profile .pf-hero .pf-name{color:#fff !important}
html[data-theme="dark"] #screen-profile .pf-hero .pf-status{color:#ccfbf1 !important}
html[data-theme="dark"] #screen-profile .pf-hero .pf-logout{
  background:rgba(255,255,255,.08) !important;color:#fecaca !important;border-color:rgba(255,255,255,.22) !important;
}
html[data-theme="dark"] #screen-profile .pf-stat{color:#fff !important}
html[data-theme="dark"] #screen-profile .pf-page .menu-item{background:transparent !important}
html[data-theme="dark"] #screen-profile .pf-page .menu-icon.pf-ico{color:#fff !important}
html[data-theme="dark"] #screen-profile .pf-ico.c-blue{background:linear-gradient(135deg,#38bdf8,#2563eb) !important}
html[data-theme="dark"] #screen-profile .pf-ico.c-green{background:linear-gradient(135deg,#34d399,#059669) !important}
html[data-theme="dark"] #screen-profile .pf-ico.c-orange{background:linear-gradient(135deg,#fbbf24,#ea580c) !important}
html[data-theme="dark"] #screen-profile .pf-ico.c-indigo{background:linear-gradient(135deg,#818cf8,#4338ca) !important}
html[data-theme="dark"] #screen-profile .pf-ico.c-pink{background:linear-gradient(135deg,#f472b6,#be185d) !important}
html[data-theme="dark"] #screen-profile .pf-ico.c-cyan{background:linear-gradient(135deg,#22d3ee,#0e7490) !important}
html[data-theme="dark"] #screen-profile .pf-ico.c-sky{background:linear-gradient(135deg,#7dd3fc,#0284c7) !important}
html[data-theme="dark"] #screen-profile .pf-ico.c-rose{background:linear-gradient(135deg,#fb7185,#e11d48) !important}
html[data-theme="dark"] #screen-profile .pf-ico.c-violet{background:linear-gradient(135deg,#a78bfa,#6d28d9) !important}
html[data-theme="dark"] #screen-profile .pf-ico.c-slate{background:linear-gradient(135deg,#94a3b8,#475569) !important}
html[data-theme="dark"] #screen-profile .pf-ico.c-teal{background:linear-gradient(135deg,#2dd4bf,#0f766e) !important}
html[data-theme="dark"] #screen-profile .pf-page .menu-arrow{background:#243044;color:var(--text2)}
html[data-theme="dark"] #screen-profile .pf-page .subite-account-docs{background:var(--card);border-color:var(--border)}
html[data-theme="dark"] #screen-profile .pf-page .subite-account-docs h4{color:var(--text)}
