/* ============================================================
   FUN.CSS v3 — tema "Pátio de Arte" do Portal do Aluno
   Gerado a partir do frontend/DESIGN.md (referência: brand poster
   roxo/amarelo/teal/laranja com formas lúdicas — English by Grasi).
   Carregado SÓ pelas páginas do aluno, DEPOIS do app.css.
   Animações 100% CSS transform/opacity; prefers-reduced-motion
   do app.css desliga tudo.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --roxo: #5B2E91;
  --roxo-2: #472275;
  --amarelo: #FFC93C;
  --teal: #29C6C0;
  --laranja: #F78F3F;
  --lilas: #A98BD6;

  --primary: #FFC93C;
  --primary-dark: #F5B818;
  --success: #29C6C0;
  --warning: #F78F3F;
  --danger: #E85D3D;

  --bg: #5B2E91;                /* o canvas roxo É o fundo */
  --surface: #FFFFFF;           /* tiles */
  --surface-2: #F3EFFA;
  --text: #3A2465;              /* roxo-tinta dentro dos tiles */
  --text-muted: #7A6C9E;
  --border: rgba(58, 36, 101, 0.1);
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(26, 15, 46, 0.5);
  --shadow-lg: 0 18px 44px -16px rgba(26, 15, 46, 0.6);
  --header-grad: var(--roxo-2); /* heros das subpáginas: roxo profundo chapado */

  /* fallback: em Safari < 16.4 a regra @property abaixo é ignorada; sem este
     valor o conic-gradient viraria inválido e a moldura perderia a cor. */
  --spin: 0deg;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.45, 0.64, 1);
  --dur-quick: 150ms;
  --dur-fast: 250ms;
  --dur-medium: 350ms;
  --dur-slow: 500ms;
}

body.dark {
  --bg: #1A0F2E;
  --surface: #2B1C4A;
  --surface-2: #241740;
  --text: #F3EDFF;
  --text-muted: #B9A9DE;
  --border: rgba(243, 237, 255, 0.1);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 18px 44px -16px rgba(0, 0, 0, 0.7);
  --header-grad: #241348;
}

