:root {
  --ink: #f4fbff;
  --muted: #9db7c6;
  --muted-strong: #c9dbe4;
  --petrol-950: #031016;
  --petrol-900: #061923;
  --petrol-850: #082330;
  --petrol-800: #0b2f3d;
  --petrol-700: #0f4050;
  --cyan: #21d4fd;
  --cyan-soft: rgba(33, 212, 253, .2);
  --blue: #1f7aff;
  --green: #25d394;
  --red: #ff5f75;
  --amber: #ffca64;
  --glass: rgba(8, 35, 48, .72);
  --glass-strong: rgba(11, 47, 61, .9);
  --line: rgba(151, 221, 244, .18);
  --shadow: 0 22px 60px rgba(0, 9, 13, .38);
  --radius: 8px;
}

* {
  letter-spacing: 0;
}

html {
  background: var(--petrol-950);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -10%, rgba(33, 212, 253, .22), transparent 32rem),
    radial-gradient(circle at 88% 0%, rgba(31, 122, 255, .18), transparent 34rem),
    linear-gradient(135deg, var(--petrol-950), var(--petrol-900) 45%, #02070a);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(151, 221, 244, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 221, 244, .035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 82%);
}

.terminal-body {
  margin: 0;
  background: var(--petrol-950);
}

a {
  color: #8ee9ff;
}

.layout {
  align-items: stretch;
  min-height: 100vh;
}

.sidebar {
  width: 292px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(5, 22, 31, .96), rgba(6, 25, 35, .9));
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 50px rgba(0, 0, 0, .25);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: #fff;
  padding: 1.15rem 1.1rem 1rem;
  font-weight: 800;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(95, 229, 255, .42);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(33, 212, 253, .25), rgba(31, 122, 255, .08));
  box-shadow: 0 0 28px rgba(33, 212, 253, .22);
  color: #c9f8ff;
  font-size: 1.35rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: .15rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.sidebar-scroll {
  flex: 1;
  overflow: auto;
  padding: .3rem .7rem 1rem;
}

.nav-section {
  margin: 1rem .55rem .35rem;
  color: #6ecfe8;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar a,
.nav-link-modern {
  min-height: 44px;
  color: #c8dce5;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .72rem;
  padding: .72rem .85rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  margin: .18rem 0;
  font-weight: 700;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.sidebar a i,
.nav-link-modern i {
  width: 1.18rem;
  color: #68defb;
  text-align: center;
}

.sidebar a:hover,
.nav-link-modern:hover,
.nav-link-modern.active {
  color: #fff;
  transform: translateX(2px);
  border-color: rgba(91, 226, 255, .28);
  background: linear-gradient(90deg, rgba(33, 212, 253, .18), rgba(31, 122, 255, .08));
  box-shadow: inset 3px 0 0 rgba(33, 212, 253, .78), 0 10px 26px rgba(0, 0, 0, .18);
}

.sidebar-footer {
  padding: .9rem;
  border-top: 1px solid var(--line);
}

.user-chip {
  display: flex;
  gap: .7rem;
  align-items: center;
  padding: .75rem;
  margin-bottom: .6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}

.user-chip i {
  color: var(--cyan);
  font-size: 1.2rem;
}

.user-chip span,
.user-chip small {
  display: block;
}

.user-chip small {
  color: var(--muted);
  font-size: .72rem;
}

.sidebar-footer .theme-link,
.sidebar-footer .logout-link {
  margin: .22rem 0;
}

.sidebar-footer .logout-link {
  color: #ff9cab;
}

.content {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 1.35rem;
}

.content-glow {
  position: fixed;
  right: 4vw;
  top: 4vh;
  width: 26rem;
  height: 26rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(33, 212, 253, .11), transparent 68%);
}

.mobile-nav {
  display: none;
  background: rgba(5, 22, 31, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.container,
.container-fluid {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6,
.fw-bold {
  color: #fff;
}

.text-muted {
  color: var(--muted) !important;
}

.card,
.modal-content,
.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 43, 58, .82), rgba(6, 25, 35, .74));
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card-body {
  position: relative;
}

.metric {
  min-height: 118px;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(33, 212, 253, .25);
  background: rgba(33, 212, 253, .07);
}

.metric h3,
.metric h5 {
  margin-bottom: 0;
  font-weight: 850;
}

.kpi-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #dffbff;
  background: rgba(33, 212, 253, .16);
  border: 1px solid rgba(33, 212, 253, .26);
}

.stat-tile,
.bg-body-tertiary {
  border: 1px solid rgba(151, 221, 244, .14);
  background: rgba(255, 255, 255, .045) !important;
  color: var(--ink);
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-lg {
  min-height: 52px;
  padding-inline: 1.25rem;
}

.btn-primary {
  border-color: rgba(121, 239, 255, .55);
  background: linear-gradient(135deg, #14c8f4, #1f7aff);
  color: #021018;
  box-shadow: 0 14px 34px rgba(31, 122, 255, .28), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}

.btn-success {
  border-color: rgba(97, 255, 185, .45);
  background: linear-gradient(135deg, #2ceda5, #0b9d78);
  color: #02130d;
  box-shadow: 0 14px 34px rgba(37, 211, 148, .24);
}

.btn-danger,
.btn-outline-danger:hover {
  border-color: rgba(255, 147, 164, .5);
  background: linear-gradient(135deg, #ff6b82, #c92645);
  color: #fff;
}

.btn-warning,
.btn-outline-warning:hover {
  border-color: rgba(255, 221, 137, .55);
  background: linear-gradient(135deg, #ffdc7a, #f59f28);
  color: #1b1100;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-light {
  border-color: rgba(151, 221, 244, .24);
  color: #d9f7ff;
  background: rgba(255, 255, 255, .035);
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-light:hover {
  border-color: rgba(33, 212, 253, .55);
  background: rgba(33, 212, 253, .13);
  color: #fff;
}

.form-control,
.form-select {
  min-height: 42px;
  border-radius: var(--radius);
  border-color: rgba(151, 221, 244, .18);
  background-color: rgba(2, 13, 18, .74);
  color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(33, 212, 253, .78);
  background-color: rgba(3, 18, 25, .95);
  color: #fff;
  box-shadow: 0 0 0 .2rem rgba(33, 212, 253, .16);
}

.form-control::placeholder {
  color: #6f8998;
}

.form-label {
  color: var(--muted-strong);
  font-weight: 700;
}

.form-check-input {
  border-color: rgba(151, 221, 244, .35);
  background-color: rgba(2, 13, 18, .8);
}

.form-check-input:checked {
  border-color: var(--cyan);
  background-color: var(--cyan);
}

.table-responsive {
  border-radius: var(--radius);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: #eaf9ff;
  --bs-table-hover-bg: rgba(33, 212, 253, .08);
  --bs-table-hover-color: #fff;
  margin-bottom: 0;
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(151, 221, 244, .18);
  background: rgba(3, 16, 22, .94);
  color: #93e7fb;
  font-size: .75rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  border-color: rgba(151, 221, 244, .11);
  vertical-align: middle;
}

.badge {
  border-radius: 999px;
  padding: .45rem .65rem;
  font-weight: 800;
}

.alert {
  border-radius: var(--radius);
  border-width: 1px;
}

.alert-info {
  border-color: rgba(33, 212, 253, .32);
  background: rgba(33, 212, 253, .09);
  color: #b7f3ff;
}

.alert-danger {
  border-color: rgba(255, 95, 117, .35);
  background: rgba(255, 95, 117, .12);
  color: #ffd1d8;
}

.alert-success {
  border-color: rgba(37, 211, 148, .35);
  background: rgba(37, 211, 148, .12);
  color: #cbffea;
}

.modal-header,
.modal-footer {
  border-color: rgba(151, 221, 244, .14);
}

.btn-close {
  filter: invert(1) grayscale(1);
}

.page-hero {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(33, 212, 253, .12), rgba(11, 47, 61, .42));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.hero-kicker {
  color: #7beaff;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-chart {
  min-height: 230px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid rgba(151, 221, 244, .13);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
}

.chart-bar {
  min-height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: .45rem;
}

.chart-bar span {
  display: block;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(33, 212, 253, .95), rgba(31, 122, 255, .55));
  box-shadow: 0 0 24px rgba(33, 212, 253, .22);
}

.chart-bar small {
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.quick-actions {
  display: grid;
  gap: .65rem;
}

.quick-actions a {
  min-height: 50px;
  justify-content: flex-start;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 14% 18%, rgba(33, 212, 253, .18), transparent 18rem),
    radial-gradient(circle at 88% 12%, rgba(86, 122, 255, .22), transparent 20rem),
    radial-gradient(circle at 50% 110%, rgba(37, 211, 148, .08), transparent 22rem),
    linear-gradient(135deg, #02070b 0%, #03131b 34%, #02070b 100%);
  position: relative;
  overflow: hidden;
}

.login-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 0;
  opacity: .98;
  filter: saturate(1.05) contrast(1.08) brightness(.78);
  transform: scale(1.02);
}

.login-data-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.login-stream {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(.15px);
  opacity: .72;
  mix-blend-mode: screen;
}

.login-stream::before,
.login-stream::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.login-stream::before {
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(84, 237, 255, .85) 12% 16%, transparent 16% 34%, rgba(22, 141, 255, .88) 34% 38%, transparent 38% 100%);
  box-shadow:
    0 0 14px rgba(84, 237, 255, .48),
    0 0 34px rgba(22, 141, 255, .24);
}

.login-stream::after {
  background:
    radial-gradient(circle at 10% 50%, rgba(255, 255, 255, .95) 0 1.5px, transparent 1.8px),
    radial-gradient(circle at 50% 50%, rgba(84, 237, 255, .9) 0 1.2px, transparent 1.5px),
    radial-gradient(circle at 90% 50%, rgba(22, 141, 255, .9) 0 1.4px, transparent 1.7px);
  opacity: .9;
}

.login-stream-a {
  width: 160%;
  height: 7px;
  top: 16%;
  left: -25%;
  transform: rotate(-12deg);
  animation: dataFlowA 13s linear infinite;
}

.login-stream-b {
  width: 180%;
  height: 5px;
  top: 28%;
  left: -35%;
  transform: rotate(9deg);
  animation: dataFlowB 17s linear infinite;
}

.login-stream-c {
  width: 150%;
  height: 6px;
  top: 42%;
  left: -20%;
  transform: rotate(-6deg);
  animation: dataFlowC 11s linear infinite;
}

.login-stream-d {
  width: 190%;
  height: 4px;
  top: 58%;
  left: -40%;
  transform: rotate(13deg);
  animation: dataFlowD 19s linear infinite;
}

.login-stream-e {
  width: 170%;
  height: 5px;
  top: 72%;
  left: -30%;
  transform: rotate(-10deg);
  animation: dataFlowE 15s linear infinite;
}

.login-stream-f {
  width: 120%;
  height: 8px;
  top: 84%;
  left: -10%;
  transform: rotate(4deg);
  animation: dataFlowF 21s linear infinite;
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-page::before {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(84, 237, 255, .06) 0,
      rgba(84, 237, 255, .06) 1px,
      transparent 1px,
      transparent 120px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, .025) 0,
      rgba(255, 255, 255, .025) 1px,
      transparent 1px,
      transparent 120px
    );
  opacity: .26;
  mask-image: radial-gradient(circle at center, #000 0%, rgba(0, 0, 0, .78) 60%, transparent 100%);
  animation: loginDrift 28s linear infinite;
}

.login-page::after {
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(84, 237, 255, .08) 32.05% 32.2%, transparent 32.35% 100%),
    linear-gradient(60deg, transparent 0 64%, rgba(22, 141, 255, .06) 64.05% 64.2%, transparent 64.35% 100%);
  opacity: .78;
}

.login-card {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, .82fr);
  overflow: hidden;
  border: 1px solid rgba(151, 221, 244, .16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 24%),
    linear-gradient(180deg, rgba(3, 16, 22, .74), rgba(3, 16, 22, .95));
  box-shadow:
    0 42px 120px rgba(0, 0, 0, .56),
    0 0 60px rgba(84, 237, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(24px) saturate(1.12);
  transform-style: preserve-3d;
  transform: perspective(2200px) rotateX(2deg) rotateY(-4deg) translateZ(0);
  position: relative;
  animation: loginFloat 9s ease-in-out infinite;
  z-index: 1;
}

.login-card::before,
.login-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.login-card::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .02) 28%, transparent 45%),
    linear-gradient(180deg, transparent 0 16%, rgba(84, 237, 255, .04) 16.2% 16.4%, transparent 16.6% 100%);
  opacity: .75;
}

.login-card::after {
  inset: 12px;
  border: 1px solid rgba(84, 237, 255, .12);
  box-shadow: inset 0 0 36px rgba(84, 237, 255, .04);
}

.login-visual {
  min-height: 540px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 50% 40%, rgba(84, 237, 255, .22), transparent 20rem),
    radial-gradient(circle at 18% 80%, rgba(22, 141, 255, .18), transparent 18rem),
    linear-gradient(135deg, rgba(6, 25, 35, .82), rgba(2, 9, 13, .96));
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  z-index: 1;
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(2, 7, 11, .62), rgba(2, 7, 11, .18) 42%, rgba(2, 7, 11, .72)),
    radial-gradient(circle at 50% 45%, rgba(84, 237, 255, .12), transparent 30rem);
  z-index: 0;
}

