/* ============================================================
   TesseraXcapital — Web3 Premium Design System v2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --bg-dark: #050810;
  --bg-card: rgba(12, 18, 32, 0.78);
  --bg-card-hover: rgba(20, 30, 52, 0.88);
  --bg-input: rgba(8, 12, 22, 0.85);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7f56d9;
  --accent-violet: #9e77ed;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7f56d9 100%);
  --grad-cyan-purple: linear-gradient(135deg, #00f2fe 0%, #7f56d9 100%);
  --grad-green: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --grad-amber: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --grad-red: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  --grad-dark-card: linear-gradient(180deg, rgba(18, 26, 44, 0.82) 0%, rgba(8, 12, 22, 0.92) 100%);

  --text-main: #f0f2f8;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(0, 242, 254, 0.3);
  --border-purple-glow: rgba(127, 86, 217, 0.3);

  --shadow-glow: 0 0 30px rgba(0, 242, 254, 0.18), 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-purple-glow: 0 0 30px rgba(127, 86, 217, 0.22), 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.45);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
}

/* ── Keyframe Animations ─────────────────────────────────── */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
  }

  50% {
    box-shadow: 0 0 28px rgba(0, 242, 254, 0.45);
  }
}

@keyframes pulse-glow-purple {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(127, 86, 217, 0.15);
  }

  50% {
    box-shadow: 0 0 28px rgba(127, 86, 217, 0.45);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes ticker-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes online-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.6);
    opacity: 0.4;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes count-up {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes border-glow-pulse {

  0%,
  100% {
    border-color: rgba(0, 242, 254, 0.2);
  }

  50% {
    border-color: rgba(0, 242, 254, 0.55);
  }
}

/* ── Base Reset & Body ───────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark) !important;
  background: var(--bg-dark) !important;
  color: var(--text-main) !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.6;
}

html {
  background-color: var(--bg-dark) !important;
}

/* Animated dot-grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 242, 254, 0.06) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow blobs */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* ── Glassmorphism Panels ────────────────────────────────── */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 0.6s ease both;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: var(--shadow-glow);
}

.stat-card--cyan {
  animation-delay: 0.05s;
}

.stat-card--purple {
  animation-delay: 0.15s;
  border-color: rgba(127, 86, 217, 0.18);
}

.stat-card--green {
  animation-delay: 0.25s;
  border-color: rgba(16, 185, 129, 0.18);
}

.stat-card--amber {
  animation-delay: 0.35s;
  border-color: rgba(245, 158, 11, 0.18);
}

.stat-card--purple:hover {
  border-color: rgba(127, 86, 217, 0.45);
  box-shadow: var(--shadow-purple-glow);
}

.stat-card--green:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.18);
}

.stat-card--amber:hover {
  border-color: rgba(245, 158, 11, 0.45);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.stat-icon--cyan {
  background: rgba(0, 242, 254, 0.14);
  color: var(--accent-cyan);
}

.stat-icon--purple {
  background: rgba(127, 86, 217, 0.14);
  color: var(--accent-violet);
}

.stat-icon--green {
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-emerald);
}

.stat-icon--amber {
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-amber);
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* Sparkline placeholder bars */
.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-top: 12px;
}

.sparkline span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.sparkline:hover span {
  opacity: 0.85;
}

/* ── Gradient Typography ─────────────────────────────────── */
.text-gradient {
  background: var(--grad-primary);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-web3 {
  background: var(--grad-cyan-purple);
  background-size: 200% auto;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-web3::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-web3:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(127, 86, 217, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #ffffff !important;
}

.btn-web3:hover::after {
  opacity: 1;
}

.btn-web3:active {
  transform: translateY(0);
}

.btn-web3-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-web3-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent-cyan) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.12);
}

.btn-web3-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-web3-xs {
  padding: 5px 12px;
  font-size: 0.78rem;
}

/* ── Navbar ──────────────────────────────────────────────── */
.web3-nav {
  background: rgba(5, 8, 16, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
}

.nav-logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-cyan-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
  animation: pulse-glow 3s ease-in-out infinite;
}

.web3-nav .nav-link {
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  padding: 8px 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.web3-nav .nav-link:hover,
.web3-nav .nav-link.active {
  color: var(--accent-cyan);
}

/* ── Crypto Ticker Bar ───────────────────────────────────── */
.ticker-bar {
  background: rgba(5, 8, 16, 0.92);
  border-bottom: 1px solid rgba(0, 242, 254, 0.08);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-bar::before,
.ticker-bar::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ticker-bar::before {
  left: 0;
  background: linear-gradient(to right, rgba(5, 8, 16, 0.95), transparent);
}

.ticker-bar::after {
  right: 0;
  background: linear-gradient(to left, rgba(5, 8, 16, 0.95), transparent);
}

.ticker-track {
  display: inline-flex;
  animation: ticker-marquee 40s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 48px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: 'Space Grotesk', monospace;
}

.ticker-item .coin-name {
  font-weight: 700;
  color: #fff;
}

.ticker-up {
  color: var(--accent-emerald);
}

.ticker-down {
  color: var(--accent-red);
}

.ticker-sep {
  color: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

/* ── Sidebar Navigation ──────────────────────────────────── */
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.22s ease;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  animation: fadeSlideIn 0.4s ease both;
}

.sidebar-link:hover {
  background: rgba(0, 242, 254, 0.06);
  color: var(--text-main) !important;
  border-color: rgba(0, 242, 254, 0.12);
}

.sidebar-link.active {
  background: rgba(0, 242, 254, 0.1);
  border-left: 3px solid var(--accent-cyan);
  color: var(--accent-cyan) !important;
  font-weight: 600;
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.07);
  padding-left: 13px;
}

.sidebar-link i {
  width: 22px;
}

.sidebar-link .chevron {
  font-size: 0.7rem;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.sidebar-link:hover .chevron,
.sidebar-link.active .chevron {
  opacity: 1;
}

/* Online indicator pulse */
.online-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
}

.online-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-emerald);
  opacity: 0.4;
  animation: online-pulse 2s ease-in-out infinite;
}

