/* ---------- TOKENS ---------- */
:root {
  --bg: #0A0A0A;
  --surface: #14141E;
  --surface-2: #1E1E2E;
  --accent: #A855F7;
  --accent-2: #9333EA;
  --accent-soft: #E9D5FF;
  --text: #ffffff;
  --text-muted: #9CA3AF;
  --text-dim: #9A9AB0;
  --text-faint: #5A5A72;
  --border-accent: rgba(168, 85, 247, 0.12);
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgba(168, 85, 247, 0.3); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #2a1a3d; border-radius: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
/* [hidden] some do navegador só ganha de regras de autor com a MESMA
   especificidade quando ninguém mais define display no elemento — assim
   que uma classe (ex.: ".stories-viewer { display: flex }") entra no
   jogo, o author CSS sempre vence o UA stylesheet, e o elemento fica
   visível mesmo com hidden=true. !important aqui garante que hidden
   sempre esconde, não importa o que mais esteja definido na classe. */
[hidden] { display: none !important; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- PAGE LOADER (brand transition between page navigations) ---------- */
/* Visible by default — it's the first thing painted on every load, no JS
   needed to show it. page-transitions.js only ever adds "is-hidden". */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.4s ease;
}
#page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
  visibility: hidden;
}
/* Same dark-glow + diagonal-hairline backdrop as .page-banner and
   .about-visual, so the loader reads as part of the same system instead of
   a plain black screen. Both layers sit behind the mark via z-index. */
#page-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 55% at 50% 45%, rgba(168, 85, 247, 0.22), transparent 72%);
}
#page-loader::after {
  content: '';
  position: absolute;
  inset: -10%;
  background: repeating-linear-gradient(
    112deg,
    transparent 0 64px,
    rgba(255, 255, 255, 0.035) 64px 66px,
    transparent 66px 132px
  );
  -webkit-mask-image: radial-gradient(45% 50% at 50% 45%, black 30%, transparent 80%);
  mask-image: radial-gradient(45% 50% at 50% 45%, black 30%, transparent 80%);
}
/* logo.png's own canvas is 3:2 — sizing the box to that ratio means
   object-fit:contain shows the mark at its natural proportions with no
   cropping math to get wrong. */
.page-loader-mark {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 147px;
  transform: scale(1);
  transition: transform 0.4s ease;
}
#page-loader.is-hidden .page-loader-mark {
  transform: scale(1.05);
}
.page-loader-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.4));
}

