:root {
  color-scheme: dark;
  --bg: #0a0d10;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7f7f8;
  --muted: #a7adb7;
  --accent: #f6d254;
  --ok: #58d68d;
  --warn: #f2b84b;
  --bad: #ff6b6b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(246, 210, 84, 0.16), transparent 34%), var(--bg);
  color: var(--text);
}
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0; }
.topbar, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 40px; line-height: 1; }
h2 { margin-bottom: 8px; }
p { color: var(--muted); }
.panel, .user-card { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; box-shadow: 0 20px 80px rgba(0,0,0,0.24); }
.login-panel { max-width: 460px; padding: 24px; }
.login-form { display: grid; gap: 14px; margin-top: 20px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,0.32); color: var(--text); padding: 11px 12px; font: inherit; }
button { border: 0; border-radius: 8px; background: var(--accent); color: #17150b; font-weight: 800; padding: 11px 14px; cursor: pointer; }
button.ghost { border: 1px solid var(--line); background: var(--panel); color: var(--text); }
button.danger { background: rgba(255, 107, 107, 0.14); color: #ffd5d5; border: 1px solid rgba(255, 107, 107, 0.4); }
button.warn { background: rgba(242, 184, 75, 0.14); color: #ffe4a3; border: 1px solid rgba(242, 184, 75, 0.4); }
button:disabled { opacity: .55; cursor: wait; }
.hidden { display: none !important; }
.message { min-height: 20px; color: var(--warn); }
.user-list { display: grid; gap: 12px; }
.user-card { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 16px; align-items: center; padding: 16px; }
.user-main h3 { margin: 0 0 4px; font-size: 18px; }
.user-email { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.badge { border: 1px solid var(--line); background: var(--panel-strong); color: var(--muted); padding: 4px 8px; border-radius: 999px; }
.badge.approved { color: var(--ok); border-color: rgba(88,214,141,.45); }
.badge.pending, .badge.email_pending, .badge.creating, .badge.failed { color: var(--warn); border-color: rgba(242,184,75,.45); }
.badge.suspended, .badge.deleted, .badge.rejected { color: var(--bad); border-color: rgba(255,107,107,.45); }
.controls { display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: end; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.plan-desc { grid-column: 1 / -1; color: var(--muted); font-size: 12px; margin: 0; }
@media (max-width: 860px) {
  .topbar, .toolbar { align-items: flex-start; flex-direction: column; }
  .user-card { grid-template-columns: 1fr; }
  .actions { justify-content: flex-start; }
}

.badge.plan-request{color:#f6d254;border-color:rgba(246,210,84,.55);background:rgba(246,210,84,.12)}
button.logout { background: rgba(99, 179, 237, 0.14); color: #c9e7ff; border: 1px solid rgba(99, 179, 237, 0.42); }


/* Admin redesign 2026-10-04 */
:root {
  --bg: #070b16;
  --panel: #0f1527;
  --panel-strong: #151d33;
  --line: #26304a;
  --text: #edf2ff;
  --muted: #9da8bf;
  --accent: #82c9ff;
}
body {
  background: radial-gradient(circle at 10% -10%, rgba(62,166,255,.14), transparent 34rem), var(--bg);
}
.shell { width: min(1280px, calc(100% - 48px)); padding: 28px 0 56px; }
.topbar { align-items: flex-start; margin-bottom: 30px; }
.brand { min-width: max-content; }
.topnav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.topnav .link-button, .topnav button { min-height: 43px; }
.link-button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px; background: var(--panel);
  color: var(--text); font-weight: 800; padding: 11px 14px; text-decoration: none;
}
.link-button.active { border-color: var(--accent); color: var(--accent); }
.panel, .user-card, .metrics article { border-color: var(--line); background: rgba(15,21,39,.94); border-radius: 15px; }
.overview { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; margin-bottom: 14px; }
.overview p:last-child { margin-bottom: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.metrics article { padding: 17px 19px; }
.metrics strong { display: block; margin-bottom: 4px; font-size: 28px; line-height: 1; }
.metrics span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.filters { display: flex; align-items: end; justify-content: flex-start; gap: 16px; padding: 16px; margin-bottom: 10px; }
.search-field { flex: 1 1 320px; }
.filters > label:not(.search-field):not(.check-field) { flex: 0 1 250px; }
.check-field { display: flex; align-items: center; gap: 9px; min-height: 42px; white-space: nowrap; }
.check-field input { width: 17px; min-height: 17px; accent-color: var(--accent); }
.status-message { min-height: 22px; margin: 0 2px 12px; font-size: 14px; }
.status-message.error { color: var(--bad); }
.status-message.success { color: var(--ok); }
.user-card { grid-template-columns: minmax(230px,1.15fr) minmax(280px,1fr) minmax(230px,auto); gap: 20px; padding: 18px; }
.user-card.deleted { opacity: .68; }
.empty-state { padding: 34px; text-align: center; }
.empty-state p { margin-bottom: 0; }
@media (max-width: 980px) {
  .topnav { max-width: 620px; }
  .user-card { grid-template-columns: 1fr 1fr; }
  .actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 28px); padding-top: 20px; }
  .topbar, .overview, .filters { align-items: stretch; flex-direction: column; }
  .topnav { justify-content: flex-start; }
  .topnav > * { flex: 1 1 auto; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .user-card { grid-template-columns: 1fr; }
  .actions { grid-column: auto; }
}
