:root {
  --bg: #0b0805;
  --panel: #16100a;
  --panel-2: #1d150d;
  --border: #362617;
  --text: #f2e6d3;
  --text-dim: #a9926f;
  --accent: #e2954a;
  --accent-dark: #7a4a1e;
  --success: #6fbf4f;
  --error: #c0392b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(226, 149, 74, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 999px; }

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

.hero { text-align: center; margin-bottom: 32px; }
.hero .logo-mark { width: 96px; height: 96px; }
.hero h1 {
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  margin: 18px 0 8px;
  color: var(--accent);
  text-transform: uppercase;
}
.hero .sub { color: var(--text-dim); margin: 0; }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 0 0 1px rgba(226, 149, 74, 0.05), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card.hidden { display: none; }

.step { display: flex; gap: 14px; margin-bottom: 18px; }
.step-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: rgba(226, 149, 74, 0.15);
  border: 1px solid var(--accent-dark);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.step-title { font-weight: 700; letter-spacing: 0.02em; }
.step-desc { color: var(--text-dim); font-size: 0.9rem; margin-top: 2px; }

.btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
}
.btn-primary { background: linear-gradient(180deg, #efa458, var(--accent)); color: #2a1608; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text-dim); }
.btn-secondary:hover { color: var(--text); border-color: var(--accent-dark); }

#link-form { display: flex; gap: 8px; margin-top: 14px; }
#link-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0f0a06;
  color: var(--text);
  font-size: 0.95rem;
}
#link-form input:focus { outline: 1px solid var(--accent); }
#link-form button { width: auto; margin-top: 0; }

.error { color: var(--error); font-size: 0.85rem; margin-top: 10px; }
.error.hidden { display: none; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #0f0a06;
  border: 1px solid var(--border);
  margin: 14px 0 18px;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--text-dim); }
.status-pill.online .dot { background: var(--success); box-shadow: 0 0 8px rgba(111, 191, 79, 0.6); }
.status-pill.offline .dot { background: var(--error); }

.footer { text-align: center; color: var(--text-dim); font-size: 0.8rem; padding: 24px; }
