.mc-auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mc-bg, #0b0d14);
  font-family: 'Manrope', sans-serif;
}

.mc-auth-oauth-btn {
  width: 100%;
  display: block;
  text-align: center;
  box-sizing: border-box;
}

.mc-auth-card {
  width: min(400px, 90vw);
  padding: 2rem;
  border-radius: 16px;
  background: var(--mc-panel, #12141d);
  border: 1px solid var(--mc-border, #232634);
}

.mc-auth-card h1 {
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
  color: var(--mc-text, #f4f4f6);
}

.mc-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.mc-auth-field label {
  font-size: 0.875rem;
  color: var(--mc-muted, #8b8fa3);
}

.mc-auth-field input {
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--mc-border, #232634);
  background: #1a1d29;
  color: #f4f4f6;
  font-size: 1rem;
}

.mc-auth-error {
  color: #f87171;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 1.1rem;
}

.mc-auth-links {
  margin-top: 1.25rem;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
}

.mc-auth-links a {
  color: var(--mc-accent, #8b8cf6);
  text-decoration: none;
}

.mc-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--mc-muted, #8b8fa3);
  font-size: 0.8rem;
}

.mc-auth-divider::before, .mc-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--mc-border, #232634);
}

.mc-legal-body {
  background: #0b0d14;
  color: #d5d7e0;
  font-family: 'Manrope', sans-serif;
}

.mc-legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  /* Clears the fixed .mc-credit footer (10px + text + 10px + safe-area-inset)
     so the last paragraph/link isn't hidden underneath it on notched phones. */
  padding-bottom: calc(3rem + 44px + env(safe-area-inset-bottom));
}

.mc-legal, .mc-legal p, .mc-legal li { font-size: 17px; line-height: 1.65; }
.mc-legal h1 { color: #f4f4f6; }
.mc-legal a { color: #8b8cf6; }

/* ===== Tokens / billing page ===== */
.mc-tokens {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  padding-bottom: calc(3rem + 44px + env(safe-area-inset-bottom));
  font-size: 17px;
  line-height: 1.65;
}
.mc-tokens h1 { color: #f4f4f6; margin: 0 0 1.5rem; }
.mc-tokens h2 { color: #f4f4f6; font-size: 1.25rem; margin: 2.5rem 0 1rem; }
.mc-tokens-back { color: #8b8cf6; text-decoration: none; font-size: 16px; }
.mc-tokens-flash {
  background: #1b2a1e; border: 1px solid #2f5136; color: #a7e0b5;
  border-radius: 10px; padding: 0.75rem 1rem; font-size: 16px;
}
.mc-tokens-balance {
  border: 1px solid var(--mc-border, #232634); border-radius: 16px;
  padding: 1.5rem; background: var(--mc-panel, #12141d);
}
.mc-tokens-amount {
  font-size: 2.75rem; font-weight: 700; margin: 0; color: #f4f4f6; line-height: 1.1;
}
/* A balance we couldn't read must not look like an empty one. */
.mc-balance-low .mc-tokens-amount { color: #f0c987; }
.mc-balance-zero .mc-tokens-amount { color: #f87171; }
.mc-balance-unknown .mc-tokens-amount { color: var(--mc-muted, #8b8fa3); }
.mc-bundle-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
.mc-bundle {
  border: 1px solid var(--mc-border, #232634); border-radius: 14px;
  padding: 1.25rem; background: var(--mc-panel, #12141d); text-align: center;
}
.mc-bundle-tier {
  margin: 0 0 0.35rem; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--mc-muted, #8b8fa3);
}
.mc-bundle-price { margin: 0; font-size: 1.5rem; font-weight: 700; color: #f4f4f6; }
.mc-bundle-credit { margin: 0.25rem 0 1rem; font-size: 16px; color: var(--mc-muted, #8b8fa3); }
.mc-tokens-legal {
  margin-top: 2rem; font-size: 14px; line-height: 1.6; color: var(--mc-muted, #8b8fa3);
}
