:root {
  --bg: #050816;
  --panel: rgba(9, 15, 32, 0.9);
  --panel-border: rgba(70, 214, 255, 0.2);
  --accent: #46d6ff;
  --accent-strong: #7ce8ff;
  --text: #f4f7ff;
  --muted: #8da3c6;
  --shadow: rgba(1, 8, 24, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  padding: 2rem;
  background: radial-gradient(circle at top left, #1d2b4d 0%, #050816 55%, #03050f 100%);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero,
.stat-card,
.panel {
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 20px 45px var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.6rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-card {
  min-width: 240px;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(70, 214, 255, 0.12);
}

.hero-card h2 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.hero-card p {
  color: #d8e4ff;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.stat-card strong {
  font-size: 1.35rem;
  color: var(--accent-strong);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 1rem;
}

.panel {
  padding: 1.2rem;
}

.form-panel h2,
.panel h2 {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

input,
button {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font: inherit;
}

input {
  margin-top: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

input::placeholder {
  color: #7d8cab;
}

button {
  margin-top: 0.4rem;
  background: linear-gradient(135deg, var(--accent), #3a8cff);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  transform: translateY(-1px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.panel-header input {
  max-width: 280px;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.8rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  color: var(--accent-strong);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 1rem 0;
}

@media (max-width: 900px) {
  .hero,
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
