:root {
  --bg: #050816;
  --bg-soft: #0a1020;
  --panel: rgba(10, 16, 31, 0.86);
  --panel-strong: rgba(8, 13, 26, 0.96);
  --panel-muted: rgba(9, 14, 25, 0.78);
  --line: rgba(0, 255, 255, 0.24);
  --line-strong: rgba(0, 255, 255, 0.62);
  --line-alt: rgba(57, 255, 20, 0.34);
  --text: #e7fbff;
  --text-soft: rgba(193, 231, 239, 0.72);
  --text-faint: rgba(138, 179, 188, 0.56);
  --primary: #00f6ff;
  --primary-strong: #60ffff;
  --success: #39ff14;
  --warning: #ffb000;
  --danger: #ff5478;
  --shadow: 0 0 0 1px rgba(0, 255, 255, 0.08), 0 18px 60px rgba(0, 0, 0, 0.52);
  --glow: 0 0 24px rgba(0, 246, 255, 0.2);
  --cut: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
  --font-body: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 246, 255, 0.12), transparent 22%),
    radial-gradient(circle at 80% 10%, rgba(57, 255, 20, 0.1), transparent 18%),
    linear-gradient(180deg, #040711 0%, #050816 42%, #03050c 100%);
  color: var(--text);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 255, 255, 0.04), transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03), transparent 1px);
  background-size: 100% 46px, 46px 100%;
  opacity: 0.18;
}

.noise-grid,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.noise-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.6px, transparent 0.6px);
  background-size: 22px 22px;
  opacity: 0.06;
}

.scanlines {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  background-size: 100% 3px;
  opacity: 0.1;
}

body.is-busy .scanlines {
  opacity: 0.18;
}

body.is-busy .console-panel,
body.is-busy .primary-button {
  box-shadow: 0 0 28px rgba(0, 246, 255, 0.16);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.ambient {
  position: absolute;
  z-index: 0;
  width: 360px;
  height: 360px;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.ambient-left {
  top: 40px;
  left: -90px;
  background: rgba(0, 246, 255, 0.18);
}

.ambient-right {
  right: -100px;
  top: 300px;
  background: rgba(57, 255, 20, 0.12);
}

.hero-card,
.card,
.modal-panel {
  position: relative;
  clip-path: var(--cut);
  background: linear-gradient(180deg, rgba(9, 16, 31, 0.97) 0%, rgba(6, 10, 20, 0.95) 100%);
  border: 1px solid rgba(0, 255, 255, 0.16);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hero-card::before,
.card::before,
.modal-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.06);
  pointer-events: none;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  padding: 38px 40px;
  overflow: hidden;
}

.hero-card .hero-copy {
  max-width: 720px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 32px 0 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.36), transparent);
  opacity: 0.45;
  pointer-events: none;
}

.hero-card::before {
  background:
    radial-gradient(circle at 82% 24%, rgba(0, 246, 255, 0.12), transparent 16%),
    radial-gradient(circle at 78% 58%, rgba(57, 255, 20, 0.08), transparent 18%);
}

.hero-copy,
.hero-side {
  position: relative;
  z-index: 1;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.route-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  margin-top: 20px;
  padding: 8px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.08);
  background: rgba(5, 11, 22, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.route-tab {
  min-height: 34px;
  padding: 0 14px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.14);
  background: rgba(0, 255, 255, 0.04);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease,
    color 0.18s ease;
}

.route-tab.active {
  border-color: rgba(0, 255, 255, 0.38);
  background: rgba(0, 246, 255, 0.14);
  color: var(--text);
  box-shadow: var(--glow);
}

.eyebrow,
.panel-kicker,
.support-label,
.tutorial-label {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-support,
.guide-list a,
.support-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.24);
  background: rgba(0, 255, 255, 0.08);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.top-support {
  white-space: nowrap;
}