.login-visual-grid,
.login-visual-fibers,
.login-visual-core,
.login-visual-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.login-visual-grid {
  background:
    linear-gradient(rgba(84, 237, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 237, 255, .08) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: .16;
  mask-image: radial-gradient(circle at center, #000 0%, rgba(0, 0, 0, .7) 55%, transparent 92%);
}

.login-visual-fibers {
  background:
    repeating-linear-gradient(
      110deg,
      transparent 0,
      transparent 36px,
      rgba(84, 237, 255, .12) 38px,
      rgba(84, 237, 255, .12) 42px,
      transparent 44px,
      transparent 120px
    ),
    repeating-linear-gradient(
      70deg,
      transparent 0,
      transparent 54px,
      rgba(22, 141, 255, .1) 56px,
      rgba(22, 141, 255, .1) 60px,
      transparent 62px,
      transparent 160px
    );
  opacity: .28;
  filter: blur(.2px);
  animation: fiberFlow 16s linear infinite;
}

.login-visual-core {
  left: 52%;
  top: 40%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(84, 237, 255, .28), transparent 28%),
    radial-gradient(circle at center, transparent 0 42%, rgba(84, 237, 255, .16) 43% 45%, transparent 46% 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06) inset,
    0 0 60px rgba(84, 237, 255, .18),
    0 0 120px rgba(22, 141, 255, .12);
  animation: corePulse 5.5s ease-in-out infinite;
  mix-blend-mode: screen;
}

.login-visual-orbit {
  background:
    radial-gradient(circle at 50% 40%, transparent 0 31%, rgba(84, 237, 255, .12) 31.5% 32%, transparent 32.5% 100%),
    radial-gradient(circle at 50% 40%, transparent 0 44%, rgba(22, 141, 255, .1) 44.5% 45%, transparent 45.5% 100%);
  mask-image: radial-gradient(circle at center, #000 0%, rgba(0, 0, 0, .7) 56%, transparent 90%);
  animation: orbitSpin 22s linear infinite;
}

.login-logo {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(151, 221, 244, .34);
  color: #ddfbff;
  font-size: 2.4rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)),
    rgba(255, 255, 255, .05);
  box-shadow:
    0 0 46px rgba(84, 237, 255, .22),
    0 18px 42px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  transform: perspective(900px) rotateY(-10deg) translateZ(22px);
}

.login-copy {
  transform: translateZ(24px);
}

.login-copy h1 {
  max-width: 560px;
  font-size: clamp(2.5rem, 4.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(1, 29, 41, .95),
    0 2px 0 rgba(0, 54, 71, .78),
    0 10px 30px rgba(0, 0, 0, .38),
    0 0 28px rgba(84, 237, 255, .16);
}

.login-copy p {
  max-width: 520px;
  color: #d4eef7;
  font-size: 1.02rem;
  line-height: 1.55;
}

.login-form-panel {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 20%),
    linear-gradient(180deg, rgba(4, 18, 25, .74), rgba(2, 9, 13, .94));
}

.login-form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(84, 237, 255, .08), transparent 30%),
    radial-gradient(circle at 50% 18%, rgba(22, 141, 255, .1), transparent 16rem);
}

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

.login-form-panel .form-label {
  color: #d7f7ff;
  font-weight: 700;
}

.login-form-panel .form-control {
  background: rgba(2, 13, 18, .92);
  border-color: rgba(151, 221, 244, .18);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.login-form-panel .form-control::placeholder {
  color: #7ea4b4;
}

.login-form-panel .btn-primary {
  box-shadow: 0 18px 40px rgba(31, 122, 255, .28), 0 0 30px rgba(84, 237, 255, .1);
}

.login-form-panel .btn-outline-primary {
  border-color: rgba(151, 221, 244, .22);
  background: rgba(255, 255, 255, .03);
  color: #ddfbff;
}

.login-demo {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

@keyframes loginDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 180px 0, 0 180px; }
}

@keyframes loginFloat {
  0%, 100% { transform: perspective(2200px) rotateX(7deg) rotateY(-12deg) translateY(0); }
  50% { transform: perspective(2200px) rotateX(6deg) rotateY(-10deg) translateY(-10px); }
}

@keyframes fiberFlow {
  from { transform: translateX(-4%); }
  to { transform: translateX(4%); }
}

@keyframes corePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .9; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dataFlowA {
  from { transform: translateX(-18%) rotate(-12deg); }
  to { transform: translateX(18%) rotate(-12deg); }
}

@keyframes dataFlowB {
  from { transform: translateX(20%) rotate(9deg); }
  to { transform: translateX(-20%) rotate(9deg); }
}

@keyframes dataFlowC {
  from { transform: translateX(-22%) rotate(-6deg); }
  to { transform: translateX(22%) rotate(-6deg); }
}

@keyframes dataFlowD {
  from { transform: translateX(24%) rotate(13deg); }
  to { transform: translateX(-24%) rotate(13deg); }
}

@keyframes dataFlowE {
  from { transform: translateX(-16%) rotate(-10deg); }
  to { transform: translateX(16%) rotate(-10deg); }
}

@keyframes dataFlowF {
  from { transform: translateX(14%) rotate(4deg); }
  to { transform: translateX(-14%) rotate(4deg); }
}

.camera-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(33, 212, 253, .26);
  background: #02090d;
  box-shadow: 0 0 0 6px rgba(33, 212, 253, .05);
}

.facial-base-preview {
  min-height: 360px;
}

.status-pill {
  min-height: 76px;
  border-radius: var(--radius);
}

.totem-screen {
  min-height: 100vh;
  display: block;
  position: relative;
  background: var(--petrol-950);
  color: #f8fafc;
  overflow: hidden;
}

.totem-camera {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(33, 212, 253, .08), transparent 40%), #02090d;
}

.totem-camera::after {
  content: "";
  position: absolute;
  inset: 1.2rem;
  pointer-events: none;
  border: 1px solid rgba(33, 212, 253, .28);
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(33, 212, 253, .12) inset;
}

.totem-camera video {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  filter: saturate(.92) contrast(1.05) brightness(.85);
}

.totem-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(37, 211, 148, .34);
  opacity: 0;
  transition: opacity .2s ease;
}

.totem-flash.active {
  opacity: 1;
}

.totem-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  width: min(360px, calc(100vw - 2rem));
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem;
  overflow: auto;
  background: linear-gradient(180deg, rgba(6, 25, 35, .72), rgba(3, 16, 22, .88));
  border: 1px solid rgba(151, 221, 244, .16);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
  z-index: 5;
}

