:root {
  --bg: #050d18;
  --panel: #111b2d;
  --panel-soft: #18243a;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #b8c2d6;
  --gold: #e3be58;
  --cyan: #4fc3f7;
  --good: #2dd36f;
  --bad: #ff5f6d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #0d2342 0, var(--bg) 42%, #020813 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

.portal {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 28px;
}

.logo {
  width: min(300px, 76vw);
  height: auto;
  display: block;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold);
  font-size: clamp(24px, 5vw, 42px);
}

h2 {
  margin-bottom: 10px;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.panel {
  width: min(680px, 100%);
  margin: 0 auto 18px;
  padding: 24px;
  background: rgba(17, 27, 45, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.hidden {
  display: none !important;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.tab,
.primary,
.secondary {
  min-height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 900;
  cursor: pointer;
}

.tab,
.secondary {
  background: var(--panel-soft);
  color: var(--text);
}

.tab.active,
.primary {
  background: var(--gold);
  color: #050d18;
  border-color: transparent;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a1322;
  color: var(--text);
}

.message {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--muted);
}

.message.error {
  color: var(--bad);
}

.message.success {
  color: var(--good);
}

.account-row,
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-card {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 20px 0;
  padding: 18px;
  background: #0a1322;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.status-dot {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(227, 190, 88, 0.45);
}

.status-card.active .status-dot {
  background: var(--good);
  box-shadow: 0 0 18px rgba(45, 211, 111, 0.45);
}

.status-card.inactive .status-dot {
  background: var(--bad);
  box-shadow: 0 0 18px rgba(255, 95, 109, 0.45);
}

.status-label,
.status-detail {
  margin: 0;
}

.status-label {
  font-size: 20px;
  font-weight: 900;
}

.status-detail {
  color: var(--muted);
  line-height: 1.45;
}

.link-button {
  display: inline-grid;
  place-items: center;
  min-width: 180px;
  padding: 0 18px;
  color: var(--text);
  text-decoration: none;
}

.subscribe-box {
  margin-top: 22px;
  padding: 18px;
  background: #07101d;
  border: 1px solid rgba(227, 190, 88, 0.32);
  border-radius: 10px;
}

.subscribe-box p {
  color: var(--muted);
}

@media (max-width: 620px) {
  .portal {
    width: min(100% - 22px, 1040px);
    padding: 24px 0;
  }

  .panel {
    padding: 18px;
  }

  .actions,
  .link-button,
  .secondary {
    width: 100%;
  }
}
