:root {
  --bg: #040507;
  --bg-2: #070b10;
  --panel: rgba(11, 16, 20, 0.84);
  --panel-soft: rgba(15, 22, 28, 0.72);
  --line: rgba(143, 237, 224, 0.2);
  --line-soft: rgba(255, 255, 255, 0.1);
  --text: #e7f2f0;
  --muted: rgba(231, 242, 240, 0.68);
  --mint: #8fedE0;
  --tiffany: #0abab5;
  --neon: #3af2e3;
  --amber: #f8cb73;
  --emerald: #7aeeb5;
  --cyan: #8ed8ff;
  --fuchsia: #f3a5ff;
  --danger: #ff8d8d;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  background:
    radial-gradient(900px 500px at 10% 8%, rgba(10, 186, 181, 0.2), transparent 40%),
    radial-gradient(760px 420px at 90% 4%, rgba(245, 158, 11, 0.16), transparent 36%),
    radial-gradient(840px 420px at 50% 100%, rgba(58, 242, 227, 0.08), transparent 42%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  transition: background-position 240ms ease, opacity 180ms ease;
}

body.is-busy {
  cursor: progress;
}

[class*="bg-[radial-gradient"] {
  background:
    radial-gradient(900px 500px at 10% 8%, rgba(10, 186, 181, 0.2), transparent 40%),
    radial-gradient(760px 420px at 90% 4%, rgba(245, 158, 11, 0.16), transparent 36%),
    radial-gradient(840px 420px at 50% 100%, rgba(58, 242, 227, 0.08), transparent 42%);
}

a {
  color: var(--mint);
  text-decoration: none;
}

a:hover {
  color: var(--neon);
  text-decoration: underline;
}

a[class]:hover {
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* Generic elements */
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.28rem;
}

h3 {
  font-size: 1.04rem;
}

p {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  border-bottom: 1px solid var(--line);
}

th,
td {
  padding: 0.58rem 0.68rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

th {
  color: rgba(231, 242, 240, 0.82);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

tr:hover td {
  background: rgba(15, 22, 28, 0.36);
}

input,
select,
textarea,
button {
  font: inherit;
  color: var(--text);
}

input,
select,
textarea {
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.56rem 0.72rem;
  outline: none;
  min-height: 40px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(58, 242, 227, 0.58);
  box-shadow: 0 0 0 2px rgba(58, 242, 227, 0.14);
}

button,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(15, 22, 28, 0.65);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

button:hover,
a.btn:hover {
  background: rgba(15, 22, 28, 0.9);
  border-color: var(--line);
  color: var(--neon);
  text-decoration: none;
  transform: translateY(-1px);
}

button:active,
a.btn:active {
  transform: translateY(0);
}

.hero-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.4rem;
  border-radius: 12px;
  border: 1px solid rgba(10, 186, 181, 0.62);
  background: linear-gradient(135deg, rgba(10, 186, 181, 0.26), rgba(58, 242, 227, 0.2));
  color: var(--neon);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(10, 186, 181, 0.2);
}

.hero-primary-cta:hover {
  border-color: rgba(58, 242, 227, 0.8);
  background: linear-gradient(135deg, rgba(10, 186, 181, 0.34), rgba(58, 242, 227, 0.26));
  color: #b7fff7;
  text-decoration: none;
}

button,
a[class*="rounded"] {
  touch-action: manipulation;
}

button[disabled],
button[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

input[disabled],
select[disabled],
textarea[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Layout utilities */
.min-h-screen {
  min-height: 100vh;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-7xl {
  max-width: 1220px;
}

.max-w-6xl {
  max-width: 1080px;
}

.max-w-5xl {
  max-width: 980px;
}

.w-full {
  width: 100%;
}

.min-w-full {
  min-width: 100%;
}

.overflow-x-auto {
  overflow-x: auto;
}

.grid {
  display: grid;
  gap: 1rem;
}

.flex {
  display: flex;
}

.block {
  display: block;
}

.inline-flex {
  display: inline-flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.text-left {
  text-align: left;
}

.text-right,
.right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.gap-1 {
  gap: 0.28rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

/* App-shell feel */
main > header:first-child {
  position: sticky;
  top: 0.75rem;
  z-index: 30;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

main > section,
main > article {
  animation: section-fade 220ms ease both;
}

@keyframes section-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.is-active-link {
  border-color: rgba(58, 242, 227, 0.66) !important;
  box-shadow: 0 0 0 1px rgba(58, 242, 227, 0.38) inset;
  color: var(--neon) !important;
}

.tab-shell {
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.tab-shell::-webkit-scrollbar {
  height: 6px;
}

.tab-shell::-webkit-scrollbar-thumb {
  background: rgba(143, 237, 224, 0.22);
  border-radius: 999px;
}

.tab-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: max-content;
}

.app-tab {
  white-space: nowrap;
  font-weight: 600;
}

.htmx-indicator {
  display: none;
  opacity: 0;
}

.htmx-request.htmx-indicator,
.htmx-request .htmx-indicator {
  display: inline-flex;
  opacity: 1;
}

.ux-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(58, 242, 227, 0), rgba(58, 242, 227, 0.95), rgba(248, 203, 115, 0.92));
  transform: translateX(-100%);
  transition: opacity 160ms ease;
}

.ux-progress.is-visible {
  opacity: 1;
  animation: ux-progress-run 900ms linear infinite;
}

@keyframes ux-progress-run {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

/* Shape */
.rounded {
  border-radius: 0.4rem;
}

.rounded-md {
  border-radius: 0.62rem;
}

.rounded-lg {
  border-radius: 0.78rem;
}

.rounded-xl {
  border-radius: var(--radius-lg);
}

.rounded-2xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: 999px;
}

/* Typography */
.text-xs {
  font-size: 0.74rem;
}

.text-sm {
  font-size: 0.86rem;
}

.text-lg {
  font-size: 1.08rem;
}

.text-xl {
  font-size: 1.22rem;
}

.text-2xl {
  font-size: 1.46rem;
}

.text-3xl {
  font-size: 1.82rem;
}

.text-4xl {
  font-size: 2.3rem;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 800;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.045em;
}

.tracking-\[0\.28em\],
.tracking-\[0\.3em\] {
  letter-spacing: 0.26em;
}

/* Colors */
.text-mint {
  color: var(--mint);
}

.text-neon {
  color: var(--neon);
}

.text-amber-200 {
  color: var(--amber);
}

.text-emerald-200 {
  color: var(--emerald);
}

.text-cyan-200 {
  color: var(--cyan);
}

.text-fuchsia-200 {
  color: var(--fuchsia);
}

.text-red-200,
.text-rose-200 {
  color: var(--danger);
}

.text-mint\/60 {
  color: rgba(231, 242, 240, 0.6);
}

.text-mint\/65 {
  color: rgba(231, 242, 240, 0.65);
}

.text-mint\/70 {
  color: rgba(231, 242, 240, 0.7);
}

.text-mint\/80 {
  color: rgba(231, 242, 240, 0.8);
}

.text-amber-200\/80 {
  color: rgba(248, 203, 115, 0.8);
}

.text-tiffany\/70,
.text-tiffany\/80 {
  color: rgba(143, 237, 224, 0.86);
}

/* Surface */
.bg-black {
  background: rgba(0, 0, 0, 0.58);
}

.bg-black\/40 {
  background: rgba(0, 0, 0, 0.4);
}

.bg-zinc-950\/70 {
  background: rgba(11, 16, 20, 0.72);
}

.bg-zinc-950\/75 {
  background: rgba(11, 16, 20, 0.76);
}

.bg-zinc-950\/80 {
  background: var(--panel);
}

.bg-tiffany\/10 {
  background: rgba(10, 186, 181, 0.14);
}

.bg-tiffany\/20 {
  background: rgba(10, 186, 181, 0.22);
}

.bg-amber-500\/10 {
  background: rgba(245, 158, 11, 0.14);
}

.bg-emerald-500\/10 {
  background: rgba(52, 211, 153, 0.14);
}

.bg-cyan-500\/10 {
  background: rgba(6, 182, 212, 0.14);
}

.bg-fuchsia-500\/10 {
  background: rgba(217, 70, 239, 0.14);
}

.bg-red-500\/10,
.bg-rose-500\/10 {
  background: rgba(239, 68, 68, 0.12);
}

/* Border */
.border {
  border: 1px solid var(--line-soft);
}

.border-b {
  border-bottom: 1px solid var(--line-soft);
}

.border-tiffany\/10 {
  border-color: rgba(10, 186, 181, 0.16);
}

.border-tiffany\/20 {
  border-color: rgba(10, 186, 181, 0.22);
}

.border-tiffany\/30 {
  border-color: rgba(10, 186, 181, 0.3);
}

.border-tiffany\/35 {
  border-color: rgba(10, 186, 181, 0.35);
}

.border-tiffany\/40 {
  border-color: rgba(10, 186, 181, 0.4);
}

.border-tiffany\/50 {
  border-color: rgba(10, 186, 181, 0.5);
}

.border-tiffany\/60 {
  border-color: rgba(10, 186, 181, 0.6);
}

.border-amber-500\/10 {
  border-color: rgba(245, 158, 11, 0.2);
}

.border-amber-500\/20 {
  border-color: rgba(245, 158, 11, 0.24);
}

.border-amber-500\/25 {
  border-color: rgba(245, 158, 11, 0.28);
}

.border-amber-500\/30 {
  border-color: rgba(245, 158, 11, 0.3);
}

.border-amber-500\/35 {
  border-color: rgba(245, 158, 11, 0.38);
}

.border-amber-500\/40 {
  border-color: rgba(245, 158, 11, 0.42);
}

.border-amber-500\/50 {
  border-color: rgba(245, 158, 11, 0.52);
}

.border-emerald-500\/30 {
  border-color: rgba(52, 211, 153, 0.32);
}

.border-emerald-500\/35 {
  border-color: rgba(52, 211, 153, 0.38);
}

.border-emerald-500\/40 {
  border-color: rgba(52, 211, 153, 0.42);
}

.border-emerald-500\/50 {
  border-color: rgba(52, 211, 153, 0.55);
}

.border-cyan-500\/30 {
  border-color: rgba(6, 182, 212, 0.32);
}

.border-cyan-500\/35 {
  border-color: rgba(6, 182, 212, 0.38);
}

.border-cyan-500\/50 {
  border-color: rgba(6, 182, 212, 0.55);
}

.border-fuchsia-500\/30 {
  border-color: rgba(217, 70, 239, 0.34);
}

.border-fuchsia-500\/35 {
  border-color: rgba(217, 70, 239, 0.38);
}

.border-fuchsia-500\/50 {
  border-color: rgba(217, 70, 239, 0.52);
}

.border-red-500\/40,
.border-rose-500\/40 {
  border-color: rgba(239, 68, 68, 0.42);
}

.border-rose-500\/50 {
  border-color: rgba(239, 68, 68, 0.55);
}

/* Focus + Hover */
.focus\:border-neon:focus {
  border-color: rgba(58, 242, 227, 0.62);
}

.hover\:bg-tiffany\/30:hover {
  background: rgba(10, 186, 181, 0.3);
}

.hover\:text-mint:hover {
  color: var(--mint);
}

.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:border-neon:hover {
  border-color: rgba(58, 242, 227, 0.62);
}

.hover\:border-amber-300:hover {
  border-color: rgba(245, 197, 110, 0.64);
}

.hover\:border-cyan-300:hover {
  border-color: rgba(125, 211, 252, 0.64);
}

.hover\:border-emerald-300:hover {
  border-color: rgba(110, 231, 183, 0.64);
}

.hover\:border-fuchsia-300:hover {
  border-color: rgba(240, 171, 252, 0.64);
}

/* Responsive */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:p-10 {
    padding: 2.4rem;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xl\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .xl\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .xl\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Small-screen comfort */
@media (max-width: 760px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  .p-6 {
    padding: 1rem;
  }
  th,
  td {
    padding: 0.45rem 0.5rem;
  }
  main > header:first-child {
    top: 0.5rem;
  }
  button,
  a.btn {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* SL Table System */
.sl-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 18, 24, 0.72), rgba(8, 12, 16, 0.84));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.sl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
}

.sl-th {
  padding: 0.68rem 0.76rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sl-td {
  padding: 0.72rem 0.76rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.91rem;
  vertical-align: middle;
}

.sl-table tbody tr:last-child .sl-td {
  border-bottom: none;
}

.sl-row:hover .sl-td {
  background: rgba(58, 242, 227, 0.08);
}

.sl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 237, 224, 0.24);
  background: rgba(143, 237, 224, 0.1);
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.2;
}

.sl-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sl-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sl-actions a {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.9;
  text-decoration: none;
}

.sl-actions a:hover {
  opacity: 1;
  color: var(--neon);
}

@media (max-width: 760px) {
  .sl-table {
    min-width: 560px;
  }
  .sl-th,
  .sl-td {
    padding: 0.56rem 0.6rem;
  }
}

/* All-time analytics charts */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.metric-tile {
  border: 1px solid rgba(58, 242, 227, 0.22);
  border-radius: 12px;
  background: rgba(8, 13, 18, 0.7);
  padding: 0.72rem 0.82rem;
  min-height: 86px;
}

.metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(231, 242, 240, 0.62);
}

.metric-value {
  margin-top: 0.38rem;
  font-size: 1.46rem;
  font-weight: 800;
  line-height: 1.2;
  color: #f8cb73;
}

.sl-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.sl-chart-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(6, 10, 14, 0.76);
  padding: 0.72rem;
}

.sl-chart-title {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(231, 242, 240, 0.76);
  margin-bottom: 0.42rem;
}

.sl-chart-canvas {
  height: 270px;
  width: 100%;
}

.sl-chart-canvas.sl-chart-tall {
  height: 320px;
}

.sl-chart-span-2 {
  grid-column: span 2;
}

@media (max-width: 920px) {
  .sl-analytics-grid {
    grid-template-columns: 1fr;
  }

  .sl-chart-span-2 {
    grid-column: span 1;
  }

  .sl-chart-canvas,
  .sl-chart-canvas.sl-chart-tall {
    height: 250px;
  }
}

/* Neon V2 global theme */
:root {
  --bg: #000000;
  --bg-2: #010204;
  --panel: rgba(2, 6, 10, 0.9);
  --panel-soft: rgba(3, 10, 16, 0.78);
  --line: rgba(56, 255, 231, 0.3);
  --line-soft: rgba(56, 255, 231, 0.18);
  --mint: #74fff2;
  --tiffany: #2ae4dc;
  --neon: #3bfff0;
  --amber: #ffc857;
  --cyan: #7fd9ff;
  --emerald: #66f7b3;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

body {
  background:
    radial-gradient(1400px 760px at 15% -15%, rgba(25, 255, 231, 0.14), transparent 48%),
    radial-gradient(1200px 680px at 92% -10%, rgba(127, 217, 255, 0.12), transparent 46%),
    linear-gradient(180deg, #000 0%, #000 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(58, 255, 240, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 255, 240, 0.08) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 90%);
  opacity: 0.2;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -16%;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 24%, rgba(58, 255, 240, 0.15), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(127, 217, 255, 0.14), transparent 28%),
    radial-gradient(circle at 55% 100%, rgba(255, 200, 87, 0.09), transparent 35%);
  filter: blur(20px);
  animation: sl-neon-drift 18s linear infinite alternate;
  z-index: 0;
}

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

@keyframes sl-neon-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -1.8%, 0) scale(1.04);
  }
}

.topbar,
main > header:first-child,
.card,
.kpi,
.tab-shell,
.tablewrap,
.sl-tablewrap,
main > section,
main > article {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(3, 10, 16, 0.84));
  border-color: rgba(58, 255, 240, 0.26) !important;
  box-shadow:
    inset 0 0 0 1px rgba(58, 255, 240, 0.08),
    0 0 22px rgba(58, 255, 240, 0.08),
    0 20px 42px rgba(0, 0, 0, 0.55);
}