.top-support:hover,
.guide-list a:hover,
.support-card a:hover,
.primary-button:hover,
.ghost-button:hover,
.guide-toggle:hover {
  box-shadow: 0 0 18px rgba(0, 246, 255, 0.26);
  transform: translateY(-1px);
  border-color: rgba(0, 255, 255, 0.48);
}

.hero-copy h1,
.result-title,
.modal-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.96;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-text,
.guide-list p,
.tutorial-card p,
.support-card p,
.step-head p,
.inline-note,
.result-desc,
.modal-head p {
  color: var(--text-soft);
  line-height: 1.8;
}

.hero-text {
  max-width: 560px;
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.9;
}

.hero-side {
  display: grid;
  gap: 16px;
  align-self: stretch;
  align-content: start;
  padding-left: 10px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hero-badges:empty {
  display: none;
}

.hero-badges span,
.status-item {
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.14);
  background: rgba(7, 15, 28, 0.88);
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.status-strip {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.status-item {
  position: relative;
  padding: 16px 18px 16px 20px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.status-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 246, 255, 0), rgba(0, 246, 255, 0.9), rgba(57, 255, 20, 0));
}

.status-item span {
  display: block;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.status-item strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(460px, 1.22fr);
  gap: 26px;
  margin-top: 24px;
  align-items: start;
}

.filter-layout {
  margin-top: 24px;
}

.filter-panel {
  padding: 30px;
}

.filter-console {
  margin-bottom: 22px;
  padding: 16px 18px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.12);
  background: var(--panel-muted);
  box-shadow: inset 0 0 24px rgba(0, 246, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.filter-console::after,
.console-panel::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.24), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.filter-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-console-head span,
.filter-console-head strong,
.filter-console-note,
.summary-chip span,
.summary-chip strong {
  font-family: var(--font-mono);
}

.filter-console-head span {
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.filter-console-head strong {
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.filter-console-note {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.filter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.filter-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.12);
  background: rgba(0, 255, 255, 0.05);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.filter-log {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.filter-log li {
  position: relative;
  padding-left: 14px;
  overflow: hidden;
  white-space: nowrap;
  animation:
    logBlink 0.4s ease,
    typingReveal 0.48s steps(30, end);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 20px;
}

.filter-block {
  display: grid;
  gap: 12px;
}

.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 20px;
}

.summary-chip {
  min-width: 120px;
  padding: 14px 16px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.12);
  background: var(--panel-muted);
  box-shadow: inset 0 0 18px rgba(0, 246, 255, 0.035);
  flex: 1 1 160px;
}

.summary-chip--unused {
  border-color: rgba(57, 255, 20, 0.18);
  background: rgba(57, 255, 20, 0.07);
}

.summary-chip--removed {
  border-color: rgba(255, 84, 120, 0.18);
  background: rgba(255, 84, 120, 0.07);
}

.summary-chip span {
  display: block;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.summary-chip strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 20px;
}

.card {
  padding: 30px;
}

.guide-panel {
  align-self: start;
  position: sticky;
  top: 18px;
}

.redeem-panel {
  align-self: start;
}

.panel-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.08);
}

.panel-header h2 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 16ch;
  text-wrap: balance;
}

.guide-toggle {
  display: none;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.18);
  background: rgba(0, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
}

.guide-content {
  display: grid;
  gap: 18px;
}

.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.guide-list li {
  position: relative;
  padding: 12px 14px 12px 28px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.07);
  background: rgba(6, 11, 21, 0.42);
}

.guide-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(57, 255, 20, 0.32);
  background: radial-gradient(circle, rgba(57, 255, 20, 0.65) 0, rgba(57, 255, 20, 0.08) 58%, transparent 70%);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.12);
}

.guide-list strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 2px;
}

.guide-list p {
  margin: 0;
  font-size: 13px;
}

.tutorial-card,
.hint-card,
.support-card,
.console-panel,
.inline-note,
.confirm-item,
.result-row {
  position: relative;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.12);
  background: var(--panel-muted);
}

