/* ─── Screen-reader utility ──────────────────────────────────── */
.bp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --bg:        #FAFAF7;
  --bg-2:      #F1F2EE;
  --surface:   #FFFFFF;

  --ink:       #0E1311;
  --ink-2:     #4B524F;
  --ink-3:     #8A8F8C;
  --rule:      #E6E7E2;

  --mint-900:  #07332C;
  --mint-700:  #136B5E;
  --mint-500:  #2BA38F;
  --mint-300:  #7BD0BF;
  --mint-100:  #D7F0E8;
  --mint-50:   #ECF7F2;

  --positive:  #2BA38F;
  --warning:   #C58A1F;
  --negative:  #D14D45;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html, body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
}

/* ─── Utility classes ───────────────────────────────────────── */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
}

.eyebrow {
  font: 500 11px/1.27 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ─── MudBlazor radius overrides ────────────────────────────── */
/* Chips / inputs / cells */
.mud-chip,
.mud-chip-root,
.mud-input-outlined .mud-input-outlined-border,
.mud-input-root-outlined,
.mud-select-input {
  border-radius: var(--radius-sm) !important;
}

/* Buttons / cards */
.mud-button-root,
.mud-button-root::before,
.mud-icon-button,
.mud-paper,
.mud-card,
.mud-card-header,
.mud-card-content {
  border-radius: var(--radius-md) !important;
}

/* Panels / popovers */
.mud-popover,
.mud-popover-paper {
  border-radius: var(--radius-lg) !important;
}

.mud-tooltip {
  border-radius: var(--radius-sm) !important;
}

/* Nav links stay unrounded — they span the full sidebar width */
.mud-nav-link {
  border-radius: 0 !important;
  text-decoration: none !important;
}

.mud-nav-link-text {
  line-height: 1.3 !important;
}

.month-badge-now {
  text-decoration: none !important;
  display: inline-block;
}

.mud-drawer {
  border-radius: 0 !important;
}

/* ─── Blazor validation ─────────────────────────────────────── */
.valid.modified:not([type=checkbox]) {
  outline: 1px solid var(--positive);
}

.invalid {
  outline: 1px solid var(--negative);
}

.validation-message {
  color: var(--negative);
}

/* ─── Blazor error boundary ─────────────────────────────────── */
.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
  border-color: #929292;
}

/* ─── Auth form styles ──────────────────────────────────────── */
.auth-page-header {
  margin-bottom: 32px;
}

.auth-page-title {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.auth-page-subtitle {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-2);
}

.auth-field {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.27;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}

.auth-input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  background: var(--surface);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
}

.auth-input:focus {
  outline: none;
  border-color: var(--mint-500);
  box-shadow: 0 0 0 3px var(--mint-100);
}

.auth-input::placeholder {
  color: var(--ink-3);
}

.auth-field-error {
  display: block;
  font-size: 0.8125rem;
  color: var(--negative);
  margin-top: 5px;
  line-height: 1.3;
}

.auth-validation-summary {
  background: rgba(209, 77, 69, 0.06);
  border-left: 3px solid var(--negative);
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--negative);
  line-height: 1.4;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.auth-validation-summary ul {
  margin: 0;
  padding-left: 16px;
}

.auth-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: 14px;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}

.auth-checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  accent-color: var(--mint-500);
  cursor: pointer;
  flex-shrink: 0;
}

