:root {
  color-scheme: light;
  --bg: #050816;
  --bg-2: #09101f;
  --card: rgba(16, 22, 39, 0.84);
  --card-border: rgba(144, 174, 255, 0.14);
  --text: #f8fafc;
  --muted: #bcc6d9;
  --accent: #30d5f6;
  --accent-2: #7c5cff;
  --accent-3: #2ed3a6;
  --danger: #fb7185;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  --motion-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 180ms;
  --motion-base: 320ms;
  --motion-slow: 560ms;
  --app-glow-x: 50%;
  --app-glow-y: 18%;
  --app-glow-opacity: 0.58;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(48, 213, 246, 0.14), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(124, 92, 255, 0.18), transparent 22%),
    radial-gradient(circle at 70% 78%, rgba(46, 211, 166, 0.08), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity var(--motion-slow) var(--motion-soft),
    transform var(--motion-slow) var(--motion-soft),
    filter var(--motion-base) ease;
}

/* Global page-load transition without changing the app structure. */
body[data-page-ready="true"] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(56px);
  opacity: 0.5;
  animation: ambientFloat 16s ease-in-out infinite;
}

body::before {
  top: -80px;
  left: -90px;
  width: 260px;
  height: 260px;
  background: rgba(48, 213, 246, 0.12);
}

body::after {
  right: -80px;
  bottom: -90px;
  width: 320px;
  height: 320px;
  background: rgba(124, 92, 255, 0.14);
  animation-delay: -8s;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
  transition: transform var(--motion-base) var(--motion-soft), opacity var(--motion-base) ease;
}

.intro-screen {
  display: grid;
  gap: 22px;
  min-height: calc(100vh - 142px);
  align-content: center;
  overflow: clip;
  max-height: 4000px;
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
  transform-origin: top center;
  transition:
    opacity var(--motion-base) ease,
    transform var(--motion-slow) var(--motion-spring),
    filter var(--motion-base) ease,
    max-height var(--motion-slow) var(--motion-soft);
}

.app-panels {
  display: grid;
  gap: 22px;
  overflow: clip;
  max-height: 8000px;
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
  transform-origin: top center;
  transition:
    opacity var(--motion-base) ease,
    transform var(--motion-slow) var(--motion-spring),
    filter var(--motion-base) ease,
    max-height var(--motion-slow) var(--motion-soft);
  position: relative;
  isolation: isolate;
  /* Second-screen cinematic background using the provided image. */
  background:
    linear-gradient(135deg, rgba(2, 4, 10, 0.88), rgba(7, 9, 18, 0.8)),
    radial-gradient(circle at 72% 18%, rgba(183, 16, 16, 0.16), transparent 22%),
    radial-gradient(circle at 28% 84%, rgba(255, 60, 60, 0.12), transparent 24%),
    url("/assets/painel-fundo.jpg");
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center 18%;
  background-repeat: no-repeat;
  border-radius: 34px;
  padding: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 28px 80px rgba(0, 0, 0, 0.34);
}

/* Interactive background layer for the second screen. */
.app-panels::before,
.app-panels::after {
  content: "";
  position: absolute;
  inset: -8% -4%;
  pointer-events: none;
  z-index: 0;
  transition:
    opacity var(--motion-base) ease,
    transform 420ms var(--motion-soft),
    background-position 220ms ease;
}

.app-panels::before {
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.22), transparent 18%),
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.2), transparent 20%),
    radial-gradient(circle at 56% 64%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at var(--app-glow-x) var(--app-glow-y), rgba(255, 42, 42, 0.18), transparent 22%),
    radial-gradient(circle at calc(var(--app-glow-x) + 10%) calc(var(--app-glow-y) + 16%), rgba(255, 255, 255, 0.1), transparent 20%);
  opacity: 0.52;
  filter: blur(26px);
  transform: translate3d(0, 0, 0) scale(1.04);
  animation: smokeDrift 16s ease-in-out infinite alternate;
}

.app-panels::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.42) 82%);
  background-size: 92px 92px, 92px 92px, auto;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.72));
  opacity: 0.22;
}

.app-panels > * {
  position: relative;
  z-index: 1;
}

body[data-app-stage="app"] .app-panels:hover::before {
  transform: translate3d(0, -4px, 0) scale(1.035);
}

.intro-login-card,
.app-session-bar,
.admin-panel {
  margin-top: 0;
}

.login-form,
.admin-user-form {
  display: grid;
  gap: 14px;
}

.bootstrap-info {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(48, 213, 246, 0.18);
  background: rgba(48, 213, 246, 0.08);
}

.bootstrap-info strong {
  display: block;
  margin-bottom: 8px;
}

.bootstrap-info pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  color: var(--text);
}

.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-users-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.admin-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

/* Stage transition for intro <-> panels with fade + subtle slide. */
body[data-app-stage="intro"] .app-panels {
  opacity: 0;
  min-height: 0;
  max-height: 0;
  filter: blur(8px);
  transform: translate3d(0, 28px, 0);
  pointer-events: none;
}

body[data-app-stage="app"] .intro-screen {
  opacity: 0;
  min-height: 0;
  max-height: 0;
  filter: blur(8px);
  transform: translate3d(0, -28px, 0);
  pointer-events: none;
}

/* Reusable reveal/stagger helpers for cards, lists and panels. */
.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(8px);
  transition:
    opacity var(--motion-slow) var(--motion-soft),
    transform var(--motion-slow) var(--motion-spring),
    filter var(--motion-base) ease;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.stagger-item {
  --stagger-index: 0;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
  animation: staggerIn var(--motion-slow) var(--motion-spring) forwards;
  animation-delay: calc(var(--stagger-index) * 56ms);
}

.motion-panel {
  transition:
    transform var(--motion-base) var(--motion-soft),
    opacity var(--motion-base) ease,
    box-shadow var(--motion-base) ease,
    border-color var(--motion-base) ease;
}

.stage-transitioning {
  animation: sectionSwap var(--motion-slow) var(--motion-spring);
}

.shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 88%);
}

.brand-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(32, 51, 76, 0.84), rgba(16, 20, 39, 0.92)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex: none;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 5px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

body[data-platform="mobile"] .brand-mark {
  animation: brandLogoReveal 9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  transform-origin: center;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8fd9f2;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero {
  padding: 0;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(290px, 0.95fr);
  gap: 22px;
  align-items: center;
  min-height: 420px;
  padding: 34px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 16%, rgba(48, 213, 246, 0.2), transparent 28%),
    radial-gradient(circle at 95% 82%, rgba(124, 92, 255, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(11, 24, 42, 0.92), rgba(34, 22, 64, 0.76)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 52px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: relative;
  transform: perspective(1200px) rotateX(calc(var(--hero-shift-y) * -0.08)) rotateY(calc(var(--hero-shift-x) * 0.08));
  transition: transform 220ms ease;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: -20% auto auto 58%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 213, 246, 0.22), rgba(48, 213, 246, 0) 68%);
  filter: blur(10px);
  animation: heroGlow 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  transform: translate3d(calc(var(--hero-shift-x) * 0.65), calc(var(--hero-shift-y) * 0.65), 0);
  transition: transform 180ms ease;
}

body[data-platform="mobile"] .hero-art {
  display: none;
}

.hero-art__label {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(124, 92, 255, 0.22);
  background: rgba(10, 14, 28, 0.42);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.hero-art__label span {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9be7ff;
}

.hero-art__label strong {
  font-size: 1.02rem;
  color: #f8fafc;
}

.hero-puzzle {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(48, 213, 246, 0.12), transparent 52%),
    linear-gradient(135deg, rgba(9, 16, 31, 0.9), rgba(21, 27, 48, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 52px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.hero-puzzle::before,
.hero-puzzle::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

.hero-puzzle::before {
  width: 180px;
  height: 180px;
  left: -48px;
  top: -54px;
  background: radial-gradient(circle, rgba(48, 213, 246, 0.18), transparent 68%);
  filter: blur(12px);
}

.hero-puzzle::after {
  width: 160px;
  height: 160px;
  right: -48px;
  bottom: -48px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 68%);
  filter: blur(12px);
}

.puzzle-piece,
.puzzle-core {
  position: absolute;
  background-image: url("/foco-logo.jpg");
  background-repeat: no-repeat;
  border-radius: 22px;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 700ms ease;
}

.puzzle-piece {
  width: 50%;
  height: 50%;
  opacity: 0;
  background-size: 200% 200%;
}

.puzzle-piece--tl {
  top: 0;
  left: 0;
  background-position: 0 0;
  transform: translate(-42px, -34px) rotate(-12deg) scale(0.8);
  animation: puzzleLoopTL 10s cubic-bezier(0.2, 0.85, 0.3, 1) 180ms infinite;
}

.puzzle-piece--tr {
  top: 0;
  right: 0;
  background-position: 100% 0;
  transform: translate(46px, -28px) rotate(12deg) scale(0.8);
  animation: puzzleLoopTR 10s cubic-bezier(0.2, 0.85, 0.3, 1) 360ms infinite;
}

.puzzle-piece--bl {
  bottom: 0;
  left: 0;
  background-position: 0 100%;
  transform: translate(-44px, 30px) rotate(10deg) scale(0.8);
  animation: puzzleLoopBL 10s cubic-bezier(0.2, 0.85, 0.3, 1) 540ms infinite;
}

.puzzle-piece--br {
  right: 0;
  bottom: 0;
  background-position: 100% 100%;
  transform: translate(48px, 34px) rotate(-10deg) scale(0.8);
  animation: puzzleLoopBR 10s cubic-bezier(0.2, 0.85, 0.3, 1) 720ms infinite;
}

.puzzle-core {
  inset: 50%;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  background-image: url("/foco-logo.jpg");
  background-size: 200% 200%;
  background-position: center center;
  animation: puzzleLoopCore 10s cubic-bezier(0.2, 0.85, 0.3, 1) 920ms infinite;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: #d6f7ff;
  padding: 8px 12px;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(79, 209, 255, 0.26);
  background: rgba(56, 189, 248, 0.12);
  animation: heroRise 700ms ease-out both;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 12ch;
  animation: heroRise 900ms ease-out 120ms both;
}

.hero-title {
  display: inline-block;
  position: relative;
  isolation: isolate;
}

.hero-title::after {
  content: "";
  position: absolute;
  top: -0.2em;
  bottom: -0.2em;
  left: -1.2em;
  width: 1.1em;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.12),
    rgba(48, 213, 246, 0.75),
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0)
  );
  filter: blur(1px);
  opacity: 0;
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: -1;
}