.totem-kicker {
  color: #7beaff;
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.totem-panel h1 {
  margin: .2rem 0 .45rem;
  font-size: 1.95rem;
  font-weight: 900;
}

.totem-status {
  min-height: 2.2rem;
  color: var(--muted-strong);
  font-size: .95rem;
}

.totem-form {
  display: grid;
  gap: .7rem;
}

.totem-form label {
  color: var(--muted-strong);
  font-size: .92rem;
  font-weight: 800;
}

.totem-form select {
  width: 100%;
  min-height: 46px;
  padding: .68rem .75rem;
  border: 1px solid rgba(151, 221, 244, .2);
  border-radius: var(--radius);
  background: rgba(2, 13, 18, .9);
  color: #f8fafc;
}

.totem-btn {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
}

.totem-btn.primary {
  background: linear-gradient(135deg, #14c8f4, #1f7aff);
}

.totem-btn.success {
  background: linear-gradient(135deg, #2ceda5, #0b9d78);
}

.totem-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.totem-identified,
.totem-checklist,
.totem-result,
.totem-log {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .2);
}

.totem-identified {
  display: grid;
  gap: .25rem;
  padding: .75rem .8rem;
}

.totem-identified span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.totem-identified strong {
  color: #fff;
  font-size: 1.08rem;
}

.totem-checklist {
  display: grid;
  gap: .4rem;
  padding: .85rem;
}

.totem-checklist div {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  color: var(--muted-strong);
  font-size: .84rem;
}

.totem-checklist strong {
  color: #ffacb9;
  text-align: right;
}

.totem-checklist strong.ok {
  color: #8fffd1;
}

.totem-checklist strong.fail {
  color: #ffacb9;
}

.totem-checklist .totem-check-reason {
  display: grid;
  gap: .25rem;
  padding-top: .35rem;
  border-top: 1px solid rgba(151, 221, 244, .14);
}

.totem-checklist .totem-check-reason strong {
  text-align: left;
}

.totem-result {
  min-height: 138px;
  display: grid;
  gap: .35rem;
  align-content: center;
  padding: 1rem;
}

.totem-result strong {
  font-size: 1.75rem;
  line-height: 1.15;
}

.totem-result span {
  color: #b7f3ff;
  font-size: 1rem;
  font-weight: 800;
}

.totem-result small {
  color: var(--muted-strong);
}

.totem-result.success {
  border-color: rgba(37, 211, 148, .55);
  background: rgba(37, 211, 148, .13);
}

.totem-log {
  min-height: 132px;
  max-height: 190px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: .35rem;
  padding: .85rem;
  color: var(--muted-strong);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .74rem;
}

.totem-admin-link {
  color: #93e7fb;
  text-align: center;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
}

.totem-admin-link:hover {
  color: #fff;
}

.funcionarios-future {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.funcionarios-future .card,
.funcionarios-future .modal-content {
  background: linear-gradient(180deg, rgba(10, 43, 58, .82), rgba(6, 25, 35, .74)) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
  color: var(--ink) !important;
}

.funcionarios-future .form-control,
.funcionarios-future .form-select {
  border-color: rgba(151, 221, 244, .18) !important;
  background-color: rgba(2, 13, 18, .74) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.funcionarios-future .table {
  --bs-table-bg: transparent !important;
  --bs-table-color: #eaf9ff !important;
  --bs-table-hover-bg: rgba(33, 212, 253, .08) !important;
  --bs-table-hover-color: #fff !important;
  color: #eaf9ff !important;
}

.funcionarios-future .btn-primary,
.funcionarios-future .btn-outline-primary {
  border-color: rgba(121, 239, 255, .55) !important;
  background: linear-gradient(135deg, #14c8f4, #1f7aff) !important;
  color: #021018 !important;
  box-shadow: 0 14px 34px rgba(31, 122, 255, .28) !important;
}

.funcionarios-future .btn-outline-secondary {
  border-color: rgba(151, 221, 244, .24) !important;
  background: rgba(255, 255, 255, .035) !important;
  color: #d9f7ff !important;
  box-shadow: none !important;
}

.funcionarios-future .btn-outline-danger {
  border-color: rgba(255, 147, 164, .45) !important;
  background: rgba(255, 95, 117, .08) !important;
  color: #ffd1d8 !important;
  box-shadow: none !important;
}

.funcionarios-future .btn-outline-success {
  border-color: rgba(97, 255, 185, .45) !important;
  background: rgba(37, 211, 148, .1) !important;
  color: #cbffea !important;
  box-shadow: none !important;
}

/* Totem simplificado: foco circular e instrucoes abaixo da camera. */
.totem-screen {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
}

.totem-camera {
  position: relative;
}

.totem-focus-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(145, 236, 255, .96);
  box-shadow:
    0 0 0 120vmax rgba(2, 9, 13, .16),
    0 0 0 16px rgba(33, 212, 253, .08),
    0 0 34px rgba(33, 212, 253, .3),
    inset 0 0 0 2px rgba(255, 255, 255, .12);
  pointer-events: none;
  z-index: 3;
}

.totem-focus-ring::before,
.totem-focus-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 46%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(145, 236, 255, .98), transparent);
  transform: translateX(-50%);
}

.totem-focus-ring::before { top: -12px; }
.totem-focus-ring::after { bottom: -12px; }

.totem-focus-ring.tracking {
  border-color: rgba(145, 236, 255, .98);
  box-shadow:
    0 0 0 120vmax rgba(2, 9, 13, .16),
    0 0 0 16px rgba(33, 212, 253, .1),
    0 0 40px rgba(33, 212, 253, .34),
    inset 0 0 0 2px rgba(255, 255, 255, .16);
}

.totem-focus-ring.focused {
  border-color: rgba(39, 231, 166, .98);
  box-shadow:
    0 0 0 120vmax rgba(2, 9, 13, .16),
    0 0 0 20px rgba(39, 231, 166, .12),
    0 0 56px rgba(39, 231, 166, .48),
    inset 0 0 0 2px rgba(255, 255, 255, .2);
  transform: translate(-50%, -50%) scale(1.02);
}

.totem-instructions {
  margin: .55rem 0 0;
  padding: .9rem 1rem;
  border: 1px solid rgba(151, 221, 244, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
  color: #dffaff;
  font-size: .98rem;
  line-height: 1.4;
}

.totem-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  pointer-events: none;
  z-index: 4;
}

.totem-hud-top,
.totem-hud-bottom {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  max-width: min(92%, 560px);
}

.totem-hud-top {
  align-self: flex-start;
}

.totem-hud-bottom {
  align-self: flex-start;
  padding: 1rem 1.1rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(151, 221, 244, .18);
  background: linear-gradient(180deg, rgba(4, 18, 25, .68), rgba(4, 18, 25, .88));
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.totem-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border: 1px solid rgba(151, 221, 244, .2);
  border-radius: 999px;
  background: rgba(2, 13, 18, .55);
  color: #eafcff;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.totem-chip.subtle {
  color: #a9d9e8;
}

.totem-hud-bottom strong {
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  font-weight: 900;
  line-height: 1.05;
}

.totem-hud-bottom span {
  color: #d5edf5;
  font-size: .98rem;
  line-height: 1.4;
}

.totem-banner {
  display: grid;
  gap: .35rem;
  padding: .9rem .95rem;
  margin-top: .5rem;
  border: 1px solid rgba(151, 221, 244, .2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(9, 52, 68, .92), rgba(4, 24, 32, .94));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

.totem-banner strong {
  font-size: 1.18rem;
  line-height: 1.15;
  color: #f3fcff;
}

.totem-banner span {
  color: #d2f7ff;
  font-size: .98rem;
  line-height: 1.35;
}

.totem-banner[data-kind="success"] {
  border-color: rgba(39, 231, 166, .32);
  background: linear-gradient(180deg, rgba(8, 61, 42, .94), rgba(5, 28, 18, .96));
}

.totem-banner[data-kind="warning"] {
  border-color: rgba(255, 198, 92, .34);
  background: linear-gradient(180deg, rgba(78, 57, 13, .94), rgba(34, 24, 5, .96));
}

.totem-banner[data-kind="danger"] {
  border-color: rgba(255, 95, 117, .34);
  background: linear-gradient(180deg, rgba(82, 15, 31, .96), rgba(35, 7, 14, .98));
}

.totem-banner[data-kind="neutral"] {
  border-color: rgba(151, 221, 244, .2);
}

.totem-checklist.d-none,
.totem-log.d-none {
  display: none !important;
}

.totem-result.success {
  border-color: rgba(37, 211, 148, .55);
  background: linear-gradient(180deg, rgba(8, 61, 42, .8), rgba(6, 35, 24, .9));
}

.totem-result.success strong {
  color: #c7ffe9;
}

@media (max-width: 960px) {
  .totem-panel {
    top: auto;
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    width: auto;
    max-height: 42vh;
    padding: .9rem;
  }

  .totem-focus-ring {
    width: min(64vw, 360px);
  }

  .totem-hud {
    padding: .85rem;
  }
}

@media (max-width: 576px) {
  .totem-panel {
    max-height: 46vh;
    padding: .8rem;
  }

  .totem-panel h1 {
    font-size: 1.7rem;
  }

  .totem-focus-ring {
    width: min(80vw, 320px);
  }

  .totem-hud-bottom strong {
    font-size: 1.28rem;
  }
}

@media (max-width: 1200px) {
  .sidebar {
    width: 268px;
  }

  .content {
    padding: 1rem;
  }
}

@media (max-width: 960px) {
  .layout {
    display: block !important;
  }

  .sidebar {
    display: none;
  }

  .mobile-nav {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .content {
    padding: .85rem;
  }

  .page-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .table {
    min-width: 0;
    width: 100%;
  }

  .btn-lg {
    width: 100%;
  }

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

  .login-visual {
    min-height: 280px;
  }

  .totem-screen {
    grid-template-columns: 1fr;
  }

  .totem-camera,
  .totem-camera video {
    min-height: 54vh;
  }

  .totem-panel {
    min-height: 46vh;
    padding: 1rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .totem-panel h1 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .content {
    padding: .65rem;
  }

  .card-body,
  .login-form-panel,
  .login-visual {
    padding: 1rem !important;
  }

  .table-responsive {
    border-radius: var(--radius);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    font-size: .92rem;
  }

  .table thead th,
  .table tbody td {
    white-space: normal;
    word-break: break-word;
  }

  .table td .d-flex.gap-1,
  .table td .btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .table td .d-flex.gap-1 > *,
  .table td .btn-group > *,
  .table td form {
    width: 100%;
  }

  .table td .btn {
    width: 100%;
  }

  .dashboard-chart {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ultra premium depth layer: visual-only overrides. */
:root {
  --shadow-deep: 18px 18px 42px rgba(0, 4, 8, .46), -10px -10px 30px rgba(75, 210, 255, .045);
  --shadow-lift: 0 32px 80px rgba(0, 10, 18, .48), 0 0 34px rgba(33, 212, 253, .13);
  --edge-glow: 0 0 0 1px rgba(151, 221, 244, .16) inset, 0 0 24px rgba(33, 212, 253, .11);
  --glass-shine: linear-gradient(115deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .035) 30%, transparent 48%);
}

body {
  perspective: 1400px;
}

@keyframes screenFade {
  from { opacity: 0; transform: translateY(10px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes neonPulse {
  0%, 100% { box-shadow: var(--shadow-deep), var(--edge-glow), 0 0 18px rgba(33, 212, 253, .11); }
  50% { box-shadow: var(--shadow-deep), var(--edge-glow), 0 0 38px rgba(33, 212, 253, .24); }
}

@keyframes metricGlow {
  0%, 100% { opacity: .55; transform: translateY(0); }
  50% { opacity: .95; transform: translateY(-4px); }
}

.layout,
.content {
  animation: screenFade .48s ease both;
}

.sidebar {
  box-shadow: 18px 0 50px rgba(0, 0, 0, .25), 9px 0 28px rgba(33, 212, 253, .055);
}

.sidebar::before,
.page-hero::before,
.card::before,
.modal-content::before,
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--glass-shine);
  opacity: .72;
  z-index: 0;
}

.sidebar > *,
.page-hero > *,
.card > *,
.modal-content > *,
.login-card > * {
  position: relative;
  z-index: 1;
}

.brand-mark {
  transform: translateZ(18px);
  box-shadow: 12px 14px 28px rgba(0, 4, 8, .28), 0 0 34px rgba(33, 212, 253, .28), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.sidebar a,
.nav-link-modern {
  min-height: 50px;
  box-shadow: 7px 7px 16px rgba(0, 4, 8, .16), -5px -5px 14px rgba(117, 222, 255, .025);
  transition: transform .3s ease, border-color .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease, filter .3s ease;
}

.sidebar a i,
.nav-link-modern i {
  width: 1.45rem;
  font-size: 1.16rem;
  filter: drop-shadow(0 0 8px rgba(33, 212, 253, .24));
}

.sidebar a:hover,
.nav-link-modern:hover,
.nav-link-modern.active {
  transform: translateX(5px) translateZ(18px);
  box-shadow:
    inset 4px 0 0 rgba(33, 212, 253, .88),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    12px 14px 28px rgba(0, 5, 10, .32),
    0 0 30px rgba(33, 212, 253, .16);
}

.user-chip,
.stat-tile,
.bg-body-tertiary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 10px 12px 24px rgba(0, 6, 10, .22);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.stat-tile:hover,
.bg-body-tertiary:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 212, 253, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 40px rgba(0, 9, 16, .32), 0 0 20px rgba(33, 212, 253, .1);
}

.mobile-nav {
  box-shadow: 0 16px 42px rgba(0, 0, 0, .3), 0 0 28px rgba(33, 212, 253, .08);
}

.card,
.modal-content,
.dropdown-menu {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  box-shadow: var(--shadow-deep), var(--edge-glow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, filter .3s ease;
}

.card::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 10% -1px 10%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(33, 212, 253, .8), transparent);
  opacity: .58;
}

.card:hover {
  transform: translateY(-8px) translateZ(22px);
  border-color: rgba(91, 226, 255, .34);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(151, 221, 244, .2) inset;
  filter: saturate(1.08);
}

.metric {
  min-height: 148px;
  animation: neonPulse 4.8s ease-in-out infinite;
}

.metric::after {
  animation: metricGlow 3.6s ease-in-out infinite;
}

.metric h3,
.metric h5 {
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  font-weight: 900;
  text-shadow: 0 0 22px rgba(33, 212, 253, .2);
}

.kpi-icon {
  width: 54px;
  height: 54px;
  font-size: 1.3rem;
  box-shadow: 12px 14px 28px rgba(0, 4, 8, .28), 0 0 28px rgba(33, 212, 253, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.btn {
  position: relative;
  overflow: hidden;
  transform: translateY(0) translateZ(0);
  box-shadow:
    0 12px 0 rgba(0, 50, 75, .42),
    0 18px 34px rgba(0, 8, 14, .34),
    inset 0 1px 0 rgba(255, 255, 255, .24);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease, background .3s ease, border-color .3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .28), transparent 35%, transparent 64%, rgba(255, 255, 255, .08));
  opacity: .72;
}

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

.btn:hover {
  transform: translateY(-5px) translateZ(18px);
  box-shadow:
    0 16px 0 rgba(0, 50, 75, .36),
    0 30px 58px rgba(0, 8, 14, .42),
    0 0 34px rgba(33, 212, 253, .22),
    inset 0 1px 0 rgba(255, 255, 255, .28);
}

.btn:active {
  transform: translateY(4px) translateZ(0);
  box-shadow:
    0 4px 0 rgba(0, 50, 75, .48),
    0 10px 18px rgba(0, 8, 14, .32),
    inset 0 3px 8px rgba(0, 0, 0, .24);
}

.btn-primary {
  box-shadow:
    0 12px 0 rgba(5, 67, 106, .58),
    0 18px 38px rgba(31, 122, 255, .28),
    0 0 24px rgba(33, 212, 253, .24),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn-success {
  box-shadow:
    0 12px 0 rgba(5, 92, 68, .56),
    0 18px 38px rgba(37, 211, 148, .24),
    0 0 24px rgba(37, 211, 148, .16);
}

.form-control,
.form-select {
  box-shadow: inset 7px 7px 16px rgba(0, 2, 5, .28), inset -4px -4px 12px rgba(91, 226, 255, .035);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.form-control:focus,
.form-select:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 .2rem rgba(33, 212, 253, .16), 0 0 28px rgba(33, 212, 253, .16), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.table-responsive {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.table td {
  transition: background .3s ease, transform .3s ease;
}

.table tbody tr {
  transition: transform .3s ease, filter .3s ease;
}

.table tbody tr:hover {
  transform: translateX(3px);
  filter: brightness(1.08);
}

.badge {
  box-shadow: 0 0 16px rgba(33, 212, 253, .12), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.page-hero {
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .3s ease, box-shadow .3s ease;
}

.page-hero:hover {
  transform: translateY(-4px) translateZ(20px);
}

.dashboard-chart {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -18px 40px rgba(0, 0, 0, .18), 0 18px 46px rgba(0, 5, 10, .2);
}

.chart-bar span {
  box-shadow: 0 0 24px rgba(33, 212, 253, .32), inset 0 1px 0 rgba(255, 255, 255, .45);
  animation: metricGlow 3.4s ease-in-out infinite;
  transition: transform .3s ease, filter .3s ease;
}

.chart-bar:hover span {
  transform: translateY(-7px);
  filter: brightness(1.15);
}

.login-card {
  position: relative;
  transform-style: preserve-3d;
  box-shadow: 28px 32px 90px rgba(0, 4, 8, .52), 0 0 80px rgba(33, 212, 253, .12);
}

.login-logo {
  box-shadow: 14px 16px 32px rgba(0, 4, 8, .34), 0 0 46px rgba(33, 212, 253, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.camera-preview {
  box-shadow: 0 0 0 6px rgba(33, 212, 253, .05), 0 22px 60px rgba(0, 6, 10, .36), 0 0 40px rgba(33, 212, 253, .11);
  transition: transform .3s ease, box-shadow .3s ease;
}

.camera-preview:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 6px rgba(33, 212, 253, .08), 0 32px 80px rgba(0, 6, 10, .46), 0 0 54px rgba(33, 212, 253, .18);
}

.totem-camera::after {
  box-shadow: 0 0 80px rgba(33, 212, 253, .12) inset, 0 0 34px rgba(33, 212, 253, .14);
}

.totem-panel {
  box-shadow: -18px 0 50px rgba(0, 0, 0, .32), -10px 0 40px rgba(33, 212, 253, .06);
}

.totem-identified,
.totem-checklist,
.totem-result,
.totem-log {
  box-shadow: 12px 14px 30px rgba(0, 5, 9, .28), inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 20px rgba(33, 212, 253, .08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.totem-identified:hover,
.totem-checklist:hover,
.totem-result:hover,
.totem-log:hover {
  transform: translateY(-5px);
  border-color: rgba(33, 212, 253, .32);
  box-shadow: 0 24px 52px rgba(0, 5, 9, .38), inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 30px rgba(33, 212, 253, .13);
}

.funcionarios-future .card,
.funcionarios-future .modal-content {
  box-shadow: var(--shadow-deep), var(--edge-glow) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Cinematic command-center layer: holographic visual-only treatment. */
:root {
  --holo-cyan: #54edff;
  --holo-blue: #168dff;
  --holo-ice: #effcff;
  --holo-petrol: #061b25;
  --holo-panel: rgba(7, 31, 43, .58);
  --holo-line: rgba(84, 237, 255, .32);
  --holo-glow: 0 0 22px rgba(84, 237, 255, .22), 0 0 62px rgba(22, 141, 255, .12);
  --holo-depth: 0 34px 90px rgba(0, 8, 15, .58), 18px 18px 44px rgba(0, 3, 7, .42), -12px -12px 34px rgba(84, 237, 255, .045);
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(84, 237, 255, .14), transparent 22rem),
    radial-gradient(circle at 86% 14%, rgba(22, 141, 255, .16), transparent 24rem),
    radial-gradient(circle at 52% 110%, rgba(84, 237, 255, .09), transparent 32rem),
    linear-gradient(145deg, #02070b 0%, #061b25 42%, #02090d 100%);
}

.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle, rgba(84, 237, 255, .42) 0 1px, transparent 1.6px) 0 0 / 92px 92px,
    linear-gradient(120deg, transparent 0 42%, rgba(84, 237, 255, .055) 42.2% 42.5%, transparent 42.8% 100%),
    linear-gradient(60deg, transparent 0 56%, rgba(22, 141, 255, .045) 56.1% 56.4%, transparent 56.7% 100%);
  opacity: .34;
  mask-image: radial-gradient(circle at center, #000 0%, rgba(0, 0, 0, .72) 48%, transparent 88%);
}

.app-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.app-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.05) contrast(1.08) brightness(.74);
  transform: scale(1.03);
  opacity: .96;
}

.app-background-streams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mix-blend-mode: screen;
}

.app-background-stream {
  position: absolute;
  display: block;
  border-radius: 999px;
  opacity: .72;
  filter: blur(.15px);
}

.app-background-stream::before,
.app-background-stream::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.app-background-stream::before {
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(84, 237, 255, .85) 12% 16%, transparent 16% 34%, rgba(22, 141, 255, .88) 34% 38%, transparent 38% 100%);
  box-shadow:
    0 0 14px rgba(84, 237, 255, .48),
    0 0 34px rgba(22, 141, 255, .24);
}

.app-background-stream::after {
  background:
    radial-gradient(circle at 10% 50%, rgba(255, 255, 255, .95) 0 1.5px, transparent 1.8px),
    radial-gradient(circle at 50% 50%, rgba(84, 237, 255, .9) 0 1.2px, transparent 1.5px),
    radial-gradient(circle at 90% 50%, rgba(22, 141, 255, .9) 0 1.4px, transparent 1.7px);
  opacity: .9;
}

.app-background-stream-a {
  width: 160%;
  height: 7px;
  top: 15%;
  left: -26%;
  transform: rotate(-12deg);
  animation: dataFlowA 13s linear infinite;
}

.app-background-stream-b {
  width: 180%;
  height: 5px;
  top: 31%;
  left: -36%;
  transform: rotate(9deg);
  animation: dataFlowB 17s linear infinite;
}

.app-background-stream-c {
  width: 150%;
  height: 6px;
  top: 49%;
  left: -20%;
  transform: rotate(-6deg);
  animation: dataFlowC 11s linear infinite;
}

.app-background-stream-d {
  width: 190%;
  height: 4px;
  top: 68%;
  left: -40%;
  transform: rotate(13deg);
  animation: dataFlowD 19s linear infinite;
}

.content,
.sidebar,
.mobile-nav,
.login-card {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6,
.hero-kicker,
.brand strong,
.metric h3,
.metric h5,
.holo-gauge-core strong {
  font-family: Orbitron, Inter, system-ui, sans-serif;
  letter-spacing: .02em;
}

.content,
.sidebar,
.mobile-nav {
  z-index: 2;
}

.content {
  transform-style: preserve-3d;
}

.content-glow {
  background:
    radial-gradient(circle, rgba(84, 237, 255, .16), transparent 58%),
    conic-gradient(from 180deg, transparent, rgba(84, 237, 255, .08), transparent, rgba(22, 141, 255, .06), transparent);
  filter: blur(2px);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(3, 14, 20, .94), rgba(7, 31, 43, .84)),
    repeating-linear-gradient(90deg, rgba(84, 237, 255, .035) 0 1px, transparent 1px 18px);
  border-right-color: rgba(84, 237, 255, .22);
  transform-style: preserve-3d;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(84, 237, 255, .9), transparent);
  box-shadow: 0 0 28px rgba(84, 237, 255, .6);
}

.brand {
  min-height: 86px;
}

.brand-mark {
  border-color: rgba(84, 237, 255, .48);
  background:
    radial-gradient(circle at 45% 35%, rgba(239, 252, 255, .16), transparent 36%),
    linear-gradient(145deg, rgba(84, 237, 255, .22), rgba(22, 141, 255, .08));
  color: var(--holo-ice);
}

.nav-section {
  color: var(--holo-cyan);
  text-shadow: 0 0 16px rgba(84, 237, 255, .34);
}

.nav-link-modern,
.sidebar a {
  border-color: rgba(84, 237, 255, .08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .035), rgba(84, 237, 255, .018)),
    rgba(1, 8, 12, .12);
}

.nav-link-modern.active,
.nav-link-modern:hover,
.sidebar a:hover {
  background:
    radial-gradient(circle at left, rgba(84, 237, 255, .22), transparent 68%),
    linear-gradient(90deg, rgba(84, 237, 255, .16), rgba(22, 141, 255, .1));
  border-color: rgba(84, 237, 255, .38);
  text-shadow: 0 0 14px rgba(239, 252, 255, .28);
}

.nav-link-modern.active::after,
.sidebar a:hover::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--holo-cyan);
  box-shadow: 0 0 16px rgba(84, 237, 255, .95), 0 0 34px rgba(22, 141, 255, .5);
}

.page-hero {
  min-height: 112px;
  background:
    linear-gradient(120deg, rgba(239, 252, 255, .12), transparent 20%),
    radial-gradient(circle at 0% 50%, rgba(84, 237, 255, .18), transparent 34%),
    linear-gradient(135deg, rgba(7, 31, 43, .74), rgba(4, 14, 20, .6));
  border-color: rgba(84, 237, 255, .26);
  box-shadow: var(--holo-depth), var(--holo-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.page-hero h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
}

.card,
.modal-content,
.dropdown-menu {
  background:
    linear-gradient(125deg, rgba(239, 252, 255, .13), transparent 18%),
    radial-gradient(circle at top left, rgba(84, 237, 255, .13), transparent 34%),
    linear-gradient(180deg, rgba(9, 43, 58, .64), rgba(2, 13, 19, .48));
  border-color: rgba(84, 237, 255, .24);
  box-shadow: var(--holo-depth), var(--holo-glow), inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -18px 48px rgba(0, 0, 0, .24);
  backdrop-filter: blur(22px) saturate(1.25);
}

.card::before,
.modal-content::before,
.page-hero::before,
.login-card::before {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, .2), transparent 18%, transparent 58%, rgba(84, 237, 255, .11) 76%, transparent),
    linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 26%);
}

.card::after,
.page-hero::after {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(84, 237, 255, .95), rgba(239, 252, 255, .7), transparent);
  box-shadow: 0 0 20px rgba(84, 237, 255, .55);
}

.card:hover {
  transform: translateY(-12px) translateZ(34px) scale(1.01);
  border-color: rgba(84, 237, 255, .5);
  box-shadow: 0 44px 110px rgba(0, 8, 15, .62), 0 0 48px rgba(84, 237, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.card:hover::before,
.page-hero:hover::before {
  animation: holoSweep .9s ease both;
}

@keyframes holoSweep {
  from { transform: translateX(-32%); opacity: .38; }
  to { transform: translateX(32%); opacity: .86; }
}

.metric {
  min-height: 168px;
}

.metric .text-muted,
.metric .small {
  text-transform: uppercase;
  font-weight: 900;
}

.metric h3 {
  color: var(--holo-ice);
}

.kpi-icon {
  border-radius: 999px;
  border-color: rgba(84, 237, 255, .36);
  background:
    radial-gradient(circle, rgba(84, 237, 255, .22), transparent 58%),
    rgba(2, 13, 19, .72);
}

.btn {
  min-height: 46px;
  border-color: rgba(84, 237, 255, .34);
  text-transform: none;
  transform-style: preserve-3d;
}

.btn-primary,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-light:hover {
  background:
    linear-gradient(135deg, rgba(239, 252, 255, .26), transparent 22%),
    linear-gradient(135deg, #5bf0ff 0%, #168dff 54%, #064c83 100%);
  color: #021018;
  border-color: rgba(176, 249, 255, .72);
}

.btn:hover {
  transform: translateY(-6px) translateZ(22px) scale(1.025);
  border-color: rgba(176, 249, 255, .78);
}

.btn:active {
  transform: translateY(5px) scale(.985);
}

.form-control,
.form-select,
.totem-form select {
  border-color: rgba(84, 237, 255, .2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    rgba(1, 8, 12, .72);
}

.table thead th {
  background:
    linear-gradient(180deg, rgba(9, 43, 58, .96), rgba(2, 13, 19, .96));
  color: #b9f8ff;
  text-shadow: 0 0 14px rgba(84, 237, 255, .24);
}

.table tbody tr:hover {
  background: rgba(84, 237, 255, .06);
}

.dashboard-chart {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(rgba(84, 237, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 237, 255, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(1, 8, 12, .18));
  background-size: 28px 28px, 28px 28px, auto;
}

.chart-bar span {
  background:
    linear-gradient(180deg, rgba(239, 252, 255, .9), rgba(84, 237, 255, .88) 22%, rgba(22, 141, 255, .55));
  box-shadow: 0 0 28px rgba(84, 237, 255, .42), 0 0 70px rgba(22, 141, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .65);
}

.command-ring-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px)) minmax(280px, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.holo-gauge,
.energy-panel {
  position: relative;
  min-height: 190px;
  border: 1px solid rgba(84, 237, 255, .24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 42%, rgba(84, 237, 255, .13), transparent 45%),
    linear-gradient(180deg, rgba(9, 43, 58, .58), rgba(2, 13, 19, .44));
  box-shadow: var(--holo-depth), var(--holo-glow), inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden;
  backdrop-filter: blur(18px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.holo-gauge:hover,
.energy-panel:hover {
  transform: translateY(-12px) translateZ(30px);
  border-color: rgba(84, 237, 255, .5);
  box-shadow: 0 40px 96px rgba(0, 8, 15, .58), 0 0 44px rgba(84, 237, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.holo-gauge {
  display: grid;
  place-items: center;
}

.holo-gauge::before {
  content: "";
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(2, 13, 19, .9) 0 50%, transparent 51%),
    conic-gradient(from -90deg, rgba(84, 237, 255, .95) calc(var(--value) * 1%), rgba(84, 237, 255, .09) 0);
  box-shadow: 0 0 36px rgba(84, 237, 255, .22), inset 0 0 22px rgba(84, 237, 255, .08);
}

.holo-gauge::after {
  content: "";
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1px dashed rgba(84, 237, 255, .34);
  animation: slowRotate 18s linear infinite;
}

@keyframes slowRotate {
  to { transform: rotate(360deg); }
}

.holo-gauge-core {
  position: absolute;
  display: grid;
  place-items: center;
  gap: .15rem;
  text-align: center;
}

.holo-gauge-core strong {
  color: var(--holo-ice);
  font-size: 2rem;
  text-shadow: 0 0 22px rgba(84, 237, 255, .34);
}

.holo-gauge-core span,
.energy-header span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.energy-panel {
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr;
}

.energy-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.energy-header strong {
  color: var(--holo-cyan);
  text-shadow: 0 0 18px rgba(84, 237, 255, .42);
  font-family: Orbitron, Inter, sans-serif;
}

.energy-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .55rem;
  align-items: end;
  min-height: 132px;
  padding-top: 1rem;
}

.energy-bars i {
  height: var(--h);
  min-height: 28px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(239, 252, 255, .92), rgba(84, 237, 255, .82), rgba(22, 141, 255, .42));
  box-shadow: 0 0 22px rgba(84, 237, 255, .36), inset 0 1px 0 rgba(255, 255, 255, .65);
  animation: energyPulse 2.8s ease-in-out infinite;
}

.energy-bars i:nth-child(2n) {
  animation-delay: .25s;
}

.energy-bars i:nth-child(3n) {
  animation-delay: .5s;
}

@keyframes energyPulse {
  0%, 100% { filter: brightness(1); transform: scaleY(1); }
  50% { filter: brightness(1.2); transform: scaleY(1.04); }
}

.login-card,
.totem-identified,
.totem-checklist,
.totem-result,
.totem-log {
  border-color: rgba(84, 237, 255, .26);
  box-shadow: var(--holo-depth), var(--holo-glow), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.totem-camera::after {
  border-color: rgba(84, 237, 255, .34);
}

@media (max-width: 960px) {
  .command-ring-grid {
    grid-template-columns: 1fr;
  }

  .holo-gauge,
  .energy-panel {
    min-height: 170px;
  }
}

/* Final 3D futuristic layout polish. Visual-only. */
.app-shell {
  min-height: 100vh;
  isolation: isolate;
}

.app-shell::before {
  opacity: .7;
  background-image:
    linear-gradient(rgba(84, 237, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 237, 255, .04) 1px, transparent 1px),
    radial-gradient(circle at 20% 18%, rgba(84, 237, 255, .18), transparent 22rem),
    radial-gradient(circle at 82% 8%, rgba(22, 141, 255, .14), transparent 24rem);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.content {
  padding: 1.6rem;
}

.sidebar {
  border-right: 1px solid rgba(84, 237, 255, .32);
  box-shadow:
    26px 0 70px rgba(0, 4, 9, .46),
    0 0 42px rgba(84, 237, 255, .08),
    inset -1px 0 0 rgba(255, 255, 255, .08);
}

.brand {
  border-bottom: 1px solid rgba(84, 237, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), transparent);
}

.sidebar-scroll {
  padding-top: .75rem;
}

.nav-link-modern,
.sidebar a {
  margin-block: .28rem;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .012)),
    radial-gradient(circle at left center, rgba(84, 237, 255, .08), transparent 62%);
  box-shadow:
    10px 12px 24px rgba(0, 4, 8, .26),
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -8px 18px rgba(0, 0, 0, .14);
}

.nav-link-modern:hover,
.nav-link-modern.active,
.sidebar a:hover {
  filter: brightness(1.13);
  letter-spacing: 0;
}

.nav-link-modern.active {
  border-color: rgba(84, 237, 255, .58);
  background:
    linear-gradient(145deg, rgba(84, 237, 255, .22), rgba(22, 141, 255, .1)),
    rgba(255, 255, 255, .04);
}

.card,
.page-hero,
.holo-gauge,
.energy-panel,
.login-card,
.totem-identified,
.totem-checklist,
.totem-result,
.totem-log {
  border-radius: 12px;
}

.card,
.page-hero {
  border-width: 1px;
  outline: 1px solid rgba(255, 255, 255, .035);
  outline-offset: -3px;
}

.card:hover,
.page-hero:hover {
  outline-color: rgba(84, 237, 255, .18);
}

.card-body {
  z-index: 2;
}

.metric h3,
.holo-gauge-core strong {
  line-height: 1;
}

.btn {
  border-radius: 11px;
  border-width: 1px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .22);
  will-change: transform;
}

.btn i {
  filter: drop-shadow(0 0 7px rgba(84, 237, 255, .38));
}

.btn-outline-danger {
  color: #f3fbff;
  border-color: rgba(84, 237, 255, .22);
  background: rgba(84, 237, 255, .045);
}

.btn-danger,
.btn-outline-danger:hover {
  background:
    linear-gradient(135deg, rgba(239, 252, 255, .18), transparent 22%),
    linear-gradient(135deg, #66efff, #176fb9);
  border-color: rgba(176, 249, 255, .58);
  color: #021018;
}

.table-responsive,
.form-control,
.form-select,
.alert,
.badge,
.modal-content {
  border-radius: 10px;
}

.dashboard-chart,
.energy-panel,
.holo-gauge {
  transform-style: preserve-3d;
}

.dashboard-chart::after,
.energy-panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(84, 237, 255, .1);
  border-radius: 10px;
  box-shadow: inset 0 0 32px rgba(84, 237, 255, .055);
}

.quick-actions .btn {
  justify-content: flex-start;
  padding-left: 1rem;
}

.login-page {
  background:
    radial-gradient(circle at 26% 20%, rgba(84, 237, 255, .16), transparent 22rem),
    radial-gradient(circle at 86% 20%, rgba(22, 141, 255, .14), transparent 24rem),
    linear-gradient(135deg, rgba(2, 7, 11, .98), rgba(6, 27, 37, .92));
}

.totem-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 22%),
    linear-gradient(180deg, rgba(6, 25, 35, .96), rgba(2, 9, 13, .98));
}

/* Totem cinematic override: full-bleed portal with floating 3D control tower. */
@keyframes totemPortalPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .72; }
  50% { transform: translate(-50%, -50%) scale(1.045); opacity: 1; }
}

@keyframes totemScanMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 160px, 0 0; }
}

