/* ── VARIABLES ───────────────────────────────────────────────── */
:root {
  --ice: #EDF4FF;
  --ice-mid: #C8DEFF;
  --blue: #1A6FBF;
  --navy: #071C35;
  --dark: #050f1e;
  --accent: #4BA3F5;
  --white: #ffffff;
  --red: #C0392B;
}

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

/* ── BASE ────────────────────────────────────────────────────── */
body {
  min-height: 100vh;
  background: var(--dark);
  font-family: 'Instrument Sans', sans-serif;
  color: var(--ice);
}

/* ── WORDMARK ────────────────────────────────────────────────── */
.wordmark {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark .i-mark {
  font-family: 'Playfair Display', serif;
  color: #E8392A;
  font-style: normal;
  font-weight: 700;
}
.wordmark .stream { color: var(--ice-mid); }

/* ── HEADER ──────────────────────────────────────────────────── */
header {
  background: var(--navy);
  border-bottom: 1px solid rgba(75,163,245,0.15);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200,222,255,0.4);
}
.header-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(200,222,255,0.3);
  text-decoration: none;
  border: 1px solid rgba(75,163,245,0.15);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  transition: color 0.15s, border-color 0.15s;
}
.header-link:hover { color: var(--white); border-color: rgba(75,163,245,0.4); }

/* ── CONTENT ─────────────────────────────────────────────────── */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
.section-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200,222,255,0.35);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}
.section-title:first-child { margin-top: 0; }

/* ── FORMS ───────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200,222,255,0.4);
}
input[type=text],
input[type=email],
input[type=password],
select,
textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(75,163,245,0.2);
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
select:focus,
textarea:focus { border-color: rgba(75,163,245,0.5); }
input::placeholder, textarea::placeholder { color: rgba(200,222,255,0.2); }
select option { background: var(--navy); }
textarea { resize: vertical; line-height: 1.6; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  padding: 0.7rem 1.25rem;
  background: var(--blue);
  border: none;
  border-radius: 4px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  display: inline-block;
  text-decoration: none;
}
.btn:hover { background: #1f7fd4; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
.btn-danger {
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.3);
  color: #e74c3c;
}
.btn-danger:hover { background: rgba(192,57,43,0.3); }
.btn-ghost {
  background: rgba(26,111,191,0.5);
  border: 1px solid rgba(75,163,245,0.3);
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 400;
  padding: 0.4rem 0.8rem;
}
.btn-ghost:hover { background: var(--blue); }
.btn-deactivate {
  padding: 0.35rem 0.8rem;
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 3px;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #e74c3c;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-deactivate:hover { background: rgba(192,57,43,0.25); }

/* ── TIER BADGES ─────────────────────────────────────────────── */
.tier-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}
.tier-org      { background: rgba(155,89,182,0.2);  color: #bb8fce; }
.tier-arena    { background: rgba(26,111,191,0.2);  color: var(--accent); }
.tier-community{ background: rgba(46,204,113,0.15); color: #2ecc71; }
.tier-biz      { background: rgba(241,196,15,0.15); color: #f1c40f; }

/* ── STATUS / EMPTY STATES ───────────────────────────────────── */
.no-items {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: rgba(200,222,255,0.25);
  letter-spacing: 0.08em;
  padding: 2rem 0;
}
.error-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: #e74c3c;
  letter-spacing: 0.05em;
  margin-top: 0.6rem;
}

/* ── LOGIN CARD ──────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.login-card {
  width: 100%;
  max-width: 380px;
  padding: 2.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(75,163,245,0.15);
  border-radius: 6px;
}
.login-card .wordmark { font-size: 1.8rem; display: block; margin-bottom: 0.25rem; }
.login-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200,222,255,0.4);
  margin-bottom: 2rem;
}
.login-card label { display: block; margin-top: 1rem; margin-bottom: 0.5rem; }
.login-card input { font-size: 0.9rem; padding: 0.75rem 1rem; }
.login-card .btn  { width: 100%; margin-top: 1.5rem; padding: 0.85rem; font-size: 1rem; }
