:root {
  --bg: #080806;
  --panel: #111111;
  --panel-2: #191816;
  --border: rgba(241, 196, 15, 0.22);
  --gold: #f1c40f;
  --gold-2: #f39c12;
  --text: #f8f6ee;
  --muted: #b6ad91;
  --danger: #ff5c5c;
  --success: #33d17a;
  --warning: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 10%, rgba(241, 196, 15, 0.16), transparent 34%),
    radial-gradient(circle at 15% 80%, rgba(243, 156, 18, 0.12), transparent 38%),
    linear-gradient(135deg, #050505 0%, #11100d 48%, #070707 100%);
  color: var(--text);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}

.brand-panel {
  padding: 32px;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(241, 196, 15, 0.07), transparent 30%),
    rgba(0, 0, 0, 0.36);
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand-logo {
  width: 190px;
  height: auto;
  display: block;
  margin-bottom: 38px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

h1, h2, h3 {
  margin: 0;
}

.brand-title {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.05;
}

.brand-title span {
  color: var(--gold);
}

.brand-copy {
  color: var(--muted);
  line-height: 1.6;
  margin: 18px 0 30px;
}

.trust-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
  color: #efe6bd;
  line-height: 1.5;
}

.main {
  padding: 28px;
}

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

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

.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 800;
  color: #161105;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 12px 28px rgba(241, 196, 15, 0.18);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

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

