:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-outer: #040508;
  --surface-1: rgba(14, 18, 24, 0.86);
  --surface-2: rgba(20, 25, 33, 0.88);
  --surface-3: rgba(26, 33, 44, 0.94);
  --sheet-bg: rgba(12, 16, 22, 0.96);
  --glass-dock: rgba(12, 18, 28, 0.74);
  --glass-dock-pill: rgba(255, 255, 255, 0.12);
  --admin-bg: #06090e;
  --admin-surface: rgba(14, 19, 27, 0.88);
  --admin-pill: rgba(23, 29, 38, 0.86);
  --admin-date: rgba(10, 21, 35, 0.9);
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);
  --glass-specular: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --text: #f8fafc;
  --muted: #8b9bb0;
  --muted-2: #5d6c80;
  --accent: #54a0fd;
  --accent-hover: #3d8ef5;
  --accent-ink: #070c14;
  --accent-glow: color-mix(in srgb, var(--accent) 26%, transparent);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

.sgx-glass {
  background: var(--surface-1);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--border);
  box-shadow: var(--glass-specular), 0 16px 40px rgba(0, 0, 0, 0.52);
}

/* Shared SGX dot-matrix card with smooth rolling ambient glow */
.sgx-dot-surface {
  position: relative;
  overflow: hidden;
  background: rgba(12, 16, 22, 0.88);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--glass-specular), 0 18px 44px rgba(0, 0, 0, 0.56);
}

.sgx-dot-surface::after {
  content: "";
  position: absolute;
  inset: -45%;
  background:
    radial-gradient(36% 32% at 62% 38%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 72%),
    radial-gradient(28% 26% at 34% 66%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 75%);
  filter: blur(18px);
  animation: sgxOrbRoll 11s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.sgx-dot-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 11px 11px;
  mask-image: radial-gradient(ellipse 92% 88% at 68% 34%, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.22) 68%, transparent 96%);
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 68% 34%, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.22) 68%, transparent 96%);
  pointer-events: none;
  z-index: 1;
}

.sgx-dot-surface > * {
  position: relative;
  z-index: 2;
}

@keyframes sgxOrbRoll {
  0% {
    transform: translate3d(-16%, -10%, 0) rotate(0deg) scale(0.95);
  }
  50% {
    transform: translate3d(14%, 12%, 0) rotate(12deg) scale(1.08);
  }
  100% {
    transform: translate3d(-4%, 20%, 0) rotate(-8deg) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sgx-dot-surface::after {
    animation: none;
  }
}

.sgx-panel {
  background: var(--admin-surface);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-specular);
}