@keyframes totemFloat {
  0%, 100% { transform: perspective(1800px) rotateY(12deg) rotateX(4deg) translateY(0); }
  50% { transform: perspective(1800px) rotateY(11deg) rotateX(5deg) translateY(-6px); }
}

.terminal-body {
  overflow: hidden;
}

.terminal-body .totem-screen {
  position: relative;
  min-height: 100vh;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(84, 237, 255, .12), transparent 26rem),
    radial-gradient(circle at 80% 20%, rgba(22, 141, 255, .14), transparent 24rem),
    radial-gradient(circle at 50% 104%, rgba(84, 237, 255, .08), transparent 30rem),
    linear-gradient(135deg, #02070b 0%, #03131b 42%, #02070b 100%);
}

.terminal-body .totem-screen::before,
.terminal-body .totem-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.terminal-body .totem-screen::before {
  background:
    radial-gradient(circle at center, transparent 0 34%, rgba(0, 0, 0, .18) 56%, rgba(0, 0, 0, .58) 100%),
    radial-gradient(circle at 50% 40%, rgba(84, 237, 255, .16), transparent 32%);
  z-index: 1;
}

.terminal-body .totem-screen::after {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(84, 237, 255, .08) 42.15% 42.35%, transparent 42.5% 100%),
    linear-gradient(60deg, transparent 0 56%, rgba(22, 141, 255, .045) 56.1% 56.3%, transparent 56.6% 100%);
  opacity: .6;
  z-index: 2;
}