.sl-neon-surface {
  position: relative;
  overflow: hidden;
}

.sl-neon-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(58, 255, 240, 0.08) 46%, transparent 60%),
    linear-gradient(180deg, rgba(58, 255, 240, 0.08), transparent 42%);
  opacity: 0.45;
}

.sl-neon-surface::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(58, 255, 240, 0.8), transparent);
  box-shadow: 0 0 14px rgba(58, 255, 240, 0.6);
}

.sl-mini-spark {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 148px;
  height: 44px;
  opacity: 0.52;
  pointer-events: none;
  z-index: 2;
}

.sl-mini-spark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sl-mini-spark polyline {
  fill: none;
  stroke: rgba(58, 255, 240, 0.9);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(58, 255, 240, 0.6));
}

input,
select,
textarea {
  background: rgba(0, 0, 0, 0.88);
  border-color: rgba(58, 255, 240, 0.26);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(58, 255, 240, 0.78);
  box-shadow: 0 0 0 2px rgba(58, 255, 240, 0.16), 0 0 20px rgba(58, 255, 240, 0.15);
}

button,
a.btn,
.hero-primary-cta {
  box-shadow: 0 0 18px rgba(58, 255, 240, 0.12);
}

button:hover,
a.btn:hover,
.hero-primary-cta:hover {
  box-shadow: 0 0 24px rgba(58, 255, 240, 0.24);
}