.hero-title--shining::after {
  animation: titleShine 2.6s linear infinite;
}

.lead {
  max-width: 66ch;
  color: #ced7e8;
  font-size: 1.04rem;
  line-height: 1.55;
  animation: heroRise 900ms ease-out 220ms both;
}

.hero-actions {
  animation: heroRise 900ms ease-out 320ms both;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.feature-card {
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(17, 20, 34, 0.94), rgba(20, 28, 43, 0.82)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 38px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 8px;
  transition:
    transform var(--motion-base) var(--motion-soft),
    box-shadow var(--motion-base) ease,
    border-color var(--motion-base) ease;
}

.feature-card:hover {
  transform: translate3d(0, -4px, 0) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 44px rgba(0, 0, 0, 0.28);
  border-color: rgba(79, 209, 255, 0.18);
}

.feature-card strong {
  font-size: 1rem;
  color: #fff;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }

  50% {
    transform: translate3d(-12px, 10px, 0) scale(1.1);
    opacity: 0.8;
  }
}

@keyframes titleShine {
  0% {
    left: -1.4em;
    opacity: 0;
  }

  20% {
    opacity: 0.95;
  }

  100% {
    left: calc(100% + 1.4em);
    opacity: 0;
  }
}

@keyframes puzzleLoopTL {
  0%,
  78%,
  100% {
    opacity: 0;
    transform: translate(-72px, -56px) rotate(-20deg) scale(0.65);
  }

  12% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  24%,
  66% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  72% {
    opacity: 0.92;
    transform: translate(-12px, -10px) rotate(-3deg) scale(0.98);
  }
}

@keyframes puzzleLoopTR {
  0%,
  78%,
  100% {
    opacity: 0;
    transform: translate(74px, -48px) rotate(18deg) scale(0.65);
  }

  12% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  24%,
  66% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  72% {
    opacity: 0.92;
    transform: translate(10px, -8px) rotate(3deg) scale(0.98);
  }
}

@keyframes puzzleLoopBL {
  0%,
  78%,
  100% {
    opacity: 0;
    transform: translate(-70px, 54px) rotate(18deg) scale(0.65);
  }

  12% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  24%,
  66% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  72% {
    opacity: 0.92;
    transform: translate(-10px, 10px) rotate(3deg) scale(0.98);
  }
}

@keyframes puzzleLoopBR {
  0%,
  78%,
  100% {
    opacity: 0;
    transform: translate(76px, 58px) rotate(-18deg) scale(0.65);
  }

  12% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  24%,
  66% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  72% {
    opacity: 0.92;
    transform: translate(12px, 12px) rotate(-3deg) scale(0.98);
  }
}

@keyframes puzzleLoopCore {
  0%,
  78%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    filter: blur(6px);
  }

  14% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }

  26%,
  66% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }

  72% {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(1.03);
    filter: blur(0);
  }
}

@keyframes qrSpinPause {
  0% {
    transform: rotate(0deg);
  }

  24% {
    transform: rotate(360deg);
  }

  40% {
    transform: rotate(360deg);
  }

  64% {
    transform: rotate(720deg);
  }

  80% {
    transform: rotate(720deg);
  }

  100% {
    transform: rotate(1080deg);
  }
}

@keyframes brandLogoReveal {
  0%,
  70%,
  100% {
    opacity: 0.78;
    transform: scale(0.76) rotate(-10deg);
    filter: blur(5px) saturate(0.72);
    box-shadow:
      0 0 0 rgba(48, 213, 246, 0),
      0 12px 24px rgba(0, 0, 0, 0.25);
  }

  12% {
    opacity: 1;
    transform: scale(1.08) rotate(3deg);
    filter: blur(0) saturate(1);
    box-shadow:
      0 0 0 6px rgba(48, 213, 246, 0.1),
      0 16px 30px rgba(0, 0, 0, 0.3);
  }

  26%,
  60% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0) saturate(1);
    box-shadow:
      0 0 0 4px rgba(124, 92, 255, 0.08),
      0 14px 28px rgba(0, 0, 0, 0.28);
  }

  64% {
    opacity: 0.98;
    transform: scale(1.03) rotate(-2deg);
    filter: blur(0) saturate(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .shell,
  .intro-screen,
  .app-panels,
  .scroll-reveal,
  .stagger-item {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    max-height: none !important;
  }

  .app-panels::before,
  .app-panels::after {
    display: none !important;
  }

  .hero-panel::after,
  .eyebrow,
  h1,
  .lead,
  .hero-actions {
    animation: none !important;
  }

  .hero-title::after,
  .hero-title--shining::after {
    animation: none !important;
    display: none;
  }

  .hero-copy h1 {
    animation: none !important;
  }

  .share-box img {
    animation: none !important;
  }

  .portfolio-ring {
    animation: none !important;
  }

  .puzzle-piece,
  .puzzle-core,
  .hero-puzzle::before,
  .hero-puzzle::after {
    animation: none !important;
  }

  body[data-platform="mobile"] .brand-mark {
    animation: none !important;
  }
}

.status-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 auto;
  margin-top: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.85rem;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.status-pill--online {
  border-color: rgba(46, 211, 166, 0.18);
  background: rgba(46, 211, 166, 0.08);
  color: #d9ffef;
}

.status-pill--online::before {
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(46, 211, 166, 0.08);
}

.status-pill--message {
  color: #e2e8f0;
  max-width: min(320px, 100%);
}

.status-pill--message::before {
  background: rgba(255, 255, 255, 0.45);
}

.hero-cta {
  background: linear-gradient(135deg, #2ed3f6, #7c5cff);
  color: #04111f;
  box-shadow: 0 14px 28px rgba(48, 213, 246, 0.24);
}

.hero-secondary {
  border-color: rgba(79, 209, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.hero-secondary,
.hero-cta {
  min-width: 130px;
  min-height: 48px;
  border-radius: 16px;
  padding-inline: 18px;
}

.card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--card-border);
  background:
    linear-gradient(135deg, rgba(17, 21, 36, 0.9), rgba(18, 26, 46, 0.76)),
    var(--card);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 48px rgba(0, 0, 0, 0.28);
  transition:
    transform var(--motion-base) var(--motion-soft),
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease,
    background-position var(--motion-slow) ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(159, 193, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 26px 56px rgba(0, 0, 0, 0.32);
}

body[data-platform="desktop"] .shell {
  width: calc(100% - 28px);
  max-width: 1680px;
}

body[data-platform="desktop"] .hero {
  padding-bottom: 2px;
}

body[data-platform="desktop"] .card {
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-platform="desktop"] .desktop-topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(79, 209, 255, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 25, 43, 0.92), rgba(29, 18, 54, 0.84)),
    rgba(10, 16, 30, 0.92);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.22);
}

form {
  display: grid;
  gap: 14px;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.row input[type="text"] {
  flex: 1 1 220px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.service-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform var(--motion-base) var(--motion-soft),
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease;
}

.service-group legend {
  padding: 0 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-base) ease,
    background var(--motion-base) ease,
    box-shadow var(--motion-base) ease;
}

.service-option input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--accent-2);
}

.service-option span {
  line-height: 1.25;
}

.service-option input:checked + span {
  color: #fff;
}

.service-option:has(input:checked) {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 14px 24px rgba(48, 213, 246, 0.12);
}

.service-option:hover {
  transform: translate3d(0, -2px, 0);
}

.service-summary {
  margin: 0;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

input[type="text"],
input[type="date"],
select,
input[type="file"],
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1rem;
  font: inherit;
  transition:
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    background var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

input[readonly],
textarea[readonly] {
  opacity: 0.9;
}

input::file-selector-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  margin-right: 12px;
  background: rgba(48, 213, 246, 0.18);
  color: var(--text);
  font-weight: 700;
}

button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03111f;
  box-shadow: 0 12px 28px rgba(48, 213, 246, 0.18);
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-base) ease,
    filter var(--motion-fast) ease,
    background var(--motion-base) ease,
    border-color var(--motion-base) ease;
  transform: translate3d(0, 0, 0);
}