.auth-submit {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 24px;
  background: var(--mint-500);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.auth-submit:hover {
  background: var(--mint-700);
}

.auth-submit:focus {
  outline: 2px solid var(--mint-500);
  outline-offset: 2px;
}

.auth-submit--secondary {
  background: transparent;
  color: var(--mint-700);
  border: 1.5px solid var(--mint-500);
}

.auth-submit--secondary:hover {
  background: var(--mint-100);
  border-color: var(--mint-700);
}

.auth-submit--secondary:focus {
  outline-color: var(--mint-500);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.auth-footer {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--ink-2);
  line-height: 1.4;
  text-align: center;
}

.auth-terms-notice {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.5;
}

.auth-link {
  color: var(--mint-700);
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-forgot {
  color: var(--mint-700);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}

.auth-forgot:hover {
  text-decoration: underline;
}

/* ─── External provider buttons ────────────────────────────── */
.auth-external-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 40px;
  padding: 0 24px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  margin-bottom: 10px;
}

.auth-external-btn:hover {
  border-color: var(--ink-3);
  background: var(--bg);
}

.auth-external-btn:focus {
  outline: 2px solid var(--mint-500);
  outline-offset: 2px;
}

/* ─── Manage (Account/Manage/*) styles ──────────────────────── */
.mg-page {
  max-width: 960px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
}

.mg-header {
  margin-bottom: 32px;
}

.mg-eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-700);
  margin-bottom: 10px;
  line-height: 1.27;
}

.mg-title {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}

.mg-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.mg-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.mg-nav-item {
  border-bottom: 1px solid var(--bg-2);
}

.mg-nav-link {
  display: block;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  line-height: 1.3;
}

.mg-nav-link:hover {
  background: var(--bg);
  color: var(--ink);
}

.mg-nav-link.active {
  color: var(--mint-700);
  border-left-color: var(--mint-500);
  background: var(--mint-50);
  font-weight: 500;
}

.mg-content {
  min-width: 0;
}

.mg-section-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.mg-section-subtitle {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 24px;
}

.mg-section-heading {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 32px 0 16px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

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

.mg-prose {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 16px;
}

.mg-prose a {
  color: var(--mint-700);
  text-decoration: none;
  font-weight: 500;
}

.mg-prose a:hover {
  text-decoration: underline;
}

.mg-prose strong {
  color: var(--ink);
  font-weight: 600;
}

.mg-ordered {
  padding-left: 22px;
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.mg-ordered li {
  margin-bottom: 20px;
}

.mg-ordered li:last-child {
  margin-bottom: 0;
}

.mg-key {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

/* ─── Form elements ─────────────────────────────────────────── */
.mg-form {
  max-width: 480px;
}

.mg-form--wide {
  max-width: 640px;
}

.mg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.mg-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.27;
}

.mg-input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  line-height: 1;
  box-sizing: border-box;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
}

.mg-input:focus {
  outline: none;
  border-color: var(--mint-500);
  box-shadow: 0 0 0 3px var(--mint-100);
}

.mg-input:disabled {
  background: var(--bg);
  color: var(--ink-3);
  cursor: not-allowed;
}

.mg-input-group {
  display: flex;
  align-items: stretch;
}

.mg-input-group .mg-input {
  flex: 1;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.mg-input-addon {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--mint-50);
  color: var(--mint-700);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1;
}

.mg-field-error {
  display: block;
  font-size: 0.8125rem;
  color: var(--negative);
  line-height: 1.3;
}

.mg-field-hint {
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.4;
}

.mg-validation-summary {
  background: rgba(209, 77, 69, 0.06);
  border-left: 3px solid var(--negative);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--negative);
  line-height: 1.4;
}

.mg-validation-summary ul {
  margin: 0;
  padding-left: 16px;
}

.mg-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.mg-submit-btn,
.mg-action-btn {
  height: 40px;
  padding: 0 20px;
  background: var(--mint-500);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease;
}

.mg-submit-btn:hover,
.mg-action-btn:hover {
  background: var(--mint-700);
  color: #fff;
}

.mg-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mg-ghost-btn {
  height: 40px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.mg-ghost-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.mg-danger-btn {
  height: 40px;
  padding: 0 20px;
  background: var(--negative);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease;
}

.mg-danger-btn:hover {
  background: #b83d37;
  color: #fff;
}

.mg-link-btn {
  padding: 0;
  background: transparent;
  border: none;
  color: var(--mint-700);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}

.mg-link-btn:hover {
  text-decoration: underline;
}

.mg-link {
  color: var(--mint-700);
  text-decoration: none;
  font-weight: 500;
}

.mg-link:hover {
  text-decoration: underline;
}

/* ─── Alert / status blocks ─────────────────────────────────── */
.mg-alert {
  padding: 12px 16px;
  border-left: 3px solid;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--bg);
  border-left-color: var(--ink-3);
}

