/* Spirit Hosting — billing & portal (shared) */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Source+Code+Pro:wght@400;500;600&display=swap');

:root {
  --bg: #060608;
  --bg2: #0c0c12;
  --surface: #0d0d12;
  --surface2: #14141c;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(123, 94, 167, 0.35);
  --accent: #7B5EA7;
  --accent2: #A06CD5;
  --accent-dim: rgba(123, 94, 167, 0.14);
  --text: #f0eef8;
  --text2: #9898b8;
  --muted: #6b6880;
  --green: #4ade80;
  --red: #f87171;
  --radius: 6px;
  --radius-lg: 10px;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Source Code Pro', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent); }

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 6, 8, 0.96);
}

.logo {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: block;
}

.nav-back {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.nav-back:hover { color: var(--text2); }

main {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 92px 32px 72px;
}

main.centered {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  padding: 80px 24px;
}

.page-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent2);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.sub, .page-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.65;
  max-width: 560px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 440px;
}

.card-wide { max-width: 640px; margin-left: auto; margin-right: auto; width: 100%; }

.card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.card-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.form-group { margin-bottom: 14px; }

.login-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

label, .form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

input[type=email],
input[type=text],
input[type=password],
.form-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}

input:focus, .form-input:focus {
  border-color: var(--accent);
}

.btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 18px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover { background: var(--accent2); }

.btn-inline { width: auto; display: inline-block; text-align: center; }

.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
}

.error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--red);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 14px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.links { display: flex; flex-direction: column; gap: 8px; }

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text2);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}

.link-item:hover {
  border-color: var(--border-strong);
  background: var(--accent-dim);
  color: var(--text);
}

.link-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent2);
  background: var(--accent-dim);
  padding: 4px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

footer.portal-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

footer.portal-footer a { color: var(--muted); text-decoration: none; }
footer.portal-footer a:hover { color: var(--accent2); }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
}

.tier-num { font-size: 24px; font-weight: 700; color: var(--accent2); }
.tier-label { font-size: 11px; color: var(--muted); font-family: var(--font-mono); margin: 4px 0 8px; }
.tier-reward { font-size: 13px; font-weight: 600; color: var(--green); }

.code-box {
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  cursor: pointer;
}

.code-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent2);
  letter-spacing: 1px;
}

.copy-btn {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  padding: 5px 10px;
  border-radius: var(--radius);
}

.share-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  word-break: break-all;
}

.progress {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  height: 6px;
  margin: 10px 0;
}

.progress-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
  height: 100%;
}

.stat {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.stat:last-child { border-bottom: none; }
.stat-label { color: var(--muted); }
.stat-value { font-weight: 600; }

.reward-item {
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reward-text { font-size: 13px; font-weight: 600; color: var(--green); }
.reward-date { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.success-card {
  text-align: center;
  max-width: 480px;
  padding: 48px 36px;
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--green);
  font-size: 22px;
  line-height: 48px;
  margin: 0 auto 20px;
}

.success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.success-actions .btn { width: auto; min-width: 140px; }

@media (max-width: 600px) {
  nav { padding: 0 20px; }
  main { padding: 84px 20px 56px; }
  .tiers { grid-template-columns: 1fr; }
}
