:root {
  color-scheme: dark;
  --bg: #06080c;
  --panel: rgba(13, 18, 26, 0.86);
  --panel-strong: rgba(17, 23, 32, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --line-hot: rgba(239, 68, 68, 0.5);
  --text: #f5f7fb;
  --muted: #93a1b1;
  --soft: #c6d0dc;
  --red: #ef4444;
  --red-2: #b91c1c;
  --green: #22c55e;
  --amber: #f59e0b;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Kanit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(6, 8, 12, 0.78), rgba(6, 8, 12, 0.86)),
    url("./assets/security-bg.png") center / cover fixed,
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.52;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 68, 68, 0.22), transparent 22rem),
    radial-gradient(circle at 85% 80%, rgba(34, 197, 94, 0.08), transparent 18rem),
    linear-gradient(180deg, transparent, #06080c 88%);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.portal {
  padding: 48px 0 64px;
}

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

.identity-panel,
.check-form,
.result-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 34%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.identity-panel {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(239, 68, 68, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(11, 15, 22, 0.86);
}

.identity-panel::before,
.check-form::before,
.result-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  color: #c4f8d8;
  background: rgba(8, 26, 18, 0.72);
  font-size: 0.84rem;
}

.live-pill span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.85);
}

.eyebrow {
  margin: 24px 0 0;
  color: #ff5a5a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
}

.identity-panel h1 {
  position: relative;
  z-index: 1;
  margin: 10px 0 16px;
  font-size: clamp(1.95rem, 3.1vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.identity-panel p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--soft);
  line-height: 1.75;
}

.identity-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.identity-footer span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d8e1ea;
  background: rgba(8, 11, 17, 0.62);
  font-size: 0.82rem;
}

.workspace {
  display: grid;
  grid-template-rows: auto auto;
  gap: 14px;
}

.check-form,
.result-panel {
  padding: 24px;
}

.check-form {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 42%),
    var(--panel-strong);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-title p,
.section-title h2 {
  margin: 0;
}

.section-title p {
  color: var(--muted);
  font-size: 0.86rem;
}

.section-title h2,
.result-content h2,
.result-empty h2 {
  margin-top: 4px;
  font-size: 1.48rem;
  letter-spacing: 0;
}

.type-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin: 20px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(4, 7, 11, 0.74);
}

.type-picker label {
  cursor: pointer;
}

.type-picker input {
  position: absolute;
  opacity: 0;
}

.type-picker span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--soft);
  background: transparent;
  font-weight: 600;
  transition: 160ms ease;
}

.type-picker input:checked + span {
  border-color: var(--line-hot);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(127, 29, 29, 0.22));
  box-shadow: inset 0 0 18px rgba(239, 68, 68, 0.1);
}

.input-group {
  display: grid;
  gap: 8px;
  color: var(--soft);
}

.input-group input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  outline: 0;
  color: var(--text);
  background: rgba(2, 6, 10, 0.72);
  font: inherit;
}

.input-group input:focus {
  border-color: rgba(239, 68, 68, 0.74);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.hint {
  min-height: 22px;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(135deg, #ef4444, #b91c1c);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.28);
}

.primary-action:hover {
  filter: brightness(1.06);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.75;
}

.result-panel {
  min-height: 246px;
}

.result-empty {
  display: grid;
  height: 100%;
  align-content: start;
  color: var(--muted);
}

.scan-visual {
  position: relative;
  width: min(340px, 100%);
  height: 64px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.2), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 20px),
    rgba(3, 7, 11, 0.74);
}

.scan-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.76), transparent);
  transform: translateX(-84%);
  animation: scanSweep 2.8s ease-in-out infinite;
}

.scan-visual span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.88);
}

.scan-visual span:nth-child(1) {
  left: 18%;
  top: 20px;
}

.scan-visual span:nth-child(2) {
  left: 51%;
  top: 36px;
}

.scan-visual span:nth-child(3) {
  right: 15%;
  top: 18px;
}

@keyframes scanSweep {
  0% {
    transform: translateX(-88%);
  }

  52%,
  100% {
    transform: translateX(88%);
  }
}

.result-empty h2 {
  color: var(--text);
}

.hidden {
  display: none;
}

.result-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.result-badge {
  display: grid;
  min-width: 78px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #06100a;
  background: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
}

.result-badge.banned {
  color: #fff;
  background: var(--red);
}

.result-badge.review {
  color: #111827;
  background: var(--amber);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.result-grid div {
  min-height: 66px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(2, 6, 10, 0.48);
}

.result-grid dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.result-grid dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 650;
}

.result-grid .verdict-danger,
.result-grid dd.verdict-danger {
  color: #ff4d4f;
}

.result-grid .verdict-field {
  grid-column: 1 / -1;
  text-align: center;
}

.result-grid .verdict-field dt,
.result-grid .verdict-field dd {
  text-align: center;
}

.result-grid .verdict-discord dd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text);
}

.discord-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5865f2;
  text-decoration: none;
  line-height: 1;
  vertical-align: middle;
  transition: transform 160ms ease, filter 160ms ease;
}

.discord-inline-link:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.discord-inline-link svg {
  width: 22px;
  height: 22px;
  display: block;
}

.result-note {
  margin: 16px 0 0;
  color: var(--soft);
  line-height: 1.7;
}

@media (max-width: 960px) {
  .portal {
    padding-top: 30px;
  }

  .experience {
    grid-template-columns: 1fr;
  }

  .identity-panel {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1160px);
  }

  .portal {
    padding: 22px 0 44px;
  }

  .identity-panel,
  .check-form,
  .result-panel {
    padding: 20px;
  }

  .identity-panel h1 {
    font-size: 2rem;
  }

  .identity-panel {
    min-height: 0;
  }

  .workspace,
  .type-picker,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
