:root {
  --bg: #06080d;
  --bg-2: #0b1020;
  --card: #111827;
  --card-2: #151c2e;
  --card-3: #1b2437;
  --border: rgba(148, 163, 184, 0.18);

  --text: #f8fafc;
  --muted: #94a3b8;

  --green: #00ff88;
  --green-dark: #00c46a;
  --blue: #00c2ff;
  --orange: #ff7a00;
  --red: #ff4d4d;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 10% 5%, rgba(0, 255, 136, 0.14), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(0, 194, 255, 0.16), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(255, 122, 0, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 8, 13, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1250px;
  margin: auto;
  padding: 15px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.6px;
}

.logo span {
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: #dbeafe;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav a:hover {
  color: #041014;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.page {
  max-width: 1250px;
  margin: auto;
  padding: 30px 22px;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(21, 28, 46, 0.92)),
    radial-gradient(circle at top right, rgba(0, 194, 255, 0.22), transparent 35%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 38px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0,255,136,0.28), transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.hero h1 span,
.green {
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 860px;
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.28);
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 194, 255, 0.45);
  box-shadow: 0 18px 45px rgba(0, 194, 255, 0.08);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--green), var(--blue));
}

.card h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.card p {
  color: var(--muted);
  line-height: 1.65;
}

.value {
  font-size: 32px;
  font-weight: 950;
  color: var(--green);
}

.section {
  margin-top: 34px;
}

.section h2 {
  position: relative;
  color: var(--text);
  margin-bottom: 18px;
  padding-left: 14px;
}

.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 5px;
  height: 24px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--green), var(--blue));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  background: linear-gradient(180deg, rgba(21, 28, 46, 0.95), rgba(17, 24, 39, 0.95));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 17px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 850;
}

input,
select {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #070b14;
  color: white;
  font-size: 15px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.12);
}

.btn-row {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 24px;
}

button,
.btn {
  background: linear-gradient(90deg, var(--green), var(--blue));
  color: #031014;
  border: none;
  padding: 14px 22px;
  border-radius: 15px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 255, 136, 0.16);
  transition: 0.2s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 194, 255, 0.18);
}

.btn.secondary {
  background: #111827;
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: none;
}

.btn.secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.loader {
  display: none;
  margin-top: 18px;
  color: var(--green);
  font-weight: 900;
}

.error {
  display: none;
  margin-top: 18px;
  background: rgba(255, 77, 77, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 77, 77, 0.35);
  padding: 16px;
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
  vertical-align: top;
}

th {
  background: #1b2437;
  color: var(--green);
  font-weight: 950;
}

tr:hover {
  background: rgba(0, 194, 255, 0.05);
}

.tip {
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.08), rgba(0, 194, 255, 0.06));
  border: 1px solid var(--border);
  border-left: 5px solid var(--orange);
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 12px;
  color: #e5e7eb;
}

canvas {
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  max-height: 360px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  color: #94a3b8;
  text-align: center;
  background: rgba(6, 8, 13, 0.55);
}

@media (max-width: 820px) {
  .topbar-inner {
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    justify-content: center;
  }

  .nav a {
    font-size: 13px;
    padding: 7px 8px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 26px;
  }

  .page {
    padding: 22px 14px;
  }

  th,
  td {
    padding: 12px;
    font-size: 14px;
  }
}

@media print {
  .topbar,
  .footer,
  .btn-row {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  body::before {
    display: none;
  }

  .card,
  .hero,
  table,
  canvas {
    background: white;
    color: black;
    border: 1px solid #ccc;
    box-shadow: none;
  }
}