button.secondary {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

/* Premium button/input feedback without touching business logic. */
button:hover,
.secondary-link:hover {
  transform: translate3d(0, -2px, 0) scale(1.01);
  box-shadow: 0 18px 36px rgba(48, 213, 246, 0.2);
  filter: saturate(1.05);
}

button:active,
.secondary-link:active,
.hover-effect.is-clicking {
  transform: translate3d(0, 1px, 0) scale(0.985);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.secondary-link:focus-visible,
.service-option:has(input:focus-visible) {
  outline: none;
  border-color: rgba(79, 209, 255, 0.52);
  box-shadow:
    0 0 0 1px rgba(79, 209, 255, 0.34),
    0 0 0 5px rgba(48, 213, 246, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

button[disabled],
input[disabled],
select[disabled],
textarea[disabled] {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.row button {
  flex: 1 1 180px;
}

.qr-box {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
  justify-items: center;
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.11), transparent 30%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(79, 209, 255, 0.16);
}

.share-box {
  margin-top: 14px;
  border-color: rgba(124, 92, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.08),
    0 16px 35px rgba(0, 0, 0, 0.22);
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.14), transparent 35%),
    rgba(255, 255, 255, 0.05);
}

.share-box img {
  width: min(240px, 78vw);
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 12px;
  background: #fff;
  border-radius: 20px;
  transform-origin: center center;
  animation: qrSpinPause 6.5s ease-in-out infinite;
}

.share-box .qr-url {
  font-size: 0.92rem;
  color: #e2e8f0;
}

.qr-box img {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  background: white;
  padding: 10px;
}

.qr-url {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  color: var(--muted);
  word-break: break-all;
  text-align: center;
}

.preview-wrap {
  display: grid;
  gap: 8px;
}

#preview {
  display: none;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status {
  margin: 12px 0 0;
  min-height: 1.25em;
  color: var(--muted);
  transition:
    opacity var(--motion-fast) ease,
    transform var(--motion-fast) ease,
    color var(--motion-fast) ease;
}

.records-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.records {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  contain: layout paint;
}

.record {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform var(--motion-base) var(--motion-soft),
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease,
    background var(--motion-base) ease;
}

.record:hover {
  transform: translateY(-4px);
  border-color: rgba(48, 213, 246, 0.2);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(48, 213, 246, 0.08);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 32%, transparent 68%, rgba(48, 213, 246, 0.12));
  opacity: 0.72;
  pointer-events: none;
}

.record img,
.featured-card img,
.live-receipt-card-inner img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
}

.record img {
  max-height: 240px;
  border-radius: 12px;
}

.record:hover img,
.featured-card:hover img,
.live-receipt-card-inner:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.02);
}

.record-info {
  display: grid;
  gap: 8px;
}

.record-info strong,
.featured-meta strong {
  font-size: 1.02rem;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(48, 213, 246, 0.14);
  border: 1px solid rgba(48, 213, 246, 0.24);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-base) ease,
    background var(--motion-base) ease,
    border-color var(--motion-base) ease;
}

.danger-btn {
  width: fit-content;
  padding: 10px 14px;
  background: rgba(251, 113, 133, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.28);
  color: #fff;
}

.record > .secondary {
  width: fit-content;
}

.ocr-details {
  color: var(--muted);
}

.ocr-details summary {
  cursor: pointer;
  font-weight: 700;
}

.ocr-details pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  color: var(--text);
}

.install-btn {
  margin-top: 12px;
}

.app-update-notice {
  position: sticky;
  top: 12px;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(129, 236, 255, 0.34);
  border-radius: 8px;
  background: rgba(10, 14, 20, 0.94);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.app-update-notice[hidden] {
  display: none !important;
}

.app-update-notice p {
  margin: 4px 0 0;
  color: var(--muted);
}

.app-update-notice button {
  flex: 0 0 auto;
}

.search-form {
  display: grid;
  gap: 14px;
}

.featured-record {
  display: grid;
  gap: 12px;
  contain: layout paint;
}

.records--refreshing > * {
  animation: recordsRefreshIn 340ms ease;
}

.live-receipt-card {
  margin-top: 18px;
}

.live-receipt {
  margin-top: 14px;
}

.live-receipt-card-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(220px, 0.9fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.live-receipt-card-inner img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 20px;
}

.live-receipt-card-inner:hover {
  transform: translateY(-3px);
  border-color: rgba(48, 213, 246, 0.18);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.24);
}

.live-receipt-card-inner--fresh {
  animation: liveReceiptPulse 1.1s ease;
}

.live-receipt-meta {
  display: grid;
  gap: 8px;
}

.featured-card {
  display: grid;
  gap: 12px;
  transition:
    transform var(--motion-base) var(--motion-soft),
    box-shadow var(--motion-base) ease,
    border-color var(--motion-base) ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.2);
}

.featured-card img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
}

.featured-card .media-frame,
.live-receipt-card-inner .media-frame {
  border-radius: 20px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  background-size: 220% 100%;
  animation: skeletonWave 1.35s linear infinite;
}

.record--skeleton {
  pointer-events: none;
}

.skeleton-media {
  min-height: 210px;
}

.skeleton-media--featured {
  min-height: 320px;
}

.skeleton-chip {
  width: 92px;
  height: 28px;
  border-radius: 999px;
}

.skeleton-title {
  width: min(78%, 260px);
  height: 26px;
}

.skeleton-line {
  width: 100%;
  height: 16px;
}

.skeleton-line--short {
  width: 64%;
}

.skeleton-button {
  width: 148px;
  height: 40px;
  border-radius: 999px;
}

.mobile-search-panel {
  display: grid;
  gap: 14px;
}

.mobile-search-form .row {
  width: 100%;
}

.mobile-featured-record {
  display: grid;
  gap: 12px;
}

.mobile-featured-card img {
  max-height: 320px;
}

body[data-platform="mobile"] .panel-shell--gallery {
  display: grid;
  gap: 16px;
  padding: 18px;
}

body[data-platform="mobile"] .panel-shell--gallery .records-head {
  align-items: flex-start;
}

body[data-platform="mobile"] .gallery-grid,
body[data-platform="mobile"] .company-gallery {
  display: grid;
  gap: 16px;
}

body[data-platform="mobile"] .company-gallery {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

body[data-platform="mobile"] .company-gallery__brand {
  display: grid;
  gap: 8px;
  align-items: start;
}

body[data-platform="mobile"] .company-gallery__logo {
  width: min(150px, 100%);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

body[data-platform="mobile"] .panel-shell--gallery .records {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

body[data-platform="mobile"] .panel-shell--gallery .record {
  padding: 12px;
  border-radius: 8px;
}

body[data-platform="mobile"] .panel-shell--gallery .record .media-frame {
  border-radius: 8px;
}

body[data-platform="mobile"] .panel-shell--gallery .record img {
  max-height: 360px;
  border-radius: 8px;
}

body[data-platform="mobile"] .panel-shell--gallery .record .secondary-link,
body[data-platform="mobile"] .panel-shell--gallery .record .danger-btn,
body[data-platform="mobile"] .panel-shell--gallery .record .secondary {
  width: 100%;
  justify-content: center;
}

.featured-meta {
  display: grid;
  gap: 8px;
}

.chat-panel {
  display: grid;
  gap: 14px;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chat-video-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: rgba(129, 236, 255, 0.32);
  color: var(--accent);
}

.chat-video-call-btn .material-symbols-outlined {
  font-size: 1.15rem;
}

.video-call-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(129, 236, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(48, 213, 246, 0.08), rgba(46, 211, 166, 0.08)),
    rgba(8, 12, 20, 0.86);
}

.video-call-panel[hidden] {
  display: none !important;
}

.video-call-stage {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: #05080c;
}

.video-call-remote,
.video-call-local {
  background: #05080c;
  object-fit: cover;
}

.video-call-remote {
  width: 100%;
  min-height: 280px;
  max-height: 58vh;
  display: block;
}

.video-call-local {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(34%, 180px);
  aspect-ratio: 9 / 12;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34);
}

.video-call-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.video-call-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-platform="mobile"] .video-call-stage {
  min-height: 360px;
}

body[data-platform="mobile"] .video-call-remote {
  min-height: 360px;
}

body[data-platform="mobile"] .video-call-local {
  width: 38%;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}

.chat-user-badge,
.chat-message {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-user-badge {
  min-height: 38px;
  padding: 5px 10px 5px 5px;
  border: 1px solid rgba(129, 236, 255, 0.24);
  border-radius: 999px;
  background: rgba(21, 26, 33, 0.72);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--chat-user-color, var(--accent)) 80%, white 20%);
  background: var(--chat-user-color, var(--accent));
  color: #051018;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-message {
  width: 100%;
}

.chat-message--own {
  justify-content: flex-end;
}

.chat-message--other {
  justify-content: flex-start;
}

.chat-bubble {
  display: grid;
  gap: 8px;
  max-width: min(78%, 520px);
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(48, 213, 246, 0.08), rgba(124, 92, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  transition:
    transform var(--motion-base) var(--motion-soft),
    border-color var(--motion-base) ease,
    background var(--motion-base) ease,
    box-shadow var(--motion-base) ease;
}

.chat-message--own .chat-bubble {
  border-bottom-right-radius: 6px;
  border-color: color-mix(in srgb, var(--chat-user-color, var(--accent)) 58%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--chat-user-color, var(--accent)) 24%, transparent), rgba(46, 211, 166, 0.12)),
    rgba(0, 85, 98, 0.42);
}

.chat-message--other .chat-bubble {
  border-bottom-left-radius: 6px;
  border-color: color-mix(in srgb, var(--chat-user-color, var(--accent)) 44%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--chat-user-color, var(--accent)) 18%, transparent), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
}

.chat-message:hover .chat-bubble {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(79, 209, 255, 0.18);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.chat-bubble__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.chat-bubble__head strong {
  color: color-mix(in srgb, var(--chat-user-color, var(--accent)) 86%, white 14%);
}

.chat-bubble p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}

.chat-audio-player {
  width: min(260px, 62vw);
  max-width: 100%;
  height: 38px;
  filter: saturate(0.9);
}

.chat-image-link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.chat-image {
  display: block;
  width: min(280px, 64vw);
  max-width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.chat-form {
  display: grid;
  gap: 12px;
}

.chat-account-label input[readonly] {
  cursor: default;
  color: var(--accent);
  border-color: rgba(129, 236, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(129, 236, 255, 0.08), rgba(146, 155, 250, 0.08)),
    rgba(15, 20, 26, 0.72);
}

.chat-row {
  align-items: stretch;
  flex-wrap: nowrap;
}

.chat-row input[type="text"] {
  flex: 1 1 260px;
  min-width: 0;
}

.chat-icon-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
}

.chat-icon-btn .material-symbols-outlined {
  font-size: 1.35rem;
  line-height: 1;
}

.chat-audio-btn {
  border-color: rgba(129, 236, 255, 0.28);
  background: rgba(15, 20, 26, 0.78);
  color: var(--accent);
}