.mg-alert p { margin: 0 0 8px; }
.mg-alert p:last-child { margin-bottom: 0; }
.mg-alert a { color: inherit; text-decoration: underline; font-weight: 600; }
.mg-alert strong { color: var(--ink); font-weight: 600; }

.mg-alert--info {
  background: var(--mint-50);
  border-left-color: var(--mint-500);
  color: var(--mint-900);
}
.mg-alert--info strong { color: var(--mint-900); }

.mg-alert--warning {
  background: #FFFBEB;
  border-left-color: var(--warning);
  color: #713F12;
}
.mg-alert--warning strong { color: #713F12; }

.mg-alert--danger {
  background: rgba(209, 77, 69, 0.06);
  border-left-color: var(--negative);
  color: #7F1D1D;
}
.mg-alert--danger strong { color: #7F1D1D; }

.mg-alert--success {
  background: var(--mint-50);
  border-left-color: var(--positive);
  color: var(--mint-900);
}
.mg-alert--success strong { color: var(--mint-900); }

/* ─── Tables ────────────────────────────────────────────────── */
.mg-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--rule);
  margin-bottom: 24px;
}

.mg-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--bg-2);
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.3;
}

.mg-table td:first-child { font-weight: 500; }
.mg-table td:last-child { text-align: right; }
.mg-table .mg-form-actions { justify-content: flex-end; margin: 0; }

/* ─── Recovery codes ────────────────────────────────────────── */
.mg-recovery-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.mg-recovery-code {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  padding: 6px 0;
}

/* ─── Empty state ───────────────────────────────────────────── */
.mg-empty {
  padding: 20px 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 820px) {
  .mg-page { padding: 32px 24px; }
  .mg-layout { grid-template-columns: 1fr; gap: 24px; }
  .mg-nav { display: flex; flex-wrap: wrap; border-top: none; border-bottom: 1px solid var(--rule); }
  .mg-nav-item { border-bottom: none; }
  .mg-nav-link { padding: 8px 14px; border-left: none; border-bottom: 2px solid transparent; }
  .mg-nav-link.active { border-left-color: transparent; border-bottom-color: var(--mint-500); background: transparent; }
}

@media (max-width: 480px) {
  .mg-page { padding: 28px 20px; }
  .mg-recovery-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Shared admin styles (unscoped — used across admin pages)
   ═══════════════════════════════════════════════════════════ */

.adm-page-header   { margin-bottom: 28px; }

.adm-page-title {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}

.adm-page-subtitle {
    font-size: 0.875rem;
    color: var(--ink-2);
    margin: 6px 0 0;
}

/* ─── Search bar ─────────────────────────────────────────── */
.adm-search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    max-width: 520px;
}

.adm-search-input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--surface);
    outline: none;
    transition: border-color 0.12s ease;
    min-width: 0;
}

.adm-search-input:focus {
    border-color: var(--mint-500);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint-500) 15%, transparent);
}

.adm-search-btn {
    padding: 9px 20px;
    background: var(--mint-500);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.12s ease;
}

.adm-search-btn:hover:not(:disabled) { background: var(--mint-700); }
.adm-search-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Table ──────────────────────────────────────────────── */
.adm-table-wrap {
    background: var(--surface);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.adm-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.adm-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
    background: var(--bg);
    border-bottom: 1px solid #E5E7EB;
    white-space: nowrap;
}

.adm-table td {
    padding: 13px 16px;
    color: var(--ink);
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td     { background: #FAFAF7; }

/* ─── Cell helpers ───────────────────────────────────────── */
.adm-cell-primary  { font-weight: 500; }

.adm-cell-mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
}

.adm-cell-muted  { color: var(--ink-2); font-size: 0.75rem; }
.adm-cell-action { text-align: right; }

/* ─── Clickable rows ─────────────────────────────────────── */
.adm-table--clickable tbody tr { cursor: pointer; }

/* ─── Inline badge ───────────────────────────────────────── */
.adm-inline-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: middle;
}

