@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");
:root {
  --good: #12845f;
  --bad: #9d3733;
  --bg: #f6f7fb;
  --surface: #fff;
  --ink: #18202b;
  --muted: #77808e;
  --line: #e8ebf1;
  --brand: #5d5ce2;
  --brand-dark: #4847c8;
  --orange: #f59e62;
  --green: #30a77b;
  --purple: #8d78ed;
  --blue: #5e9fe8;
  --shadow: 0 18px 45px rgba(26, 35, 60, 0.07);
}
.auth-card .terms-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
}
.auth-card .terms-acceptance input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 4px 0 0;
  accent-color: var(--brand);
}
.terms-acceptance a {
  color: #984600;
  text-decoration: underline;
}
.terms-page {
  max-width: 900px;
  margin: auto;
  padding: 40px 24px 70px;
  line-height: 1.8;
}
.terms-page h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.2;
}
.terms-page h2 {
  margin-top: 32px;
  font-size: 22px;
  line-height: 1.4;
}
.terms-summary {
  padding: 20px;
  background: #fff0df;
  border-left: 4px solid #c76613;
  border-radius: 8px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
#accountRoot {
  min-height: 100vh;
  opacity: 0;
  transition: opacity 180ms ease;
}
body.account-ready #accountRoot {
  opacity: 1;
}
body.account-loading #accountRoot::after {
  content: "";
  position: fixed;
  inset: 50% auto auto 50%;
  width: 24px;
  height: 24px;
  margin: -12px;
  border: 2px solid #e3e4f8;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: account-spin 700ms linear infinite;
}
body.page-leaving #accountRoot {
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}
@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px "DM Sans",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
}
.skip-link:focus {
  top: 16px;
  z-index: 9;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 700 21px "Space Grotesk";
  letter-spacing: -0.7px;
}
.brand-dot {
  color: var(--brand);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
}
.brand-mark svg,
.nav-link svg,
.metric a svg,
.plan-summary a svg,
.secondary-btn svg,
.primary-btn svg,
.empty-state svg,
.rule-note svg {
  width: 17px;
  height: 17px;
}
.auth-layout {
  min-height: 100vh;
  padding: 34px 7%;
  background:
    radial-gradient(circle at 10% 0, #ecebff 0, transparent 34%), var(--bg);
}
.auth-layout > .brand {
  margin-bottom: 9vh;
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 440px;
  gap: 10%;
  max-width: 1100px;
  margin: auto;
  align-items: center;
}
.auth-intro {
  max-width: 530px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
}
.auth-intro h1,
.page-heading h1 {
  font: 700 clamp(38px, 5vw, 64px) / 1.02 "Space Grotesk";
  letter-spacing: -2.5px;
  margin: 0 0 22px;
}
.auth-intro > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 440px;
}
.auth-perks {
  display: grid;
  gap: 15px;
  margin-top: 35px;
}
.auth-perks span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.auth-perks b {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
  margin-left: 12px;
}
.panel,
.auth-card,
.metric,
.plan-summary,
.balance-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.auth-card {
  padding: 30px;
}
.tabs {
  display: flex;
  background: #f5f5fb;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}
.tab {
  flex: 1;
  background: transparent;
  padding: 11px;
  color: var(--muted);
  border-radius: 8px;
  font-weight: 600;
}
.tab.active {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 3px 10px #dfe0ed;
}
.auth-card h2 {
  font: 700 25px "Space Grotesk";
  margin: 0 0 5px;
}
.auth-card form > p {
  color: var(--muted);
}
.auth-card form,
.purchase-panel form,
.payout-request form {
  display: grid;
  gap: 18px;
}
.auth-card input,
.purchase-panel input,
.payout-request input {
  width: 100%;
  min-width: 0;
}
label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  font-size: 12px;
  font-weight: 700;
  color: #545e6d;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: 0;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #e9e8ff;
}
textarea {
  resize: vertical;
}
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  padding: 12px 17px;
  font-weight: 700;
  transition: 0.2s;
}
.primary-btn {
  background: var(--brand);
  color: #fff;
}
.primary-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.secondary-btn {
  background: #f0f0ff;
  color: var(--brand);
}
.text-btn {
  color: var(--muted);
  background: none;
}
.message {
  min-height: 20px;
  color: var(--brand);
  font-weight: 600;
}
.message.success {
  color: var(--good);
}
.message.failure {
  color: var(--bad);
}
.confetti-piece {
  position: fixed;
  top: -16px;
  z-index: 50;
  width: 8px;
  height: 14px;
  pointer-events: none;
  border-radius: 2px;
  animation: confetti-fall 2800ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes confetti-fall {
  to {
    transform: translate(var(--drift), 105vh) rotate(720deg);
    opacity: 0;
  }
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 242px;
  padding: 31px 20px 24px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0 10px 54px;
}
.nav-label {
  padding: 0 12px 12px;
  color: #a3aab5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 12px;
  border-radius: 10px;
  color: #7e8795;
  font-weight: 600;
}
.nav-link:hover,
.nav-link.active {
  background: #f0f0ff;
  color: var(--brand);
}
.nav-link i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  margin-left: auto;
}
.sidebar-tip {
  margin-top: auto;
  padding: 18px;
  border-radius: 14px;
  background: #f7f7ff;
}
.sidebar-tip span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--brand);
}
.sidebar-tip p {
  font: 600 15px/1.35 "Space Grotesk";
  margin: 9px 0 15px;
}
.mini-keys {
  display: flex;
  gap: 5px;
}
.mini-keys b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  font-size: 11px;
}
.back-link {
  margin: 28px 12px 0;
  color: var(--muted);
  font-size: 12px;
}
.app-main {
  width: calc(100% - 242px);
  margin-left: 242px;
}
.app-topbar {
  height: 82px;
  padding: 0 clamp(24px, 5vw, 70px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.app-topbar b {
  color: var(--ink);
}
.app-topbar i {
  font-style: normal;
  margin: 0 8px;
  color: #c5c9d2;
}
.app-topbar #userBar {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  color: var(--ink);
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6e6ff;
  color: var(--brand);
  font-weight: 700;
}
.page-content {
  max-width: 1280px;
  padding: 48px clamp(24px, 5vw, 70px) 38px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.page-heading h1 {
  font-size: 42px;
  letter-spacing: -1.8px;
  margin-bottom: 11px;
}
.page-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
}
.date-label {
  color: var(--muted);
  font-size: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.metric {
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
}
.metric-icon {
  grid-row: span 3;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.metric-icon.orange {
  background: #fff0e7;
  color: var(--orange);
}
.metric-icon.green {
  background: #e6f7f0;
  color: var(--green);
}
.metric-icon.purple {
  background: #efeaff;
  color: var(--purple);
}
.metric-icon.blue {
  background: #e8f2ff;
  color: var(--blue);
}
.metric > span:nth-child(2) {
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  font: 700 24px "Space Grotesk";
  margin: 5px 0;
}
.metric small {
  font-size: 11px;
  color: #a0a6b0;
}
.metric a {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 18px;
}
.typing-panel,
.payout-request,
.purchase-panel {
  padding: 27px;
}
.payout-warning {
  margin: 18px 0;
  padding: 13px 15px;
  border-left: 4px solid var(--bad);
  border-radius: 8px;
  background: #fff0ef;
  color: var(--bad);
  font-weight: 800;
  line-height: 1.5;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel-heading h2 {
  font: 700 25px "Space Grotesk";
  margin: 5px 0 0;
}
.status {
  padding: 7px 10px;
  border-radius: 20px;
  background: #eef9f5;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}
.status.outcome-success {
  background: #eaf8f3;
  color: var(--good);
}
.status.outcome-failure {
  background: #fff0ef;
  color: var(--bad);
}
.attempt-outcome-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 19px;
  padding: 14px 16px;
  border: 1px solid #f0b8b4;
  border-radius: 12px;
  background: #fff0ef;
  color: #9d3733;
  animation: outcome-banner-in 180ms ease-out;
}
.outcome-mark {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--bad);
  color: white;
  font-size: 17px;
  font-weight: 800;
}
.attempt-outcome-banner div {
  display: grid;
  gap: 3px;
}
.attempt-outcome-banner strong {
  color: #7f2825;
  font: 700 15px "Space Grotesk";
}
.attempt-outcome-banner span:not(.outcome-mark) {
  font-size: 12px;
  line-height: 1.45;
}
@keyframes outcome-banner-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.challenge-specs {
  display: flex;
  gap: 20px;
  margin: 23px 0;
  color: var(--muted);
  font-size: 12px;
}
.challenge-specs span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.challenge-specs svg {
  width: 15px;
  height: 15px;
}
.reward-spec {
  color: var(--brand);
  font-weight: 700;
}
.passage {
  padding: 20px;
  background: #fafafd;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.passage-caption,
.editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a2a8b2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.passage p {
  font: 500 17px/1.8 "Space Grotesk";
  margin: 17px 0 5px;
  user-select: none;
  -webkit-user-select: none;
}
.editor-heading {
  margin: 24px 0 9px;
  color: var(--ink);
}
.timer-label {
  color: var(--muted);
}
.timer-label b {
  color: var(--brand);
  font-size: 18px;
  margin-left: 6px;
}
.timer-label small {
  font-size: 10px;
}
.typing-panel textarea {
  min-height: 115px;
}
.inline-typing {
  position: relative;
  height: clamp(160px, 32dvh, 260px);
  background: #fafafd;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.inline-typing:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(242 140 40 / 12%);
}
.inline-typing .typing-overlay,
.typing-panel .inline-typing textarea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 18px;
  border: 0;
  font:
    400 18px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  tab-size: 4;
  scrollbar-width: none;
}
.inline-typing .typing-overlay {
  color: #687080;
  overflow: hidden;
  pointer-events: none;
}
.typing-panel .inline-typing textarea {
  resize: none;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: transparent;
  box-shadow: none;
  overflow-y: auto;
}
.inline-typing textarea::-webkit-scrollbar {
  display: none;
}
.inline-typing .typed-correct {
  color: #187348;
  background: #dcfce7;
}
.inline-typing .typed-error {
  color: #b42318;
  background: #fee4e2;
  text-decoration: underline;
}
.inline-typing:focus-within .typing-caret {
  border-left: 2px solid var(--brand);
  margin-left: -2px;
}
.typing-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 14px;
}
.typing-actions small {
  color: var(--muted);
  flex: 1;
  font-size: 11px;
}
.workspace-aside {
  display: grid;
  align-content: start;
  gap: 18px;
}
.plan-summary {
  padding: 25px;
}
.plan-symbol,
.banner-icon {
  color: var(--brand);
  background: #efefff;
  width: 41px;
  height: 41px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin: 16px 0 13px;
}
.plan-summary h2 {
  font: 700 22px "Space Grotesk";
  margin: 0 0 8px;
}
.plan-summary p {
  color: var(--muted);
  line-height: 1.6;
}
.plan-summary a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.tips {
  padding: 24px;
}
.tips h3 {
  font: 700 20px "Space Grotesk";
  margin: 0 0 20px;
}
.tips > div {
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.tips > div > span {
  font: 700 11px "Space Grotesk";
  color: var(--brand);
}
.tips p {
  margin: 0;
  display: grid;
  gap: 4px;
}
.tips small {
  color: var(--muted);
  line-height: 1.5;
}
.app-footer {
  padding: 0 clamp(24px, 5vw, 70px) 30px;
  color: #a2a8b2;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.membership-banner {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 20px 24px;
  margin-bottom: 18px;
  background: #22244b;
  color: #fff;
  border-radius: 18px;
}
.membership-banner .banner-icon {
  margin: 0;
  background: #393b72;
  color: #bdbdff;
}
.membership-banner h3 {
  font: 700 20px "Space Grotesk";
  margin: 4px 0;
}
.membership-banner p {
  margin: 0;
  color: #bfc2df;
}
.membership-banner small {
  color: #bdbdff;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
}
.membership-banner .status {
  margin-left: auto;
  background: #393b72;
  color: #bdbdff;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.plan-card {
  position: relative;
  padding: 27px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.plan-card.featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}
.plan-ribbon {
  position: absolute;
  right: 18px;
  top: 18px;
  background: #e9e8ff;
  color: var(--brand);
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
}
.plan-card h2 {
  font: 700 28px "Space Grotesk";
  margin: 5px 0 8px;
}
.plan-card > p {
  color: var(--muted);
  margin: 0 0 22px;
}
.price {
  font: 700 35px "Space Grotesk";
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.price small {
  font: 500 11px "DM Sans";
  color: var(--muted);
}
.plan-card ul {
  padding: 0;
  margin: 20px 0;
  list-style: none;
  display: grid;
  gap: 13px;
  color: #56606d;
  font-size: 12px;
}
.plan-card li:before {
  content: "✓";
  color: var(--green);
  font-weight: bold;
  margin-right: 9px;
}
.plan-foot {
  display: block;
  color: #a0a6b0;
  font-size: 11px;
  margin-top: 31px;
}
.plan-payment {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin: 20px 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.plan-payment img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}
.plan-card button {
  width: 100%;
  margin-top: 8px;
}
.rule-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin: 18px 2px;
}
.purchase-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 15px;
}
.purchase-panel h2 {
  font: 700 27px "Space Grotesk";
  margin: 6px 0;
}
.purchase-panel > div > p:not(.eyebrow) {
  color: var(--muted);
}
.purchase-steps {
  padding-left: 20px;
  color: var(--muted);
  line-height: 2;
}
.payment-qr {
  width: min(100%, 220px);
  margin: 20px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf6;
}
.payment-qr img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}
.payment-qr figcaption {
  padding: 8px 2px 1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}
.instruction-box {
  padding: 13px;
  background: #fff8e8;
  color: #8b6718;
  border-radius: 10px;
  line-height: 1.5;
  font-size: 12px;
}
.purchase-panel form > small,
.payout-request form > small {
  color: var(--muted);
  font-size: 11px;
}
.membership-faq {
  max-width: 780px;
  margin: 48px auto;
}
.membership-faq h2 {
  font: 700 24px "Space Grotesk";
}
.membership-faq details {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.membership-faq summary {
  cursor: pointer;
  font-weight: 700;
}
.membership-faq p {
  color: var(--muted);
  line-height: 1.6;
}
.payout-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}
.payout-grid > div:first-child {
  display: grid;
  gap: 18px;
}
.balance-card {
  padding: 26px;
  background: #22244b;
  color: #fff;
  border: 0;
}
.balance-card > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #bdbdff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.balance-card strong {
  display: block;
  font: 700 43px "Space Grotesk";
  margin: 24px 0 7px;
}
.balance-card p {
  color: #bec1db;
  margin: 0;
}
.balance-footer {
  border-top: 1px solid #45476c;
  margin-top: 25px;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #bdbdff;
}
.balance-footer b {
  display: block;
  color: #fff;
  margin-top: 5px;
}
.payout-explainer {
  padding: 25px;
}
.payout-explainer h3 {
  font: 700 20px "Space Grotesk";
  margin: 0;
}
.payout-explainer ol {
  padding-left: 20px;
  display: grid;
  gap: 17px;
  margin: 24px 0;
}
.payout-explainer li {
  padding-left: 5px;
}
.payout-explainer b {
  display: block;
}
.payout-explainer span,
.payout-explainer p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.payout-explainer p {
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.payout-request {
  margin-bottom: 18px;
}
.step-track {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0 27px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.step-track span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa1ae;
  font-size: 11px;
}
.step-track span::before {
  content: "";
  display: grid;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid #d9dce5;
  border-radius: 50%;
  color: #9aa1ae;
  font-size: 10px;
  font-weight: 800;
}
.step-track span:first-child::before {
  content: "1";
}
.step-track span:last-child::before {
  content: "2";
}
.step-track span.active {
  color: var(--brand);
  font-weight: 700;
}
.step-track span.active::before {
  border-color: var(--brand);
  background: #fff4e6;
  color: var(--brand);
}
.verification-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e6f7f0;
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 25px 0 13px;
}
.verification-pane h3 {
  font: 700 20px "Space Grotesk";
  margin: 0;
}
.verification-pane p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 460px;
}
.verification-pane form {
  max-width: 360px;
}
.request-total {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.request-total strong {
  color: var(--ink);
  font: 700 19px "Space Grotesk";
}
.privacy-note {
  color: #a0a6b0;
  font-size: 10px;
  line-height: 1.5;
}
.history {
  padding: 27px;
}
.muted {
  color: var(--muted);
  font-size: 11px;
}
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.empty-state svg {
  color: #b2b4e9;
  width: 35px;
  height: 35px;
}
.empty-state h3 {
  font: 700 20px "Space Grotesk";
  color: var(--ink);
  margin: 15px 0 7px;
}
.empty-state a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  color: #9299a6;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.service-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 15px;
  background: #22244b;
  color: #fff;
  border-radius: 9px;
  box-shadow: var(--shadow);
  font-size: 12px;
}
.hidden {
  display: none !important;
}
@media (max-width: 1050px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .plan-card.featured {
    order: -1;
  }
  .payout-grid {
    grid-template-columns: 1fr;
  }
  .auth-shell {
    gap: 5%;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px;
    display: block;
  }
  .sidebar .brand {
    padding: 0 0 18px;
  }
  .nav-label,
  .sidebar-tip,
  .back-link {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
  }
  .nav-link {
    flex: 1;
    justify-content: center;
    padding: 10px 5px;
    font-size: 11px;
  }
  .nav-link i {
    display: none;
  }
  .app-shell {
    display: block;
  }
  .app-main {
    width: 100%;
    margin: 0;
  }
  .app-topbar {
    height: 62px;
    padding: 0 18px;
  }
  .app-topbar > span {
    font-size: 11px;
  }
  .app-topbar #welcomeName {
    display: none;
  }
  .page-content {
    padding: 30px 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 36px;
  }
  .page-heading .secondary-btn {
    align-self: stretch;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 14px;
    display: block;
  }
  .metric-icon {
    margin-bottom: 12px;
  }
  .metric strong {
    display: block;
    font-size: 20px;
  }
  .metric small,
  .metric a {
    font-size: 10px;
  }
  .workspace-grid,
  .purchase-panel {
    grid-template-columns: 1fr;
  }
  .typing-panel,
  .payout-request,
  .purchase-panel,
  .history {
    padding: 18px;
  }
  .challenge-specs {
    gap: 9px;
    flex-wrap: wrap;
  }
  .passage p {
    font-size: 15px;
  }
  .typing-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .typing-actions .primary-btn {
    width: 100%;
  }
  .app-footer {
    padding: 0 18px 20px;
    gap: 10px;
    flex-direction: column;
  }
  .membership-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .membership-banner .status {
    margin-left: 58px;
  }
  .auth-layout {
    padding: 24px 18px;
  }
  .auth-layout > .brand {
    margin-bottom: 45px;
  }
  .auth-shell {
    display: block;
  }
  .auth-intro {
    margin-bottom: 35px;
  }
  .auth-intro h1 {
    font-size: 43px;
  }
  .auth-intro > p {
    font-size: 14px;
  }
  .auth-perks {
    display: none;
  }
  .auth-card {
    padding: 20px;
  }
  .balance-footer {
    gap: 20px;
  }
  .payout-explainer {
    padding: 20px;
  }
}