.chat-image-btn {
  border-color: rgba(255, 213, 79, 0.32);
  background: rgba(15, 20, 26, 0.78);
  color: #ffd54f;
}

.chat-send-btn {
  border-color: rgba(46, 211, 166, 0.4);
  background: linear-gradient(135deg, rgba(46, 211, 166, 0.96), rgba(129, 236, 255, 0.86));
  color: #051018;
  box-shadow: 0 12px 28px rgba(46, 211, 166, 0.24);
}

.chat-audio-btn.is-recording {
  color: #fff;
  border-color: rgba(255, 113, 108, 0.55);
  background: rgba(159, 5, 25, 0.74);
  box-shadow: 0 0 18px rgba(255, 113, 108, 0.24);
}

.chat-activity-status {
  min-height: 1.2em;
  margin: -4px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.chat-activity-status[hidden] {
  display: none !important;
}

.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(46, 211, 166, 0.12);
  border: 1px solid rgba(46, 211, 166, 0.2);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.company-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-base) ease,
    border-color var(--motion-base) ease;
}

body[data-platform="desktop"] .desktop-only {
  display: block;
}

body[data-platform="desktop"] .desktop-only .records-head h2 {
  margin-bottom: 2px;
}

body[data-platform="desktop"] .desktop-only .records-head .meta {
  margin-top: 4px;
}

body[data-platform="desktop"] .desktop-only .search-form {
  grid-template-columns: 0.72fr 1.18fr 0.82fr auto;
  align-items: end;
}

body[data-platform="desktop"] .desktop-only .search-form .row {
  margin-top: 22px;
}

body[data-platform="desktop"] .desktop-only .featured-card {
  grid-template-columns: minmax(340px, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
}

/* Desktop dashboard composition: stronger hierarchy, larger hero zones and less "stacked cards". */
body[data-platform="desktop"] .app-panels {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
  align-content: start;
}

body[data-platform="desktop"] .app-session-bar {
  grid-column: 1 / -1;
  min-height: 136px;
  padding: 22px 24px;
  border-radius: 40px 40px 28px 28px;
  background:
    radial-gradient(circle at 8% 50%, rgba(48, 213, 246, 0.18), transparent 22%),
    radial-gradient(circle at 78% 40%, rgba(124, 92, 255, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(12, 24, 42, 0.96), rgba(31, 19, 64, 0.88)),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 70px rgba(5, 10, 24, 0.34);
}

body[data-platform="desktop"] .app-session-bar .session-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

body[data-platform="desktop"] .app-session-bar .session-bar > div:first-child {
  max-width: 620px;
}

body[data-platform="desktop"] .panel-shell {
  overflow: hidden;
  min-width: 0;
}

body[data-platform="desktop"] .panel-shell .records-head {
  align-items: flex-start;
}

body[data-platform="desktop"] .panel-shell h2 {
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  letter-spacing: -0.03em;
}

body[data-platform="desktop"] .panel-shell .meta {
  line-height: 1.55;
}

body[data-platform="desktop"] #serverCard {
  grid-column: 1 / 4;
  min-height: 100%;
  position: relative;
  top: auto;
  border-radius: 34px 24px 30px 24px;
}

body[data-platform="desktop"] #adminPanel {
  grid-column: 4 / 8;
  min-height: 100%;
  border-radius: 26px 38px 24px 34px;
}

body[data-platform="desktop"] .chat-panel {
  grid-column: 8 / 13;
  min-height: 100%;
  border-radius: 34px 24px 40px 24px;
  background:
    radial-gradient(circle at 82% 18%, rgba(48, 213, 246, 0.13), transparent 24%),
    radial-gradient(circle at 18% 86%, rgba(124, 92, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(16, 22, 40, 0.96), rgba(18, 18, 46, 0.88)),
    var(--card);
}

body[data-platform="desktop"] .desktop-topbar {
  grid-column: 1 / 8;
  min-height: 204px;
  margin-bottom: 0;
  padding: 22px 22px 20px;
  border-radius: 36px 24px 30px 24px;
  grid-template-rows: auto 1fr;
  align-content: space-between;
  background:
    radial-gradient(circle at 14% 26%, rgba(48, 213, 246, 0.12), transparent 22%),
    radial-gradient(circle at 86% 40%, rgba(124, 92, 255, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(15, 24, 44, 0.94), rgba(23, 18, 52, 0.88)),
    rgba(10, 16, 30, 0.92);
}

body[data-platform="desktop"] .panel-shell--search .search-form {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr) minmax(0, 0.8fr) auto;
  gap: 18px;
}

body[data-platform="desktop"] .panel-shell--search .search-form label {
  align-self: stretch;
}

body[data-platform="desktop"] .live-receipt-card {
  grid-column: 1 / 8;
  margin-top: 0;
  min-height: 420px;
  border-radius: 40px 24px 30px 30px;
  background:
    radial-gradient(circle at top right, rgba(48, 213, 246, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(17, 21, 36, 0.94), rgba(18, 28, 47, 0.82)),
    var(--card);
}

body[data-platform="desktop"] .panel-shell--featured {
  grid-column: 8 / 13;
  margin-top: 0;
  min-height: 420px;
  border-radius: 26px 40px 30px 30px;
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(17, 21, 36, 0.94), rgba(18, 28, 47, 0.82)),
    var(--card);
}

body[data-platform="desktop"] .panel-shell--gallery {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: 26px 26px 30px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 8% 12%, rgba(124, 92, 255, 0.12), transparent 24%),
    radial-gradient(circle at 92% 22%, rgba(48, 213, 246, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(14, 20, 36, 0.96), rgba(13, 25, 42, 0.84)),
    var(--card);
}

body[data-platform="desktop"] .app-panels > .card,
body[data-platform="desktop"] .app-panels > .desktop-topbar {
  margin-top: 0;
}

body[data-platform="desktop"] .app-panels > .card::before,
body[data-platform="desktop"] .app-panels > .desktop-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(48, 213, 246, 0.08)),
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.08), transparent 32%);
  opacity: 0.65;
}

body[data-platform="desktop"] .app-panels > .card > *,
body[data-platform="desktop"] .app-panels > .desktop-topbar > * {
  position: relative;
  z-index: 1;
}

body[data-platform="desktop"] .search-form,
body[data-platform="desktop"] .chat-form,
body[data-platform="desktop"] .admin-user-form {
  gap: 16px;
}

body[data-platform="desktop"] .chat-panel .chat-messages {
  min-height: 330px;
  padding: 8px 6px 8px 0;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(9, 13, 25, 0.54), rgba(15, 18, 33, 0.2)),
    rgba(255, 255, 255, 0.02);
}

body[data-platform="desktop"] .featured-record,
body[data-platform="desktop"] .live-receipt,
body[data-platform="desktop"] .gallery-grid {
  margin-top: 16px;
}

body[data-platform="desktop"] .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

body[data-platform="desktop"] .company-gallery {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 42px rgba(0, 0, 0, 0.18);
}

body[data-platform="desktop"] .desktop-only .company-gallery .records {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
}

body[data-platform="desktop"] .records-head--compact {
  margin-bottom: 0;
}

