:root {
  color-scheme: dark;
  --bg-0: #03040c;
  --bg-1: #080b1f;
  --bg-2: #11133a;
  --panel: rgba(8, 14, 36, .74);
  --panel-strong: rgba(10, 18, 46, .92);
  --panel-soft: rgba(15, 22, 54, .62);
  --text: #f4f7ff;
  --muted: #aeb8d9;
  --muted-2: #7883ad;
  --border: rgba(137, 180, 255, .25);
  --border-hot: rgba(255, 77, 225, .55);
  --blue: #49c7ff;
  --blue-2: #3368ff;
  --pink: #ff45dc;
  --violet: #9d5cff;
  --green: #46ff9a;
  --yellow: #ffd766;
  --danger: #ff6b8a;
  --danger-bg: rgba(255, 67, 111, .12);
  --ok: #64ffb0;
  --ok-bg: rgba(70, 255, 154, .12);
  --shadow-blue: 0 0 20px rgba(73, 199, 255, .34), 0 0 54px rgba(51, 104, 255, .20);
  --shadow-pink: 0 0 20px rgba(255, 69, 220, .36), 0 0 58px rgba(255, 69, 220, .18);
  --shadow-panel: 0 22px 80px rgba(0, 0, 0, .46);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body.neon-body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 69, 220, .22), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(73, 199, 255, .20), transparent 28rem),
    radial-gradient(circle at 50% 108%, rgba(111, 55, 255, .35), transparent 42rem),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 44%, #050615 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.neon-body::before,
body.neon-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body.neon-body::before {
  background:
    linear-gradient(rgba(73, 199, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 69, 220, .045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.75) 38%, rgba(0,0,0,.2));
}

body.neon-body::after {
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(73, 199, 255, .16) 36.4%, transparent 37%),
    linear-gradient(62deg, transparent 0 61%, rgba(255, 69, 220, .12) 61.4%, transparent 62%),
    radial-gradient(circle at 18% 74%, rgba(73, 199, 255, .16), transparent 16rem),
    radial-gradient(circle at 76% 72%, rgba(255, 69, 220, .13), transparent 18rem);
  opacity: .9;
  z-index: -1;
}

a { color: inherit; }

.shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 42px;
}

.auth-body {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .72fr);
  gap: 24px;
  align-items: stretch;
}

.panel,
.topbar,
.card,
.login-card,
.hero-card,
.stat-card,
.side-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
    var(--panel);
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px);
}

.panel::before,
.topbar::before,
.card::before,
.login-card::before,
.hero-card::before,
.stat-card::before,
.side-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(73, 199, 255, .72), rgba(255, 69, 220, .68), rgba(70, 255, 154, .32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: .65;
}

.hero-card {
  min-height: 645px;
  padding: 34px;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -26% -18%;
  height: 58%;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(73, 199, 255, .38) 7.3% 7.7%, transparent 8%),
    linear-gradient(70deg, transparent 0 44%, rgba(255, 69, 220, .32) 44.3% 44.8%, transparent 45%),
    linear-gradient(118deg, transparent 0 55%, rgba(73, 199, 255, .30) 55.3% 55.8%, transparent 56%);
  filter: blur(.2px);
  transform: perspective(720px) rotateX(58deg);
  opacity: .85;
}

.kicker,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 69, 220, .58);
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffd9fa;
  background: rgba(255, 69, 220, .08);
  box-shadow: var(--shadow-pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-title,
.auth-title,
.page-title {
  margin: 18px 0 10px;
  line-height: .98;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 780px;
  font-size: clamp(2.625rem, 1.4231rem + 3.8462vw, 4.5rem);
}

.auth-title {
  font-size: clamp(32px, 4.2vw, 48px);
}

.page-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.neon-text {
  color: var(--pink);
  text-shadow: 0 0 18px rgba(255, 69, 220, .72), 0 0 38px rgba(255, 69, 220, .24);
}

.blue-text {
  color: #dfeeff;
  text-shadow: 0 0 20px rgba(73, 199, 255, .45);
}

.subtitle,
.hint,
.small,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0;
  color: #d8e4ff;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.35;
}

.hud-window {
  position: relative;
  z-index: 1;
  width: min(620px, 94%);
  margin: 52px auto 0;
  border: 1px solid rgba(73, 199, 255, .44);
  border-radius: 25px;
  padding: 18px;
  background: rgba(7, 13, 33, .82);
  box-shadow: var(--shadow-blue), var(--shadow-pink), inset 0 0 22px rgba(73, 199, 255, .08);
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  color: #eaf4ff;
  font-weight: 800;
}

.hud-logo {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0 22%, #4285f4 22% 52%, #34a853 52% 72%, #fbbc05 72% 86%, #ea4335 86%);
  color: #071026;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(73, 199, 255, .28);
}

