/* =========================================================
   Dhionathan Jobim · efeitos e janelas
   Halo do cursor, Volt (mascote 3D e lasers), botão do PIX no canto,
   janela do PIX, foto ampliada e aviso de cópia.
   JS: assets/js/efeitos.js, assets/js/3d/volt.js, assets/js/pix.js, assets/js/main.js
   ========================================================= */

/* ---------- Halo de luz que acompanha o cursor ---------- */
.cursor-halo {
  position: fixed; left: 0; top: 0; z-index: 1; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(circle, rgba(124,140,255,.10) 0%, rgba(139,92,246,.05) 35%, transparent 65%);
}
.cursor-halo.is-on { opacity: 1; }

/* ---------- Volt ---------- */
.volt-canvas { display: block; }
.volt-fx { position: fixed; inset: 0; z-index: 9990; pointer-events: none; }

/* botão do PIX: o mini Volt no canto */
.volt-pix {
  position: fixed; right: 10px; bottom: 6px; z-index: 95; width: 176px; height: 198px; padding: 0; border: 0;
  background: transparent; cursor: pointer; transition: transform .25s var(--ease), opacity .3s var(--ease), visibility 0s;
}
.volt-pix:hover { transform: translateY(-4px); }
.volt-pix:focus-visible { outline-offset: -6px; border-radius: 24px; }
.volt-pix__3d { position: absolute; inset: 0; display: block; }
.volt-pix__fallback { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 56px; height: auto; filter: drop-shadow(0 0 14px rgba(110,100,255,.55)); }
.has-volt .volt-pix__fallback { display: none; }
.volt-pix__label {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: rgba(50,188,173,.18); border: 1px solid rgba(50,188,173,.55);
  color: #9BF3E8; font: 700 .8rem/1 var(--font); letter-spacing: .04em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(50,188,173,.25);
}
.volt-pix__label svg { width: 14px; height: 14px; }
.volt-pix.is-hidden { opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
@media (max-width: 560px) { .volt-pix { width: 138px; height: 156px; right: 2px; bottom: 4px; } }

/* ---------- Janela do PIX ---------- */
.pix { position: fixed; inset: 0; z-index: 9995; display: grid; place-items: center; padding: 16px; }
.pix__overlay { position: absolute; inset: 0; background: rgba(4,4,10,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s var(--ease); }
.pix__panel {
  position: relative; width: min(420px, 100%); padding: 32px 26px 24px; border-radius: var(--radius-lg); text-align: center;
  background: linear-gradient(180deg, #141228, #0D0B1C); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(110,100,255,.2);
  animation: pop .3s var(--ease);
}
.pix__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.pix__close svg { width: 18px; height: 18px; }
.pix__logo { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: rgba(50,188,173,.15); color: var(--pix); box-shadow: 0 0 30px rgba(50,188,173,.25); }
.pix__logo svg { width: 34px; height: 34px; }
.pix__panel h2 { font-size: 1.5rem; margin-bottom: 8px; }
.pix__who { color: var(--text); font-weight: 600; margin-bottom: 20px; }
.pix__who span { font-weight: 400; color: var(--text-soft); font-size: .92rem; }
.btn--pix { width: 100%; background: var(--pix); color: #04201C; margin-bottom: 10px; }
.btn--pix:hover { background: #45D3C3; color: #04201C; }
.pix__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pix__row .btn { width: 100%; padding: 0 10px; }
.pix__tip { margin: 8px 0 0; font-size: .8rem; color: var(--text-dim); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ---------- Foto ampliada ---------- */
.lightbox { position: fixed; inset: 0; z-index: 9995; display: grid; place-items: center; padding: 56px 16px; }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(4,4,10,.92); }
.lightbox__img { position: relative; width: auto; height: auto; max-width: min(1200px, calc(100vw - 32px)); max-height: calc(100dvh - 112px); object-fit: contain; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__close, .lightbox__nav { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(17,15,32,.8); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); margin: 0; font-size: .9rem; color: var(--text-soft); }

/* ---------- Aviso de cópia ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 9999; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 999px; background: #18153A; border: 1px solid var(--line-strong); color: var(--text);
  font-size: .95rem; box-shadow: 0 12px 30px rgba(0,0,0,.5); animation: pop .25s var(--ease);
}

/* ---------- Janela da Franquia Extranet (site e apps) ---------- */
.sheet { position: fixed; inset: 0; z-index: 9995; display: grid; place-items: center; padding: 16px; }
.sheet__overlay { position: absolute; inset: 0; background: rgba(4,4,10,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s var(--ease); }
.sheet__panel {
  position: relative; width: min(440px, 100%); padding: 28px 24px 22px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #141228, #0D0B1C); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(110,100,255,.2); animation: pop .3s var(--ease);
}
.sheet__panel h2 { font-size: 1.35rem; margin: 0 0 4px; }
.sheet__panel > p { color: var(--text-soft); font-size: .95rem; margin-bottom: 18px; }
.sheet__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.sheet__close svg { width: 18px; height: 18px; }
.sheet__opts { display: grid; gap: 10px; }
.sheet__opt {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.sheet__opt:hover { color: #fff; border-color: var(--line-strong); background: rgba(139,92,246,.1); transform: translateX(3px); }
.sheet__opt > svg { width: 26px; height: 26px; flex: none; color: var(--violet-300); }
.sheet__opt b { display: block; font-weight: 600; }
.sheet__opt small { display: block; color: var(--text-dim); font-size: .82rem; }
.sheet__opt .sheet__go { width: 18px; height: 18px; margin-left: auto; color: var(--text-dim); }
@media (max-width: 560px) {
  .sheet { place-items: end center; padding: 0; }
  .sheet__panel { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}