body[data-platform="desktop"] .company-gallery__brand {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 8px;
  width: 100%;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(7, 10, 18, 0.58);
  box-shadow:
    0 22px 44px rgba(4, 8, 20, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  isolation: isolate;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

body[data-platform="desktop"] .company-gallery__brand::before {
  content: "";
  position: absolute;
  inset: -45% auto -45% -35%;
  width: 42%;
  transform: rotate(18deg) translateX(-180%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  pointer-events: none;
}

body[data-platform="desktop"] .company-gallery__brand:hover {
  transform: translateY(-3px) scale(1.01);
}

body[data-platform="desktop"] .company-gallery__brand:hover::before {
  opacity: 1;
  animation: gallery-logo-shine 1.15s ease;
}

body[data-platform="desktop"] .company-gallery__brand--pailon {
  box-shadow:
    0 24px 48px rgba(4, 8, 20, 0.34),
    0 0 0 1px rgba(255, 123, 24, 0.18),
    0 0 28px rgba(255, 123, 24, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body[data-platform="desktop"] .company-gallery__brand--visolux {
  box-shadow:
    0 24px 48px rgba(4, 8, 20, 0.34),
    0 0 0 1px rgba(19, 79, 151, 0.16),
    0 0 28px rgba(35, 106, 199, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body[data-platform="desktop"] .company-gallery__brand--pailon:hover {
  border-color: rgba(255, 143, 36, 0.4);
  box-shadow:
    0 28px 54px rgba(4, 8, 20, 0.42),
    0 0 0 1px rgba(255, 143, 36, 0.28),
    0 0 36px rgba(255, 143, 36, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body[data-platform="desktop"] .company-gallery__brand--visolux:hover {
  border-color: rgba(48, 118, 240, 0.34);
  box-shadow:
    0 28px 54px rgba(4, 8, 20, 0.42),
    0 0 0 1px rgba(48, 118, 240, 0.2),
    0 0 36px rgba(48, 118, 240, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body[data-platform="desktop"] .company-gallery__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(6, 11, 22, 0.32));
}

body[data-platform="desktop"] .company-gallery__logo--pailon {
  border-radius: 14px;
}

body[data-platform="desktop"] .company-gallery__logo--visolux {
  border-radius: 12px;
}

body[data-platform="desktop"] .company-gallery__brand .meta {
  position: relative;
  z-index: 1;
  margin: 0;
  letter-spacing: 0.04em;
}

body[data-platform="desktop"] .panel-shell--gallery .records-head {
  margin-bottom: 6px;
}

body[data-platform="desktop"] .panel-shell--gallery .records-head > div:first-child {
  max-width: 760px;
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery {
  min-height: 100%;
}

body[data-platform="desktop"] .panel-shell--featured .featured-card,
body[data-platform="desktop"] .panel-shell--receipt .live-receipt-card-inner {
  min-height: 100%;
}

body[data-platform="desktop"] .panel-shell--featured .featured-card {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 20px;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
}

body[data-platform="desktop"] .panel-shell--featured .featured-card .featured-meta,
body[data-platform="desktop"] .panel-shell--receipt .live-receipt-meta {
  align-content: center;
}

body[data-platform="desktop"] .panel-shell--receipt .live-receipt-card-inner {
  padding: 14px;
  border-radius: 28px;
}

body[data-platform="desktop"] .panel-shell--chat .chat-form,
body[data-platform="desktop"] .panel-shell--admin .admin-user-form {
  margin-top: auto;
}

body[data-platform="desktop"] .panel-shell--chat,
body[data-platform="desktop"] .panel-shell--admin,
body[data-platform="desktop"] .panel-shell--server {
  display: grid;
  align-content: start;
}

body[data-platform="desktop"] .panel-shell--server,
body[data-platform="desktop"] .panel-shell--admin {
  background:
    linear-gradient(135deg, rgba(16, 21, 38, 0.96), rgba(16, 18, 34, 0.9)),
    var(--card);
}

body[data-platform="desktop"] .desktop-only .records {
  gap: 16px;
}

body[data-platform="desktop"] .desktop-only .record {
  border-radius: 20px;
  transition:
    transform var(--motion-base) var(--motion-soft),
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease,
    background var(--motion-base) ease;
}

body[data-platform="desktop"] .desktop-only .record:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 209, 255, 0.18);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

body[data-platform="desktop"] .chat-bubble {
  padding: 14px 16px;
  border-radius: 20px;
}

@keyframes gallery-logo-shine {
  0% {
    transform: rotate(18deg) translateX(-180%);
  }

  100% {
    transform: rotate(18deg) translateX(420%);
  }
}

@keyframes ambientFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(18px, -14px, 0) scale(1.08);
  }
}

@keyframes smokeDrift {
  0% {
    transform: translate3d(-2%, -1.5%, 0) scale(1.02);
    opacity: 0.44;
  }

  50% {
    transform: translate3d(2%, 1%, 0) scale(1.08);
    opacity: 0.58;
  }

  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.05);
    opacity: 0.48;
  }
}

@keyframes skeletonWave {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -20% 0;
  }
}

@keyframes liveReceiptPulse {
  0% {
    transform: scale(0.985);
    box-shadow: 0 0 0 rgba(48, 213, 246, 0);
    border-color: rgba(48, 213, 246, 0.16);
  }

  50% {
    transform: scale(1.01);
    box-shadow:
      0 0 0 1px rgba(48, 213, 246, 0.22),
      0 0 30px rgba(48, 213, 246, 0.2);
    border-color: rgba(48, 213, 246, 0.34);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

@keyframes recordsRefreshIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes staggerIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes sectionSwap {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}


body[data-platform="desktop"] .live-receipt-card-inner {
  grid-template-columns: minmax(340px, 1.2fr) minmax(260px, 0.8fr);
}

body[data-platform="desktop"] .desktop-only .featured-card img {
  max-height: 480px;
}

body[data-platform="desktop"] .desktop-only .records {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-platform="desktop"] .desktop-only .record {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  min-height: 100%;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.05);
}

body[data-platform="desktop"] .desktop-only .record .media-frame {
  width: 112px;
  height: 84px;
  border-radius: 12px;
  align-self: start;
}

body[data-platform="desktop"] .desktop-only .record img {
  height: 84px;
  max-height: 84px;
}

body[data-platform="desktop"] .desktop-only .record strong {
  font-size: 0.96rem;
}

body[data-platform="desktop"] .desktop-only .record-info {
  align-content: start;
  gap: 6px;
}

body[data-platform="desktop"] .desktop-only .record .secondary-link,
body[data-platform="desktop"] .desktop-only .record .danger-btn,
body[data-platform="desktop"] .desktop-only .record .secondary {
  width: fit-content;
  padding: 8px 12px;
}

body[data-platform="desktop"] .qr-box {
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 16px 35px rgba(0, 0, 0, 0.22);
}

body[data-platform="desktop"] .mobile-only {
  display: none;
}

body[data-platform="desktop"] .card.mobile-only {
  display: none;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .records {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 16px, 100%);
    padding-top: 12px;
  }

  .intro-screen {
    min-height: auto;
    align-content: start;
  }

  .brand-bar {
    flex-direction: column;
  }

  .session-bar,
  .session-actions,
  .admin-user-card {
    align-items: stretch;
  }

  .session-actions,
  .admin-user-card {
    flex-direction: column;
  }

  .brand-lockup {
    width: 100%;
  }

  .status-cluster {
    justify-content: flex-start;
    margin-top: 0;
  }

  .hero-panel {
    min-height: 0;
    padding: 24px 18px;
  }

  body[data-platform="mobile"] .hero-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
    max-width: 100%;
  }

  .desktop-only {
    display: none;
  }

  body[data-platform="desktop"] .gallery-grid {
    grid-template-columns: 1fr;
  }

  .qr-box,
  .share-box {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .app-panels::before {
    opacity: 0.26;
    filter: blur(24px);
  }

  .app-panels::after {
    opacity: 0.08;
  }

  .app-panels {
    background-position: center, center, center, center top;
    background-size: auto, auto, auto, cover;
  }

  .live-receipt-card-inner {
    grid-template-columns: 1fr;
  }

  .chat-messages {
    max-height: 260px;
  }

  .chat-row {
    flex-direction: row;
  }

  .chat-row .chat-icon-btn {
    width: 42px;
  }

  .chat-bubble {
    max-width: calc(100% - 48px);
  }

  .chat-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-actions {
    justify-content: flex-start;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .mobile-search-panel .featured-meta {
    gap: 6px;
  }
}

@media (max-width: 1280px) {
  body[data-platform="desktop"] .app-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-platform="desktop"] #serverCard,
  body[data-platform="desktop"] #adminPanel,
  body[data-platform="desktop"] .chat-panel,
  body[data-platform="desktop"] .desktop-topbar,
  body[data-platform="desktop"] .live-receipt-card,
  body[data-platform="desktop"] .panel-shell--featured,
  body[data-platform="desktop"] .panel-shell--gallery {
    grid-column: auto;
    position: relative;
    top: auto;
  }

  body[data-platform="desktop"] .desktop-topbar {
    grid-column: 1 / -1;
  }

  body[data-platform="desktop"] .panel-shell--gallery {
    grid-column: 1 / -1;
  }

  body[data-platform="desktop"] .desktop-only .company-gallery .records {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body[data-platform="desktop"] .app-panels {
    grid-template-columns: 1fr;
  }

  body[data-platform="desktop"] #serverCard,
  body[data-platform="desktop"] #adminPanel,
  body[data-platform="desktop"] .chat-panel,
  body[data-platform="desktop"] .desktop-topbar,
  body[data-platform="desktop"] .live-receipt-card,
  body[data-platform="desktop"] .panel-shell--featured,
  body[data-platform="desktop"] .panel-shell--gallery {
    grid-column: 1 / -1;
  }

  body[data-platform="desktop"] .app-session-bar .session-bar {
    grid-template-columns: 1fr;
  }
}

/* Foco Visual System theme override. Keeps the app structure and JS hooks intact. */
:root {
  color-scheme: dark;
  --bg: #0a0e14;
  --bg-2: #0f141a;
  --card: rgba(21, 26, 33, 0.72);
  --card-border: rgba(68, 72, 79, 0.55);
  --text: #f1f3fc;
  --muted: #a8abb3;
  --accent: #81ecff;
  --accent-2: #929bfa;
  --accent-3: #70aaff;
  --danger: #ff716c;
  --surface: #0a0e14;
  --surface-low: #0f141a;
  --surface-container: #151a21;
  --surface-high: #1b2028;
  --surface-highest: #20262f;
  --outline: #72757d;
  --outline-variant: #44484f;
  --on-primary: #005762;
}

html {
  background: var(--surface);
}

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(129, 236, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(129, 236, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 84% 18%, rgba(129, 236, 255, 0.18), transparent 24%),
    radial-gradient(circle at 12% 82%, rgba(112, 170, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #0a0e14 0%, #0f141a 55%, #0a0e14 100%);
  background-size: 88px 88px, 88px 88px, auto, auto, auto;
  color: var(--text);
}

body::before,
body::after {
  display: none;
}

.shell {
  width: min(100%, 1680px);
  padding: 0 24px 48px;
}

.shell::before {
  opacity: 0.12;
  background-size: 92px 92px;
  mask-image: linear-gradient(180deg, black, transparent 86%);
}

.brand-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px;
  align-items: center;
  justify-content: flex-start;
  margin: 0 -24px 18px;
  padding: 12px 24px;
  background: rgba(5, 8, 12, 0.72);
  border-bottom: 1px solid rgba(68, 72, 79, 0.44);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
}

.brand-lockup {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 0 18px rgba(129, 236, 255, 0.16);
}

.brand-name,
.brand-subtitle {
  font-family: "Space Grotesk", sans-serif;
}

.brand-name {
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.25rem;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.status-cluster {
  margin-top: 0;
  margin-left: auto;
}

.intro-screen {
  min-height: calc(100vh - 84px);
  gap: 24px;
}

.hero-panel {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  min-height: min(820px, calc(100vh - 112px));
  padding: clamp(28px, 6vw, 88px);
  border-radius: 8px;
  border: 1px solid rgba(68, 72, 79, 0.44);
  background:
    linear-gradient(90deg, rgba(10, 14, 20, 0.96) 0%, rgba(10, 14, 20, 0.78) 48%, rgba(10, 14, 20, 0.34) 100%),
    linear-gradient(270deg, rgba(129, 236, 255, 0.22), transparent 54%),
    url("/assets/painel-fundo.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 28px 70px rgba(0, 0, 0, 0.38);
}

.hero-panel::after {
  inset: 0 0 0 auto;
  width: 48%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(270deg, rgba(129, 236, 255, 0.16), transparent);
  filter: none;
  opacity: 0.72;
}

.hero-copy {
  max-width: 880px;
  gap: 22px;
}

.hero-copy h1 {
  display: inline-block;
  width: fit-content;
  max-width: 10ch;
  background-image: linear-gradient(45deg, #7794ff, #81ecff, #ff1361, #fff800);
  background-size: 120% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: heroTitleShake 800ms infinite alternate;
}

.hero-copy .lead {
  background-image: linear-gradient(45deg, #f1f3fc, #81ecff, #c9cdff, #fff800);
  background-size: 120% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@keyframes heroTitleShake {
  0% { transform: skewX(-15deg); }
  5% { transform: skewX(15deg); }
  10% { transform: skewX(-15deg); }
  15% { transform: skewX(15deg); }
  20% { transform: skewX(0deg); }
  100% { transform: skewX(0deg); }
}

.eyebrow {
  border-radius: 2px;
  border-color: rgba(129, 236, 255, 0.24);
  background: rgba(32, 38, 47, 0.86);
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(129, 236, 255, 0.8);
}

h1,
h2,
h3,
.records-head h2 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
  color: var(--text);
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  line-height: 1.65;
}

.hero-art__label,
.hero-puzzle,
.card,
.desktop-topbar,
.company-gallery,
.record,
.live-receipt-card-inner,
.featured-card,
.service-group,
.service-option,
.admin-user-card,
.chat-bubble {
  border-radius: 8px;
}

.hero-art__label,
.hero-puzzle {
  border-color: rgba(129, 236, 255, 0.22);
  background: rgba(21, 26, 33, 0.58);
  backdrop-filter: blur(12px);
}

.hero-puzzle {
  background:
    linear-gradient(135deg, rgba(21, 26, 33, 0.8), rgba(10, 14, 20, 0.92)),
    rgba(129, 236, 255, 0.04);
}

.hero-cta,
button {
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(129, 236, 255, 0.34);
}

.hero-secondary,
button.secondary,
.secondary-link {
  border-radius: 4px;
  border-color: rgba(68, 72, 79, 0.72);
  background: rgba(21, 26, 33, 0.74);
  color: var(--accent);
  box-shadow: none;
}

button:hover,
.secondary-link:hover {
  box-shadow: 0 0 34px rgba(129, 236, 255, 0.38);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.feature-card {
  min-height: 184px;
  align-content: end;
  border-radius: 8px;
  border-color: rgba(68, 72, 79, 0.42);
  background:
    linear-gradient(180deg, rgba(129, 236, 255, 0.04), transparent),
    rgba(27, 32, 40, 0.86);
}

.feature-card strong {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-size: 1.35rem;
}

.card,
.desktop-topbar {
  border-color: rgba(68, 72, 79, 0.48);
  background:
    linear-gradient(135deg, rgba(21, 26, 33, 0.78), rgba(10, 14, 20, 0.86)),
    rgba(21, 26, 33, 0.64);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 54px rgba(0, 0, 0, 0.32);
}

.app-panels {
  border-radius: 8px;
  border: 1px solid rgba(68, 72, 79, 0.34);
  background:
    linear-gradient(135deg, rgba(10, 14, 20, 0.9), rgba(10, 14, 20, 0.72)),
    url("/assets/painel-fundo.jpg");
  background-size: cover;
  background-position: center;
}

body[data-platform="desktop"] .app-session-bar,
body[data-platform="desktop"] #serverCard,
body[data-platform="desktop"] #adminPanel,
body[data-platform="desktop"] .chat-panel,
body[data-platform="desktop"] .desktop-topbar,
body[data-platform="desktop"] .live-receipt-card,
body[data-platform="desktop"] .panel-shell--featured,
body[data-platform="desktop"] .panel-shell--gallery,
body[data-platform="desktop"] .company-gallery {
  border-radius: 8px;
}

body[data-platform="desktop"] .app-session-bar {
  min-height: 150px;
  border-left: 4px solid var(--accent);
  background:
    radial-gradient(circle at 92% 18%, rgba(129, 236, 255, 0.13), transparent 28%),
    linear-gradient(135deg, rgba(21, 26, 33, 0.9), rgba(10, 14, 20, 0.84));
}

body[data-platform="desktop"] .panel-shell--gallery {
  background:
    radial-gradient(circle at 92% 16%, rgba(129, 236, 255, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(21, 26, 33, 0.94), rgba(15, 20, 26, 0.86));
}

body[data-platform="desktop"] .desktop-topbar {
  border-top: 1px solid rgba(129, 236, 255, 0.2);
}

body[data-platform="desktop"] .chat-panel {
  background:
    radial-gradient(circle at 90% 12%, rgba(129, 236, 255, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(21, 26, 33, 0.94), rgba(10, 14, 20, 0.9));
}

.records-head h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.meta,
.feature-card p,
.status {
  color: var(--muted);
}

.status-pill {
  border-radius: 4px;
  border-color: rgba(68, 72, 79, 0.56);
  background: rgba(21, 26, 33, 0.78);
}

.status-pill--online {
  border-color: rgba(129, 236, 255, 0.28);
  background: rgba(129, 236, 255, 0.1);
  color: var(--accent);
}

input[type="text"],
input[type="password"],
input[type="date"],
select,
input[type="file"],
textarea {
  border-color: rgba(68, 72, 79, 0.72);
  border-radius: 8px;
  background: rgba(32, 38, 47, 0.84);
  color: var(--text);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.service-option:has(input:focus-visible) {
  border-color: rgba(129, 236, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(129, 236, 255, 0.18);
}

.service-option:has(input:checked),
.company-badge,
.service-badge {
  border-color: rgba(129, 236, 255, 0.36);
  background: rgba(129, 236, 255, 0.1);
  color: var(--accent);
}

.media-frame,
#preview,
.share-box img,
.qr-box img {
  border-radius: 8px;
}

.record {
  background:
    linear-gradient(180deg, rgba(129, 236, 255, 0.04), transparent),
    rgba(32, 38, 47, 0.68);
}

.record:hover {
  border-color: rgba(129, 236, 255, 0.28);
}

.danger-btn {
  border-color: rgba(255, 113, 108, 0.38);
  background: rgba(159, 5, 25, 0.52);
  color: #ffa8a3;
}

.chat-messages::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #0a0e14;
}

.chat-messages::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #44484f;
  border-radius: 8px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #81ecff;
}

@media (max-width: 640px) {
  .shell {
    width: 100%;
    padding: 0 14px 96px;
  }

  .brand-bar {
    margin: 0 -14px 16px;
    padding: 12px 14px;
  }

  .hero-panel {
    min-height: 680px;
    padding: 28px 20px;
    background-position: center top;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
    max-width: 8ch;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 150px;
  }
}

/* Page 1: landing, separated from the login step. */
body[data-app-stage="intro"] .intro-screen {
  max-height: none;
}

body[data-app-stage="app"] .intro-screen {
  max-height: 0;
}

.top-links {
  display: none;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
  justify-content: center;
}

.nav-link,
.dashboard-nav-item {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-transform: none;
}

.nav-link:hover,
.dashboard-nav-item:hover {
  color: var(--accent);
  box-shadow: none;
}

.hero-panel {
  min-height: min(921px, calc(100vh - 64px));
}

.hero-title,
.hero-copy h1 {
  text-wrap: balance;
}

.feature-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto);
  gap: 24px;
  padding: clamp(24px, 5vw, 72px);
  background: var(--surface-low);
  border: 1px solid rgba(68, 72, 79, 0.28);
  border-radius: 8px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  grid-column: span 4;
  min-height: 240px;
  padding: 28px;
  display: grid;
  align-content: end;
  gap: 12px;
}

.feature-card--wide {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 500px;
}

.feature-card--workflow {
  grid-column: span 4;
  grid-row: span 2;
}

.feature-card--long {
  grid-column: span 8;
  min-height: 220px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  align-content: center;
}

.feature-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transition: transform 700ms ease;
}

.feature-card--wide:hover .feature-card__image {
  transform: scale(1.06);
}

.feature-card--wide > div,
.feature-card > strong,
.feature-card > p,
.feature-icon,
.feature-number {
  position: relative;
  z-index: 1;
}

.feature-number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(241, 243, 252, 0.05);
}

.feature-icon {
  color: var(--accent);
  font-size: 2.5rem;
  align-self: start;
}

.portfolio-section {
  padding: clamp(28px, 6vw, 88px) clamp(18px, 5vw, 72px);
  overflow: hidden;
}

.install-section {
  display: grid;
  gap: 24px;
  padding: clamp(34px, 6vw, 78px) clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(68, 72, 79, 0.24);
  border-bottom: 1px solid rgba(68, 72, 79, 0.24);
  background: rgba(5, 8, 12, 0.72);
}

.install-section h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: -0.06em;
}

.install-section p {
  margin: 8px 0 0;
  color: var(--muted);
}

.install-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.install-option {
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(129, 236, 255, 0.18);
  border-radius: 8px;
  background: rgba(21, 26, 33, 0.78);
}

.install-option .material-symbols-outlined {
  color: var(--accent);
  font-size: 2.2rem;
}

.install-option strong {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
}

.install-download-link {
  width: 100%;
  text-decoration: none;
  text-align: center;
}

.portfolio-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.portfolio-head h2,
.landing-cta h2,
.login-brand h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.06em;
}

.portfolio-head h2 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.portfolio-head h2 span,
.login-brand h2 {
  color: var(--accent);
}

.portfolio-head p {
  color: var(--muted);
}

.portfolio-action {
  flex: none;
}

.portfolio-stage {
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1300px;
}

.portfolio-container {
  width: min(560px, 80vw);
  height: 360px;
  position: relative;
  transform-style: preserve-3d;
}

.portfolio-ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: portfolioRingSpin 28s linear infinite;
}

.portfolio-stage:hover .portfolio-ring {
  animation-play-state: paused;
}

.portfolio-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(129, 236, 255, 0.24);
  background: var(--surface-container);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.44);
  backface-visibility: hidden;
}

.portfolio-card:nth-child(1) {
  transform: rotateY(0deg) translateZ(560px);
}

.portfolio-card:nth-child(2) {
  transform: rotateY(51.43deg) translateZ(560px);
}

.portfolio-card:nth-child(3) {
  transform: rotateY(102.86deg) translateZ(560px);
}

.portfolio-card:nth-child(4) {
  transform: rotateY(154.29deg) translateZ(560px);
}

.portfolio-card:nth-child(5) {
  transform: rotateY(205.71deg) translateZ(560px);
}

.portfolio-card:nth-child(6) {
  transform: rotateY(257.14deg) translateZ(560px);
}

.portfolio-card:nth-child(7) {
  transform: rotateY(308.57deg) translateZ(560px);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 700ms ease;
}

.portfolio-card:hover img {
  transform: scale(1.08);
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 62%);
}

.portfolio-card div {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.portfolio-card span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.portfolio-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

@keyframes portfolioRingSpin {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(-360deg);
  }
}

.landing-cta {
  display: grid;
  justify-items: center;
  gap: 26px;
  padding: clamp(54px, 8vw, 128px) 20px;
  text-align: center;
  background: rgba(27, 32, 40, 0.42);
  border-top: 1px solid rgba(68, 72, 79, 0.24);
  border-bottom: 1px solid rgba(68, 72, 79, 0.24);
}

.landing-cta h2 {
  max-width: 900px;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.98;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 12px;
  overflow: hidden;
  background: transparent;
  pointer-events: auto;
}

.login-screen[hidden] {
  display: none;
}

.login-screen::before {
  display: none;
}

.login-screen > * {
  position: relative;
  z-index: 1;
}

.login-brand {
  text-align: center;
}

.login-brand h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.login-brand p {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
}

.login-screen .intro-login-card {
  width: min(100%, 360px);
  padding: 48px 20px 20px;
  margin-top: -48px;
  position: relative;
  pointer-events: auto;
  border-color: rgba(129, 236, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(21, 26, 33, 0.94), rgba(10, 14, 20, 0.96)),
    var(--card);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(129, 236, 255, 0.12),
    0 0 38px rgba(129, 236, 255, 0.18);
}

.login-close-btn {
  position: absolute;
  top: calc(50% - 200px);
  left: min(calc(100% - 56px), calc(50% + 160px));
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  pointer-events: auto;
}

.login-owl {
  position: relative;
  z-index: 3;
  width: 108px;
  height: 86px;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.5));
}

.owl {
  position: relative;
  width: 96px;
  height: 78px;
  border-radius: 48px 48px 30px 30px;
  background:
    radial-gradient(circle at 36% 42%, #ffffff 0 9px, #0a0e14 10px 14px, transparent 15px),
    radial-gradient(circle at 64% 42%, #ffffff 0 9px, #0a0e14 10px 14px, transparent 15px),
    linear-gradient(145deg, #81ecff 0%, #70aaff 48%, #929bfa 100%);
  border: 1px solid rgba(241, 243, 252, 0.72);
}

.owl::after {
  content: "";
  position: absolute;
  inset: 12px 18px auto;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 78%, rgba(255, 255, 255, 0.42), transparent 42%);
  opacity: 0.8;
}

.owl-ear {
  position: absolute;
  top: -9px;
  width: 30px;
  height: 30px;
  border-radius: 12px 28px 12px 28px;
  background: #70aaff;
  transform: rotate(28deg);
  z-index: -1;
}

.owl-ear--left {
  left: 10px;
}

.owl-ear--right {
  right: 10px;
  transform: rotate(62deg);
}

.owl-eye {
  position: absolute;
  top: 24px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #f8fbff;
  border: 5px solid #101620;
  z-index: 1;
}

.owl-eye::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #101620;
}

.owl-eye--left {
  left: 22px;
}

.owl-eye--right {
  right: 22px;
}

.owl-beak {
  position: absolute;
  top: 47px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid #fff800;
  transform: translateX(-50%);
  z-index: 2;
}

.hand,
.arm {
  position: absolute;
  background: #81ecff;
  transition:
    transform 360ms cubic-bezier(0.2, 0.85, 0.3, 1),
    top 360ms cubic-bezier(0.2, 0.85, 0.3, 1),
    bottom 360ms cubic-bezier(0.2, 0.85, 0.3, 1),
    left 360ms cubic-bezier(0.2, 0.85, 0.3, 1),
    right 360ms cubic-bezier(0.2, 0.85, 0.3, 1);
}

.hand {
  bottom: -4px;
  left: 12px;
  width: 30px;
  height: 16px;
  border-radius: 20px;
  border: 1px solid rgba(241, 243, 252, 0.65);
  z-index: 3;
}

.hand-r {
  left: auto;
  right: 12px;
}

.arms {
  position: absolute;
  inset: auto 0 -14px;
  height: 34px;
  overflow: hidden;
  pointer-events: none;
}

.arm {
  left: 8px;
  bottom: 8px;
  width: 40px;
  height: 13px;
  border-radius: 20px;
  transform: rotate(22deg);
}

.arm-r {
  right: 8px;
  left: auto;
  transform: rotate(-22deg);
}

body.login-password-focused .owl-eye::after {
  transform: translateY(2px) scaleY(0.4);
}

body.login-password-focused .hand {
  bottom: 29px;
  left: 20px;
  transform: rotate(-18deg) scale(1.08);
}

body.login-password-focused .hand-r {
  right: 20px;
  left: auto;
  transform: rotate(18deg) scale(1.08);
}

body.login-password-focused .arm {
  bottom: 36px;
  left: 14px;
  transform: rotate(-58deg);
}

body.login-password-focused .arm-r {
  right: 14px;
  left: auto;
  transform: rotate(58deg);
}

/* Softer classic owl for the floating login card. */
.login-owl {
  width: 112px;
  height: 92px;
}

.owl {
  width: 98px;
  height: 80px;
  border: 0;
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(ellipse at 50% 76%, #f4d7a2 0 24px, transparent 25px),
    linear-gradient(145deg, #8a614b 0%, #5f3f35 70%);
  box-shadow:
    inset 0 -10px 18px rgba(42, 26, 22, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.42);
}

.owl::after {
  display: none;
}

.owl-ear {
  top: -8px;
  width: 28px;
  height: 28px;
  border-radius: 8px 24px 8px 24px;
  background: #6d483b;
}

.owl-ear--left {
  left: 14px;
  transform: rotate(22deg);
}

.owl-ear--right {
  right: 14px;
  transform: rotate(68deg);
}

.owl-eye {
  top: 22px;
  width: 28px;
  height: 28px;
  border: 5px solid #f7ead2;
  background: #1a1110;
  box-shadow: 0 0 0 2px rgba(77, 48, 39, 0.45);
}

.owl-eye::after {
  top: 5px;
  left: 5px;
  width: 7px;
  height: 7px;
  background: #ffffff;
  transition: transform 260ms ease, opacity 260ms ease;
}

.owl-eye--left {
  left: 21px;
}

.owl-eye--right {
  right: 21px;
}

.owl-beak {
  top: 51px;
  border-left-width: 8px;
  border-right-width: 8px;
  border-top: 12px solid #f0a33a;
}

.hand,
.arm {
  background: #6d483b;
}

.hand {
  bottom: -4px;
  left: 11px;
  width: 32px;
  height: 18px;
  border-color: rgba(244, 215, 162, 0.58);
  box-shadow: inset 0 -4px 8px rgba(42, 26, 22, 0.22);
}

.hand-r {
  right: 11px;
}

.arm {
  background: #5f3f35;
}

body.login-password-focused .owl-eye::after {
  opacity: 0;
  transform: translateY(2px) scaleY(0.3);
}

body.login-password-focused .hand {
  bottom: 32px;
  left: 20px;
  transform: rotate(-8deg) scale(1.12);
  background: #7a513f;
}

body.login-password-focused .hand-r {
  right: 20px;
  left: auto;
  transform: rotate(8deg) scale(1.12);
  background: #7a513f;
}

body.login-password-focused .arm {
  bottom: 38px;
  left: 12px;
  transform: rotate(-54deg);
}

body.login-password-focused .arm-r {
  right: 12px;
  left: auto;
  transform: rotate(54deg);
}

.login-form label {
  position: relative;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-form label::before {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  color: var(--accent);
  font-family: "Material Symbols Outlined";
  font-size: 1.2rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.login-form label.login-server-field::before {
  content: "link";
}

.login-form label.login-user-field::before {
  content: "person";
}

.login-form label.login-password-field::before {
  content: "lock";
}

.login-form input {
  padding-left: 48px;
}

.login-footnote {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(68, 72, 79, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--outline);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-screen .records-head {
  margin-bottom: 6px;
}

.login-screen .records-head h2 {
  font-size: 1.25rem;
}

.login-screen .records-head .meta {
  font-size: 0.86rem;
  line-height: 1.35;
}

.login-screen .login-form {
  gap: 10px;
}

.login-screen input[type="text"],
.login-screen input[type="password"] {
  padding-top: 12px;
  padding-bottom: 12px;
}

.login-screen button[type="submit"] {
  padding: 12px 16px;
}

.login-footnote .material-symbols-outlined {
  color: var(--accent);
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(68, 72, 79, 0.24);
  background: rgba(5, 8, 12, 0.86);
  color: #5f6470;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Page 2: dashboard/admin visual shell. */
.dashboard-side-nav {
  display: none;
}

.overview-qr-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.overview-share-box {
  margin-top: 0;
}

.overview-share-box img {
  width: min(210px, 100%);
}

.app-floating-menu {
  position: relative;
  top: auto;
  right: auto;
  z-index: 90;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  margin-left: 4px;
}

.app-floating-menu .menu {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(129, 236, 255, 0.34);
  background: rgba(10, 14, 20, 0.92);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(129, 236, 255, 0.18);
  backdrop-filter: blur(12px);
}

.app-floating-menu .icon {
  position: relative;
  width: 24px;
  height: 20px;
  display: block;
}

.app-floating-menu .bar,
.app-floating-menu .bar::before,
.app-floating-menu .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 3px;
  border-radius: 99px;
  background: var(--accent);
  transition: transform 260ms ease, opacity 220ms ease, top 260ms ease;
}

.app-floating-menu .bar {
  top: 10px;
}

.app-floating-menu .bar::before {
  top: -8px;
}

.app-floating-menu .bar::after {
  top: 8px;
}

.app-floating-menu.is-open .bar {
  transform: rotate(45deg);
}

.app-floating-menu.is-open .bar::before {
  top: 0;
  opacity: 0;
}

.app-floating-menu.is-open .bar::after {
  top: 0;
  transform: rotate(-90deg);
}

.app-floating-menu .icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-floating-menu .icons button {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(68, 72, 79, 0.62);
  background: rgba(21, 26, 33, 0.94);
  color: var(--accent);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(0, 0) scale(0.45);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.2, 0.85, 0.3, 1),
    background 180ms ease;
}

.app-floating-menu.is-open .icons {
  pointer-events: auto;
}

.app-floating-menu.is-open .icons button {
  opacity: 1;
}

.app-floating-menu.is-open .icons button:nth-child(1) {
  transform: translate(0, 64px) scale(1);
}

.app-floating-menu.is-open .icons button:nth-child(2) {
  transform: translate(50px, 64px) scale(1);
}

.app-floating-menu.is-open .icons button:nth-child(3) {
  transform: translate(100px, 64px) scale(1);
}

.app-floating-menu.is-open .icons button:nth-child(4) {
  transform: translate(0, 114px) scale(1);
}

.app-floating-menu.is-open .icons button:nth-child(5) {
  transform: translate(50px, 114px) scale(1);
}

.app-floating-menu.is-open .icons button:nth-child(6) {
  transform: translate(100px, 114px) scale(1);
}

.app-floating-menu .icons button:hover {
  background: rgba(129, 236, 255, 0.14);
}

body[data-app-stage="app"] [data-dashboard-panel].is-dashboard-hidden {
  display: none !important;
}

body[data-app-stage="app"] [data-dashboard-panel].is-dashboard-visible {
  animation: sectionSwap 420ms var(--motion-spring);
}

body[data-app-stage="app"] [data-dashboard-panel="admin"][hidden] {
  display: none !important;
}

@media (min-width: 1281px) {
  body[data-platform="desktop"] .dashboard-side-nav {
    display: none;
    grid-column: 1 / 3;
    grid-row: 1 / span 8;
    min-height: calc(100vh - 120px);
    position: sticky;
    top: 82px;
    flex-direction: column;
    gap: 30px;
    padding: 28px 18px;
    border-right: 1px solid rgba(68, 72, 79, 0.38);
    background: rgba(5, 8, 12, 0.82);
    border-radius: 8px;
  }

  body[data-platform="desktop"] .dashboard-side-nav__brand {
    display: grid;
    gap: 6px;
    padding: 0 4px;
  }

  body[data-platform="desktop"] .dashboard-side-nav__brand strong {
    font-family: "Space Grotesk", sans-serif;
    color: var(--accent);
    font-size: 1.6rem;
  }

  body[data-platform="desktop"] .dashboard-side-nav__brand span {
    color: #5f6470;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  body[data-platform="desktop"] .dashboard-side-nav nav {
    display: grid;
    gap: 8px;
  }

  body[data-platform="desktop"] .dashboard-nav-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    text-align: left;
  }

  body[data-platform="desktop"] .dashboard-nav-item.is-active {
    color: var(--accent);
    background: rgba(129, 236, 255, 0.1);
    border-right: 2px solid var(--accent);
  }

  body[data-platform="desktop"] .dashboard-new-project {
    margin-top: auto;
    width: 100%;
  }

  body[data-platform="desktop"] .app-session-bar {
    grid-column: 3 / -1;
  }

  body[data-platform="desktop"] #serverCard {
    grid-column: 3 / 6;
  }

  body[data-platform="desktop"] #adminPanel {
    grid-column: 6 / 9;
  }

  body[data-platform="desktop"] .chat-panel {
    grid-column: 9 / 13;
  }

  body[data-platform="desktop"] .desktop-topbar {
    grid-column: 3 / 10;
  }

  body[data-platform="desktop"] .live-receipt-card {
    grid-column: 6 / 13;
  }

  body[data-platform="desktop"] .overview-qr-card {
    grid-column: 3 / 6;
  }

  body[data-platform="desktop"] .panel-shell--featured {
    grid-column: 10 / 13;
  }

  body[data-platform="desktop"] .panel-shell--gallery {
    grid-column: 3 / -1;
  }
}

body[data-platform="mobile"] .mobile-upload-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

body[data-platform="mobile"] .mobile-upload-panel::before {
  content: "Terminal de Envio";
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.admin-more-functions-btn,
.mobile-logout-btn {
  width: 100%;
}

@media (max-width: 980px) {
  .brand-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .brand-lockup {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-name,
  .brand-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-name {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  .brand-subtitle {
    font-size: 0.64rem;
  }

  .top-links {
    display: none;
  }

  .status-cluster {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .feature-card,
  .feature-card--wide,
  .feature-card--workflow,
  .feature-card--long {
    grid-column: 1;
    grid-row: auto;
    min-height: 210px;
  }

  .feature-card--long {
    grid-template-columns: 1fr;
  }

  .install-options {
    grid-template-columns: 1fr;
  }

  .install-option {
    min-height: 0;
  }

  .portfolio-head {
    align-items: start;
    flex-direction: column;
  }

  .portfolio-stage {
    min-height: auto;
    display: block;
    perspective: none;
  }

  .portfolio-container {
    width: 100%;
    height: auto;
    transform-style: flat;
  }

  .portfolio-ring {
    position: static;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 18px;
    animation: none;
    transform-style: flat;
  }

  .portfolio-card,
  .portfolio-card:nth-child(n) {
    position: relative;
    inset: auto;
    flex: 0 0 min(420px, 82vw);
    height: 320px;
    transform: none;
  }

  .app-floating-menu {
    margin-left: 0;
    transform: scale(0.92);
    transform-origin: center;
  }

  .app-floating-menu.is-open .icons button:nth-child(1) {
    transform: translate(-54px, 58px) scale(1);
  }

  .app-floating-menu.is-open .icons button:nth-child(2) {
    transform: translate(-4px, 58px) scale(1);
  }

  .app-floating-menu.is-open .icons button:nth-child(3) {
    transform: translate(46px, 58px) scale(1);
  }

  .app-floating-menu.is-open .icons button:nth-child(4) {
    transform: translate(-54px, 108px) scale(1);
  }

  .app-floating-menu.is-open .icons button:nth-child(5) {
    transform: translate(-4px, 108px) scale(1);
  }

  .app-floating-menu.is-open .icons button:nth-child(6) {
    transform: translate(46px, 108px) scale(1);
  }
}

/* Expandable photo gallery, inspired by the option-card interaction. */
body[data-platform="desktop"] .panel-shell--gallery .company-gallery .records {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-height: 430px;
  overflow: hidden;
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record {
  position: relative;
  display: block;
  flex: 1 1 60px;
  min-width: 60px;
  min-height: 400px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 30px;
  background: var(--surface-container-highest);
  transition:
    flex-grow 500ms cubic-bezier(0.05, 0.61, 0.41, 0.95),
    max-width 500ms cubic-bezier(0.05, 0.61, 0.41, 0.95),
    border-radius 500ms cubic-bezier(0.05, 0.61, 0.41, 0.95),
    transform 500ms cubic-bezier(0.05, 0.61, 0.41, 0.95),
    filter 240ms ease;
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record.active {
  flex-grow: 10000;
  max-width: 680px;
  border-radius: 40px;
  transform: scale(1);
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record:not(.active) {
  filter: saturate(0.75);
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record .media-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: var(--surface-container);
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record img {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: inherit;
  object-fit: cover;
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
  opacity: 0.95;
  transition: opacity 500ms cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record:not(.active)::after {
  opacity: 0.58;
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  min-width: 260px;
  display: grid;
  gap: 8px;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 14px 16px;
  border: 1px solid rgba(129, 236, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 8, 12, 0.78);
  color: #f8fbff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  transition:
    transform 500ms cubic-bezier(0.05, 0.61, 0.41, 0.95),
    opacity 300ms ease;
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record-info strong {
  color: #ffffff;
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record-info .meta {
  color: #dcefff;
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record-info .service-badge,
body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record-info .company-badge {
  background: rgba(129, 236, 255, 0.18);
  color: #eaffff;
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record:not(.active) .record-info {
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record.active .record-info {
  opacity: 1;
  transform: translateX(0);
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record .company-badge {
  width: fit-content;
}

body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record .secondary-link,
body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record .danger-btn,
body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record .secondary {
  width: fit-content;
  padding: 8px 12px;
}

@media (max-width: 1280px) {
  body[data-platform="desktop"] .panel-shell--gallery .company-gallery .records {
    min-height: 360px;
  }

  body[data-platform="desktop"] .panel-shell--gallery .company-gallery .record {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  body[data-platform="desktop"] .panel-shell--gallery .company-gallery .records,
  body[data-platform="mobile"] .panel-shell--gallery .company-gallery .records {
    display: grid;
    min-height: 0;
  }
}