.terminal-body .totem-camera {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  overflow: hidden;
  transform: translateZ(0);
  z-index: 0;
}

.terminal-body .totem-camera video {
  min-height: 100vh;
  filter: saturate(1.05) contrast(1.12) brightness(.72) blur(.2px);
  transform: scale(1.03);
}

.terminal-body .totem-camera::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(84, 237, 255, .18), transparent 20rem),
    radial-gradient(circle at center, transparent 0 24%, rgba(1, 6, 8, .14) 40%, rgba(1, 6, 8, .72) 100%);
  z-index: 1;
}

.terminal-body .totem-camera::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, .04) 0,
      rgba(255, 255, 255, .04) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: .14;
  mix-blend-mode: screen;
  z-index: 3;
}

.terminal-body .totem-portal,
.terminal-body .totem-scanlines,
.terminal-body .totem-grid,
.terminal-body .totem-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.terminal-body .totem-portal {
  width: min(68vw, 860px);
  height: min(68vw, 860px);
  border-radius: 50%;
  border: 1px solid rgba(84, 237, 255, .16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 0 0 10px rgba(84, 237, 255, .03),
    0 0 80px rgba(84, 237, 255, .12),
    0 0 180px rgba(22, 141, 255, .08);
  background:
    radial-gradient(circle at center, rgba(84, 237, 255, .1), transparent 48%),
    radial-gradient(circle at center, transparent 0 58%, rgba(84, 237, 255, .16) 59% 61%, transparent 62% 100%);
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  animation: totemPortalPulse 5.2s ease-in-out infinite;
  mix-blend-mode: screen;
}

.terminal-body .totem-scanlines {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(84, 237, 255, .08) 0,
      rgba(84, 237, 255, .08) 1px,
      transparent 1px,
      transparent 6px
    ),
    linear-gradient(180deg, transparent 0 12%, rgba(3, 11, 16, .18) 12% 88%, transparent 100%);
  opacity: .22;
  animation: totemScanMove 12s linear infinite;
}

.terminal-body .totem-grid {
  background:
    linear-gradient(rgba(84, 237, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 237, 255, .08) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, #000 0%, rgba(0, 0, 0, .72) 48%, transparent 88%);
  opacity: .18;
}

.terminal-body .totem-corners {
  color: rgba(144, 243, 255, .9);
  background:
    linear-gradient(currentColor, currentColor) 18px 18px / 72px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 18px 18px / 3px 72px no-repeat,
    linear-gradient(currentColor, currentColor) calc(100% - 18px) 18px / 72px 3px no-repeat,
    linear-gradient(currentColor, currentColor) calc(100% - 21px) 18px / 3px 72px no-repeat,
    linear-gradient(currentColor, currentColor) 18px calc(100% - 18px) / 72px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 18px calc(100% - 21px) / 3px 72px no-repeat,
    linear-gradient(currentColor, currentColor) calc(100% - 18px) calc(100% - 18px) / 72px 3px no-repeat,
    linear-gradient(currentColor, currentColor) calc(100% - 21px) calc(100% - 21px) / 3px 72px no-repeat;
  opacity: .72;
}

.terminal-body .totem-hud {
  display: none;
}

.terminal-body .totem-message-stack {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  width: min(92vw, 860px);
  display: grid;
  gap: .28rem;
  transform: translateX(-50%);
  z-index: 6;
}

.terminal-body .totem-hud-top {
  display: none;
}

.terminal-body .totem-hud-bottom {
  display: none;
}

.terminal-body .totem-banner {
  display: grid;
  gap: .12rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.terminal-body .totem-result {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.terminal-body .totem-panel {
  top: auto;
  right: auto;
  left: 1.15rem;
  bottom: 1.15rem;
  width: min(31vw, 420px);
  max-height: calc(100vh - 2.3rem);
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 30px;
  border: 1px solid rgba(151, 221, 244, .2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 24%),
    linear-gradient(180deg, rgba(6, 25, 35, .94), rgba(2, 9, 13, .98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .5), 0 0 52px rgba(84, 237, 255, .1);
  backdrop-filter: blur(26px) saturate(1.25);
  transform-style: preserve-3d;
  transform: perspective(1800px) rotateY(12deg) rotateX(4deg) translateZ(0);
  transform-origin: left center;
  animation: totemFloat 7s ease-in-out infinite;
  z-index: 6;
}

.terminal-body .totem-panel::before,
.terminal-body .totem-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.terminal-body .totem-panel::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02) 22%, transparent 38%);
  opacity: .7;
}

.terminal-body .totem-panel::after {
  inset: 12px;
  border: 1px solid rgba(84, 237, 255, .12);
  box-shadow: inset 0 0 30px rgba(84, 237, 255, .05);
}

.terminal-body .totem-panel > * {
  position: relative;
  z-index: 1;
}

.terminal-body .totem-kicker {
  color: #95f1ff;
  font-size: .7rem;
  letter-spacing: 0;
}

.terminal-body .totem-panel h1 {
  margin: .2rem 0 .35rem;
  font-size: clamp(2rem, 2.5vw, 2.55rem);
  line-height: .96;
  text-wrap: balance;
}

.terminal-body .totem-status {
  color: #d8f7ff;
  font-size: .96rem;
  line-height: 1.35;
}

.terminal-body .totem-instructions {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
  border-color: rgba(151, 221, 244, .16);
  color: #effdff;
}

.terminal-body .totem-form select {
  min-height: 50px;
  border-radius: 18px;
  background: rgba(2, 13, 18, .92);
}

.terminal-body .totem-identified,
.terminal-body .totem-checklist,
.terminal-body .totem-result,
.terminal-body .totem-log {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 28%),
    rgba(255, 255, 255, .035);
  border: 1px solid rgba(151, 221, 244, .14);
}

.terminal-body .totem-result {
  min-height: 150px;
}

.terminal-body .totem-result strong {
  font-size: 1.18rem;
  letter-spacing: 0;
}

.terminal-body .totem-result span {
  font-size: .95rem;
  font-weight: 700;
}

.terminal-body .totem-result small {
  font-size: .88rem;
}