.grad-text {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 5px 0 28px;
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cta:hover { box-shadow: 0 0 30px rgba(168, 85, 247, 0.5); filter: brightness(1.1); }
.btn-cta:active { transform: scale(0.98); }
.btn-cta .arrow-circle {
  position: relative;
  margin-left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.btn-cta:hover .arrow-circle { background: rgba(255, 255, 255, 0.2); }
/* Ping ring: expands out from the circle and fades, looping — draws the eye
   to the CTA without animating the button itself or its icon. Purple, not
   white — the arrow icon is white-stroked, so a white ring at speaking
   opacity washed it out into a blank white disc instead of pulsing behind it. */
.btn-cta .arrow-circle::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid var(--accent-soft);
  animation: arrow-circle-ping 2s cubic-bezier(0.3, 0, 0.6, 1) infinite;
  pointer-events: none;
}
@keyframes arrow-circle-ping {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-cta .arrow-circle::before { animation: none; }
}

/* ---------- HEADER ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 84px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.85) 0%, transparent 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-accent);
}
.header-inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 0 16px;
}
nav.main-nav { display: none; align-items: center; gap: 24px; }
nav.main-nav a {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] { color: var(--text); }
.logo-wrap { background: transparent; }
.logo-wrap img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.6));
}
/* Wraps the account button so a hover dropdown (logged in) can anchor to
   it — the absolute placement that used to live on .btn-entrar itself
   moved here, since .btn-entrar is also reused, position-agnostic, inside
   .mobile-menu-cta. */
.account-menu {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
@media (min-width: 1024px) {
  .account-menu { right: 32px; }
}

/* Icon-only login button: a padlock says "sign in" without needing a label,
   and reads identically at any viewport width — no separate mobile variant.
   Logged in as a criadora, it shows her profile photo instead. */
.btn-entrar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  color: var(--text);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-entrar svg { width: 18px; height: 18px; }
.btn-entrar-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn-entrar:hover { filter: brightness(1.1); box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
.btn-entrar:active { transform: scale(0.95); }

/* Hover dropdown (desktop): "padding-top" on the outer box keeps the
   hover area contiguous with the avatar across the visual gap, so the
   mouse never crosses dead space and loses :hover mid-move. */
.account-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 10px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 10;
}
.account-menu:hover .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.account-dropdown-inner {
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.account-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s;
}
.account-dropdown a:hover { background: var(--surface-2); color: var(--text); }
.account-dropdown a svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.account-dropdown a + a { margin-top: 2px; }

@media (min-width: 1024px) {
  nav.main-nav { display: flex; }
}

/* ---------- MOBILE MENU (hamburger + off-canvas panel) ---------- */
body.no-scroll { overflow: hidden; }

.mobile-menu-toggle {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Off-canvas panel: hidden left of the viewport, slides in left-to-right by
   animating transform (not left/width), so it stays on the compositor and
   doesn't trigger layout on every frame. */
.mobile-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1001;
  width: min(82vw, 320px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border-right: 1px solid var(--border-accent);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.mobile-menu-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.5));
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-accent);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.mobile-menu-close svg { width: 16px; height: 16px; }
.mobile-menu-close:hover { color: var(--text); border-color: rgba(168, 85, 247, 0.35); }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu-links a {
  padding: 15px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-links a:hover,
.mobile-menu-links a[aria-current="page"] {
  background: rgba(168, 85, 247, 0.1);
  color: var(--text);
}

/* .btn-entrar is a fixed 42px icon circle; this CTA needs the full-width
   pill-with-label shape instead, so every sizing property is re-declared
   rather than layered on top. */
.mobile-menu-cta {
  position: static;
  margin-top: auto;
  width: 100%;
  height: auto;
  padding: 14px 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: none;
}
.mobile-menu-cta svg { width: 16px; height: 16px; }
.mobile-menu-cta .btn-entrar-photo { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }

.mobile-menu-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
}
.mobile-menu-logout svg { width: 15px; height: 15px; }
.mobile-menu-logout:hover { color: var(--text); }

.mobile-menu-instalar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-soft);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  cursor: pointer;
}
.mobile-menu-instalar svg { width: 15px; height: 15px; }
.mobile-menu-instalar:hover { background: rgba(168, 85, 247, 0.18); }
.mobile-menu-cta:active { transform: scale(0.98); }

@media (min-width: 1024px) {
  .mobile-menu-toggle,
  .mobile-menu-backdrop,
  .mobile-menu { display: none; }
}

/* ---------- PAGE BANNER (shared hero header for interior pages) ---------- */
.page-banner {
  --banner-glow: rgba(168, 85, 247, 0.4);
  --banner-glow-soft: rgba(216, 180, 254, 0.2);
  position: relative;
  overflow: hidden;
  padding: 64px 24px 72px;
  background: var(--bg);
}
/* Two soft radial layers in one gradient stack, instead of two separate
   circle blobs — reads as ambient light, not a stamped-on shape. */
.page-banner::before {
  content: '';
  position: absolute;
  top: -280px;
  left: -10%;
  right: -10%;
  height: 620px;
  pointer-events: none;
  background:
    radial-gradient(38% 60% at 36% 25%, var(--banner-glow-soft), transparent 70%),
    radial-gradient(46% 65% at 64% 18%, var(--banner-glow), transparent 72%);
  filter: blur(70px);
}
/* Same brushed-hairline motif as the about page's portrait backdrop, so the
   two pages read as one visual system rather than two separate treatments. */
