:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090b10;
  color: #eef2f7;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, #172033 0, #090b10 42%); }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
h1 { margin: 4px 0 8px; font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.04em; }
h2 { margin: 0 0 6px; font-size: 18px; }
p { margin: 0; color: #929bad; }
.eyebrow { color: #62d9a7; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.subtitle { font-size: 15px; }

.card { border: 1px solid #252b38; border-radius: 18px; background: rgba(18, 22, 31, .92); box-shadow: 0 20px 70px rgba(0, 0, 0, .25); }
.login-card { width: min(520px, 100%); padding: 28px; }
.login-card form { margin-top: 22px; }
label { display: block; margin-bottom: 8px; color: #c7ced9; font-size: 12px; font-weight: 700; }
.row { display: flex; gap: 10px; }
input { width: 100%; min-width: 0; border: 1px solid #303848; border-radius: 10px; background: #0d1119; color: #f7f9fb; padding: 11px 13px; outline: none; }
input:focus { border-color: #62d9a7; box-shadow: 0 0 0 3px rgba(98, 217, 167, .12); }
button { border-radius: 10px; background: #62d9a7; color: #07120d; padding: 11px 16px; font-weight: 800; white-space: nowrap; }
button:hover { filter: brightness(1.07); }
button:disabled { cursor: not-allowed; opacity: .5; }
.secondary { background: #202735; color: #dbe2ec; }
.danger { background: rgba(249, 101, 101, .13); color: #ff9292; }
.warning { background: rgba(244, 183, 64, .14); color: #ffd173; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.stats article { border: 1px solid #252b38; border-radius: 16px; background: rgba(18, 22, 31, .88); padding: 20px; }
.stats span { display: block; color: #8892a4; font-size: 12px; margin-bottom: 8px; }
.stats strong { font-size: 28px; }
.add-card { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 22px; margin-bottom: 14px; }
.add-card form { width: min(520px, 55%); }
.table-card { overflow: hidden; }
.table-heading { display: flex; justify-content: space-between; align-items: center; padding: 22px; border-bottom: 1px solid #252b38; }
.table-heading p { font-size: 11px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 18px; border-bottom: 1px solid #202633; text-align: left; vertical-align: middle; }
th { color: #778196; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
td { color: #d6dce5; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.email { font-weight: 750; color: #f3f6fa; }
.meta { margin-top: 4px; color: #737e91; font-size: 11px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: #202735; color: #b9c2d0; font-size: 10px; font-weight: 800; }
.badge.good { background: rgba(98, 217, 167, .13); color: #7ce9bb; }
.badge.bad { background: rgba(249, 101, 101, .13); color: #ff9292; }
.actions { display: flex; justify-content: flex-end; gap: 7px; }
.actions button { padding: 7px 9px; font-size: 10px; }
.empty { padding: 48px; text-align: center; }

.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2, 4, 8, .76); backdrop-filter: blur(8px); }
.modal-card { width: min(460px, 100%); border: 1px solid #313949; border-radius: 18px; background: #121720; padding: 28px; box-shadow: 0 28px 90px #000; }
.modal-card h2 { margin-top: 6px; font-size: 24px; }
.credential { display: flex; gap: 9px; margin: 22px 0; }
.credential code { flex: 1; overflow-x: auto; border: 1px solid #303848; border-radius: 10px; background: #090d13; color: #7ce9bb; padding: 12px; font-size: 14px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 420px; border: 1px solid #344052; border-radius: 12px; background: #171d27; padding: 13px 16px; box-shadow: 0 16px 50px #000; color: #e7ecf3; font-size: 12px; }
.toast.error { border-color: #783f49; color: #ffaaaa; }
.hidden { display: none !important; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1180px); padding-top: 30px; }
  header, .add-card { align-items: stretch; flex-direction: column; }
  .add-card form { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
}