.terminal-body .totem-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .65rem 1rem;
  border: 1px solid rgba(151, 221, 244, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.terminal-body .totem-admin-link:hover {
  background: rgba(84, 237, 255, .08);
  border-color: rgba(140, 246, 255, .48);
}

@media (max-width: 960px) {
  .terminal-body .totem-hud {
    padding: .65rem;
  }

  .terminal-body .totem-hud-top {
    display: none;
  }

  .terminal-body .totem-hud-bottom {
    max-width: 94vw;
    padding: .85rem .95rem;
    border-radius: 20px;
  }

  .terminal-body .totem-panel {
    left: .8rem;
    right: .8rem;
    bottom: .8rem;
    width: auto;
    max-height: 44vh;
    transform: none;
    animation: none;
  }

  .terminal-body .totem-message-stack {
    width: min(92vw, 760px);
    bottom: max(.7rem, env(safe-area-inset-bottom, .7rem));
  }

  .terminal-body .totem-portal {
    width: min(64vw, 640px);
    height: min(64vw, 640px);
  }

  .terminal-body .totem-focus-ring {
    width: min(56vw, 300px);
  }
}

@media (max-width: 576px) {
  .terminal-body .totem-hud {
    padding: .5rem;
  }

  .terminal-body .totem-hud-bottom {
    padding: .8rem .9rem;
    border-radius: 18px;
  }

  .terminal-body .totem-message-stack {
    width: min(94vw, 640px);
    bottom: max(.55rem, env(safe-area-inset-bottom, .55rem));
  }

  .terminal-body .totem-hud-bottom strong {
    font-size: 1.1rem;
  }

  .terminal-body .totem-hud-bottom span {
    font-size: .9rem;
  }

  .terminal-body .totem-portal {
    width: min(72vw, 420px);
    height: min(72vw, 420px);
  }

  .terminal-body .totem-focus-ring {
    width: min(68vw, 280px);
  }
}

@media (max-width: 960px) {
  .content {
    padding: .9rem;
  }

  .card:hover,
  .page-hero:hover,
  .holo-gauge:hover,
  .energy-panel:hover {
    transform: translateY(-4px);
  }
}

/* Leve inclinacao 3D solicitada para menu lateral e atalhos rapidos. */
@media (min-width: 961px) {
  .sidebar {
    transform: perspective(1500px) rotateY(-4.5deg) translateZ(0);
    transform-origin: left center;
    transition: transform .3s ease, box-shadow .3s ease;
    margin-right: .35rem;
  }

  .sidebar:hover {
    transform: perspective(1500px) rotateY(-2deg) translateX(3px) translateZ(10px);
    box-shadow:
      34px 0 90px rgba(0, 4, 9, .54),
      0 0 58px rgba(84, 237, 255, .14),
      inset -1px 0 0 rgba(255, 255, 255, .1);
  }

  .sidebar .brand,
  .sidebar .sidebar-scroll,
  .sidebar .sidebar-footer {
    transform: translateZ(18px);
  }

  .quick-actions {
    perspective: 1000px;
    transform: perspective(1200px) rotateY(5deg) translateZ(12px);
    transform-origin: right center;
    filter: drop-shadow(-18px 20px 28px rgba(0, 5, 10, .32));
    transition: transform .3s ease, filter .3s ease;
  }

  .quick-actions:hover {
    transform: perspective(1200px) rotateY(2deg) translateY(-4px) translateZ(24px);
    filter: drop-shadow(-22px 26px 36px rgba(0, 5, 10, .42)) drop-shadow(0 0 20px rgba(84, 237, 255, .14));
  }

  .quick-actions .btn {
    transform: perspective(1000px) rotateY(-7deg) translateZ(0);
    transform-origin: left center;
  }

  .quick-actions .btn:hover {
    transform: perspective(1000px) rotateY(-3deg) translateY(-6px) translateZ(22px) scale(1.025);
  }

  .quick-actions .btn:active {
    transform: perspective(1000px) rotateY(-3deg) translateY(4px) scale(.985);
  }
}

/* Holographic depth refinement for dashboard/menu without changing behavior. */
.sidebar .nav-link-modern,
.sidebar a {
  border: 1px solid rgba(84, 237, 255, .24);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .025) 28%, rgba(84, 237, 255, .045)),
    rgba(4, 19, 27, .56);
  box-shadow:
    0 14px 28px rgba(0, 5, 10, .28),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -12px 24px rgba(0, 0, 0, .18),
    0 0 18px rgba(84, 237, 255, .055);
}

.sidebar .nav-link-modern:hover,
.sidebar .nav-link-modern.active,
.sidebar a:hover {
  border-color: rgba(140, 246, 255, .72);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .18), rgba(84, 237, 255, .14) 34%, rgba(22, 141, 255, .1)),
    rgba(4, 19, 27, .72);
  box-shadow:
    0 20px 40px rgba(0, 5, 10, .38),
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -14px 30px rgba(0, 0, 0, .2),
    0 0 26px rgba(84, 237, 255, .22),
    0 0 54px rgba(22, 141, 255, .12);
}

.sidebar .nav-link-modern span,
.sidebar a {
  text-shadow: 0 0 10px rgba(84, 237, 255, .12);
}

.card,
.metric,
.page-hero,
.holo-gauge,
.energy-panel {
  border-color: rgba(84, 237, 255, .3);
  box-shadow:
    0 34px 80px rgba(0, 8, 15, .5),
    0 0 36px rgba(84, 237, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -20px 48px rgba(0, 0, 0, .24);
}

.card:hover,
.metric:hover,
.holo-gauge:hover,
.energy-panel:hover {
  border-color: rgba(140, 246, 255, .62);
  box-shadow:
    0 46px 112px rgba(0, 8, 15, .6),
    0 0 54px rgba(84, 237, 255, .22),
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -22px 52px rgba(0, 0, 0, .22);
}

.quick-actions .btn {
  border: 1px solid rgba(84, 237, 255, .34);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .16), rgba(84, 237, 255, .1), rgba(22, 141, 255, .08)),
    rgba(4, 19, 27, .72);
  color: #effcff;
  box-shadow:
    0 14px 0 rgba(2, 35, 54, .54),
    0 24px 44px rgba(0, 6, 12, .38),
    0 0 22px rgba(84, 237, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .22);
}

.quick-actions .btn:hover {
  color: #ffffff;
  border-color: rgba(140, 246, 255, .72);
  box-shadow:
    0 18px 0 rgba(2, 35, 54, .48),
    0 34px 62px rgba(0, 6, 12, .48),
    0 0 36px rgba(84, 237, 255, .24),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* Ajuste de perspectiva: efeito de tres telas voltadas para dentro. */
@media (min-width: 961px) {
  .layout {
    perspective: 1800px;
    perspective-origin: center center;
  }

  .sidebar {
    transform: perspective(1600px) rotateY(5deg) translateZ(0);
    transform-origin: right center;
  }

  .sidebar:hover {
    transform: perspective(1600px) rotateY(2.5deg) translateX(2px) translateZ(12px);
  }

  .content {
    transform-style: preserve-3d;
  }

  .content > .page-hero,
  .content > .row,
  .content > .command-ring-grid {
    transform: translateZ(6px);
  }

  .quick-actions {
    transform: perspective(1200px) rotateY(-6deg) translateZ(12px);
    transform-origin: left center;
  }

  .quick-actions:hover {
    transform: perspective(1200px) rotateY(-2.5deg) translateY(-4px) translateZ(24px);
  }

  .quick-actions .btn {
    transform: perspective(1000px) rotateY(-5deg) translateZ(0);
    transform-origin: left center;
  }

  .quick-actions .btn:hover {
    transform: perspective(1000px) rotateY(-2deg) translateY(-6px) translateZ(22px) scale(1.025);
  }
}

/* Camada VR/cockpit 3D: somente visual. */
@media (min-width: 961px) {
  body {
    perspective: 2200px;
    perspective-origin: 50% 46%;
  }

  .layout {
    transform-style: preserve-3d;
  }

  .content {
    transform: translateZ(24px);
  }

  .content::before {
    content: "";
    position: fixed;
    inset: 1.1rem 1.1rem 1.1rem 0;
    pointer-events: none;
    border: 1px solid rgba(84, 237, 255, .1);
    border-radius: 18px;
    box-shadow:
      inset 0 0 80px rgba(84, 237, 255, .055),
      inset 0 0 180px rgba(22, 141, 255, .035);
    transform: translateZ(-80px);
    z-index: 0;
  }

  .sidebar {
    transform: perspective(1800px) rotateY(8deg) translateZ(18px);
    filter: drop-shadow(28px 22px 32px rgba(0, 5, 12, .42));
  }

  .sidebar:hover {
    transform: perspective(1800px) rotateY(4deg) translateX(2px) translateZ(32px);
  }

  .page-hero {
    transform: translateZ(46px);
  }

  .row.g-3.mb-3 {
    transform: translateZ(32px);
  }

  .command-ring-grid {
    transform: translateZ(18px);
  }

  .row.g-3 > .col-xl-8 {
    transform: perspective(1600px) rotateY(1.5deg) translateZ(20px);
    transform-origin: center center;
  }

  .row.g-3 > .col-xl-4 {
    transform: perspective(1600px) rotateY(-5deg) translateZ(28px);
    transform-origin: left center;
  }

  .quick-actions {
    transform: perspective(1400px) rotateY(-9deg) translateZ(34px);
  }

  .quick-actions:hover {
    transform: perspective(1400px) rotateY(-4deg) translateY(-6px) translateZ(54px);
  }

  .card,
  .holo-gauge,
  .energy-panel,
  .page-hero {
    transform-style: preserve-3d;
  }

  .card::after,
  .holo-gauge::after,
  .energy-panel::after {
    transform: translateZ(16px);
  }

  .metric:nth-child(1) .card { transform: translateZ(20px); }
  .metric:nth-child(2) .card { transform: translateZ(34px); }
  .metric:nth-child(3) .card { transform: translateZ(26px); }
  .metric:nth-child(4) .card { transform: translateZ(40px); }
}

.card,
.page-hero,
.holo-gauge,
.energy-panel {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .18), transparent 16%, rgba(84, 237, 255, .045) 42%, transparent 70%),
    radial-gradient(circle at 50% -10%, rgba(84, 237, 255, .18), transparent 40%),
    linear-gradient(180deg, rgba(8, 37, 52, .68), rgba(1, 9, 14, .52));
}

.card:hover,
.page-hero:hover,
.holo-gauge:hover,
.energy-panel:hover {
  transform: translateY(-14px) translateZ(64px) scale(1.012);
  box-shadow:
    0 58px 128px rgba(0, 8, 15, .68),
    0 0 70px rgba(84, 237, 255, .28),
    0 0 140px rgba(22, 141, 255, .1),
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -24px 60px rgba(0, 0, 0, .24);
}

.btn {
  transform-style: preserve-3d;
}

.btn:hover {
  transform: translateY(-7px) translateZ(36px) scale(1.035);
}

.btn:active {
  transform: translateY(5px) translateZ(8px) scale(.98);
}

.app-shell::after {
  background:
    radial-gradient(circle, rgba(84, 237, 255, .42) 0 1px, transparent 1.6px) 0 0 / 92px 92px,
    radial-gradient(circle, rgba(239, 252, 255, .18) 0 1px, transparent 1.4px) 46px 34px / 140px 140px,
    linear-gradient(120deg, transparent 0 42%, rgba(84, 237, 255, .055) 42.2% 42.5%, transparent 42.8% 100%),
    linear-gradient(60deg, transparent 0 56%, rgba(22, 141, 255, .045) 56.1% 56.4%, transparent 56.7% 100%);
}

/* Sem inclinacao: 3D por profundidade, sombra e holograma. */
@media (min-width: 961px) {
  .sidebar,
  .sidebar:hover,
  .quick-actions,
  .quick-actions:hover,
  .quick-actions .btn,
  .quick-actions .btn:hover,
  .row.g-3 > .col-xl-8,
  .row.g-3 > .col-xl-4,
  .page-hero,
  .row.g-3.mb-3,
  .command-ring-grid,
  .content {
    rotate: none;
  }

  .sidebar {
    transform: translateZ(24px);
    margin-right: 0;
    box-shadow:
      28px 0 74px rgba(0, 4, 9, .56),
      12px 0 32px rgba(0, 0, 0, .38),
      0 0 46px rgba(84, 237, 255, .12),
      inset -1px 0 0 rgba(255, 255, 255, .12),
      inset -18px 0 34px rgba(84, 237, 255, .035);
  }

  .sidebar:hover {
    transform: translateZ(34px);
    box-shadow:
      34px 0 92px rgba(0, 4, 9, .62),
      16px 0 42px rgba(0, 0, 0, .44),
      0 0 60px rgba(84, 237, 255, .18),
      inset -1px 0 0 rgba(255, 255, 255, .16),
      inset -20px 0 42px rgba(84, 237, 255, .055);
  }

  .quick-actions {
    transform: translateZ(26px);
    filter: drop-shadow(0 24px 34px rgba(0, 5, 10, .38)) drop-shadow(0 0 20px rgba(84, 237, 255, .1));
  }

  .quick-actions:hover {
    transform: translateY(-4px) translateZ(38px);
    filter: drop-shadow(0 32px 42px rgba(0, 5, 10, .46)) drop-shadow(0 0 28px rgba(84, 237, 255, .16));
  }

  .quick-actions .btn {
    transform: translateZ(0);
  }

  .quick-actions .btn:hover {
    transform: translateY(-6px) translateZ(24px) scale(1.025);
  }

  .quick-actions .btn:active {
    transform: translateY(4px) translateZ(6px) scale(.985);
  }

  .row.g-3 > .col-xl-8,
  .row.g-3 > .col-xl-4 {
    transform: translateZ(18px);
  }
}

.sidebar .nav-link-modern,
.sidebar a {
  box-shadow:
    0 16px 30px rgba(0, 5, 10, .34),
    0 6px 12px rgba(0, 0, 0, .22),
    0 0 18px rgba(84, 237, 255, .08),
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -12px 24px rgba(0, 0, 0, .2);
}