.sl-th {
  color: rgba(141, 234, 255, 0.92);
}

.sl-row:hover .sl-td,
tr:hover td {
  background: rgba(58, 255, 240, 0.08);
}

/* Broadcast Premium system */
.sl-page-shell {
  position: relative;
}

.sl-broadcast-hero {
  border-radius: 22px;
  border: 1px solid rgba(58, 255, 240, 0.28);
  background:
    radial-gradient(110% 140% at 6% -10%, rgba(58, 255, 240, 0.18), transparent 48%),
    radial-gradient(90% 120% at 96% -12%, rgba(127, 217, 255, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(2, 8, 14, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(58, 255, 240, 0.07),
    0 0 34px rgba(58, 255, 240, 0.12),
    0 24px 50px rgba(0, 0, 0, 0.56);
}

.sl-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: rgba(141, 234, 255, 0.86);
}

.sl-hero-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(58, 255, 240, 1), rgba(58, 255, 240, 0.45));
  box-shadow: 0 0 12px rgba(58, 255, 240, 0.9);
}

.sl-hero-title {
  margin-top: 0.46rem;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #b9fff8;
  text-shadow: 0 0 22px rgba(58, 255, 240, 0.28);
}

.sl-hero-sub {
  margin-top: 0.46rem;
  font-size: 0.91rem;
  color: rgba(224, 247, 246, 0.72);
}

