:root {
  --bg: #05080d;
  --panel: #0c131e;
  --panel2: #111d2c;
  --line: #22344b;
  --blue: #138be5;
  --blue2: #66bfff;
  --white: #f5f8fc;
  --muted: #9dafc4;
  --green: #28d69a;
  --amber: #f0b64c;
  --red: #ff5c6c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(circle at 15% 0, #102640 0, transparent 30%),
    var(--bg);
  color: var(--white);
  font:
    16px/1.45 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid #192638;
  background: #060a11e8;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  background: none;
  border: 0;
  color: white;
  text-align: left;
}
.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand b {
  letter-spacing: 0.18em;
  color: var(--blue2);
}
.brand small {
  color: var(--muted);
}
nav {
  display: flex;
  gap: 8px;
}
nav button,
.ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 10px;
}
nav button:hover,
.ghost:hover {
  border-color: var(--line);
  color: white;
}
.primary {
  background: linear-gradient(135deg, var(--blue), #0768be) !important;
  color: white !important;
  border: 1px solid #3aa8f5 !important;
  padding: 11px 16px !important;
  border-radius: 10px;
  box-shadow: 0 8px 28px #0789e72b;
}
.danger {
  background: #3a1118 !important;
  border-color: #802b39 !important;
}
.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}
.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: center;
  padding: 34px 0 44px;
}
.eyebrow {
  color: var(--blue2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.78rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  margin: 12px 0 18px;
  max-width: 760px;
}
.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 690px;
}
.hero-logo {
  max-width: 340px;
  width: 100%;
  filter: drop-shadow(0 24px 50px #087ac73d);
}
.stats,
.grid {
  display: grid;
  gap: 16px;
}
.stats {
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
}
.stat,
.card {
  background: linear-gradient(145deg, #0d1724, #09111c);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.stat b {
  font-size: 1.8rem;
}
.stat span {
  display: block;
  color: var(--muted);
}
.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card h3 {
  margin: 5px 0 8px;
  font-size: 1.25rem;
}
.meta,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.chip,
.status {
  font-size: 0.78rem;
  padding: 5px 9px;
  border-radius: 999px;
  background: #17263a;
  color: #c8d8e9;
  border: 1px solid #2c4665;
}
.status {
  color: var(--green);
  border-color: #246e58;
  background: #0e2a23;
}
.card p,
.muted {
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stack {
  display: grid;
  gap: 14px;
}
.panel {
  background: #09111c;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.full {
  grid-column: 1/-1;
}
label {
  display: grid;
  gap: 7px;
  color: #c6d4e2;
  font-size: 0.9rem;
}
input,
select,
textarea {
  width: 100%;
  background: #060b12;
  color: white;
  border: 1px solid #2a3c52;
  border-radius: 10px;
  padding: 12px 13px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #138be522;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.login {
  max-width: 460px;
  margin: 60px auto;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-bottom: 18px;
  padding-bottom: 6px;
}
.tabs button {
  white-space: nowrap;
  background: #0b1522;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 10px;
}
.tabs button.active {
  background: #12304c;
  color: #fff;
  border-color: #258ed6;
}
.table {
  display: grid;
  gap: 10px;
}
.record {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  background: #0c1724;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
}
.record strong {
  display: block;
}
.record small {
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.copy {
  background: #132339;
  color: #d8e8f7;
  border: 1px solid #2e4865;
  border-radius: 9px;
  padding: 8px 10px;
}
.banner {
  border: 1px solid #1f5d8f;
  background: #0d2438;
  padding: 14px;
  border-radius: 12px;
  color: #cfeeff;
}
.notice {
  background: #2a210e;
  border: 1px solid #795e20;
  color: #f3d888;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.88rem;
}
.pay-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pay {
  border: 1px solid var(--line);
  background: #0a1420;
  border-radius: 12px;
  padding: 14px;
}
.pay b {
  display: block;
  color: var(--blue2);
  font-size: 1.15rem;
}
#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #12324a;
  border: 1px solid #2aa6f2;
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  z-index: 30;
  opacity: 0;
  transform: translateY(15px);
  transition: 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: none;
}
footer {
  text-align: center;
  padding: 24px;
  color: #65788d;
  border-top: 1px solid #131f2e;
}
@media (max-width: 760px) {
  header {
    height: auto;
    align-items: flex-start;
  }
  .brand span {
    display: none;
  }
  nav {
    gap: 2px;
  }
  nav button {
    font-size: 0.82rem;
    padding: 9px 8px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-logo {
    display: none;
  }
  .grid,
  .stats,
  .form-grid,
  .pay-options {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .wrap {
    width: min(100% - 22px, 1180px);
    padding-top: 24px;
  }
  .record {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.65rem;
  }
}