.tutorial-card,
.hint-card,
.support-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 26px),
    var(--panel-muted);
}

.tutorial-card strong,
.support-card h3 {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 20px;
}

.support-card {
  padding-top: 16px;
}

.signal-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.signal-browser {
  position: relative;
  min-height: 170px;
  padding: 12px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.14);
  background: rgba(5, 11, 22, 0.96);
  overflow: hidden;
}

.signal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.signal-url {
  margin-top: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  word-break: break-all;
}

.signal-code,
.signal-input-lines {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.signal-code span,
.signal-input-lines span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 255, 255, 0.14);
}

.signal-code span:nth-child(1) {
  width: 18%;
}

.signal-code span:nth-child(2) {
  width: 62%;
}

.signal-code span:nth-child(3) {
  width: 56%;
}

.signal-code span:nth-child(4) {
  width: 70%;
}

.signal-code span:nth-child(5) {
  width: 14%;
}

.signal-input-lines span:nth-child(1) {
  width: 88%;
}

.signal-input-lines span:nth-child(2) {
  width: 72%;
}

.signal-input-lines span:nth-child(3) {
  width: 64%;
}

.signal-select,
.signal-paste {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 18px;
  background: rgba(57, 255, 20, 0.16);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.14);
}

.signal-select {
  top: 72px;
  animation: selectSweep 4.8s infinite ease-in-out;
}

.signal-paste {
  top: 80px;
  opacity: 0;
  background: rgba(0, 246, 255, 0.18);
  box-shadow: 0 0 18px rgba(0, 246, 255, 0.16);
  animation: pasteFlash 4.8s infinite ease-in-out;
}

.signal-arrow {
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  animation: arrowPulse 1.4s infinite ease-in-out;
}

.hint-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
}

.hint-card pre,
.console-log,
input,
textarea,
.field-status,
.field-error,
.confirm-item span,
.confirm-item strong,
.result-row span,
.result-row strong,
.text-link-button {
  font-family: var(--font-mono);
}

.hint-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.8;
}

.console-panel {
  margin-bottom: 22px;
  padding: 18px 18px;
  box-shadow: inset 0 0 24px rgba(0, 246, 255, 0.04);
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.04), transparent 28px),
    var(--panel-muted);
  overflow: hidden;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.console-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.console-head span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.console-head strong {
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  animation: statusPulse 1.8s infinite ease-in-out;
}

.console-demo-button {
  position: relative;
  min-height: 30px;
  padding: 0 10px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.2);
  background: rgba(0, 255, 255, 0.08);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.console-log {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  font-size: 12px;
}

.console-log li {
  position: relative;
  padding-left: 14px;
  animation: logBlink 0.4s ease;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  animation:
    logBlink 0.4s ease,
    typingReveal 0.48s steps(30, end);
}

.console-log li::before,
.filter-log li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 246, 255, 0.78);
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.22);
}

.redeem-form {
  display: grid;
  gap: 28px;
}

.step-block {
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.08);
  background: rgba(6, 11, 21, 0.54);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.step-block:hover {
  border-color: rgba(0, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 24px rgba(0, 246, 255, 0.05);
}

.step-head {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.28);
  background: rgba(0, 255, 255, 0.08);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--glow);
}

.step-index.secondary {
  color: var(--success);
  border-color: rgba(57, 255, 20, 0.3);
  background: rgba(57, 255, 20, 0.08);
}

.step-head h3 {
  margin: 2px 0 4px;
  color: var(--text);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.field-label {
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.field-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(0, 255, 255, 0.34);
}

input,
textarea {
  width: 100%;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.16);
  background: rgba(3, 8, 16, 0.94);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input {
  min-height: 52px;
  padding: 0 18px;
}

.terminal-input-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 56px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.16);
  background: rgba(3, 8, 16, 0.94);
  box-shadow: inset 0 0 16px rgba(0, 246, 255, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    transform 0.18s ease;
}

.terminal-prompt,
.terminal-suffix {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
}

