@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #05070e;
  --bg-2: #0b1324;
  --surface: rgba(12, 18, 34, 0.72);
  --surface-strong: rgba(12, 18, 34, 0.9);
  --ink: #e2e8f0;
  --muted: #9fb0c7;
  --accent: #22d3ee;
  --accent-2: #f59e0b;
  --accent-3: #3b82f6;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 22px 60px rgba(1, 6, 20, 0.6);
  --glow: 0 0 40px rgba(34, 211, 238, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 15%, rgba(34, 211, 238, 0.12), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.15), transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(245, 158, 11, 0.12), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1), transparent 40%),
    linear-gradient(180deg, #05070e 0%, #0a1226 100%);
  min-height: 100vh;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 80% 40%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1px 1px at 70% 80%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 55% 25%, rgba(255, 255, 255, 0.4), transparent 60%);
  opacity: 0.35;
  animation: twinkle 12s ease-in-out infinite;
}

body::after {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.45;
  z-index: 0;
}

.orb-1 {
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), rgba(34, 211, 238, 0));
  animation: float 18s ease-in-out infinite;
}

.orb-2 {
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0));
  animation: float 22s ease-in-out infinite reverse;
}

.orb-3 {
  top: 35%;
  left: 40%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0));
  animation: float 26s ease-in-out infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  background: rgba(5, 8, 18, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(59, 130, 246, 0.95));
  color: #02111f;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
  overflow: hidden;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(125, 211, 252, 0.5));
}

.brand-title {
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--glow);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 rgba(245, 158, 11, 0.5);
  animation: pulse 2s infinite;
}

.container {
  position: relative;
  z-index: 1;
  padding: 32px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: rise 0.7s ease both;
}

.cards .card:nth-child(1) { animation-delay: 0.05s; }
.cards .card:nth-child(2) { animation-delay: 0.1s; }
.cards .card:nth-child(3) { animation-delay: 0.15s; }
.cards .card:nth-child(4) { animation-delay: 0.2s; }

.card-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.card-value {
  font-size: 2.1rem;
  font-weight: 700;
  margin-top: 8px;
  background: linear-gradient(90deg, #e2e8f0, #7dd3fc, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(125, 211, 252, 0.15);
}

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

.panel {
  background: var(--surface);
  border-radius: 20px;
  padding: 18px 20px 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: rise 0.7s ease both;
}

.panel:nth-child(1) { animation-delay: 0.1s; }
.panel:nth-child(2) { animation-delay: 0.15s; }
.panel:nth-child(3) { animation-delay: 0.2s; }

.panel-header {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  background: var(--surface-strong);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: rise 0.8s ease both;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

.control-group label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

input,
select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-family: 'Sora', 'Segoe UI', sans-serif;
  background: rgba(5, 8, 18, 0.65);
  color: var(--ink);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

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

.toggle {
  width: 56px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(5, 8, 18, 0.7);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease;
}

.toggle[aria-pressed="false"] {
  background: rgba(14, 18, 30, 0.65);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

.toggle[aria-pressed="false"] .toggle-knob {
  transform: translateX(22px);
  background: var(--accent-3);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.exports {
  grid-column: span 2;
}

.export-buttons {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(8, 14, 26, 0.8);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
  border-color: rgba(34, 211, 238, 0.6);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.table-section {
  background: var(--surface-strong);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow-x: auto;
  backdrop-filter: blur(16px);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(12, 18, 34, 0.9);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

tr:hover td {
  background: rgba(34, 211, 238, 0.06);
}

tr:last-child td {
  border-bottom: none;
}

.empty {
  text-align: center;
  color: var(--muted);
}

.enode {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  border: none;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.page-info {
  color: var(--muted);
}

.site-footer {
  padding: 24px 40px 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(18px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.5;
  }
}

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

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

  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
  }

  .container {
    padding: 24px 20px 40px;
  }

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

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

  .exports {
    grid-column: span 1;
  }
}