.btn.danger {
  background: rgba(255, 92, 92, 0.16);
  color: #ffdede;
  box-shadow: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  grid-column: span 12;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(241, 196, 15, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-body {
  padding: 20px;
}

.install-card {
  grid-column: span 4;
  min-height: 250px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--gold);
  background: rgba(241, 196, 15, 0.09);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status.completed {
  color: var(--success);
  border-color: rgba(51, 209, 122, 0.32);
  background: rgba(51, 209, 122, 0.08);
}

.status.failed {
  color: var(--danger);
  border-color: rgba(255, 92, 92, 0.32);
  background: rgba(255, 92, 92, 0.1);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full,
.form-grid > .full {
  grid-column: 1 / -1;
}

.field label {
  color: #e9dfb2;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(241, 196, 15, 0.24);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 13px;
  outline: none;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.12);
}

.secure-box {
  border: 1px solid rgba(51, 209, 122, 0.3);
  background: rgba(51, 209, 122, 0.08);
  color: #d8ffe8;
  border-radius: 14px;
  padding: 14px;
  line-height: 1.5;
}

.install-modal {
  position: fixed;
  inset: 24px;
  z-index: 20;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.install-modal .card-body {
  overflow: auto;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(241, 196, 15, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.wizard-dot {
  border: 1px solid rgba(241, 196, 15, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 900;
}

.wizard-dot span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold);
}

.wizard-dot.active {
  color: #171100;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-color: transparent;
}

.wizard-dot.active span {
  background: rgba(0, 0, 0, 0.2);
  color: #171100;
}

.wizard-dot.done {
  color: #d8ffe8;
  border-color: rgba(51, 209, 122, 0.36);
  background: rgba(51, 209, 122, 0.1);
}

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

.wizard-main {
  min-width: 0;
}

.wizard-step {
  margin-top: 18px;
}

.step-title {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 0 0 16px;
}

.step-title > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #171100;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.step-title p {
  margin: 4px 0 0;
}

.wizard-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.wizard-assistant {
  position: sticky;
  top: 0;
  border: 1px solid rgba(241, 196, 15, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 0%, rgba(241, 196, 15, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.045);
  padding: 20px;
  line-height: 1.55;
}

.wizard-assistant h3 {
  margin: 8px 0;
}

.assistant-card {
  margin-top: 18px;
  border: 1px solid rgba(241, 196, 15, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  padding: 14px;
  color: #efe6bd;
}

.assistant-card p {
  margin: 7px 0 0;
  color: var(--muted);
}

.mini-doc {
  margin-top: 16px;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--gold);
  font-weight: 900;
  padding: 0;
}

.ssh-guide {
  margin-top: 12px;
  border: 1px solid rgba(241, 196, 15, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.ssh-guide pre {
  overflow: auto;
  background: #050505;
  border: 1px solid rgba(241, 196, 15, 0.12);
  border-radius: 10px;
  padding: 11px;
  color: #ffe99a;
}

.soft-hidden {
  display: none;
}

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

.review-grid div {
  border: 1px solid rgba(241, 196, 15, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.review-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.review-grid strong {
  word-break: break-word;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(241, 196, 15, 0.14);
  color: #ffe99a;
  font-size: 12px;
  font-weight: 800;
}

.logs {
  height: 380px;
  overflow: auto;
  background: #050505;
  color: #e5e0cb;
  border-radius: 12px;
  border: 1px solid rgba(241, 196, 15, 0.16);
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.step-pill {
  border: 1px solid rgba(241, 196, 15, 0.16);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
}

.step-pill.active {
  color: #171100;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.step-pill.done {
  color: var(--success);
  border-color: rgba(51, 209, 122, 0.32);
  background: rgba(51, 209, 122, 0.08);
}

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

.hidden {
  display: none !important;
}

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(380px, 0.9fr);
  padding: 24px;
  gap: 24px;
}

.auth-hero {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(241, 196, 15, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(241, 196, 15, 0.13), rgba(255, 255, 255, 0.02) 36%, rgba(0, 0, 0, 0.36)),
    rgba(0, 0, 0, 0.34);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(241, 196, 15, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(241, 196, 15, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000, transparent 76%);
  pointer-events: none;
}

.auth-hero-inner {
  position: relative;
  max-width: 680px;
}

.auth-logo {
  margin-bottom: 46px;
  width: 220px;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.34));
}

.auth-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.auth-highlights div {
  border: 1px solid rgba(241, 196, 15, 0.16);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  padding: 15px;
  min-height: 116px;
}

.auth-highlights strong,
.auth-highlights span {
  display: block;
}

.auth-highlights strong {
  color: #ffe99a;
  margin-bottom: 8px;
}

.auth-highlights span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-trust {
  max-width: 620px;
}

.auth-panel {
  display: grid;
  place-items: center;
  gap: 18px;
}

.auth-card {
  margin: auto;
  width: min(500px, 100%);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(17, 17, 17, 0.92);
}

.auth-card-top {
  padding: 28px 28px 0;
}

.auth-card-top h2 {
  margin-top: 18px;
  font-size: 30px;
}

.auth-card .card-body {
  padding: 24px 28px 28px;
}

.auth-primary {
  min-height: 48px;
}

.register-box {
  margin-top: 20px;
  border: 1px solid rgba(241, 196, 15, 0.16);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
  padding: 18px;
}

.register-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.register-divider::before,
.register-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(241, 196, 15, 0.2);
}

.auth-footnote {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(241, 196, 15, 0.08);
  color: #efe6bd;
  font-size: 13px;
  line-height: 1.45;
}

.auth-security-strip {
  width: min(500px, 100%);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-security-strip span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(51, 209, 122, 0.1);
}

@media (max-width: 1100px) {
  .shell, .auth {
    grid-template-columns: 1fr;
  }
  .brand-panel {
    height: auto;
    position: relative;
  }
  .install-card {
    grid-column: span 12;
  }
  .install-modal {
    inset: 12px;
  }
  .wizard-layout {
    grid-template-columns: 1fr;
  }
  .wizard-assistant {
    position: relative;
    order: -1;
  }
  .wizard-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .auth {
    min-height: auto;
  }
  .auth-panel {
    align-items: start;
  }
}

@media (max-width: 720px) {
  .main, .brand-panel, .auth-hero {
    padding: 20px;
  }
  .auth {
    padding: 12px;
    gap: 12px;
  }
  .auth-hero,
  .auth-card {
    border-radius: 20px;
  }
  .auth-logo {
    width: 174px;
    margin-bottom: 30px;
  }
  .auth-highlights {
    grid-template-columns: 1fr;
  }
  .auth-card-top {
    padding: 22px 20px 0;
  }
  .auth-card .card-body {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .install-modal {
    inset: 0;
    border-radius: 0;
  }
  .wizard-progress {
    grid-template-columns: 1fr;
  }
  .wizard-dot {
    justify-content: flex-start;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .wizard-actions {
    flex-direction: column;
  }
  .wizard-actions .btn {
    width: 100%;
  }
}
