:root {
  --bg: #070a0f;
  --panel: rgba(14, 18, 28, 0.72);
  --panel2: rgba(14, 18, 28, 0.5);
  --text: #e7eefc;
  --muted: rgba(231, 238, 252, 0.74);
  --faint: rgba(231, 238, 252, 0.52);
  --line: rgba(231, 238, 252, 0.14);
  --ok: #2cf0a3;
  --warn: #ffbf69;
  --bad: #ff4d6d;
  --accent: #4ce4ff;
  --accent2: #b6ff4c;
  --shadow: rgba(0, 0, 0, 0.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
}

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.blob {
  position: absolute;
  filter: blur(40px);
  opacity: 0.52;
  transform: translateZ(0);
  animation: float 14s ease-in-out infinite;
}

.blob.b1 {
  width: 520px;
  height: 520px;
  left: -120px;
  top: -160px;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 58%),
    radial-gradient(circle at 70% 70%, var(--accent2), transparent 52%);
}

.blob.b2 {
  width: 620px;
  height: 620px;
  right: -220px;
  bottom: -240px;
  background: radial-gradient(circle at 35% 30%, #ff6bd6, transparent 56%),
    radial-gradient(circle at 70% 70%, var(--accent), transparent 54%);
  animation-delay: -6s;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.23'/%3E%3C/svg%3E");
  opacity: 0.25;
  mix-blend-mode: overlay;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, 22px) scale(1.06);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 28px auto 60px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(76, 228, 255, 0.92), rgba(182, 255, 76, 0.92));
  box-shadow: 0 14px 40px var(--shadow);
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(7, 10, 15, 0.18), rgba(7, 10, 15, 0.62));
}

.name {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.tagline {
  font-size: 13px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 18, 28, 0.42);
  backdrop-filter: blur(12px);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(255, 191, 105, 0.18);
}

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(44, 240, 163, 0.16);
}

.dot.bad {
  background: var(--bad);
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.16);
}

.pillText {
  font-size: 13px;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 40px);
  letter-spacing: -0.6px;
}

.sub {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 70px var(--shadow);
  overflow: hidden;
}

.cardHead {
  padding: 18px 18px 10px;
}

.cardHead h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.cardHead p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stepList {
  margin: 0;
  padding: 0 0 14px;
  list-style: none;
}

.step {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.stepTop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.stepName {
  font-weight: 700;
}

.stepState {
  font-size: 12px;
  color: var(--faint);
}

.stepBody {
  margin-top: 10px;
}

.label {
  display: block;
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 8px;
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.hidden {
  display: none !important;
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(231, 238, 252, 0.16);
  background: rgba(7, 10, 15, 0.5);
  color: var(--text);
  outline: none;
}

.input:focus {
  border-color: rgba(76, 228, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(76, 228, 255, 0.12);
}

.mono {
  font-family: var(--mono);
}

.btn {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(76, 228, 255, 0.32);
  background: linear-gradient(135deg, rgba(76, 228, 255, 0.22), rgba(182, 255, 76, 0.12));
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(182, 255, 76, 0.42);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  pointer-events: none;
}

.btn.ghost {
  border-color: rgba(231, 238, 252, 0.18);
  background: rgba(14, 18, 28, 0.55);
  color: var(--muted);
}

.btn.ghost:hover {
  border-color: rgba(231, 238, 252, 0.28);
  color: var(--text);
}

.hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.45;
}

.action {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(231, 238, 252, 0.18);
  background: rgba(7, 10, 15, 0.35);
  font-size: 12px;
  color: var(--muted);
}

.action.ok {
  border-color: rgba(44, 240, 163, 0.28);
  color: rgba(44, 240, 163, 0.95);
}

.action.warn {
  border-color: rgba(255, 191, 105, 0.28);
  color: rgba(255, 191, 105, 0.95);
}

.action.bad {
  border-color: rgba(255, 77, 109, 0.28);
  color: rgba(255, 77, 109, 0.95);
}

.pairBox {
  border: 1px solid rgba(231, 238, 252, 0.14);
  border-radius: 14px;
  background: rgba(7, 10, 15, 0.42);
  overflow: hidden;
}

#pairedBotBox {
  margin-bottom: 10px;
}

#pairedBotHint {
  margin-top: 6px;
  margin-bottom: 10px;
}

.pairRow {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(231, 238, 252, 0.12);
  align-items: center;
}

.pairRow:first-child {
  border-top: none;
}

.pairLabel {
  font-size: 12px;
  color: var(--faint);
}

.pairValue {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billingActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  white-space: normal;
  overflow: visible;
}

.pricingIntro {
  padding: 12px;
  border-top: 1px solid rgba(231, 238, 252, 0.12);
}