.sidebar .nav-link-modern:hover,
.sidebar .nav-link-modern.active,
.sidebar a:hover {
  transform: translateX(4px) translateZ(20px);
  box-shadow:
    0 24px 46px rgba(0, 5, 10, .44),
    0 10px 18px rgba(0, 0, 0, .26),
    0 0 30px rgba(84, 237, 255, .24),
    0 0 64px rgba(22, 141, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -14px 30px rgba(0, 0, 0, .24);
}

/* Atalhos rapidos com o mesmo visual dos Recursos ativos. */
.quick-actions {
  gap: .5rem;
}

.quick-actions .btn {
  min-height: auto;
  justify-content: flex-start;
  padding: .5rem;
  border: 1px solid rgba(151, 221, 244, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045) !important;
  color: var(--ink) !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    10px 12px 24px rgba(0, 6, 10, .22) !important;
  text-shadow: none;
}

.quick-actions .btn::before {
  opacity: 0;
}

.quick-actions .btn i {
  color: var(--holo-cyan);
  filter: none;
}

.quick-actions .btn:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 212, 253, .32);
  background: rgba(255, 255, 255, .055) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 18px 40px rgba(0, 9, 16, .32),
    0 0 20px rgba(33, 212, 253, .1) !important;
}

.quick-actions .btn:active {
  transform: translateY(1px);
}

/* Mantem "Aprovacoes da Chefia" em uma linha no menu lateral. */
.sidebar a[href*="batidas-pendentes"],
.sidebar a[href*="batidas-pendentes"] span {
  white-space: nowrap;
  font-size: .84rem;
}

/* Acoes de funcionarios sempre visiveis e diretas. */
.funcionario-actions-cell {
  position: sticky;
  right: 0;
  z-index: 3;
  min-width: 190px;
  background:
    linear-gradient(90deg, rgba(3, 16, 22, .72), rgba(5, 28, 39, .98) 24%),
    rgba(5, 28, 39, .96);
  box-shadow: -16px 0 30px rgba(0, 5, 10, .32);
}

.funcionario-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .35rem;
}

.funcionario-actions .btn {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  padding: .35rem .55rem;
  font-size: .78rem;
  white-space: nowrap;
}

.funcionario-actions .btn i {
  width: 1rem;
  text-align: center;
}

/* Modais de captura facial ajustados para caber inteiros no PC. */
#fotoFacialModal .capture-photo-dialog,
#videoFacialModal .capture-video-dialog {
  width: min(96vw, 1120px);
  max-width: min(96vw, 1120px);
  margin: .75rem auto;
}

#fotoFacialModal .modal-content,
#videoFacialModal .modal-content {
  max-height: calc(100vh - 1.5rem);
  display: flex;
  overflow: hidden;
}

#fotoFacialModal .modal-header,
#fotoFacialModal .modal-footer,
#videoFacialModal .modal-header,
#videoFacialModal .modal-footer {
  flex: 0 0 auto;
  padding-block: .7rem;
}

#fotoFacialModal .modal-body,
#videoFacialModal .modal-body {
  overflow: auto;
  padding: .85rem;
}

#fotoFacialModal .camera-preview,
#fotoFacialPreview {
  width: 100%;
  min-height: 0 !important;
  height: auto;
  max-height: min(58vh, 520px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #02090d;
}

#videoFacialModal .camera-preview {
  width: 100%;
  min-height: 0 !important;
  height: auto;
  max-height: min(52vh, 460px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #02090d;
}

#fotoFacialStatus,
#videoFacialStatus,
#videoFacialInstrucao {
  margin-bottom: 0;
}

@media (max-height: 760px) {
  #fotoFacialModal .camera-preview,
  #fotoFacialPreview {
    max-height: 46vh;
  }

  #videoFacialModal .camera-preview {
    max-height: 42vh;
  }
}

/* Painel compacto com profundidade 3D controlada. */
:root {
  --shadow: 0 12px 28px rgba(0, 0, 0, .26);
  --shadow-3d: 0 10px 0 rgba(1, 28, 39, .34), 0 18px 34px rgba(0, 0, 0, .34);
  --radius: 8px;
}

.app-shell {
  font-size: .875rem;
  perspective: 1400px;
}

.app-shell .content {
  padding: 1rem;
}

.app-shell h1,
.app-shell .h1 {
  font-size: 1.62rem;
}

.app-shell h2,
.app-shell .h2 {
  font-size: 1.34rem;
}

.app-shell h3,
.app-shell .h3 {
  font-size: 1.12rem;
}

.app-shell h4,
.app-shell .h4 {
  font-size: 1rem;
}

.app-shell h5,
.app-shell .h5 {
  font-size: .94rem;
}

.app-shell h1,
.app-shell h2,
.app-shell h3,
.app-shell .card-title,
.app-shell .metric h3,
.app-shell .fw-bold {
  font-family: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(1, 29, 41, .95),
    0 2px 0 rgba(0, 54, 71, .78),
    0 4px 8px rgba(0, 0, 0, .34),
    0 0 18px rgba(76, 230, 255, .2);
}

.app-shell .small,
.app-shell small,
.app-shell .text-muted {
  font-size: .78rem;
}

.app-shell .page-hero,
.app-shell .card,
.app-shell .metric,
.app-shell .alert,
.app-shell .modal-content,
.app-shell .dropdown-menu,
.app-shell .list-group-item,
.app-shell .table-card,
.app-shell .glass-card {
  border-radius: 8px !important;
}

.app-shell .card,
.app-shell .metric,
.app-shell .page-hero {
  box-shadow: var(--shadow-3d);
  transform-style: preserve-3d;
}

.app-shell .card::before,
.app-shell .metric::before,
.app-shell .page-hero::before {
  height: 2px;
  opacity: .7;
}

.app-shell .card-body {
  padding: .72rem .82rem;
}

.app-shell .card-header,
.app-shell .card-footer {
  padding: .62rem .82rem;
}

.app-shell .page-hero {
  padding: .95rem 1.05rem;
  margin-bottom: .9rem;
}

.app-shell .metric {
  min-height: 86px;
  padding: .76rem;
}

.app-shell .metric h3,
.app-shell .metric .h3,
.app-shell .metric h5 {
  font-size: 1.18rem;
  line-height: 1.08;
}

.app-shell .kpi-icon,
.app-shell .avatar,
.app-shell .avatar-sm {
  width: 32px;
  height: 32px;
  font-size: .88rem;
}

.app-shell .btn {
  min-height: 34px;
  padding: .36rem .66rem;
  font-size: .8rem;
  border-radius: 8px;
}

.app-shell .btn-sm {
  min-height: 30px;
  padding: .28rem .52rem;
  font-size: .74rem;
}

.app-shell .form-control,
.app-shell .form-select,
.app-shell .input-group-text {
  min-height: 34px;
  padding: .34rem .55rem;
  font-size: .82rem;
  border-radius: 8px;
}

.app-shell .form-label {
  margin-bottom: .28rem;
  font-size: .78rem;
}

.app-shell .badge {
  padding: .28rem .45rem;
  font-size: .68rem;
  border-radius: 8px;
}

.app-shell .table {
  font-size: .78rem;
}

.app-shell .table thead th {
  padding: .44rem .55rem;
  font-size: .66rem;
}

.app-shell .table tbody td {
  padding: .42rem .55rem;
}

.app-shell .list-group-item {
  padding: .55rem .72rem;
}

.app-shell .quick-actions {
  gap: .45rem;
}

.app-shell .quick-actions .btn {
  padding: .44rem .62rem;
}

@media (min-width: 961px) {
  .app-shell .card:hover,
  .app-shell .metric:hover,
  .app-shell .page-hero:hover {
    transform: translateY(-4px) translateZ(18px) scale(1.004);
    box-shadow: 0 13px 0 rgba(1, 28, 39, .38), 0 24px 44px rgba(0, 0, 0, .38);
  }
}

@media (max-width: 768px) {
  .app-shell .content {
    padding: .75rem;
  }

  .app-shell h1,
  .app-shell .h1 {
    font-size: 1.38rem;
  }

  .app-shell .card-body {
    padding: .66rem .7rem;
  }

  .app-shell .metric {
    min-height: 78px;
  }

  .login-page {
    padding: .75rem;
  }

  .login-card {
    grid-template-columns: 1fr;
    transform: none;
    animation: none;
  }

  .login-visual {
    min-height: 360px;
    padding: 1.25rem;
  }

  .login-visual-core {
    width: 220px;
    height: 220px;
    left: 58%;
    top: 34%;
  }

  .login-copy h1 {
    font-size: 2.2rem;
  }

  .login-form-panel {
    padding: 1.25rem;
  }

  .login-form-panel .btn,
  .login-form-panel .btn-outline-primary {
    width: 100%;
  }
}

/* Final login override: preserve the cinematic 3D treatment on desktop. */
.login-page .login-card {
  transform: perspective(2200px) rotateX(4deg) rotateY(-8deg) translateZ(0) !important;
  animation: loginFloat 10s ease-in-out infinite !important;
  perspective: 2200px !important;
  rotate: 0deg !important;
  will-change: transform !important;
  box-shadow:
    0 38px 110px rgba(0, 0, 0, .56),
    0 0 54px rgba(84, 237, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

.login-page .login-visual {
  transform: translateZ(0) !important;
}

.login-page .login-logo,
.login-page .login-copy {
  transform: translateZ(24px) !important;
}

@media (max-width: 768px) {
  .login-bg-image {
    object-position: center top;
    opacity: .92;
  }

  .login-page::before {
    opacity: .18;
  }

  .login-page::after {
    opacity: .45;
  }
}

/* Global holographic theme: applies across all screens without changing behavior. */
.app-shell {
  background: transparent;
  color: #effcff;
}

.app-shell .app-background {
  opacity: 1;
}

.app-shell .app-background-image {
  opacity: .88;
  filter: saturate(1.08) contrast(1.08) brightness(.7) blur(.2px);
}

.app-shell .app-background-veil {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center center;
  opacity: .42;
  mix-blend-mode: screen;
  filter: saturate(1.15) contrast(1.08) brightness(.86);
  transform: scale(1.01);
}

.app-shell .app-background-stream {
  opacity: .82;
}

.app-shell .content,
.app-shell .sidebar,
.app-shell .mobile-nav,
.app-shell .login-card,
.app-shell .card,
.app-shell .metric,
.app-shell .page-hero,
.app-shell .modal-content,
.app-shell .dropdown-menu,
.app-shell .alert,
.app-shell .list-group-item,
.app-shell .table-card,
.app-shell .glass-card {
  backdrop-filter: blur(20px) saturate(1.12);
}

.app-shell .sidebar,
.app-shell .mobile-nav,
.app-shell .content,
.app-shell .login-card,
.app-shell .card,
.app-shell .metric,
.app-shell .page-hero,
.app-shell .modal-content,
.app-shell .dropdown-menu,
.app-shell .alert,
.app-shell .list-group-item,
.app-shell .table-card,
.app-shell .glass-card {
  position: relative;
  border: 1px solid rgba(151, 221, 244, .16);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .12), transparent 18%),
    linear-gradient(180deg, rgba(4, 18, 25, .88), rgba(2, 7, 11, .96));
  box-shadow:
    0 26px 62px rgba(0, 0, 0, .4),
    0 0 38px rgba(84, 237, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.app-shell .sidebar {
  border-right: 1px solid rgba(84, 237, 255, .22);
  box-shadow:
    18px 0 42px rgba(0, 0, 0, .28),
    inset -1px 0 0 rgba(84, 237, 255, .14),
    inset 0 0 52px rgba(84, 237, 255, .04);
}

.app-shell .content {
  border: 0;
  background: transparent;
  position: relative;
}

.app-shell .content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(84, 237, 255, .08), transparent 18rem),
    radial-gradient(circle at 78% 8%, rgba(22, 141, 255, .08), transparent 20rem),
    linear-gradient(90deg, rgba(84, 237, 255, .02) 1px, transparent 1px);
  background-size: auto, auto, 120px 120px;
  opacity: .52;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .96));
}

.app-shell .login-card,
.app-shell .card,
.app-shell .metric,
.app-shell .page-hero,
.app-shell .modal-content,
.app-shell .dropdown-menu,
.app-shell .alert,
.app-shell .list-group-item,
.app-shell .table-card,
.app-shell .glass-card {
  border-radius: 14px !important;
}

.app-shell .login-card::before,
.app-shell .card::before,
.app-shell .metric::before,
.app-shell .page-hero::before,
.app-shell .modal-content::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03) 28%, transparent 48%),
    linear-gradient(180deg, transparent 0 18%, rgba(84, 237, 255, .07) 18.15% 18.3%, transparent 18.6% 100%);
  opacity: .86;
}

.app-shell .login-card::after,
.app-shell .card::after,
.app-shell .metric::after,
.app-shell .page-hero::after,
.app-shell .modal-content::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(84, 237, 255, .1);
  box-shadow: inset 0 0 28px rgba(84, 237, 255, .04);
}