.sl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.sl-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.56rem 1.1rem;
  border-radius: 11px;
  border: 1px solid rgba(58, 255, 240, 0.72);
  background: linear-gradient(135deg, rgba(58, 255, 240, 0.24), rgba(127, 217, 255, 0.16));
  color: #cdfffb;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(58, 255, 240, 0.22);
}

.sl-cta-primary:hover {
  color: #ffffff;
  border-color: rgba(58, 255, 240, 0.92);
  box-shadow: 0 0 26px rgba(58, 255, 240, 0.32);
}

.sl-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.52rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 200, 87, 0.58);
  background: rgba(255, 200, 87, 0.11);
  color: #ffd989;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.sl-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 1rem;
}

.sl-score-card {
  border: 1px solid rgba(58, 255, 240, 0.22);
  border-radius: 13px;
  padding: 0.72rem 0.82rem;
  min-height: 92px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(2, 9, 15, 0.7));
}

.sl-score-label {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(217, 243, 244, 0.66);
}

.sl-score-value {
  margin-top: 0.33rem;
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 900;
  color: #cbfff9;
}

.sl-score-hint {
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: rgba(217, 243, 244, 0.57);
}

.sl-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.72rem;
}

.sl-section-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #a6fff7;
  letter-spacing: 0.02em;
}