.terminal-prompt {
  padding-left: 16px;
}

.terminal-suffix {
  padding-right: 16px;
  animation: caretBlink 0.9s infinite steps(1);
}

.terminal-input-shell input {
  min-height: 54px;
  padding: 0 12px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.terminal-input-shell:focus-within {
  border-color: rgba(0, 255, 255, 0.52);
  box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.34), 0 0 24px rgba(0, 255, 255, 0.12);
}

.terminal-input-shell.is-locked {
  border-color: rgba(57, 255, 20, 0.28);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.14), inset 0 0 16px rgba(57, 255, 20, 0.06);
}

.terminal-input-shell.is-locked .terminal-prompt,
.terminal-input-shell.is-locked .terminal-suffix {
  color: var(--success);
}

.terminal-input-shell input[readonly] {
  cursor: not-allowed;
  color: rgba(231, 251, 255, 0.82);
}

textarea {
  min-height: 244px;
  padding: 16px 18px;
  resize: vertical;
  line-height: 1.75;
}

input::placeholder,
textarea::placeholder {
  color: rgba(138, 179, 188, 0.45);
}

input:focus,
textarea:focus {
  border-color: rgba(0, 255, 255, 0.52);
  box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.34), 0 0 24px rgba(0, 255, 255, 0.12);
  background: rgba(3, 11, 19, 0.98);
}

.credential-shell {
  position: relative;
}

.credential-frame {
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.14);
  background: rgba(3, 8, 16, 0.92);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.credential-frame.valid {
  border-color: rgba(57, 255, 20, 0.42);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.3), 0 0 24px rgba(57, 255, 20, 0.12);
}

.credential-frame.invalid {
  border-color: rgba(255, 84, 120, 0.44);
  box-shadow: 0 0 0 1px rgba(255, 84, 120, 0.22), 0 0 24px rgba(255, 84, 120, 0.1);
}

.credential-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.08);
  background: rgba(0, 255, 255, 0.04);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.credential-body {
  display: grid;
  grid-template-columns: 42px 1fr;
}

.credential-lines {
  padding: 16px 0 16px 12px;
  border-right: 1px solid rgba(0, 255, 255, 0.08);
  color: rgba(138, 179, 188, 0.42);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.75;
}

.credential-lines span {
  display: block;
}

.credential-frame textarea {
  border: none;
  background: transparent;
  box-shadow: none;
}

.credential-frame:focus-within {
  border-color: rgba(0, 255, 255, 0.52);
  box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.34), 0 0 24px rgba(0, 255, 255, 0.12);
}

.credential-shell.valid textarea {
  background: rgba(7, 20, 10, 0.18);
}

.credential-shell.invalid textarea {
  background: rgba(29, 8, 14, 0.28);
}

.clear-credential-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.16);
  background: rgba(8, 16, 28, 0.92);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.field-error,
.field-status {
  min-height: 20px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  padding-left: 2px;
}

.field-error {
  color: var(--danger);
}

.field-status {
  color: var(--text-faint);
}

.field-status.success {
  color: var(--success);
}

.field-status.error {
  color: var(--danger);
}

.session-banner {
  margin: 18px 0 0;
  padding: 14px 16px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.18);
  background: rgba(0, 255, 255, 0.07);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.session-banner.success {
  border-color: rgba(57, 255, 20, 0.26);
  background: rgba(57, 255, 20, 0.08);
  color: var(--text);
}

.session-banner.error {
  border-color: rgba(255, 84, 120, 0.26);
  background: rgba(255, 84, 120, 0.08);
  color: #ffd5df;
}

.helper-row,
.action-row,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-row {
  margin-top: 2px;
  align-items: center;
  padding-top: 2px;
}

.text-link-button {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inline-note {
  padding: 14px 16px;
  color: var(--text-soft);
  font-size: 13px;
  background:
    linear-gradient(90deg, rgba(0, 246, 255, 0.08), transparent 45%),
    var(--panel-muted);
}

.primary-button,
.ghost-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 48px;
  padding: 0 22px;
  clip-path: var(--cut);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  isolation: isolate;
  backdrop-filter: blur(8px);
}

