/* Entrada do Shark: "central do agente". Sempre escura, independente do tema do painel.
   Paleta neon (ciano, violeta, magenta, toque âmbar) num fundo do mar. */
body.entrada {
    --q-bg: #04050D; --q-ink: #F1F4FF; --q-ink-2: #A9B1D6; --q-ink-3: #6B7299;
    --q-cyan: #22D3EE; --q-violet: #8B5CF6; --q-magenta: #F43F8E; --q-amber: #FBBF24;
    --q-grad: linear-gradient(110deg, #22D3EE 0%, #6366F1 35%, #A855F7 65%, #F43F8E 100%);
    margin: 0; min-height: 100%; background: var(--q-bg); color: var(--q-ink); font-family: var(--font); color-scheme: dark; overflow-x: hidden;
}

/* ---------- Fundo do mar: água em degradê, bioluminescência, raios de luz, sonar, bolhas ---------- */
body.entrada { background: linear-gradient(180deg, #072A44 0%, #04182C 30%, #030B18 65%, #02040B 100%) fixed; }
.hq-sea { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.hq-sea i { position: absolute; border-radius: 50%; filter: blur(90px); mix-blend-mode: screen; animation: hq-drift 20s ease-in-out infinite alternate; }
.hq-sea .a1 { width: 640px; height: 520px; left: -160px; top: -120px; background: #06B6D4; opacity: .4; }
.hq-sea .a2 { width: 520px; height: 520px; right: -180px; top: 18%; background: #7C3AED; opacity: .38; animation-delay: -7s; }
.hq-sea .a3 { width: 560px; height: 420px; left: 22%; bottom: -240px; background: #DB2777; opacity: .3; animation-delay: -12s; }
.hq-sea .a4 { width: 220px; height: 220px; left: 12%; bottom: 20%; background: #F59E0B; opacity: .14; animation-delay: -4s; }
@keyframes hq-drift { to { transform: translate(50px, 30px) scale(1.1); } }

/* Raios de sol atravessando a água, balançando devagar */
.hq-rays { position: fixed; left: -20%; right: -20%; top: -10%; height: 85%; pointer-events: none; transform-origin: 50% 0; mix-blend-mode: screen; opacity: .5;
    background: repeating-linear-gradient(100deg, transparent 0 60px, rgba(125, 211, 252, .09) 60px 90px, transparent 90px 170px, rgba(167, 139, 250, .07) 170px 190px, transparent 190px 260px);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%); mask-image: linear-gradient(to bottom, #000, transparent 90%);
    filter: blur(6px); animation: hq-sway 12s ease-in-out infinite alternate; }
@keyframes hq-sway { from { transform: skewX(-8deg) translateX(-30px); } to { transform: skewX(6deg) translateX(30px); } }

/* Sonar: a prancheta da barbatana se desenhando no fundo */
.hq-sonar { position: fixed; left: 34%; top: 50%; width: min(1180px, 150vw); aspect-ratio: 800 / 520; translate: -50% -50%; pointer-events: none; color: #22D3EE; opacity: .32; }
.hq-sonar svg { width: 100%; height: 100%; overflow: visible; }
.hq-sonar .t { stroke: currentColor; stroke-width: 1.2; fill: none; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: hq-ink 3s cubic-bezier(.2, .7, .2, 1) .3s forwards; }
.hq-sonar .d { stroke: currentColor; stroke-width: .8; fill: none; opacity: .55; }
.hq-sonar .dash { stroke-dasharray: 4 6; }
.hq-sonar text { fill: currentColor; opacity: .7; font: 500 11px var(--font-display); letter-spacing: .14em; }
.hq-sonar .fin { fill: url(#en-fin); opacity: 0; animation: hq-fade 1.4s ease 2s forwards; }
.hq-sonar .en-sonar { transform-origin: 470px 330px; animation: hq-spin 6s linear infinite; }
@keyframes hq-ink { to { stroke-dashoffset: 0; } }
@keyframes hq-fade { to { opacity: 1; } }

/* Plâncton brilhando e subindo devagar */
.hq-plankton { position: fixed; inset: -20% 0 0; pointer-events: none; opacity: .7;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 22%, #67E8F9, transparent), radial-gradient(1px 1px at 72% 14%, #fff, transparent),
        radial-gradient(2px 2px at 40% 48%, #A5F3FC, transparent), radial-gradient(1px 1px at 88% 42%, #E9D5FF, transparent),
        radial-gradient(1.5px 1.5px at 6% 64%, #F9A8D4, transparent), radial-gradient(1.5px 1.5px at 58% 70%, #67E8F9, transparent),
        radial-gradient(1px 1px at 26% 86%, #fff, transparent), radial-gradient(2px 2px at 94% 78%, #C4B5FD, transparent);
    background-size: 100% 60%; animation: hq-rise-up 40s linear infinite; }
@keyframes hq-rise-up { to { background-position: 0 -100%; } }

/* Bolhas */
.hq-bubbles i { position: fixed; bottom: -30px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), rgba(165, 243, 252, .25) 45%, transparent 70%); border: 1px solid rgba(165, 243, 252, .45);
    animation: hq-bubble var(--w) linear infinite; animation-delay: var(--d); }
@keyframes hq-bubble { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(14px, -55vh); } 100% { transform: translate(-10px, -112vh); opacity: 0; } }

/* Leito do mar: grade de sonar em perspectiva */
.hq-floor { position: fixed; left: -50%; right: -50%; bottom: -10%; height: 50%; pointer-events: none; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
    background:
        linear-gradient(rgba(34, 211, 238, .5) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(139, 92, 246, .45) 1px, transparent 1px) 0 0 / 64px 64px;
    -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 80%); mask-image: linear-gradient(to top, #000 5%, transparent 80%);
    animation: hq-run 4s linear infinite; opacity: .45; }
@keyframes hq-run { to { background-position: 0 64px, 0 0; } }
.hq-scan { position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px); }
.hq-corners i { position: fixed; width: 34px; height: 34px; border: 2px solid rgba(34, 211, 238, .55); pointer-events: none; }
.hq-corners i:nth-child(1) { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hq-corners i:nth-child(2) { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-color: rgba(139, 92, 246, .6); }
.hq-corners i:nth-child(3) { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-color: rgba(244, 63, 142, .55); }
.hq-corners i:nth-child(4) { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-color: rgba(251, 191, 36, .5); }

/* ---------- Barra do topo ---------- */
.hq-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; padding: 26px 44px 0; font: 600 13px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--q-ink-2); }
.hq-id b { color: var(--q-ink); font-size: 16px; letter-spacing: .28em; }
.hq-id em { font-style: normal; color: var(--q-ink-3); margin-left: 6px; }
.hq-live { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #6EE7B7; }
.hq-live i { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: hq-ping 2s ease-out infinite; }
@keyframes hq-ping { to { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
.hq-clock { color: var(--q-ink); font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- Palco central ---------- */
.hq { position: relative; z-index: 1; min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 48px; }

/* Holograma do tubarão-robô */
.hq-holo { position: relative; width: 200px; height: 200px; display: grid; place-items: center; margin-bottom: -44px; z-index: 2; }
.hq-holo img { position: relative; width: 116px; height: 116px; border-radius: 28px; filter: drop-shadow(0 0 22px rgba(34, 211, 238, .55)) drop-shadow(0 0 40px rgba(168, 85, 247, .45)); animation: hq-float 4.5s ease-in-out infinite; }
@keyframes hq-float { 50% { transform: translateY(-8px); } }
.hq-holo .ring { position: absolute; inset: 0; border-radius: 50%; }
.hq-holo .r1 { border: 1.5px dashed rgba(34, 211, 238, .55); animation: hq-spin 18s linear infinite; }
.hq-holo .r2 { inset: 16px; background: conic-gradient(from 0deg, transparent 0 70%, rgba(168, 85, 247, .9) 85%, transparent 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); animation: hq-spin 4s linear infinite; }
.hq-holo .r3 { inset: -14px; border: 1px solid rgba(244, 63, 142, .25); border-top-color: rgba(244, 63, 142, .8); animation: hq-spin 9s linear infinite reverse; }
.hq-holo .beam { position: absolute; left: 50%; bottom: -30px; width: 150px; height: 60px; translate: -50% 0; background: radial-gradient(50% 60% at 50% 100%, rgba(34, 211, 238, .45), transparent 70%); filter: blur(6px); }
@keyframes hq-spin { to { transform: rotate(360deg); } }

/* A caixa: vidro escuro com borda neon girando */
.hq-card { --ang: 0deg; position: relative; width: 100%; max-width: 440px; box-sizing: border-box; padding: 64px 34px 28px; text-align: center; border-radius: 24px;
    background: linear-gradient(180deg, rgba(17, 20, 48, .78), rgba(8, 9, 24, .86)); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(139, 92, 246, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
    animation: hq-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hq-card::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none;
    background: conic-gradient(from var(--ang), #22D3EE, #6366F1, #A855F7, #F43F8E, #FBBF24, #22D3EE);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: hq-border 6s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes hq-border { to { --ang: 360deg; } }
@keyframes hq-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }

.hq-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 700 11px/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--q-cyan); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .28); }
.hq-card h1 { margin: 16px 0 0; font: 700 40px/1.02 var(--font-display); letter-spacing: -.01em; }
.hq-card h1 span { background: var(--q-grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: hq-shine 6s ease-in-out infinite alternate; }
@keyframes hq-shine { to { background-position: 100% 0; } }
.hq-quote { margin: 10px 0 24px; font-size: 16px; line-height: 1.45; color: var(--q-ink-2); }

.hq-form { display: grid; gap: 14px; text-align: left; }
.hq-field { display: grid; gap: 7px; }
.hq-field > span { font: 700 11px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--q-ink-3); }
.hq-form input { width: 100%; box-sizing: border-box; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(139, 152, 255, .2); background: rgba(5, 7, 20, .7); color: var(--q-ink); font: 15px var(--font); outline: none; transition: border-color .15s, box-shadow .2s, background .2s; }
.hq-form input::placeholder { color: #474E73; }
.hq-form input:focus { border-color: var(--q-cyan); background: rgba(5, 7, 20, .9); box-shadow: 0 0 0 4px rgba(34, 211, 238, .16), 0 0 24px -4px rgba(34, 211, 238, .5); }
.hq-form .ld-pw { position: relative; }
.hq-form .ld-pw input { padding-right: 52px; }
.hq-form .ld-eye { position: absolute; right: 7px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--q-ink-3); cursor: pointer; }
.hq-form .ld-eye:hover { color: var(--q-ink); background: rgba(255, 255, 255, .06); }
.hq-form .ld-eye .i:last-child, .hq-form .ld-eye[aria-pressed="true"] .i:first-child { display: none; }
.hq-form .ld-eye[aria-pressed="true"] .i:last-child { display: block; }

.hq-form button[type="submit"] { position: relative; overflow: hidden; height: 56px; margin-top: 8px; border: 0; border-radius: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 700 18px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: #fff;
    background: var(--q-grad); background-size: 160% 100%; box-shadow: 0 18px 40px -14px rgba(168, 85, 247, .9), 0 0 0 1px rgba(255, 255, 255, .12) inset; transition: transform .12s, box-shadow .2s, background-position .5s; }
.hq-form button[type="submit"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); animation: hq-sweep 3.2s ease-in-out infinite 1s; }
@keyframes hq-sweep { 60%, 100% { transform: translateX(120%); } }
.hq-form button[type="submit"]:hover { background-position: 100% 0; box-shadow: 0 22px 50px -12px rgba(244, 63, 142, .85), 0 0 0 1px rgba(255, 255, 255, .2) inset; transform: translateY(-1px); }
.hq-form button[type="submit"]:active { transform: translateY(1px); }
.hq-form button[type="submit"] .i { transform: scaleX(-1); }
.hq-forgot { justify-self: center; color: var(--q-ink-2); font-size: 13px; text-decoration: none; }
.hq-forgot:hover { color: var(--q-cyan); }
.hq-err { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 12px; background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .35); color: #FECDD3; font-size: 14px; }

/* Status abaixo da caixa */
.hq-status { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; padding: 0; }
.hq-status li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; font: 600 12px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--q-ink-2); background: rgba(10, 12, 30, .6); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); backdrop-filter: blur(10px); }
.hq-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* ---------- Celular: uma coluna, caixa larga com respiro de 16 px (como no Atende) ---------- */
@media (max-width: 560px) {
    .hq-bar { padding: 24px 30px 0; gap: 12px; }
    .hq-id em { display: none; }
    .hq { justify-content: flex-start; padding-top: 18px; }
    .hq-holo { width: 150px; height: 150px; margin-bottom: -36px; }
    .hq-holo img { width: 90px; height: 90px; border-radius: 22px; }
    .hq-card { padding: 54px 22px 24px; }
    .hq-card h1 { font-size: 34px; }
    .hq-status li { font-size: 11px; padding: 7px 11px; }
    .hq-corners i { width: 22px; height: 22px; }
    .hq-sea i { filter: blur(60px); }
    .hq-sonar { left: 50%; top: 40%; opacity: .26; }
    .hq-rays { opacity: .4; }
}
@media (prefers-reduced-motion: reduce) {
    .hq-sonar .t { stroke-dashoffset: 0; } .hq-sonar .fin { opacity: 1; } .hq-bubbles { display: none; }
    .hq-sea i, .hq-rays, .hq-plankton, .hq-bubbles i, .hq-sonar .t, .hq-sonar .fin, .hq-sonar .en-sonar, .hq-floor, .hq-holo img, .hq-holo .ring, .hq-card, .hq-card::before, .hq-card h1 span, .hq-form button[type="submit"]::after, .hq-live i { animation: none; }
}