.sl-section-note {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(141, 234, 255, 0.78);
}

.tab-shell {
  border-radius: 16px;
  border-color: rgba(58, 255, 240, 0.26) !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(1, 7, 12, 0.8));
  box-shadow: inset 0 0 0 1px rgba(58, 255, 240, 0.06), 0 0 22px rgba(58, 255, 240, 0.1);
}

.tab-kicker {
  padding: 0.08rem 0.3rem 0.36rem;
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(141, 234, 255, 0.74);
}

.app-tab {
  white-space: nowrap;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.sl-tablewrap,
.tablewrap {
  position: relative;
}

.sl-tablewrap::after,
.tablewrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.74));
}

.sl-table thead .sl-th,
.tablewrap table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(6px);
}

.sl-table thead .sl-th {
  background: rgba(2, 12, 18, 0.92);
}

.tablewrap table thead th {
  background: rgba(2, 12, 18, 0.9);
}

.sl-chip {
  border-color: rgba(58, 255, 240, 0.35);
  background: rgba(58, 255, 240, 0.1);
}

@media (max-width: 980px) {
  .sl-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sl-hero-title {
    font-size: 1.58rem;
  }

  .sl-score-grid {
    grid-template-columns: 1fr;
  }

  .sl-cta-primary,
  .sl-cta-secondary {
    width: 100%;
  }
}

