:root {
  --bg0: #070a12;
  --bg1: #0b1020;
  --panel: rgba(18, 24, 46, 0.78);
  --panel2: rgba(18, 24, 46, 0.55);
  --text: #eaf0ff;
  --muted: rgba(234, 240, 255, 0.72);
  --line: rgba(234, 240, 255, 0.12);
  --blue: #2f7bff;
  --blue2: #1b5fe6;
  --danger: #ff4d4d;
  --ok: #2ee59d;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(47,123,255,.20), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(46,229,157,.10), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
}

a { color: inherit; }

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(5, 7, 15, .55);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(47,123,255,.18);
  border: 1px solid rgba(47,123,255,.35);
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}
.brand .title {
  display: grid;
  line-height: 1.05;
}
.brand .title strong {
  font-size: 13px;
  letter-spacing: .6px;
}
.brand .title span {
  font-size: 11px;
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 650;
  font-size: 13px;
}
.btn:hover { background: rgba(255,255,255,.09); }
.btn.primary {
  border-color: rgba(47,123,255,.55);
  background: rgba(47,123,255,.20);
}
.btn.primary:hover { background: rgba(47,123,255,.28); }
.btn.danger {
  border-color: rgba(255,77,77,.45);
  background: rgba(255,77,77,.10);
}
.btn.danger:hover { background: rgba(255,77,77,.16); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card.soft {
  background: var(--panel2);
}

.main {
  padding: 26px 0 60px;
}

.h1 {
  font-size: 22px;
  margin: 0 0 6px;
}
.sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.tab {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.tab.active {
  border-color: rgba(47,123,255,.55);
  background: rgba(47,123,255,.18);
}

.grid {
  display: grid;
  grid-template-columns: 1.7fr .9fr;
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .brand { min-width: auto; }
}

.section {
  padding: 16px;
}

.form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
@media (max-width: 700px) {
  .row { grid-template-columns: 1fr; }
}
.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.input, select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
}
.input:focus, select:focus {
  border-color: rgba(47,123,255,.65);
  box-shadow: 0 0 0 4px rgba(47,123,255,.12);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}
.table th, .table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table th {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}
.table .actions-col {
  width: 120px;
}

.iconbtn {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  font-weight: 750;
  font-size: 12px;
}
.iconbtn:hover { background: rgba(255,255,255,.08); }
.iconbtn.danger {
  border-color: rgba(255,77,77,.4);
  background: rgba(255,77,77,.08);
}
.iconbtn.danger:hover { background: rgba(255,77,77,.14); }

.note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(234,240,255,.18);
  color: var(--muted);
  font-size: 12px;
}

.watermark {
  position: fixed;
  inset: auto 0 8%;
  text-align: center;
  font-weight: 900;
  letter-spacing: 10px;
  opacity: .10;
  pointer-events: none;
  font-size: clamp(28px, 7vw, 64px);
  color: rgba(255,255,255,.55);
  mix-blend-mode: overlay;
  user-select: none;
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,14,28,.85);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding: 10px 12px;
  border-radius: 14px;
  display: none;
  gap: 10px;
  align-items: center;
  max-width: min(520px, calc(100% - 28px));
}
.toast.show { display: inline-flex; }
.toast .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok);
}

 /* Landing cover */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 420px at 20% 20%, rgba(47,123,255,.35), transparent 65%),
    radial-gradient(900px 520px at 70% 30%, rgba(46,229,157,.16), transparent 60%),
    linear-gradient(180deg, rgba(7,10,18,.55), rgba(7,10,18,.92));
}
.hero-inner {
  position: relative;
  text-align: center;
  padding: 26px 0 70px;
}
.hero-card {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 18px 18px;
}
.hero-title {
  font-size: clamp(28px, 4.2vw, 44px);
  margin: 10px 0 6px;
  letter-spacing: 1px;
}
.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.hero-footer {
  margin-top: 14px;
  color: rgba(234,240,255,.55);
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.55);
  z-index: 30;
}
.modal.show { display: grid; }
.modal .box {
  width: min(520px, calc(100% - 28px));
  padding: 16px;
}
.modal .box h3 {
  margin: 0 0 6px;
}
.modal .box p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.modal .box .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px) {
  .modal .box .row2 { grid-template-columns: 1fr; }
}
.small {
  font-size: 12px;
  color: var(--muted);
}

/* Background (no video) */
.bg-gradient-layer{
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(59,130,246,0.25), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(6,182,212,0.18), transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(59,130,246,0.12), transparent 55%),
    linear-gradient(180deg, #050b18, #0b1020);
}
/* Ensure main UI sits above background */
.cover, .dash-header, .dashboard{
  position: relative;
  z-index: 1;
}