.hud-dots { display: flex; gap: 6px; }
.hud-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.24); }
.hud-dots span:nth-child(1) { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.hud-dots span:nth-child(2) { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.hud-dots span:nth-child(3) { background: var(--green); box-shadow: 0 0 10px var(--green); }

.hud-grid {
  display: grid;
  grid-template-columns: .72fr 1fr .72fr;
  gap: 14px;
}

.hud-menu,
.hud-list,
.hud-status {
  border: 1px solid rgba(137, 180, 255, .20);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  padding: 14px;
}

.hud-menu div,
.hud-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  color: #c9d7ff;
  font-size: 13px;
}

.hud-menu div:nth-child(3),
.hud-list div {
  background: rgba(73, 199, 255, .10);
  border: 1px solid rgba(73, 199, 255, .20);
}

.check {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #06100c;
  background: var(--green);
  box-shadow: 0 0 16px rgba(70, 255, 154, .55);
  font-size: 12px;
  font-weight: 900;
}

.status-ring {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 10px auto 14px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 100%, rgba(255,255,255,.08) 0);
  box-shadow: 0 0 28px rgba(70, 255, 154, .35);
}
.status-ring span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #071026;
  color: #eafff5;
  font-size: 26px;
  font-weight: 900;
}

.hero-features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.feature-tile {
  min-height: 94px;
  border-radius: 20px;
  border: 1px solid rgba(255, 69, 220, .34);
  padding: 16px;
  background: rgba(11, 16, 45, .82);
  box-shadow: inset 0 0 20px rgba(255, 69, 220, .06), 0 0 18px rgba(255, 69, 220, .15);
  color: #eaf1ff;
}
.feature-tile strong { display: block; font-size: 19px; margin-bottom: 4px; }
.feature-tile span { color: var(--muted); font-size: 13px; line-height: 1.4; }

.network-node {
  position: absolute;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 20px 20px 20px 4px;
  border: 1px solid rgba(255, 69, 220, .70);
  background: rgba(12, 18, 50, .88);
  color: #eaf3ff;
  box-shadow: var(--shadow-pink);
  font-weight: 900;
}
.network-node::after {
  content: "✓";
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--green);
  color: #062114;
  box-shadow: 0 0 16px rgba(70,255,154,.7);
  font-size: 14px;
}
.network-node small {
  position: absolute;
  bottom: -30px;
  font-size: 10px;
  color: var(--green);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(70, 255, 154, .68);
}
.node-a { left: 5%; top: 48%; }
.node-b { right: 8%; top: 43%; }
.node-c { left: 16%; bottom: 20%; }
.node-d { right: 18%; bottom: 19%; }

.login-card {
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-card::after,
.card::after,
.topbar::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(73,199,255,.9), rgba(255,69,220,.8), transparent);
  box-shadow: 0 0 24px rgba(73,199,255,.6);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(73, 199, 255, .46);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(73,199,255,.22), rgba(255,69,220,.16));
  box-shadow: var(--shadow-blue);
  font-size: 22px;
  font-weight: 900;
}

.brand-title { font-weight: 900; letter-spacing: -.02em; }
.brand-subtitle { color: var(--muted); font-size: 13px; margin-top: 2px; }

.form-stack { margin-top: 24px; }
.form-row { margin-bottom: 18px; }

label,
.label {
  display: block;
  margin-bottom: 8px;
  color: #eaf1ff;
  font-weight: 800;
}