/* Shared TypeRush landing-page palette */
:root {
  --bg: #fff8f2;
  --surface: #fff;
  --ink: #2b2430;
  --muted: #746b75;
  --line: #f0ded0;
  --brand: #f28c28;
  --brand-dark: #dc7617;
  --orange: #f28c28;
  --green: #12845f;
  --purple: #f28c28;
  --blue: #c76613;
  --shadow: 0 18px 50px rgba(93, 52, 26, 0.1);
}

.auth-layout {
  background:
    radial-gradient(circle at 10% 0, #ffe6d1 0, transparent 34%), var(--bg);
}

.tabs {
  background: #fff1e6;
}

.tab.active,
.secondary-btn,
.plan-ribbon,
.membership-banner .status {
  background: #fff1e6;
  color: var(--brand-dark);
}

.secondary-btn:hover {
  background: #ffe4cf;
}

.metric-icon.purple,
.metric-icon.blue,
.plan-symbol,
.banner-icon {
  background: #fff1e6;
  color: var(--brand);
}

.membership-banner,
.balance-card,
.service-message {
  background: var(--ink);
}

.membership-banner .banner-icon {
  background: #493f45;
  color: #ffb246;
}

.membership-banner .status {
  color: var(--brand-dark);
}

.membership-request-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 19px 22px;
  margin: 0 0 16px;
  background: #fffaf6;
  border: 1px solid #ffd0ad;
  border-radius: 16px;
}

.request-status-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff1e6;
  color: var(--brand);
}

.request-status-icon svg {
  width: 20px;
  height: 20px;
}

.membership-request-card h2 {
  margin: 0 0 4px;
  font: 700 19px "Space Grotesk";
}

.membership-request-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.request-status {
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff4d7;
  color: #b77a00;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.request-status.approved {
  background: #eaf8f3;
  color: var(--good);
}

.request-status.rejected {
  background: #fff0ef;
  color: var(--bad);
}

.app-topbar,
.sidebar,
.panel,
.auth-card,
.metric,
.plan-summary,
.balance-card {
  border-color: var(--line);
}

@media (max-width: 700px) {
  .membership-request-card {
    grid-template-columns: auto 1fr;
  }

  .membership-request-card .request-status {
    grid-column: 2;
    justify-self: start;
  }
}