.app-shell .btn,
.app-shell .form-control,
.app-shell .form-select,
.app-shell .input-group-text {
  border-radius: 10px;
  border-color: rgba(151, 221, 244, .18);
}

.app-shell .btn-primary,
.app-shell .btn-success,
.app-shell .btn-info,
.app-shell .btn-warning,
.app-shell .btn-danger {
  border: 0;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, .28),
    0 0 24px rgba(84, 237, 255, .1);
}

.app-shell .btn-outline-primary,
.app-shell .btn-outline-light,
.app-shell .btn-outline-secondary {
  background: rgba(255, 255, 255, .03);
}

.app-shell .form-control,
.app-shell .form-select,
.app-shell .input-group-text {
  background: rgba(2, 13, 18, .9);
  color: #effcff;
}

.app-shell .badge {
  border: 1px solid rgba(151, 221, 244, .12);
  background: rgba(255, 255, 255, .06) !important;
  color: #effcff;
}

.app-shell .table {
  --bs-table-bg: transparent;
  --bs-table-color: #e8f8fb;
}

.app-shell .table thead th {
  border-bottom-color: rgba(84, 237, 255, .2);
  color: #aeeef8;
}

.app-shell .table tbody tr:hover {
  background: rgba(84, 237, 255, .04);
}

.app-shell .sidebar a,
.app-shell .nav-link-modern {
  border-color: rgba(84, 237, 255, .08);
}

.app-shell .sidebar a:hover,
.app-shell .nav-link-modern:hover,
.app-shell .nav-link-modern.active {
  border-color: rgba(84, 237, 255, .42);
}

.app-shell .content-glow {
  opacity: .85;
  mix-blend-mode: screen;
}

.app-shell .page-hero,
.app-shell .card,
.app-shell .metric {
  overflow: hidden;
}

.app-shell .page-hero,
.app-shell .card,
.app-shell .metric,
.app-shell .modal-content {
  transform-style: preserve-3d;
}

.app-shell .page-hero:hover,
.app-shell .card:hover,
.app-shell .metric:hover {
  transform: translateY(-4px) translateZ(12px);
}

.app-shell .text-muted {
  color: #99c4d1 !important;
}

.app-shell .dropdown-menu {
  border-color: rgba(84, 237, 255, .18);
}

.app-shell .list-group-item {
  color: #e9fbff;
}

.app-shell .nav-link-modern.active::after,
.app-shell .sidebar a:hover::after {
  box-shadow: 0 0 16px rgba(84, 237, 255, .95), 0 0 34px rgba(22, 141, 255, .5);
}

.app-shell .login-card {
  border-color: rgba(84, 237, 255, .18);
  box-shadow:
    0 42px 120px rgba(0, 0, 0, .58),
    0 0 70px rgba(84, 237, 255, .14),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.app-shell .login-visual::before {
  opacity: .9;
}

.app-shell .login-form-panel {
  border-left: 1px solid rgba(84, 237, 255, .12);
}

.app-shell .login-copy h1 {
  text-shadow:
    0 1px 0 rgba(2, 25, 36, .94),
    0 2px 0 rgba(0, 57, 79, .82),
    0 14px 34px rgba(0, 0, 0, .38),
    0 0 32px rgba(84, 237, 255, .22);
}

.app-shell .login-logo {
  box-shadow:
    0 0 56px rgba(84, 237, 255, .28),
    0 18px 42px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

.app-shell .hero-kicker {
  color: #79e8ff;
  text-shadow: 0 0 18px rgba(84, 237, 255, .34);
}

.app-shell .sidebar-footer .logout-link {
  color: #ffb2bd;
}

.app-shell .dashboard-chart span,
.app-shell .stat-tile,
.app-shell .energy-panel,
.app-shell .holo-gauge {
  box-shadow:
    0 16px 34px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

.app-shell .badge {
  letter-spacing: .02em;
}

/* Blue petroleum refinement: stronger authority, softer card surfaces. */
.app-shell {
  --petroleum-deep: #061821;
  --petroleum-mid: #0b2a3a;
  --petroleum-soft: #143d52;
  --petroleum-bright: #5ecfff;
  --petroleum-line: rgba(94, 207, 255, .22);
}

.app-shell .app-background-image {
  filter: saturate(1.02) contrast(1.1) brightness(.64) hue-rotate(6deg) !important;
}

.app-shell .app-background-veil {
  opacity: .32;
  filter: saturate(1.02) contrast(1.06) brightness(.78) hue-rotate(4deg);
}

.app-shell .sidebar,
.app-shell .mobile-nav,
.app-shell .login-card,
.app-shell .card,
.app-shell .metric,
.app-shell .page-hero,
.app-shell .modal-content,
.app-shell .dropdown-menu,
.app-shell .alert,
.app-shell .list-group-item,
.app-shell .table-card,
.app-shell .glass-card {
  border-color: var(--petroleum-line) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 20%),
    linear-gradient(180deg, rgba(11, 42, 58, .88), rgba(6, 24, 33, .97)) !important;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .42),
    0 0 44px rgba(94, 207, 255, .09),
    inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}

.app-shell .card,
.app-shell .metric,
.app-shell .page-hero {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .11), transparent 18%),
    linear-gradient(180deg, rgba(19, 61, 82, .9), rgba(8, 28, 38, .98)) !important;
}

.app-shell .sidebar {
  background:
    linear-gradient(180deg, rgba(9, 35, 48, .96), rgba(5, 21, 29, .99)) !important;
}

.app-shell .btn-outline-primary,
.app-shell .btn-outline-light,
.app-shell .btn-outline-secondary {
  background: rgba(255, 255, 255, .02);
  border-color: rgba(94, 207, 255, .26);
  color: #d9fbff;
}

.app-shell .btn-primary,
.app-shell .btn-success,
.app-shell .btn-info,
.app-shell .btn-warning,
.app-shell .btn-danger {
  box-shadow:
    0 16px 34px rgba(0, 0, 0, .3),
    0 0 26px rgba(94, 207, 255, .14) !important;
}

.app-shell .badge {
  background: rgba(94, 207, 255, .08) !important;
  border-color: rgba(94, 207, 255, .18);
  color: #effcff;
}

.app-shell .nav-link-modern.active,
.app-shell .sidebar a:hover {
  background:
    radial-gradient(circle at left, rgba(94, 207, 255, .24), transparent 68%),
    linear-gradient(90deg, rgba(94, 207, 255, .16), rgba(20, 61, 82, .14)) !important;
}

.app-shell .login-card {
  transform: none !important;
  animation: none !important;
  perspective: none !important;
  rotate: 0deg !important;
}

.app-shell .login-visual {
  transform: none !important;
}

.app-shell .login-logo,
.app-shell .login-copy {
  transform: translateZ(14px) !important;
}

.app-shell .login-page .login-card {
  transform: none !important;
  animation: none !important;
}

.app-shell .login-page .login-card:hover {
  transform: none !important;
}

.app-shell .login-copy h1 {
  text-shadow:
    0 1px 0 rgba(2, 25, 36, .96),
    0 2px 0 rgba(8, 63, 84, .84),
    0 14px 34px rgba(0, 0, 0, .34),
    0 0 28px rgba(94, 207, 255, .2);
}

.app-shell .hero-kicker {
  color: #8ae4ff;
}

@media (max-width: 768px) {
  html,
  body,
  .app-shell {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell .content {
    width: 100%;
    max-width: 100vw;
    padding: .55rem !important;
    overflow-x: hidden;
  }

  .app-shell .content-glow,
  .app-shell .content::before {
    display: none;
  }

  .app-shell .registrar-hero {
    width: 100%;
    margin: 0 0 .75rem;
    padding: .9rem;
  }

  .app-shell .registrar-hero h3 {
    font-size: 1.35rem;
  }

  .app-shell .registrar-ponto-form,
  .app-shell .registrar-status-grid {
    --bs-gutter-x: 0;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    flex-direction: column;
  }

  .app-shell .registrar-ponto-form > *,
  .app-shell .registrar-status-grid > *,
  .app-shell .registrar-ponto-col,
  .app-shell .registrar-status-col {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .app-shell .registrar-ponto-form .card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }

  .app-shell .registrar-ponto-form .card-body {
    padding: .72rem !important;
  }

  .app-shell .registrar-ponto-form .mb-3 {
    margin-bottom: .65rem !important;
  }

  .app-shell .registrar-ponto-form textarea.form-control {
    min-height: 76px;
  }

  .app-shell .registrar-ponto-form input,
  .app-shell .registrar-ponto-form select,
  .app-shell .registrar-ponto-form textarea,
  .app-shell .registrar-ponto-form .form-control,
  .app-shell .registrar-ponto-form .form-select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }

  .app-shell .registrar-ponto-form .stat-tile {
    padding: .7rem !important;
  }

  .app-shell .registrar-ponto-form .d-flex {
    min-width: 0;
    flex-wrap: wrap;
  }

  .app-shell .registrar-ponto-form .stat-tile,
  .app-shell .registrar-ponto-form .alert,
  .app-shell .registrar-ponto-form .form-control,
  .app-shell .registrar-ponto-form .btn {
    width: 100%;
    max-width: 100%;
  }

  .app-shell .registrar-ponto-form .stat-tile,
  .app-shell .registrar-ponto-form .alert,
  .app-shell .registrar-ponto-form strong,
  .app-shell .registrar-ponto-form .text-muted {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .app-shell .registrar-ponto-form .small,
  .app-shell .registrar-ponto-form small,
  .app-shell .registrar-ponto-form .text-muted,
  .app-shell .registrar-ponto-form .alert {
    font-size: .92rem;
    line-height: 1.42;
  }

  .app-shell .registrar-ponto-form .status-pill strong,
  .app-shell .registrar-ponto-form .stat-tile strong {
    display: inline-block;
    max-width: 100%;
    line-height: 1.22;
    overflow-wrap: break-word;
  }

  .app-shell .registrar-ponto-form .camera-preview {
    width: 100%;
    max-width: 100%;
    height: clamp(220px, 58vw, 300px);
    min-height: 220px;
    max-height: 300px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .app-shell .registrar-ponto-form .btn-lg {
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }

  .app-shell .registrar-ponto-form .btn-primary,
  .app-shell .registrar-ponto-form .btn-success,
  .app-shell .registrar-ponto-form .btn-danger,
  .app-shell .registrar-ponto-form button[type="submit"] {
    width: 100%;
    min-height: 48px;
  }

  .app-shell .registrar-ponto-form .registrar-submit-btn {
    position: sticky;
    bottom: .6rem;
    z-index: 20;
    min-height: 56px;
    margin-top: .75rem;
    font-size: 1rem;
    box-shadow:
      0 16px 32px rgba(0, 0, 0, .42),
      0 0 22px rgba(37, 211, 148, .18) !important;
  }

  .app-shell .registrar-ponto-form .registrar-submit-btn:disabled {
    opacity: .78;
    filter: grayscale(.16);
  }
}

.mobile-menu-backdrop,
.mobile-menu-panel {
  display: none;
}

.mobile-permission-checklist {
  display: grid;
  gap: .45rem;
}

.mobile-permission-checklist > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .75rem;
  border: 1px solid rgba(151, 221, 244, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.mobile-permission-checklist span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted-strong);
  font-weight: 700;
}

.mobile-permission-checklist strong {
  flex: 0 0 auto;
  color: var(--amber);
  font-weight: 850;
}

.mobile-permission-checklist > div.ok strong {
  color: var(--green);
}

.mobile-permission-checklist > div.fail strong {
  color: var(--red);
}

@media (max-width: 960px) {
  .app-shell.mobile-menu-open {
    overflow: hidden;
  }

  .app-shell .mobile-nav {
    position: sticky;
    top: 0;
    z-index: 1100;
    min-height: 58px;
  }

  .app-shell .mobile-nav .navbar-brand {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-shell .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1090;
    pointer-events: none;
    background: rgba(0, 6, 10, .62);
    opacity: 0;
    transition: opacity .18s ease;
  }

  .app-shell .mobile-menu-panel {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1110;
    width: min(88vw, 360px);
    max-width: 100vw;
    padding: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      linear-gradient(140deg, rgba(255, 255, 255, .11), transparent 18%),
      linear-gradient(180deg, rgba(9, 35, 48, .98), rgba(2, 9, 13, .99));
    border-left: 1px solid rgba(94, 207, 255, .28);
    box-shadow: -24px 0 60px rgba(0, 0, 0, .48);
    transform: translateX(105%);
    transition: transform .22s ease;
  }

  .app-shell .mobile-menu-panel .btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
  }

  .app-shell .mobile-menu-panel .mobile-menu-close {
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
    flex: 0 0 auto;
  }

  .app-shell.mobile-menu-open .mobile-menu-backdrop {
    pointer-events: auto;
    opacity: 1;
  }

  .app-shell.mobile-menu-open .mobile-menu-panel {
    transform: translateX(0);
  }
}

@media (min-width: 961px) {
  .app-shell .mobile-menu-backdrop,
  .app-shell .mobile-menu-panel {
    display: none !important;
  }
}