.primary-button {
  border: 1px solid rgba(0, 255, 255, 0.38);
  background: linear-gradient(180deg, rgba(0, 246, 255, 0.2) 0%, rgba(0, 246, 255, 0.08) 100%);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 18px rgba(0, 246, 255, 0.14);
}

.ghost-button {
  border: 1px solid rgba(138, 179, 188, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  color: var(--text-soft);
}

.primary-button::before,
.primary-button::after,
.console-demo-button::before,
.console-demo-button::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.primary-button:hover {
  text-shadow: 1px 0 rgba(255, 84, 120, 0.4), -1px 0 rgba(0, 246, 255, 0.5);
  animation: glitchSkew 0.22s linear 2;
}

.primary-button:hover::before,
.console-demo-button:hover::before {
  opacity: 0.45;
  color: rgba(255, 84, 120, 0.8);
  transform: translate(2px, 0);
}

.primary-button:hover::after,
.console-demo-button:hover::after {
  opacity: 0.45;
  color: rgba(0, 246, 255, 0.8);
  transform: translate(-2px, 0);
}

.primary-button:disabled,
.ghost-button:disabled,
.text-link-button:disabled,
.clear-credential-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal.hidden,
.toast.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.74);
  backdrop-filter: blur(8px);
}

.modal-panel {
  width: min(620px, calc(100vw - 28px));
  padding: 30px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, 0.14),
    0 28px 100px rgba(0, 0, 0, 0.58),
    0 0 42px rgba(0, 246, 255, 0.08);
}

.target-reticle {
  position: absolute;
  inset: 16px;
  pointer-events: none;
}

.reticle-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(0, 255, 255, 0.38);
  border-style: solid;
}

.reticle-corner.tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.reticle-corner.tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.reticle-corner.bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.reticle-corner.br {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
}

.modal-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  background-size: 100% 4px;
  opacity: 0.12;
}

body.modal-open .modal-panel {
  animation: modalRise 0.34s ease forwards;
}

body.modal-open .modal-panel::after {
  animation: scanSweep 2.2s linear infinite;
}

.target-banner {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  clip-path: var(--cut);
  border: 1px solid rgba(255, 176, 0, 0.26);
  background: rgba(255, 176, 0, 0.08);
  color: var(--warning);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

body.modal-open .target-banner {
  animation: targetPulse 1.1s infinite ease-in-out;
}

.modal-head {
  margin-top: 16px;
}

.target-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.target-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.12);
  background: rgba(0, 255, 255, 0.05);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.modal-head h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.confirm-item {
  padding: 16px 18px;
  min-height: 92px;
}

.confirm-item:first-child {
  grid-column: 1 / -1;
}

body.modal-open .confirm-item {
  animation: lockIn 0.34s ease both;
}

body.modal-open .confirm-item:nth-child(2) {
  animation-delay: 0.06s;
}

body.modal-open .confirm-item:nth-child(3) {
  animation-delay: 0.12s;
}

.confirm-item span {
  display: block;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.confirm-item strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 16px;
  word-break: break-word;
}

.accent-email {
  color: var(--warning) !important;
  text-shadow: 0 0 12px rgba(255, 176, 0, 0.16);
}

.accent-plan {
  color: var(--danger) !important;
  text-shadow: 0 0 12px rgba(255, 84, 120, 0.16);
}

.result-card {
  padding: 6px 0 0;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  clip-path: var(--cut);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.result-badge.success {
  border: 1px solid rgba(57, 255, 20, 0.3);
  background: rgba(57, 255, 20, 0.08);
  color: var(--success);
}

.result-badge.error {
  border: 1px solid rgba(255, 84, 120, 0.32);
  background: rgba(255, 84, 120, 0.08);
  color: var(--danger);
}

.result-badge.warning {
  border: 1px solid rgba(255, 176, 0, 0.32);
  background: rgba(255, 176, 0, 0.08);
  color: var(--warning);
}

.result-title {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 42px);
}