.page-banner::after {
  content: '';
  position: absolute;
  inset: -10% -10% 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    112deg,
    transparent 0 64px,
    rgba(255, 255, 255, 0.035) 64px 66px,
    transparent 66px 132px
  );
  -webkit-mask-image: radial-gradient(60% 55% at 50% 12%, black 25%, transparent 75%);
  mask-image: radial-gradient(60% 55% at 50% 12%, black 25%, transparent 75%);
}
.page-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.page-eyebrow svg { width: 14px; height: 14px; color: var(--accent); }
.page-eyebrow span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-soft);
}
.page-banner h1 {
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  font-size: clamp(34px, 5.5vw, 58px);
  text-wrap: balance;
}
.page-banner p {
  margin-top: 20px;
  max-width: 50ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
}

/* ---------- FOOTER ---------- */
footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 28px; filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5)); }
.footer-brand span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); }
.footer-loc { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }
@media (min-width: 1024px) {
  .footer-inner { flex-direction: row; }
}

/* body.pagina-login (login.php): rodapé institucional (logo/copyright/CNPJ)
   só atrapalha no celular/tablet — some abaixo do breakpoint de desktop já
   usado pro resto do app-shell (assets/mobile-app.css), continua normal a
   partir daí. Botão flutuante do Instagram some sempre, em qualquer
   tamanho de tela — tela de login não é página de marketing. */
@media (max-width: 1023.98px) {
  body.pagina-login footer { display: none; }
}
body.pagina-login .social-float { display: none; }

/* ---------- FLOATING SOCIAL BUTTON ---------- */
/* Bob (vertical float) lives on the fixed-position link; hover-scale lives
   on the inner circle — two separate elements so the two `transform`
   animations never fight over the same property on the same node. */
.social-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  display: block;
  animation: social-float-bob 3s ease-in-out infinite;
}
.social-float-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.social-float-inner svg { width: 24px; height: 24px; }
.social-float-inner::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.55);
  animation: social-float-ping 2.4s cubic-bezier(0.3, 0, 0.6, 1) infinite;
  pointer-events: none;
}
.social-float:hover .social-float-inner {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.6);
}
@keyframes social-float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes social-float-ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .social-float { animation: none; }
  .social-float-inner::before { animation: none; }
}
@media (min-width: 1024px) {
  .social-float { right: 32px; bottom: 32px; }
}

/* ---------- FORM KIT ---------- */
/* Shared by every form on the site (contact, login, signup) — one definition
   of an input/select/textarea, one alert style, one honeypot trap. Pages
   only need their own layout wrapper (e.g. .contact-card, .auth-card). */
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}
.form-row label svg { width: 14px; height: 14px; color: var(--accent); }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-faint); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
.form-row textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-row select { appearance: none; cursor: pointer; }
.form-row:has(select) { position: relative; }
.form-row .field-hint { font-size: 11px; color: var(--text-faint); }

/* A submit button that fills its form's width instead of hugging its own
   content — the ping-ring arrow-circle isn't used here, so the label gets
   the full row instead of sharing it with an icon. */
.btn-cta--block { justify-content: center; width: 100%; padding-left: 0; }
.btn-cta--block span:first-child { flex: 1; text-align: center; }

