:root {
  --bg-1: #05060a;
  --bg-2: #0d1220;
  --accent: #7bc2ff;
  --accent-2: #b39dff;
  --text: #eaf2ff;
  --muted: #9eaac2;
  --panel: rgba(11, 18, 34, 0.46);
  --border: rgba(190, 214, 255, 0.26);
  --danger: #ff5a7a;
  --ok: #39d98a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #1a2240 0%, var(--bg-1) 50%, #020205 100%);
  min-height: 100vh;
}

#bg-video {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(1.1) contrast(1.04) brightness(0.52);
}

#bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(circle at 68% 20%, rgba(120, 150, 255, 0.16), rgba(10, 14, 28, 0.55) 48%, rgba(3, 5, 12, 0.78) 100%);
}

.topbar {
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  background: linear-gradient(120deg, rgba(13, 22, 43, 0.48), rgba(10, 18, 36, 0.3));
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 30px rgba(0, 0, 0, 0.22);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 1.4rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  display: flex;
  gap: 0.8rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
}

nav a:hover { opacity: 1; color: var(--accent-2); }

.container {
  max-width: 980px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

.panel {
  position: relative;
  background: linear-gradient(160deg, rgba(22, 33, 58, 0.34), rgba(7, 13, 30, 0.24));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 26px 70px rgba(2, 4, 12, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 38%);
}

.hero h1 { margin-top: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.hero p { color: var(--muted); max-width: 70ch; }

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  border: 1px solid var(--border);
  color: var(--text);
  background: linear-gradient(130deg, rgba(26, 37, 61, 0.44), rgba(12, 20, 37, 0.35));
  border-radius: 10px;
  padding: 0.62rem 1rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #02131b;
  border: none;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 600;
}

input {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.65rem 0.7rem;
  background: rgba(14, 22, 40, 0.42);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

code {
  background: rgba(1, 1, 1, 0.35);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}

.flash {
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.flash.success {
  background: rgba(57, 217, 138, 0.12);
  border: 1px solid rgba(57, 217, 138, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.flash.error {
  background: rgba(255, 90, 122, 0.12);
  border: 1px solid rgba(255, 90, 122, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .container {
    margin-top: 1rem;
  }
}