input[type="text"],
input[type="password"],
textarea,
select {
  width: 100%;
  border: 1px solid rgba(137, 180, 255, .28);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(5, 9, 24, .78);
  box-shadow: inset 0 0 18px rgba(73, 199, 255, .06);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input[type="text"],
input[type="password"],
select { padding: 14px 15px; }
textarea {
  min-height: 460px;
  padding: 16px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

input::placeholder,
textarea::placeholder { color: rgba(174, 184, 217, .58); }

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(73, 199, 255, .76);
  box-shadow: 0 0 0 4px rgba(73, 199, 255, .13), 0 0 30px rgba(73, 199, 255, .14), inset 0 0 18px rgba(73, 199, 255, .08);
  background: rgba(7, 13, 32, .92);
}

.button,
button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(137, 180, 255, .28);
  border-radius: 14px;
  color: #eaf3ff;
  background: rgba(255, 255, 255, .045);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:hover,
button:hover,
a.button:hover {
  transform: translateY(-1px);
  border-color: rgba(73, 199, 255, .72);
  box-shadow: var(--shadow-blue);
  background: rgba(73, 199, 255, .10);
}

.button.primary,
button.primary,
a.button.primary {
  border-color: rgba(73, 199, 255, .80);
  background: linear-gradient(135deg, rgba(73, 199, 255, .86), rgba(96, 82, 255, .78) 54%, rgba(255, 69, 220, .78));
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

.button.danger,
button.danger { color: #ffd7e0; border-color: rgba(255, 107, 138, .42); }
.button.danger:hover,
button.danger:hover { border-color: rgba(255, 107, 138, .82); box-shadow: 0 0 22px rgba(255, 107, 138, .25); }

.full-button { width: 100%; }

.notice {
  border: 1px solid rgba(137, 180, 255, .30);
  border-radius: 18px;
  padding: 13px 15px;
  line-height: 1.45;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.notice.ok { color: var(--ok); border-color: rgba(70, 255, 154, .38); background: var(--ok-bg); }
.notice.err { color: #ffd1da; border-color: rgba(255, 107, 138, .42); background: var(--danger-bg); }

.topbar {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  border-radius: 24px;
}

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

.card { padding: 24px; }

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.side-card { padding: 22px; border-radius: 24px; }
.side-card h2 { margin: 0 0 10px; font-size: 22px; }
.side-list { display: grid; gap: 12px; margin-top: 18px; }
.side-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(137, 180, 255, .20);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, .035);
}
.side-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(73, 199, 255, .12);
  color: var(--blue);
  box-shadow: 0 0 18px rgba(73,199,255,.15);
  font-weight: 900;
}
.side-item strong { display: block; }
.side-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.35; }

.radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(137, 180, 255, .24);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}
.radio-card input { margin-top: 3px; accent-color: var(--pink); }
.radio-card strong { display: block; color: #edf4ff; }
.radio-card span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

code {
  border: 1px solid rgba(137, 180, 255, .20);
  border-radius: 7px;
  padding: 2px 5px;
  background: rgba(73, 199, 255, .10);
  color: #dbf5ff;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card { padding: 18px; border-radius: 20px; }
.stat-card span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.stat-card strong { display: block; font-size: 28px; line-height: 1; }

.table-panel { overflow-x: auto; }
.table-wrap { min-width: 930px; }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
th {
  padding: 0 12px 8px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
td {
  padding: 14px 12px;
  vertical-align: top;
  background: rgba(255, 255, 255, .045);
  border-top: 1px solid rgba(137, 180, 255, .16);
  border-bottom: 1px solid rgba(137, 180, 255, .16);
}
td:first-child { border-left: 1px solid rgba(137, 180, 255, .16); border-radius: 16px 0 0 16px; }
td:last-child { border-right: 1px solid rgba(137, 180, 255, .16); border-radius: 0 16px 16px 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(137, 180, 255, .24);
  background: rgba(255, 255, 255, .045);
  color: #eaf3ff;
  font-size: 12px;
  font-weight: 850;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.status-sent::before { background: var(--green); box-shadow: 0 0 12px var(--green); }
.status-failed::before { background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.status-retry::before { background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
.status-processing::before { background: var(--pink); box-shadow: 0 0 12px var(--pink); }

.inline { display: inline-flex; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 8px; }
.actions-cell .button { min-height: 36px; padding: 8px 11px; border-radius: 12px; margin: 0; }

.pre-panel {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 560px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(137, 180, 255, .24);
  border-radius: 18px;
  background: rgba(4, 8, 24, .82);
  color: #dce8ff;
  box-shadow: inset 0 0 22px rgba(73, 199, 255, .06);
  line-height: 1.55;
}

.section-title {
  margin: 24px 0 12px;
  color: #f4f7ff;
  font-size: 18px;
}

.pagination { margin-top: 20px; justify-content: flex-start; }
.filterbar { margin-bottom: 14px; justify-content: flex-start; }

.empty-state {
  padding: 44px 18px;
  text-align: center;
  color: var(--muted);
}

.redirect-card {
  width: min(520px, calc(100% - 40px));
  margin: 18vh auto 0;
  padding: 28px;
  text-align: center;
}

@media (max-width: 1120px) {
  .auth-shell,
  .form-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: auto; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.neon-body { padding: 0; }
  .auth-body { padding: 16px; }
  .shell { width: min(100% - 24px, 1440px); padding-top: 14px; }
  .hero-card, .login-card, .card, .topbar, .side-card { border-radius: 20px; padding: 18px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav, .actions { justify-content: flex-start; }
  .hero-title { font-size: 42px; }
  .hud-grid { grid-template-columns: 1fr; }
  .hud-menu, .hud-status { display: none; }
  .hero-features, .radio-grid, .stat-grid { grid-template-columns: 1fr; }
  .network-node { display: none; }
  textarea { min-height: 360px; }
}
.button.is-active,
a.button.is-active {
  border-color: rgba(255, 69, 220, .78);
  background: rgba(255, 69, 220, .14);
  box-shadow: var(--shadow-pink);
}
.center-lockup { justify-content: center; }
.date-value { font-size: 18px !important; line-height: 1.25 !important; text-transform: none; letter-spacing: -.02em; }
.text-center { text-align: center; }
.hud-status .text-center { margin: 0; }
