:root {
  color-scheme: dark;
  --bg: #080a0e;
  --surface: #11141a;
  --surface-raised: #171b22;
  --border: #272c35;
  --border-bright: #3a414d;
  --text: #f5f6f8;
  --muted: #9299a6;
  --muted-2: #6b7280;
  --lime: #d8ff57;
  --lime-soft: rgba(216, 255, 87, 0.12);
  --green: #52db8c;
  --red: #ff6b6b;
  --orange: #ffad5b;
  --blue: #7187ff;
  --radius: 18px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(216, 255, 87, 0.07), transparent 42%),
    var(--bg);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  top: 16%;
  left: -240px;
  background: var(--lime);
}

.ambient-two {
  top: 42%;
  right: -280px;
  background: #6476ff;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand-muted {
  color: var(--muted);
}

.brand-mark {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 6px;
  border-radius: 8px;
  color: #0a0c0e;
  background: var(--lime);
  transform: rotate(-2deg);
}

.brand-mark span {
  width: 3px;
  border-radius: 2px;
  background: currentColor;
}

.brand-mark span:nth-child(1) {
  height: 7px;
}

.brand-mark span:nth-child(2) {
  height: 15px;
}

.brand-mark span:nth-child(3) {
  height: 10px;
}

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

.badge,
.state-pill,
.progress-label {
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge {
  padding: 7px 10px;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 92px 0 84px;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(216, 255, 87, 0.1);
}

.hero h1 {
  margin: 0;
  max-width: 870px;
  font-size: clamp(54px, 7.5vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.072em;
  font-weight: 680;
}

.hero h1 span {
  color: #858c98;
  font-weight: 560;
}

.hero > p {
  max-width: 620px;
  margin: 34px auto 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(17, 20, 26, 0.74);
  backdrop-filter: blur(12px);
  text-align: left;
}

.hero-status > div:last-child {
  display: grid;
}

.hero-status span {
  font-size: 12px;
  font-weight: 650;
}

.hero-status small {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10px;
}

.status-dot {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--muted-2);
}

.status-dot.live::after {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.status-dot.connecting::after {
  background: var(--orange);
  animation: blink 1.2s infinite;
}

.status-dot.error::after {
  background: var(--red);
}

@keyframes blink {
  50% {
    opacity: 0.28;
  }
}

.dashboard,
.activity-section {
  padding: 76px 0 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-heading h2,
.modal-card h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.progress-label {
  padding: 8px 12px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 45%),
    var(--surface);
}

.setup-card {
  min-height: 480px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.setup-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.setup-card.complete {
  border-color: rgba(82, 219, 140, 0.25);
}

.setup-card.locked {
  opacity: 0.55;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-number {
  color: var(--muted-2);
  font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}

.state-pill {
  padding: 6px 9px;
  letter-spacing: 0.035em;
  text-transform: none;
}

.state-pill.good {
  color: var(--green);
  border-color: rgba(82, 219, 140, 0.24);
  background: rgba(82, 219, 140, 0.07);
}

.service-icon {
  width: 46px;
  height: 46px;
  margin: 42px 0 25px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.tasty-icon {
  color: #111;
  background: #f04b4c;
  font-size: 18px;
}

.account-icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 12px;
  background: var(--lime-soft);
  border: 1px solid rgba(216, 255, 87, 0.16);
}

.account-icon span {
  width: 4px;
  border-radius: 3px;
  background: var(--lime);
}

.account-icon span:nth-child(1) {
  height: 10px;
}

.account-icon span:nth-child(2) {
  height: 22px;
}

.account-icon span:nth-child(3) {
  height: 16px;
}

.discord-icon {
  grid-template-columns: 7px 7px;
  gap: 7px;
  background: #5865f2;
  position: relative;
}

.discord-icon::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 16px;
  border: 2px solid white;
  border-radius: 10px 10px 8px 8px;
}

.discord-eye {
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: white;
  z-index: 1;
}

.lock-icon {
  margin: 0 auto 24px;
  color: var(--lime);
  background: var(--lime-soft);
  border: 1px solid rgba(216, 255, 87, 0.15);
  font-size: 22px;
}

.setup-card h3,
.empty-state h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.setup-card > p {
  min-height: 68px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

form {
  display: grid;
  gap: 12px;
}

label {
  color: #b8bdc7;
  font-size: 11px;
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  border: 1px solid var(--border);
  outline: none;
  border-radius: 9px;
  color: var(--text);
  background: #0b0e13;
  font-size: 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus,
select:focus {
  border-color: rgba(216, 255, 87, 0.52);
  box-shadow: 0 0 0 3px rgba(216, 255, 87, 0.07);
}

input::placeholder {
  color: #555d69;
}

input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.secret-input {
  position: relative;
}

.secret-input input {
  padding-right: 55px;
}

.reveal {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.button {
  min-height: 43px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition:
    opacity 150ms ease,
    transform 150ms ease,
    background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.52;
  transform: none;
}

.button.primary {
  color: #0b0d0f;
  background: var(--lime);
}

.button.secondary {
  color: var(--text);
  border-color: var(--border-bright);
  background: #20242c;
}

.button.ghost {
  min-height: 36px;
  color: var(--muted);
  border-color: var(--border);
  background: transparent;
}

.button.small {
  padding: 0 12px;
  font-size: 10px;
}

.button.full {
  width: 100%;
}

.text-button {
  margin: 14px auto 0;
  padding: 4px;
  border: 0;
  color: var(--muted);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: #4c525c;
  text-underline-offset: 3px;
  cursor: pointer;
  font-size: 10px;
}

.inline-form {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.inline-form small {
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
}

.activity-section {
  padding-top: 72px;
}

.activity-card {
  min-height: 260px;
  overflow: hidden;
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.empty-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--lime);
  background: var(--lime-soft);
}

.event {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}

.event:last-child {
  border-bottom: 0;
}

.event-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--lime);
  background: var(--lime-soft);
  font-size: 14px;
}

.event.failed .event-mark {
  color: var(--red);
  background: rgba(255, 107, 107, 0.1);
}

.event-copy {
  display: grid;
  gap: 3px;
}

.event-copy strong {
  font-size: 12px;
}

.event-copy span,
.event time {
  color: var(--muted);
  font-size: 10px;
}

.security-strip {
  margin: 76px 0 80px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: 26px;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.security-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 255, 87, 0.17);
  border-radius: 50%;
  color: var(--lime);
  background: var(--lime-soft);
}

.security-strip > div:not(:first-child) {
  display: grid;
  gap: 5px;
}

.security-strip strong {
  font-size: 11px;
}

.security-strip span {
  color: var(--muted-2);
  font-size: 10px;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 28px;
  display: flex;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 9px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 4, 6, 0.82);
  backdrop-filter: blur(14px);
}

.modal-card {
  width: min(390px, 100%);
  padding: 34px;
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.modal-card p {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.modal-card label {
  text-align: left;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  gap: 10px;
}

.toast {
  width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid var(--border-bright);
  border-radius: 11px;
  color: var(--text);
  background: #1a1e25;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  border-color: rgba(255, 107, 107, 0.35);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 880px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .setup-card {
    min-height: auto;
  }

  .setup-card > p {
    min-height: auto;
  }

  .service-icon {
    margin-top: 28px;
  }

  .security-strip {
    grid-template-columns: auto 1fr;
  }

  .security-mark {
    grid-row: span 3;
    align-self: start;
  }
}

@media (max-width: 560px) {
  .topbar,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 470px;
    padding: 70px 0 62px;
  }

  .hero h1 {
    font-size: clamp(46px, 16vw, 68px);
  }

  .hero > p {
    font-size: 14px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .progress-label {
    display: none;
  }

  .dashboard {
    padding-top: 56px;
  }

  .setup-card {
    padding: 21px;
  }

  .security-strip {
    padding: 22px 6px;
    border-radius: 0;
  }

  footer {
    gap: 16px;
    line-height: 1.5;
  }
}