.result-desc {
  margin: 10px 0 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-summary {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.result-row {
  position: relative;
  padding: 16px 18px 16px 20px;
  overflow: hidden;
}

.result-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 246, 255, 0), rgba(0, 246, 255, 0.92), rgba(0, 246, 255, 0));
}

.result-row span {
  display: block;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.result-row strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 16px;
  word-break: break-word;
}

.result-raw-block {
  margin-top: 18px;
}

.result-raw-label {
  display: inline-block;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.result-raw {
  margin: 10px 0 0;
  padding: 16px 18px;
  overflow: auto;
  border: 1px solid rgba(0, 255, 255, 0.1);
  background: rgba(6, 12, 24, 0.78);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 30;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  min-height: 44px;
  padding: 10px 18px;
  clip-path: var(--cut);
  border: 1px solid rgba(0, 255, 255, 0.24);
  background: rgba(6, 12, 24, 0.94);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 24px;
  text-align: center;
  box-shadow: var(--glow);
}

.page-footer {
  width: min(1240px, calc(100vw - 28px));
  margin: 8px auto 32px;
  text-align: center;
}

.page-footer p {
  margin: 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
}

@media (max-width: 980px) {
  .hero-card,
  .content-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .guide-panel {
    position: static;
  }

  .hero-side {
    padding-left: 0;
  }

  .hero-badges {
    justify-content: flex-start;
  }

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

  .guide-toggle {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
  }

  .guide-panel.is-collapsed .guide-content {
    display: none;
  }

  .signal-demo {
    grid-template-columns: 1fr;
  }

  .signal-arrow {
    writing-mode: initial;
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 1240px);
    padding: 16px 0 28px;
  }

  .hero-card,
  .card,
  .modal-panel {
    padding: 20px 18px;
  }

  .hero-card::after {
    inset: auto 18px 0 18px;
  }

  .filter-console::after,
  .console-panel::after {
    inset: auto 14px 0 14px;
  }

  .panel-header h2 {
    font-size: 22px;
    max-width: none;
  }

  .hero-copy h1,
  .result-title,
  .modal-head h2 {
    font-size: 30px;
  }

  .hero-text {
    max-width: none;
  }

  .step-block {
    padding: 16px 14px 14px;
  }

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

  .confirm-item:first-child {
    grid-column: auto;
  }

  .action-row,
  .modal-actions,
  .helper-row {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .text-link-button {
    width: 100%;
    justify-content: flex-start;
  }

  .console-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .route-switch {
    width: 100%;
  }

  .route-tab {
    flex: 1 1 0;
    justify-content: center;
  }
}

@keyframes selectSweep {
  0%,
  18% {
    top: 74px;
    opacity: 0;
  }
  28%,
  48% {
    top: 74px;
    opacity: 1;
  }
  58%,
  100% {
    top: 124px;
    opacity: 0;
  }
}

@keyframes pasteFlash {
  0%,
  48% {
    opacity: 0;
    transform: scaleX(0.7);
  }
  58%,
  78% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(0.9);
  }
}

@keyframes arrowPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes logBlink {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingReveal {
  0% {
    max-width: 0;
    opacity: 0.45;
  }
  100% {
    max-width: 100%;
    opacity: 1;
  }
}

@keyframes glitchSkew {
  0% {
    transform: skewX(0deg);
  }
  25% {
    transform: skewX(4deg);
  }
  50% {
    transform: skewX(-4deg);
  }
  100% {
    transform: skewX(0deg);
  }
}

@keyframes modalRise {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scanSweep {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes targetPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 176, 0, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 176, 0, 0.18);
  }
}

@keyframes lockIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.16);
  }
}

@keyframes caretBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.18;
  }
}