.pricingTitle {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricingGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.priceCard {
  border: 1px solid rgba(231, 238, 252, 0.14);
  border-radius: 12px;
  background: rgba(7, 10, 15, 0.4);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.priceCard.popular {
  border-color: rgba(182, 255, 76, 0.45);
  box-shadow: 0 0 0 1px rgba(182, 255, 76, 0.18) inset;
}

.priceTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.priceName {
  font-size: 14px;
  font-weight: 700;
}

.priceBadge {
  font-size: 10px;
  border: 1px solid rgba(182, 255, 76, 0.5);
  color: rgba(182, 255, 76, 0.95);
  border-radius: 999px;
  padding: 2px 7px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.priceSub {
  font-size: 11px;
  color: var(--faint);
}

.priceAmount {
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.priceAmount .per {
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
  margin-left: 4px;
}

.priceCredits {
  font-size: 12px;
  color: rgba(44, 240, 163, 0.95);
}

.priceFeatures {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 3px;
  font-size: 11px;
  color: var(--muted);
}

.priceCta {
  margin-top: 2px;
}

.creditTopup {
  border-top: 1px solid rgba(231, 238, 252, 0.12);
  padding: 12px;
}

.creditTopupTitle {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 8px;
}

.creditPackActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted rgba(76, 228, 255, 0.4);
}

.link:hover {
  border-bottom-color: rgba(182, 255, 76, 0.7);
  color: var(--accent2);
}

.mini {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(231, 238, 252, 0.16);
  background: rgba(14, 18, 28, 0.65);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.mini:hover {
  color: var(--text);
  border-color: rgba(231, 238, 252, 0.28);
}

.divider {
  height: 1px;
  background: var(--line);
}

.result {
  padding: 14px 18px 18px;
}

.resultHead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.resultTitle {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.resultStatus {
  font-size: 12px;
  color: var(--faint);
}

.resultBox {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(231, 238, 252, 0.14);
  background: rgba(7, 10, 15, 0.55);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
}

.rdPanel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(231, 238, 252, 0.12);
  background: rgba(7, 10, 15, 0.38);
}

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

.rdTitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.rdBadge {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(231, 238, 252, 0.2);
  font-size: 11px;
  color: var(--muted);
  background: rgba(14, 18, 28, 0.6);
}

.rdBadge.ok {
  border-color: rgba(44, 240, 163, 0.4);
  color: rgba(44, 240, 163, 0.95);
}

.rdBadge.warn {
  border-color: rgba(255, 191, 105, 0.4);
  color: rgba(255, 191, 105, 0.95);
}

.rdBadge.bad {
  border-color: rgba(255, 77, 109, 0.45);
  color: rgba(255, 77, 109, 0.95);
}

.rdSteps {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}

.rdStep {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.rdNum {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(76, 228, 255, 0.35);
  background: rgba(76, 228, 255, 0.18);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rdMeta {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}

.rdStatus {
  font-size: 12px;
  color: var(--muted);
}

.rdTimer {
  font-size: 12px;
  color: var(--faint);
}

.activity {
  padding: 14px 18px 18px;
}

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

.activityBlock {
  border: 1px solid rgba(231, 238, 252, 0.12);
  border-radius: 14px;
  background: rgba(7, 10, 15, 0.4);
  padding: 10px 12px;
}

.activityTitle {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 8px;
  font-weight: 700;
}

.activityList {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.activityItem {
  border: 1px solid rgba(231, 238, 252, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(7, 10, 15, 0.45);
}

.activityMain {
  color: var(--text);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activityMeta {
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.4;
}

.compareGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px 18px;
}

.cmpTitle {
  font-weight: 800;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid rgba(231, 238, 252, 0.14);
  border-radius: 12px;
  background: rgba(7, 10, 15, 0.42);
}

.cmpRow {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cmpRow > div {
  padding: 10px 10px;
  border: 1px solid rgba(231, 238, 252, 0.12);
  border-radius: 12px;
  background: rgba(7, 10, 15, 0.32);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.cmpRow > div.ok {
  color: rgba(231, 238, 252, 0.9);
  border-color: rgba(44, 240, 163, 0.22);
  background: linear-gradient(135deg, rgba(44, 240, 163, 0.08), rgba(76, 228, 255, 0.07));
}

.note {
  border-top: 1px solid var(--line);
  padding: 14px 18px 18px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .pairRow {
    grid-template-columns: 110px 1fr;
  }
  .pairRow .mini {
    grid-column: 2;
    justify-self: start;
  }
  .activityGrid {
    grid-template-columns: 1fr;
  }
  .pricingGrid {
    grid-template-columns: 1fr;
  }
}