.adm-inline-badge--suspended {
    background: rgba(209, 77, 69, 0.1);
    color: var(--negative);
    border: 1px solid rgba(209, 77, 69, 0.25);
}

/* ─── States ─────────────────────────────────────────────── */
.adm-empty {
    padding: 40px 0;
    font-size: 0.9375rem;
    color: var(--ink-2);
}

.adm-error {
    padding: 12px 16px;
    background: rgba(209, 77, 69, 0.08);
    border: 1px solid rgba(209, 77, 69, 0.2);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--negative);
    margin-bottom: 20px;
}

.adm-loading {
    padding: 60px 0;
    display: flex;
    justify-content: center;
}

/* ─── Result count ───────────────────────────────────────── */
.adm-result-count {
    font-size: 0.8125rem;
    color: var(--ink-2);
    margin-bottom: 10px;
}

/* ─── Hint / initial state ───────────────────────────────── */
.adm-search-hint {
    font-size: 0.9375rem;
    color: var(--ink-2);
    padding: 40px 0;
}

/* ─── Links ──────────────────────────────────────────────── */
.adm-link {
    color: var(--mint-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.adm-link:hover { text-decoration: underline; }

/* ─── Plan badges (shared across admin pages) ────────────── */
.adm-plan-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    line-height: 1.6;
}

.adm-plan-badge--paid {
    background: color-mix(in srgb, var(--mint-500) 12%, transparent);
    color: var(--mint-900);
    border: 1px solid color-mix(in srgb, var(--mint-500) 30%, transparent);
}

.adm-plan-badge--free {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

/* ─── Day filter (Signups tab) ───────────────────────────── */
.adm-filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.adm-filter-btn {
    padding: 5px 14px;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #D1D5DB;
    background: transparent;
    color: var(--ink-2);
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.adm-filter-btn:hover { border-color: var(--mint-500); color: var(--ink); }

.adm-filter-btn--active {
    background: var(--mint-500);
    border-color: var(--mint-500);
    color: #fff;
}

.adm-filter-btn--active:hover { background: var(--mint-700); border-color: var(--mint-700); }

/* ─── Pagination ─────────────────────────────────────────── */
.adm-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #E6E7E2;
}

.adm-page-btn {
    padding: 6px 14px;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #D1D5DB;
    background: transparent;
    color: var(--ink-2);
    transition: border-color 0.12s ease, color 0.12s ease;
}

.adm-page-btn:hover:not(:disabled) { border-color: var(--mint-500); color: var(--mint-700); }
.adm-page-btn:disabled { opacity: 0.35; cursor: default; }

.adm-page-indicator {
    font-size: 0.8125rem;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

/* ─── Tab strip ──────────────────────────────────────────── */
.adm-tab-strip {
    display: flex;
    border-bottom: 2px solid #E6E7E2;
    margin-bottom: 28px;
}

.adm-tab {
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-2);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.adm-tab:hover { color: var(--ink); }

.adm-tab--active {
    color: var(--mint-700);
    border-bottom-color: var(--mint-500);
}

.adm-panel--hidden { display: none; }

/* ═══════════════════════════════════════════════════════════
   Error pages — 404 / 403 (shared, unscoped)
   ═══════════════════════════════════════════════════════════ */

.ep-page {
    padding: 64px 0 0;
    max-width: 480px;
}

.ep-code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--mint-100);
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    font-variant-numeric: tabular-nums;
}

.ep-heading {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 12px;
    line-height: 1.2;
}

.ep-body {
    font-size: 0.9375rem;
    color: var(--ink-2);
    line-height: 1.6;
    margin: 0 0 36px;
}

.ep-cta {
    display: inline-block;
    padding: 10px 24px;
    background: var(--mint-500);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.12s ease;
}

.ep-cta:hover {
    background: var(--mint-700);
    color: #fff;
    text-decoration: none;
}
