@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
  --bg: #0a0f1f;
  --panel: rgba(12, 18, 38, 0.85);
  --panel-2: rgba(20, 28, 52, 0.85);
  --ink: #e8f0ff;
  --muted: #9fb0d1;
  --accent: #2ef2ff;
  --accent-2: #8b5cf6;
  --line: rgba(126, 160, 255, 0.2);
  --glow: 0 0 20px rgba(46, 242, 255, 0.25);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(46, 242, 255, 0.25) 0%, transparent 60%),
    radial-gradient(700px 500px at 90% 0%, rgba(139, 92, 246, 0.25) 0%, transparent 55%),
    linear-gradient(180deg, #05070f 0%, #0a1020 40%, #0a0f1f 100%);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: transparent;
  padding: 10px 0;
}

.nav {
  max-width: 620px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(8, 12, 24, 0.75);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.brand {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--accent);
  text-shadow: var(--glow);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
}

.nav select,
.nav button {
  height: 36px;
}

.nav-user {
  color: var(--muted);
  font-size: 13px;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 12px;
  display: grid;
  gap: 8px;
}

.title {
  font-family: "Orbitron", sans-serif;
  font-size: 30px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtitle {
  color: var(--muted);
  max-width: 680px;
}

main {
  max-width: 1200px;
  margin: 0 auto 56px;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(46, 242, 255, 0.08) 40%, transparent 80%);
  pointer-events: none;
  opacity: 0.7;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  text-shadow: var(--glow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(126, 160, 255, 0.35);
  background: rgba(10, 16, 32, 0.8);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(46, 242, 255, 0.15);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08101f;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

button:hover {
  background: linear-gradient(135deg, #1a9cff, #3cff9a, #ffe45e);
  box-shadow: 0 0 25px rgba(60, 255, 154, 0.25);
}

button.secondary:hover {
  border-color: rgba(60, 255, 154, 0.6);
  box-shadow: 0 0 18px rgba(26, 156, 255, 0.25);
  background: linear-gradient(135deg, rgba(26, 156, 255, 0.15), rgba(60, 255, 154, 0.15), rgba(255, 228, 94, 0.15));
}

button:active {
  transform: scale(0.98);
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.result-box {
  padding: 12px;
  border: 1px dashed rgba(46, 242, 255, 0.4);
  border-radius: 12px;
  background: rgba(8, 12, 24, 0.7);
}

.result-box .value {
  font-size: 20px;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.7);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(760px, 96vw);
  background: rgba(14, 22, 44, 0.75);
  border: 1px solid rgba(46, 242, 255, 0.35);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-title {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
}

.modal-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(10, 16, 32, 0.8);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.status {
  margin-top: 10px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(12, 22, 42, 0.9);
  border: 1px solid rgba(60, 255, 154, 0.35);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 20, 0.42);
  backdrop-filter: blur(6px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-modal {
  width: min(560px, 92vw);
  border-radius: 16px;
  border: 1px solid rgba(46, 242, 255, 0.38);
  background: rgba(12, 20, 40, 0.78);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5), 0 0 30px rgba(46, 242, 255, 0.18);
  backdrop-filter: blur(14px);
  padding: 26px 22px;
  text-align: center;
}

.loader-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d6e8ff;
  text-shadow: 0 0 16px rgba(46, 242, 255, 0.24);
  margin-bottom: 14px;
}

.loader-status-wrap {
  border-top: 1px solid rgba(126, 160, 255, 0.25);
  margin-top: 12px;
  padding-top: 14px;
  min-height: 42px;
  display: grid;
  place-items: center;
}

.loader-status {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #9fe4d0;
  animation: statusPulse 1.2s ease-in-out infinite;
}

@keyframes statusPulse {
  0% { opacity: 0.45; transform: translateY(6px); }
  50% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.45; transform: translateY(-6px); }
} to { transform: rotate(360deg); } }

.teaser-card {
  display: grid;
  gap: 14px;
}

.teaser-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(60, 255, 154, 0.35);
  background: linear-gradient(135deg, rgba(26, 156, 255, 0.18), rgba(60, 255, 154, 0.16));
  color: #c6fbe3;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}