/* Premium UX upgrades */
.sl-select-compact {
  min-width: 112px;
}

.sl-pager {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.sl-pager-meta {
  font-size: 0.76rem;
  color: rgba(231, 242, 240, 0.7);
}

.sl-pager-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.sl-pager-btn {
  min-width: 88px;
  justify-content: center;
}

.btn.is-disabled,
.sl-pager-btn.is-disabled {
  opacity: 0.44;
  pointer-events: none;
  user-select: none;
}

.sl-state-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border-color: rgba(58, 255, 240, 0.34);
  background: rgba(58, 255, 240, 0.08);
}

.sl-state-icon {
  display: inline-flex;
  width: 0.82rem;
  height: 0.82rem;
}

.sl-state-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.sl-state-chip[data-sl-state="OPEN"] {
  color: #9dfad1;
  border-color: rgba(102, 247, 179, 0.62);
  background: rgba(18, 115, 73, 0.18);
}

.sl-state-chip[data-sl-state="LOCKED"] {
  color: #ffd989;
  border-color: rgba(255, 200, 87, 0.62);
  background: rgba(128, 86, 16, 0.2);
}

.sl-state-chip[data-sl-state="RESOLVED"] {
  color: #bcfff9;
  border-color: rgba(58, 255, 240, 0.66);
  background: rgba(11, 83, 79, 0.22);
}

.sl-state-chip[data-sl-state="UNKNOWN"] {
  color: #f8cb73;
  border-color: rgba(248, 203, 115, 0.55);
  background: rgba(126, 87, 19, 0.2);
}

.sl-density-toggle {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 85;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(58, 255, 240, 0.5);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.86), rgba(8, 27, 34, 0.9));
  color: #b9fff8;
  padding: 0.3rem 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.63rem;
  box-shadow: 0 0 20px rgba(58, 255, 240, 0.2);
}

.sl-density-toggle:hover {
  border-color: rgba(58, 255, 240, 0.82);
  box-shadow: 0 0 24px rgba(58, 255, 240, 0.32);
}

.sl-density-toggle-state {
  border: 1px solid rgba(58, 255, 240, 0.44);
  border-radius: 999px;
  padding: 0.08rem 0.42rem;
  line-height: 1.3;
  font-size: 0.58rem;
}

html.sl-density-compact body {
  font-size: 14px;
}

html.sl-density-compact .sl-hero-title {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
}

html.sl-density-compact .sl-hero-sub,
html.sl-density-compact .sl-score-hint,
html.sl-density-compact .sl-pager-meta {
  font-size: 0.72rem;
}

html.sl-density-compact .sl-score-grid {
  gap: 0.52rem;
}

html.sl-density-compact .sl-score-card {
  min-height: 74px;
  padding: 0.52rem 0.62rem;
}

html.sl-density-compact .sl-score-value {
  font-size: 1.36rem;
}

html.sl-density-compact th,
html.sl-density-compact td {
  padding: 0.42rem 0.48rem;
}

html.sl-density-compact .sl-th,
html.sl-density-compact .sl-td {
  padding: 0.46rem 0.54rem;
  font-size: 0.82rem;
}

html.sl-density-compact input,
html.sl-density-compact select,
html.sl-density-compact textarea {
  min-height: 34px;
  padding: 0.4rem 0.58rem;
}

html.sl-density-compact button,
html.sl-density-compact a.btn,
html.sl-density-compact .sl-cta-primary,
html.sl-density-compact .sl-cta-secondary {
  min-height: 34px;
  padding: 0.38rem 0.72rem;
  font-size: 0.74rem;
}

html.sl-density-compact .sl-mini-spark {
  opacity: 0.3;
  width: 124px;
  height: 36px;
}

@media (max-width: 760px) {
  .sl-density-toggle {
    right: 0.65rem;
    bottom: 0.65rem;
    font-size: 0.58rem;
  }

  html.sl-density-compact .sl-mini-spark {
    display: none;
  }
}