/* ── Section Headers ─────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ── Form Inputs ─────────────────────────────────────────── */
.web3-input {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 13px 18px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
}

.web3-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.12), 0 0 20px rgba(0, 242, 254, 0.08);
  background: rgba(0, 242, 254, 0.03);
}

.web3-input:read-only {
  opacity: 0.65;
  cursor: default;
}

.web3-input::placeholder {
  color: var(--text-dim);
}

.web3-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge-web3 {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.28);
  color: var(--accent-cyan);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.badge-purple {
  background: rgba(127, 86, 217, 0.14);
  border-color: rgba(127, 86, 217, 0.3);
  color: var(--accent-violet);
}

.badge-success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

/* ── Tables ──────────────────────────────────────────────── */
.web3-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.web3-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.web3-table thead th {
  padding: 10px 14px;
  color: var(--text-dim);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.web3-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.18s;
}

.web3-table tbody tr:hover {
  background: rgba(0, 242, 254, 0.03);
}

.web3-table tbody td {
  padding: 14px;
}

.web3-table tbody tr:last-child {
  border-bottom: none;
}

/* ── Progress Bars ───────────────────────────────────────── */
.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--grad-cyan-purple);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill--green {
  background: var(--grad-green);
}

.progress-fill--amber {
  background: var(--grad-amber);
}

.progress-fill--purple {
  background: linear-gradient(135deg, #7f56d9 0%, #9e77ed 100%);
}

/* ── Glow Background Spheres ─────────────────────────────── */
.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glow-cyan {
  width: 400px;
  height: 400px;
  background: rgba(0, 242, 254, 0.1);
}

.glow-purple {
  width: 500px;
  height: 500px;
  background: rgba(127, 86, 217, 0.12);
}

/* ── Info + Alert Panels ─────────────────────────────────── */
.alert-web3 {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.alert-info {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
}

/* ── Divider ─────────────────────────────────────────────── */
.web3-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      rgba(0, 242, 254, 0.2) 30%,
      rgba(127, 86, 217, 0.2) 70%,
      transparent);
  margin: 24px 0;
}

/* ── Entrance Animations ─────────────────────────────────── */
.animate-in {
  animation: fadeSlideUp 0.55s ease both;
}

.animate-in-1 {
  animation-delay: 0.05s;
}

.animate-in-2 {
  animation-delay: 0.12s;
}

.animate-in-3 {
  animation-delay: 0.20s;
}

.animate-in-4 {
  animation-delay: 0.28s;
}

.animate-in-5 {
  animation-delay: 0.36s;
}

.animate-in-6 {
  animation-delay: 0.44s;
}

/* ── Quick Action Strip ──────────────────────────────────── */
.quick-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(0, 242, 254, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Glowing HR Section Dividers ─────────────────────────── */
.section-glow-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.3), rgba(127, 86, 217, 0.3), transparent);
  margin: 28px 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .stat-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .sidebar-col {
    margin-bottom: 24px;
  }
}

@media (max-width: 576px) {
  .stat-grid-4 {
    grid-template-columns: 1fr !important;
  }

  .quick-actions {
    gap: 8px;
  }

  .quick-actions a,
  .quick-actions button {
    flex: 1;
    justify-content: center;
  }
}

/* ── Glow Spheres (ambient decorative blobs) ─────────────── */
.glow-sphere {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.glow-cyan {
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
}

.glow-purple {
  background: radial-gradient(circle, rgba(127, 86, 217, 0.12) 0%, transparent 70%);
}

/* ── Nuclear Dark Mode Override ──────────────────────────── */
/* Ensure no inherited light backgrounds can bleed through */
html,
body {
  background-color: #050810 !important;
  background: #050810 !important;
  color: var(--text-primary) !important;
}

/* ── Pixel.css & Legacy Framework Dark Overrides ─────────── */
.bg-gray-200,
.bg-gray-100,
.bg-gray-300,
.bg-gray-500,
.bg-white,
.card-header.bg-white,
.card-footer.bg-white,
.card-body.bg-white,
.section.bg-gray-200 {
  background-color: transparent !important;
  background: transparent !important;
}

.card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(16px) !important;
}

.card-header,
.card-footer {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: var(--border-glass) !important;
  color: var(--text-primary) !important;
}

.card-body {
  color: var(--text-primary) !important;
}

.text-dark,
.text-black,
.text-gray-800,
.text-gray-900 {
  color: var(--text-primary) !important;
}

.text-muted,
.text-gray,
.text-gray-500,
.text-gray-600 {
  color: var(--text-muted) !important;
}

.border-gray-300,
.border-gray-200,
.border-white {
  border-color: var(--border-glass) !important;
}

.list-group-item {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: var(--border-glass) !important;
  color: var(--text-primary) !important;
}

.list-group-item.active {
  background: var(--grad-cyan-purple) !important;
  border-color: var(--accent-cyan) !important;
  color: #ffffff !important;
}

.table,
.table> :not(caption)>*>* {
  background-color: transparent !important;
  color: var(--text-primary) !important;
  border-bottom-color: var(--border-glass) !important;
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(0, 242, 254, 0.06) !important;
  border-color: var(--accent-cyan) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25) !important;
}