/* ACAISAN PLAN — Perfil no menu + logo nova no menu expandido. Usa os tokens do dashboard v2 (body.acd2). */

/* ───── Logo: menu expandido = símbolo novo + "ACAISAN PLAN" (sai a imagem horizontal antiga) ───── */
body.acd2 .acd-side .logo .pf-word { display: none; }
body.acd2.ac52-expanded .acd-side .logo.pf-brand { position: relative; gap: 11px; padding-left: 10px !important; }
body.acd2.ac52-expanded .acd-side .logo.pf-brand .acaisan-mark { display: none !important; }
body.acd2.ac52-expanded .acd-side .logo.pf-brand .acd-symbol { display: block !important; width: 36px; height: auto; flex: 0 0 auto; filter: drop-shadow(0 4px 14px rgba(163, 230, 53, .18)); }
body.acd2.ac52-expanded .acd-side .logo .pf-word { display: grid; gap: 5px; min-width: 0; }
.pf-word > span { font: 800 16px/1 var(--acd-head, Manrope, Inter, sans-serif); letter-spacing: -.01em; color: var(--acd-text, #f4f4f5); white-space: nowrap; }
.pf-word b { font-style: italic; font-weight: 800; color: var(--acd-lime, #a3e635); }
.pf-word small { font: 600 7px/1 var(--acd-body, Inter, sans-serif); letter-spacing: .3em; text-transform: uppercase; color: var(--acd-dim, #71717a); white-space: nowrap; }
/* gorro de Natal sobre o símbolo (a camada de Natal o centraliza na logo) */
body.acd2.xm.ac52-expanded .acd-side .logo.pf-brand .xm-hat { left: 28px; }

/* ───── Avatar ───── */
.pf-av { --s: 34px; --ring: #3f3f46; position: relative; display: grid; place-items: center; flex: 0 0 var(--s); width: var(--s); height: var(--s); border-radius: 50%;
  background: linear-gradient(145deg, #1d2a12, #111114); box-shadow: 0 0 0 1.5px var(--ring), 0 0 0 4px #0d0d0f; color: #e6f9c8; overflow: visible; }
.pf-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0b0b0e; }
.pf-av b { font: 800 calc(var(--s) * .38)/1 var(--acd-head, Manrope, Inter, sans-serif); letter-spacing: -.02em; }
.pf-av.is-framed { box-shadow: 0 0 0 2px var(--ring), 0 0 0 4px #0d0d0f, 0 0 14px -2px var(--ring); }
.pf-av.is-founder { box-shadow: 0 0 16px -3px rgba(245, 196, 81, .55); }
.pf-av.is-founder::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 210deg, #f5c451, #fff1c2, #c99a2e, #f5c451, #a3e635, #f5c451);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); }
.pf-av.is-founder.is-framed::before { background: var(--ring); }
.pf-av.is-founder::after { content: "★"; position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: calc(var(--s) * .36); height: calc(var(--s) * .36); min-width: 13px; min-height: 13px;
  border-radius: 50%; background: #f5c451; color: #1a1205; font: 900 calc(var(--s) * .2)/1 Inter, sans-serif; box-shadow: 0 0 0 2px #0d0d0f; }

/* ───── Cartão no rodapé do menu ───── */
body.acd2 .acd-side .pf-card { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 54px; padding: 8px 10px 8px 9px; margin: 0;
  border: 1px solid var(--acd-line); border-radius: 13px; background: linear-gradient(160deg, #17171b, #111114 70%); color: var(--acd-text); text-align: left; cursor: pointer;
  transition: border-color .18s ease, background .18s ease; isolation: isolate; }
body.acd2 .acd-side .pf-card:hover { border-color: var(--acd-lime-line); background: linear-gradient(160deg, #1a1d16, #111114 70%); }
body.acd2 .acd-side .pf-card:focus-visible { outline: 2px solid var(--acd-lime); outline-offset: 2px; }
.pf-card-txt { display: grid; gap: 4px; min-width: 0; flex: 1 1 auto; }
.pf-card-txt strong { font: 700 13px/1.15 var(--acd-body, Inter, sans-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-card-txt small { font: 600 11px/1.1 var(--acd-body, Inter, sans-serif); color: var(--acd-dim, #71717a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-card-txt small.pf-card-badge { color: var(--c); }
.pf-card-go { color: var(--acd-dim); font: 400 20px/1 Inter, sans-serif; transition: transform .18s ease, color .18s ease; }
body.acd2 .acd-side .pf-card:hover .pf-card-go { color: var(--acd-lime); transform: translateX(2px); }
@media (min-width: 768px) {
  body.acd2:not(.ac52-expanded) .acd-side .pf-card { justify-content: center; padding: 8px 0; min-height: 50px; }
  body.acd2:not(.ac52-expanded) .acd-side .pf-card .pf-card-txt, body.acd2:not(.ac52-expanded) .acd-side .pf-card .pf-card-go { display: none; }
}

/* celular: o mesmo cartão no topo da gaveta "Menu" */
#ac518Drawer .pf-card--drawer { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; margin: 0 0 12px; padding: 10px 12px;
  border: 1px solid rgba(163, 230, 53, .22); border-radius: 14px; background: linear-gradient(160deg, #1a1d16, #111114 70%); color: #f4f4f5; text-align: left; cursor: pointer; isolation: isolate; box-sizing: border-box; }
#ac518Drawer .pf-card--drawer .pf-card-txt strong { font-size: 14px; }
#ac518Drawer .pf-card--drawer .pf-card-go { color: #a3e635; }

/* ───── Painel do perfil ───── */
.pf-ov { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: flex-start; padding: 18px;
  background: rgba(5, 5, 7, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s ease; }
.pf-ov.is-in { opacity: 1; }
.pf-box { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 36px); overflow: auto; overscroll-behavior: contain; margin-left: calc(var(--acd-side, 236px) - 6px);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; background: #0f0f12; color: #f4f4f5; font-family: Inter, system-ui, sans-serif;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); transform: translateX(-14px); transition: transform .24s cubic-bezier(.2, .8, .2, 1); scrollbar-width: thin; }
body:not(.ac52-expanded) .pf-box { margin-left: calc(var(--acd-side-min, 76px) - 6px); }
.pf-ov.is-in .pf-box { transform: none; }
.pf-box:focus { outline: none; }
.pf-head { position: relative; padding: 22px 22px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: radial-gradient(ellipse 80% 120% at 0% 0%, rgba(163, 230, 53, .13), transparent 60%), radial-gradient(ellipse 60% 100% at 100% 0%, rgba(245, 196, 81, .08), transparent 60%); border-radius: 22px 22px 0 0; }
.pf-x { position: absolute; z-index: 1; display: grid; place-items: center; padding: 0; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(255, 255, 255, .03); color: #e4e4e7; font: 400 20px/1 Inter, sans-serif; cursor: pointer; }
.pf-x:hover { border-color: rgba(163, 230, 53, .5); color: #a3e635; }
.pf-id { display: flex; align-items: center; gap: 16px; padding-right: 40px; isolation: isolate; }
.pf-meta { display: grid; gap: 4px; min-width: 0; }
.pf-eyebrow { font: 700 10px/1 'JetBrains Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: #a3e635; }
.pf-meta h3 { margin: 2px 0 0; font: 800 22px/1.15 Manrope, Inter, sans-serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pf-title { margin: 0; color: #e9d5ff; font: 600 13px/1.3 Inter, sans-serif; }
.pf-mail { margin: 0; color: #71717a; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pf-chip { --c: #a3e635; padding: 6px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); font: 700 11.5px/1 Inter, sans-serif; }
.pf-chip.is-founder { --c: #f5c451; background: linear-gradient(90deg, rgba(245, 196, 81, .2), rgba(245, 196, 81, .06)); }
.pf-body { padding: 6px 22px 20px; }
.pf-sec { padding: 16px 0 4px; }
.pf-sec + .pf-sec { border-top: 1px solid rgba(255, 255, 255, .06); }
.pf-sec h4 { margin: 0 0 12px; font: 700 10.5px/1 'JetBrains Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: #71717a; }
.pf-slot { display: grid; gap: 8px; margin-bottom: 14px; }
.pf-slot-l { font: 600 12.5px/1 Inter, sans-serif; color: #d4d4d8; }
.pf-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-opt { --c: #a1a1aa; display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(255, 255, 255, .025); color: #d4d4d8; font: 600 12px/1 Inter, sans-serif; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.pf-opt span { color: var(--c); }
.pf-opt:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.pf-opt.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); color: #fff; cursor: default; }
.pf-opt.is-none { color: #71717a; }
.pf-opt.is-none.is-on { --c: #71717a; color: #d4d4d8; }
.pf-opt.is-busy { opacity: .6; cursor: progress; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pf-item { --c: #d4d4d8; position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; row-gap: 3px; align-items: center; padding: 10px; border: 1px solid color-mix(in srgb, var(--c) 28%, rgba(255, 255, 255, .06)); border-radius: 12px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 9%, #141417), #111114 70%); }
.pf-item-ico { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); font-size: 15px; background: color-mix(in srgb, var(--c) 10%, transparent); }
.pf-item b { font: 700 12.5px/1.2 Inter, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-item small { font: 600 10.5px/1.2 Inter, sans-serif; color: var(--c); opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-item-on { position: absolute; top: -7px; right: 8px; padding: 3px 6px; border-radius: 999px; background: #a3e635; color: #0a0a0a; font: 800 9px/1 Inter, sans-serif; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.pf-locked { margin: 12px 0 0; padding: 10px 12px; border: 1px dashed rgba(255, 255, 255, .12); border-radius: 12px; color: #a1a1aa; font-size: 12.5px; line-height: 1.45; }
.pf-empty { margin: 0 0 6px; color: #a1a1aa; font-size: 13px; line-height: 1.5; }
.pf-acts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .06); }
.pf-btn { flex: 1 1 auto; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px; background: rgba(255, 255, 255, .03); color: #e4e4e7; font: 650 12.5px/1 Inter, sans-serif; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.pf-btn:hover { border-color: rgba(163, 230, 53, .5); color: #a3e635; }
.pf-btn.is-main { border: 0; background: #a3e635; color: #0a0a0a; font-weight: 800; }
.pf-btn.is-main:hover { background: #bef264; color: #0a0a0a; }
.pf-opt:focus-visible, .pf-btn:focus-visible, .pf-x:focus-visible { outline: 2px solid #a3e635; outline-offset: 2px; }
.pf-note { margin: 14px 0 0; color: #52525b; font-size: 11.5px; line-height: 1.45; }

/* "✓ No seu perfil" no baú vira atalho para o perfil */
.bau-ov .bau-on { cursor: pointer; text-decoration: underline dotted rgba(163, 230, 53, .6); text-underline-offset: 3px; }
.bau-ov .bau-on::after { content: " · ver"; opacity: .75; }

@media (max-width: 767px) {
  .pf-ov { align-items: flex-end; padding: 0; }
  .pf-box, body:not(.ac52-expanded) .pf-box { width: 100%; margin: 0; max-height: 88dvh; border-radius: 22px 22px 0 0; border-bottom: 0; transform: translateY(24px); padding-bottom: env(safe-area-inset-bottom); }
  .pf-head { padding: 20px 18px 16px; }
  .pf-body { padding: 4px 18px 18px; }
  .pf-meta h3 { font-size: 19px; }
}
@media (max-width: 380px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pf-ov, .pf-box, .pf-card-go { transition: none; } }
@media print { .pf-card, .pf-ov { display: none !important; } }