/* Secondary action next to a --block primary — same shape, no gradient. */
.btn-cta--outline {
  background: var(--surface-2);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-soft);
}
.btn-cta--outline:hover { border-color: var(--accent); background: var(--surface); }
.btn-cta--outline .arrow-circle { background: rgba(168, 85, 247, 0.12); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.6;
}
.form-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.form-alert strong { display: block; margin-bottom: 2px; }
.form-alert ul { margin: 4px 0 0 18px; padding: 0; }
.form-alert--success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}
.form-alert--success strong { color: #a7f3d0; }
.form-alert--error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}
.form-alert--error strong { color: #fecaca; }
.form-alert--warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fde68a;
}
.form-alert--warning strong { color: #fef3c7; }

/* Estado vazio genérico — mesmo visual do .admin-empty (admin.css), só que
   disponível fora do admin (site.css carrega em toda página). assinar.php
   usava .admin-empty sem nunca carregar admin.css, saindo sem estilo
   nenhum — daí existir aqui em vez de só dentro do admin. */
.empty-state {
  padding: 56px 24px;
  text-align: center;
  color: var(--text-dim);
}
.empty-state svg { width: 32px; height: 32px; color: var(--accent); margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* Título de seção dentro de um painel (ex: "Atalhos", "Ativos agora") —
   vivia em assets/conta.css com --text-faint (baixo contraste demais pra
   ler numa tela real, sumia) e margin-bottom negativa; movido pra cá
   porque painel-stories.php também usa a mesma classe sem carregar
   conta.css, então ficava sem nenhum estilo lá. */
.dash-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  margin: 8px 0 4px;
}

/* ---------- BANNER "INSTALAR APP" (PWA) ----------
   Toast fixo no rodapé da tela, não um bloco no meio do conteúdo — some
   sozinho via assets/pwa.js quando o navegador permite instalar
   (beforeinstallprompt) e nunca mostra de novo se já estiver instalado.
   Some deslizando de baixo pra cima: parte de fora da tela (translateY
   positivo) e anima até a posição final quando ganha ".is-visible" — ver
   assets/pwa.js (o "hidden" some/aparece no DOM, a classe controla a
   animação; os dois separados de propósito, porque alternar só o "hidden"
   troca de display:none direto pro estado final sem nenhum quadro
   intermediário pro navegador animar). Mora aqui (site.css, global) em vez
   de auth.css porque o banner aparece em qualquer página, não só nas de
   autenticação — a home (index.php) também usa. */
.pwa-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: translateY(calc(100% + 32px));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pwa-banner.is-visible { transform: translateY(0); }
@media (min-width: 1024px) {
  .pwa-banner { left: auto; right: 32px; bottom: 32px; width: 400px; }
}
.pwa-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
}
.pwa-banner-icon svg { width: 18px; height: 18px; }
.pwa-banner-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pwa-banner-texto strong { font-size: 13.5px; }
.pwa-banner-texto span { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }
.pwa-banner-instalar {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.pwa-banner-fechar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--text-faint);
  cursor: pointer;
}
.pwa-banner-fechar:hover { color: var(--text); }
.pwa-banner-fechar svg { width: 14px; height: 14px; }
/* Telas bem estreitas: texto e botão empilham em vez de espremer tudo numa
   linha só (ícone + parágrafo + botão + fechar não cabem lado a lado). */
@media (max-width: 380px) {
  .pwa-banner { flex-wrap: wrap; }
  .pwa-banner-instalar { flex: 1; text-align: center; }
}

/* Variante iOS/Safari do mesmo .pwa-banner (assets/pwa.js,
   prepararBannerParaPlataforma) — beforeinstallprompt não existe nessa
   plataforma, então em vez do botão "Instalar" de sempre, mostra o passo
   a passo manual (Compartilhar → Adicionar à Tela de Início). Layout em
   coluna porque uma lista de 3 passos não cabe na linha única que o
   banner padrão usa.
   Sem "position" aqui de propósito — herda o "fixed" de .pwa-banner (a
   mesma classe continua no elemento, só esta é somada). .pwa-banner--ios
   vem DEPOIS de .pwa-banner no arquivo, então um "position: relative"
   aqui venceria o empate de especificidade e tirava o banner do fixed,
   fazendo ele cair dentro do fluxo normal da página (foi exatamente esse
   bug: banner "vazando" pro topo em vez de flutuar no rodapé). E não
   precisa mesmo: um elemento position:fixed já é containing block válido
   pra filho position:absolute (o botão de fechar, aqui embaixo). */
.pwa-banner--ios {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 18px 18px 16px;
}
.pwa-banner-fechar--topo { position: absolute; top: 12px; right: 12px; }
.pwa-banner-ios-head { display: flex; align-items: center; gap: 12px; padding-right: 28px; }
.pwa-banner-ios-head strong { font-size: 14px; }
.pwa-banner-ios-passos { display: flex; flex-direction: column; gap: 9px; margin: 2px 0 2px; padding: 0; list-style: none; }
.pwa-banner-ios-passos li { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.pwa-banner-ios-passos li strong { color: var(--text); font-weight: 700; }
.pwa-banner-ios-passos li svg { width: 14px; height: 14px; vertical-align: middle; margin: 0 1px; position: relative; top: 2px; }
.pwa-banner-ios-passo-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.18);
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.pwa-banner-instalar--bloco { width: 100%; text-align: center; }