/* ---------- Tipografia ---------- */
body { font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1, h2, h3, button, .btn, .step, .pl-title, .hero strong, .ribbon-track {
  font-family: 'Fredoka', 'Nunito', -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ---------- Canvas + camada de arte (formas flutuando) ---------- */
body { background-color: var(--bg); }
main, .hero, .portal, header { position: relative; z-index: 1; }

.art-bg {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.art-bg .shape { position: absolute; display: block; }
.art-bg svg { width: 100%; height: 100%; display: block; }

/* flor-sol sorridente (laranja) — topo direito */
.art-bg .s1 { width: 150px; top: -34px; right: -30px; animation: art-wobble 9s ease-in-out infinite; }
/* balão de fala (teal) — topo esquerdo */
.art-bg .s2 { width: 110px; top: 60px; left: -34px; animation: art-float 7s ease-in-out infinite; }
/* círculo (amarelo, morfando) — meio esquerdo */
.art-bg .s3 {
  width: 58px; height: 58px; left: 4%; top: 46%;
  background: var(--amarelo);
  border-radius: 50%;
  animation: art-blob 11s ease-in-out infinite, art-float 8s 1s ease-in-out infinite;
}
/* estrela-faísca (lilás) — meio direito, girando devagar */
.art-bg .s4 { width: 76px; right: 3%; top: 38%; animation: art-spin 42s linear infinite; }
/* meia-lua (laranja) — baixo esquerdo */
.art-bg .s5 {
  width: 110px; height: 55px; left: -26px; bottom: 7%;
  background: var(--laranja);
  border-radius: 0 0 110px 110px;
  transform: rotate(14deg);
  animation: art-float 10s 0.5s ease-in-out infinite;
}
/* círculo pequeno (teal, morfando) — baixo direito */
.art-bg .s6 {
  width: 44px; height: 44px; right: 7%; bottom: 12%;
  background: var(--teal);
  border-radius: 50%;
  animation: art-blob 9s 2s ease-in-out infinite, art-float 6.5s ease-in-out infinite;
}
body.dark .art-bg { opacity: 0.5; }

@keyframes art-float { 50% { transform: translateY(-14px); } }
@keyframes art-wobble { 50% { transform: rotate(12deg) translateY(-8px); } }
@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-blob {
  0%, 100% { border-radius: 50%; }
  33%      { border-radius: 58% 42% 47% 53% / 45% 56% 44% 55%; }
  66%      { border-radius: 44% 56% 58% 42% / 55% 45% 56% 44%; }
}

@media (max-width: 560px) {
  .art-bg .s1 { width: 110px; }
  .art-bg .s2 { width: 84px; }
  .art-bg .s4 { width: 58px; }
  .art-bg .s3 { display: none; }
}

/* ---------- Transição entre páginas: bolha líquida ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: art-page-out 200ms ease both; }
  ::view-transition-new(root) { animation: art-page-in 480ms var(--ease) both; }
}
@keyframes art-page-out { to { opacity: 0; } }
@keyframes art-page-in {
  from { clip-path: circle(0% at 50% 10%); }
  to   { clip-path: circle(150% at 50% 10%); }
}

/* ---------- Entradas: pop saltitante em cascata ---------- */
.card, .portal-link, .portal-hero, .ribbon {
  animation: art-pop 450ms var(--ease-pop) both;
}
@keyframes art-pop {
  from { opacity: 0; transform: scale(0.92) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
main .card:nth-child(2), .portal-link:nth-child(1) { animation-delay: 70ms; }
main .card:nth-child(3), .portal-link:nth-child(2) { animation-delay: 140ms; }
.portal-link:nth-child(3) { animation-delay: 210ms; }
.portal-link:nth-child(4) { animation-delay: 280ms; }
.portal-link:nth-child(5) { animation-delay: 350ms; }

/* ---------- Hero ---------- */
.hero {
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.45);
}
.hero strong { font-size: 1.15rem; font-weight: 600; }
.hero a { opacity: 0.9; }

/* Portal: título branco gordo + livro flutuando */
.portal-hero { text-align: center; padding: 2.2rem 1rem 1rem; }
.portal-hero .logo {
  font-size: 3.5rem;
  display: inline-block;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
  animation: art-pop 450ms var(--ease-pop) both, art-float 4.5s 0.6s ease-in-out infinite;
}
.portal-hero h1 {
  color: #fff;
  font-size: 2rem;
  line-height: 1.15;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}
.portal-hero p { color: var(--lilas); font-weight: 700; font-size: 0.95rem; }
body.dark .portal-hero p { color: #C9B8EC; }

/* ---------- Faixa-marquee amarela (portal) ---------- */
.ribbon {
  width: 112%;
  margin: 0.9rem -6% 1.1rem;
  transform: rotate(-2deg);
  background: var(--amarelo);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.4);
  animation-delay: 120ms;
}
.ribbon-track {
  display: inline-block;
  white-space: nowrap;
  padding: 0.45rem 0;
  color: var(--roxo-2);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  animation: art-marquee 18s linear infinite;
}
@keyframes art-marquee { to { transform: translateX(-50%); } }

/* ---------- Tiles ---------- */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Linktree ---------- */
.portal-links { gap: 0.9rem; }
.portal-link {
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--dur-fast) var(--ease-pop), box-shadow var(--dur-fast) var(--ease);
}
.portal-link:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: var(--shadow-lg);
}
.portal-link:active { transform: translateY(1px) scale(0.98); }
.portal-links .portal-link .pl-title { color: var(--text); font-size: 1.08rem; font-weight: 600; }
.portal-links .portal-link .pl-sub { color: var(--text-muted); font-weight: 600; }
.portal-link .pl-arrow { color: var(--lilas); font-weight: 800; transition: transform var(--dur-fast) var(--ease); }
.portal-link:hover .pl-arrow { transform: translateX(5px); color: var(--roxo); }

/* Ícones: pastilhas chapadas nas cores da marca, morfando */
.portal-link .pl-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border-radius: 50%;
  animation: art-blob 10s ease-in-out infinite, art-float 5s ease-in-out infinite;
}
.portal-link:nth-child(1) .pl-icon { background: var(--amarelo); animation-delay: 0s, 0.3s; }
.portal-link:nth-child(2) .pl-icon { background: var(--teal); animation-delay: 2s, 0.9s; }
.portal-link:nth-child(3) .pl-icon { background: var(--laranja); animation-delay: 4s, 1.5s; }
.portal-link:nth-child(4) .pl-icon { background: var(--lilas); animation-delay: 6s, 2.1s; }
.portal-link:nth-child(5) .pl-icon { background: var(--teal); animation-delay: 8s, 2.7s; }

/* ---------- Botões: pílulas chapadas, texto roxo-tinta ---------- */
button, .btn {
  border: none;
  border-radius: 999px;
  background: var(--amarelo);
  color: var(--roxo-2);
  font-weight: 600;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur-quick) var(--ease-pop), box-shadow var(--dur-fast) var(--ease), filter var(--dur-quick) var(--ease);
}
button:hover, .btn:hover { background: var(--amarelo); transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.4); filter: brightness(1.04); }
button:active, .btn:active { transform: translateY(1px) scale(0.97); }
button:disabled { background: #C9C1D8; color: #7A7390; box-shadow: none; transform: none; }
.btn-success, .btn-success:hover { background: var(--teal); color: #123B39; }
.btn-danger, .btn-danger:hover { background: var(--danger); color: #fff; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--lilas);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--roxo); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.3); }
body.dark .btn-ghost { border-color: rgba(169, 139, 214, 0.5); }

.theme-toggle, .nav-toggle {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
.btn-flip-camera {
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

/* ---------- Inputs ---------- */
input, select, textarea {
  border: 2px solid #E4DCF2;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  transition: border-color var(--dur-quick) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
body.dark input, body.dark select, body.dark textarea { border-color: rgba(243, 237, 255, 0.14); background: var(--surface-2); }
input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(41, 198, 192, 0.22);
}
label { font-weight: 700; }

/* ---------- Lista de nomes ---------- */
.name-item {
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--surface-2);
  transition: transform var(--dur-quick) var(--ease), border-color var(--dur-fast) var(--ease);
  animation: art-pop 300ms var(--ease-pop) both;
}
.name-item:hover { border-color: var(--teal); transform: translateX(3px); }
.name-item:active { transform: scale(0.985); }
.name-item img { border: 2.5px solid var(--surface); box-shadow: 0 0 0 2px var(--lilas); }
.name-item .avatar { border: none; font-family: 'Fredoka', sans-serif; color: var(--roxo-2); }
.name-item:nth-child(5n+1) .avatar { background: var(--amarelo); }
.name-item:nth-child(5n+2) .avatar { background: var(--teal); }
.name-item:nth-child(5n+3) .avatar { background: var(--laranja); }
.name-item:nth-child(5n+4) .avatar { background: var(--lilas); }
.name-item:nth-child(5n+5) .avatar { background: #8FD8FF; }

/* ---------- Molduras de câmera: anel de marca GIRANDO ---------- */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.selfie-frame, .video-container, .photo-frame {
  border: 4px solid transparent;
  background:
    linear-gradient(#000, #000) padding-box,
    conic-gradient(from var(--spin), var(--roxo), var(--teal), var(--amarelo), var(--laranja), var(--roxo)) border-box;
  animation: art-ring 4s linear infinite;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.55);
}
.video-container { border-radius: 24px; }
.selfie-frame { border-radius: 50%; }
@keyframes art-ring { to { --spin: 360deg; } }

.confirm-photo {
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 3px var(--teal), 0 12px 26px -12px rgba(0, 0, 0, 0.5);
  animation: art-pop var(--dur-medium) var(--ease-pop) both;
}

/* ---------- Badges ---------- */
.badge { border: none; background: var(--surface-2); color: var(--text); font-weight: 700; }
.badge-success { background: rgba(41, 198, 192, 0.18); color: #0E7D78; }
.badge-warning { background: rgba(247, 143, 63, 0.18); color: #B05A17; }
body.dark .badge-success { color: #7FE7E2; }
body.dark .badge-warning { color: #FFBE8C; }

/* ---------- Loader ---------- */
.fun-loader {
  display: flex; gap: 0.55rem;
  justify-content: center; align-items: center;
  padding: 1.4rem 0 0.6rem;
}
.fun-loader i {
  width: 12px; height: 12px;
  border-radius: 50%;
  animation: art-wave 1s var(--ease) infinite;
}
.fun-loader i:nth-child(1) { background: var(--roxo); }
.fun-loader i:nth-child(2) { background: var(--amarelo); animation-delay: 0.13s; }
.fun-loader i:nth-child(3) { background: var(--teal); animation-delay: 0.26s; }
body.dark .fun-loader i:nth-child(1) { background: var(--lilas); }
@keyframes art-wave {
  30% { transform: translateY(-10px) scale(1.1); }
  60% { transform: translateY(0) scale(1); }
}
.fun-loader-label {
  text-align: center;
  font-weight: 700;
  padding-bottom: 1rem;
  background: linear-gradient(100deg, var(--text-muted) 40%, var(--text) 50%, var(--text-muted) 60%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: art-shimmer 2s linear infinite;
}
@keyframes art-shimmer { to { background-position: -150% 0; } }

/* ---------- Sucesso: disco AMARELO + check ROXO desenhado ---------- */
.success-mark {
  width: 88px; height: 88px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--amarelo);
  display: flex; align-items: center; justify-content: center;
  color: var(--roxo-2);
  position: relative;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
  animation: art-pop var(--dur-medium) var(--ease-pop) both;
}
.success-mark::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 3px solid var(--laranja);
  animation: art-halo 0.9s var(--ease) 0.15s both;
}
@keyframes art-halo {
  from { opacity: 0.9; transform: scale(0.85); }
  to   { opacity: 0; transform: scale(1.5); }
}
.success-mark svg { width: 46px; height: 46px; display: block; overflow: visible; }
.t-success-check { display: inline-block; transform-origin: center; opacity: 0; }
.t-success-check svg path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.t-success-check[data-state="in"] {
  animation:
    tck-fade   var(--dur-slow) var(--ease) forwards,
    tck-rotate var(--dur-slow) var(--ease) forwards,
    tck-blur   var(--dur-slow) var(--ease) forwards,
    tck-bob    var(--dur-slow) cubic-bezier(0.34, 1.35, 0.64, 1) forwards;
}
.t-success-check[data-state="in"] svg path {
  animation: tck-draw var(--dur-slow) var(--ease) 80ms forwards;
}
@keyframes tck-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tck-rotate { from { transform: rotate(70deg); } to { transform: rotate(0deg); } }
@keyframes tck-blur { from { filter: blur(8px); } to { filter: blur(0); } }
@keyframes tck-bob { from { translate: 0 22px; } to { translate: 0 0; } }
@keyframes tck-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .t-success-check { opacity: 1; }
  .t-success-check svg path { stroke-dashoffset: 0; }
}
.big-success h2, .success-screen h2 { font-size: 1.6rem; color: var(--text); }

/* ---------- Confete: cores da marca ---------- */
.confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 9997; }
.confetti i {
  position: absolute; top: -4vh;
  width: 9px; height: 13px;
  border-radius: 2.5px;
  background: hsl(var(--h, 268) 75% 62%);
  opacity: 0;
  animation: art-conf 2.6s var(--d, 0s) cubic-bezier(0.25, 0.6, 0.35, 1) forwards;
}
.confetti i:nth-child(3n) { border-radius: 50%; width: 8px; height: 8px; }
.confetti i:nth-child(4n) { height: 15px; width: 6px; }
@keyframes art-conf {
  8% { opacity: 1; }
  to { transform: translate3d(calc(var(--dx, 0) * 18vw), 106vh, 0) rotateZ(540deg); opacity: 0.85; }
}

/* ---------- Boarding pass (toast) ---------- */
.boarding-pass {
  background: var(--surface);
  color: var(--text);
  border: none;
  border-left: 5px solid var(--teal);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: art-toast-in var(--dur-medium) var(--ease), boardingOut var(--dur-fast) ease-in 3s forwards;
}
.boarding-pass .photo { border: 3px solid var(--teal); }
.boarding-pass .name { color: var(--text); }
.boarding-pass .sub { color: var(--text-muted); opacity: 1; }
@keyframes art-toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ---------- Itens reconhecidos + alertas ---------- */
.recognized-item {
  border: none;
  border-radius: 14px;
  background: var(--surface-2);
  animation: art-pop var(--dur-medium) var(--ease-pop) both;
}
.recognized-item.success { border-left: 5px solid var(--teal); }
.recognized-item.warning { border-left: 5px solid var(--laranja); }
.alert {
  border: none;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: art-pop var(--dur-medium) var(--ease-pop) both;
}
.alert-success { background: #DFF7F5; color: #0E7D78; border-left: 5px solid var(--teal); }
.alert-error { background: #FDE6DE; color: #B5401F; border-left: 5px solid var(--danger); }
.alert-info { background: #FFF3D1; color: #8A6200; border-left: 5px solid var(--amarelo); }
body.dark .alert-success { background: #143C3A; color: #7FE7E2; }
body.dark .alert-error { background: #46201A; color: #FFB39A; }
body.dark .alert-info { background: #453A14; color: #FFDF8F; }

/* ---------- Chips de passo (matrícula) ---------- */
.step { background: var(--amarelo); color: var(--roxo-2); font-weight: 600; }
.step .num { background: var(--roxo-2); color: var(--amarelo); }

/* ---------- Privacidade ---------- */
.privacy { border: 2px dashed var(--lilas); border-radius: 12px; background: var(--surface-2); }

/* ---------- Flash verde de confirmação (totem) ---------- */
.flash-ok {
  position: fixed; inset: 0;
  background: #2EC46F;
  z-index: 9996;
  pointer-events: none;
  animation: flash-ok 0.7s ease-out forwards;
}
@keyframes flash-ok { 0% { opacity: 0; } 15% { opacity: 0.5; } 100% { opacity: 0; } }

/* ---------- Splash central de presença (bem chamativo) ---------- */
.splash-ok {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 9998;
  pointer-events: none;
  padding: 1rem;
}
.splash-ok .tile {
  background: var(--surface);
  border-radius: 28px;
  padding: 2rem 2.4rem 1.7rem;
  text-align: center;
  max-width: min(92vw, 420px);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
  animation: art-pop 0.45s var(--ease-pop) both, splash-out 0.45s ease-in 2s forwards;
}
.splash-ok .success-mark { width: 100px; height: 100px; background: var(--teal); color: #fff; margin-bottom: 0.8rem; }
.splash-ok .success-mark::after { border-color: var(--teal); }
.splash-ok .sp-nome {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: 1.55rem; color: var(--text); line-height: 1.15;
}
.splash-ok .sp-classe { color: var(--text-muted); font-weight: 700; margin-top: 0.15rem; }
.splash-ok .sp-ok { color: #1FA95B; font-weight: 800; margin-top: 0.45rem; font-size: 0.95rem; }
@keyframes splash-out { to { opacity: 0; transform: scale(0.94) translateY(8px); } }

/* ---------- Painel QR: desconhecido persistente → matrícula sem fila ---------- */
.qr-cta {
  position: fixed;
  left: 50%; bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  width: min(94vw, 470px);
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.6);
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem 1.1rem;
  z-index: 9995;
  transition: transform 0.45s var(--ease-pop), opacity 0.3s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.qr-cta.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.qr-cta .qr-box {
  width: 134px; height: 134px; flex-shrink: 0;
  background: #fff;
  border: 3px solid var(--amarelo);
  border-radius: 14px;
  padding: 8px;
}
.qr-cta .qr-box svg { width: 100%; height: 100%; display: block; }
.qr-cta .qr-text { flex: 1; min-width: 0; color: var(--text); }
.qr-cta .qr-text strong { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; display: block; }
.qr-cta .qr-text span {
  font-size: 0.85rem; color: var(--text-muted); font-weight: 600;
  display: block; margin: 0.25rem 0 0.55rem;
}
.qr-cta .qr-text a.btn-ghost { font-size: 0.8rem; padding: 0.45rem 0.85rem; display: inline-block; }
.qr-close {
  position: absolute; top: -12px; right: -12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--roxo-2); color: #fff;
  font-size: 0.95rem; padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.qr-close:hover { background: var(--roxo); }

/* ---------- Admin com a mesma identidade ---------- */
header { box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.45); }
.menu-card {
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: art-pop 450ms var(--ease-pop) both;
  transition: transform var(--dur-fast) var(--ease-pop), box-shadow var(--dur-fast) var(--ease);
}
.menu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--amarelo); }
.menu-card h3 { color: var(--roxo); }
body.dark .menu-card h3 { color: var(--lilas); }
.grid-menu .menu-card:nth-child(1) { animation-delay: 60ms; }
.grid-menu .menu-card:nth-child(2) { animation-delay: 120ms; }
.grid-menu .menu-card:nth-child(3) { animation-delay: 180ms; }
.grid-menu .menu-card:nth-child(4) { animation-delay: 240ms; }
.grid-menu .menu-card:nth-child(5) { animation-delay: 300ms; }
.grid-menu .menu-card:nth-child(6) { animation-delay: 360ms; }
.grid-menu .menu-card:nth-child(7) { animation-delay: 420ms; }
.grid-menu .menu-card:nth-child(8) { animation-delay: 480ms; }
.kpi { border: none; box-shadow: var(--shadow); animation: art-pop 450ms var(--ease-pop) both; }
.kpi .value { color: var(--roxo); }
body.dark .kpi .value { color: var(--amarelo); }
.progress-fill { background: var(--teal); }
th { color: var(--text-muted); }

/* ---------- Detalhes ---------- */
.scan-hint strong { color: var(--teal); }
::selection { background: rgba(255, 201, 60, 0.5); }
