@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap");

:root {
  --ink: #32152f;
  --muted: #806276;
  --paper: #fffaf6;
  --white: #fffefd;
  --coral: #ff7964;
  --mint: #ddf4e8;
  --lavender: #eee1f7;
  --yellow: #fff0bd;
  --blue: #dff0fb;
  --line: #ecd8c9;
  --green: #58b88b;
  --shadow: 0 18px 50px rgba(75, 35, 55, .1);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0, rgba(255, 240, 189, .72), transparent 32%),
    radial-gradient(circle at 0 100%, rgba(221, 244, 232, .72), transparent 30%),
    var(--paper);
  font-family: "Nunito", "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(100% - 28px, 820px);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 0 max(30px, env(safe-area-inset-bottom));
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}
.brand img { width: 54px; height: 54px; border-radius: 17px; }
.brand h1 { margin: 0; font-size: clamp(1.25rem, 5vw, 1.7rem); font-weight: 900; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.brand .ghost { margin-left: auto; }

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 254, 253, .92);
  box-shadow: var(--shadow);
  padding: clamp(18px, 5vw, 28px);
}
.login-card { max-width: 470px; margin: 10vh auto 0; }
.eyebrow {
  color: #944a63;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h2 { margin: 7px 0 7px; font-size: 1.35rem; }
.card > p { margin: 0 0 18px; color: var(--muted); }
label { display: grid; gap: 7px; margin-top: 18px; font-weight: 800; }
input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: white;
  color: var(--ink);
  padding: 0 14px;
}
input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 121, 100, .15); }
.primary, .ghost, .approve, .delete {
  min-height: 44px;
  border-radius: 13px;
  border: 0;
  font-weight: 900;
}
.primary {
  width: 100%;
  margin-top: 16px;
  color: white;
  background: linear-gradient(180deg, #ff806c, #ff6856);
  box-shadow: 0 7px 18px rgba(255, 105, 84, .24);
}
.ghost { padding: 0 14px; border: 1px solid var(--line); background: white; color: var(--ink); }
.danger { color: #b4434a; }
.message { min-height: 20px; margin: 10px 0 0 !important; color: #c84449 !important; font-size: .85rem; text-align: center; }

.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.stat {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(50, 21, 47, .06);
  border-radius: 18px;
  padding: 17px;
}
.stat.pending { background: var(--yellow); }
.stat.approved { background: var(--mint); }
.stat span { font-size: .84rem; font-weight: 800; }
.stat strong { font-size: 2.2rem; line-height: 1; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h2 { margin-bottom: 0; }
.users { display: grid; gap: 10px; }
.user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 14px;
}
.user-main { min-width: 0; }
.user-name { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 1rem; font-weight: 900; }
.user-meta { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.status {
  display: inline-flex;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
}
.status.pending { background: var(--yellow); color: #7a5821; }
.status.approved { background: var(--mint); color: #276f50; }
.actions { display: flex; gap: 7px; }
.approve { padding: 0 13px; background: var(--green); color: white; }
.delete { width: 44px; background: #ffe0db; color: #b4434a; font-size: 1.1rem; }
.empty { padding: 45px 15px; text-align: center; color: var(--muted); }
.empty span {
  width: 54px; height: 54px; display: grid; place-items: center;
  margin: 0 auto 12px; border-radius: 18px; background: var(--mint);
  color: var(--green); font-size: 1.5rem; font-weight: 900;
}
.empty b { display: block; color: var(--ink); }
.empty p { margin: 4px 0 0; font-size: .82rem; }

@media (max-width: 560px) {
  .brand p { display: none; }
  .summary { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 94px; padding: 14px; }
  .user { grid-template-columns: 1fr; }
  .actions { width: 100%; }
  .approve { flex: 1; }
  .section-title { align-items: center; }
}
