:root {
  --ink: #07172c;
  --muted: #65728a;
  --line: #dce4ef;
  --green: #08d695;
  --green-dark: #05a777;
  --red: #ef4444;
  --orange: #f59e0b;
  --blue: #2f7df4;
  --panel: #ffffff;
  --sidebar: #062c3c;
  --deep: #031318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.site-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 78%, rgba(8, 214, 149, .34), transparent 22rem),
    radial-gradient(circle at 86% 16%, rgba(14, 165, 233, .16), transparent 24rem),
    linear-gradient(130deg, #020b0e, #06353b 48%, #031115);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(410px, 100%);
  padding: 42px 36px 34px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent),
    rgba(18, 22, 22, .96);
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .45);
}

.login-panel h1 {
  margin: 0 0 14px;
  text-align: center;
  font-size: 30px;
  letter-spacing: 0;
}

.login-panel p {
  margin: 0 0 28px;
  text-align: center;
}

.login-panel input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: #202020;
  color: #fff;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.login-panel input:focus {
  border-color: rgba(8, 214, 149, .8);
  box-shadow: 0 0 0 4px rgba(8, 214, 149, .12);
}

.login-panel button {
  width: 100%;
  height: 58px;
  margin-top: 24px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #001b15;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(8, 214, 149, .24);
}

.admin-login-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(8, 214, 149, .14), transparent 34%),
    linear-gradient(135deg, #001214, #052d3d 58%, #001214);
  color: #fff;
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-panel {
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid rgba(8, 214, 149, .18);
  border-radius: 8px;
  background: rgba(0, 13, 15, .9);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .45);
}

.admin-login-panel h1 {
  margin: 18px 0 8px;
  color: #fff;
}

.admin-login-panel p {
  margin: 0 0 22px;
  color: #b8cbc8;
}

.admin-login-panel form {
  display: grid;
  gap: 12px;
}

.admin-login-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  padding: 0 14px;
  font: inherit;
}

.admin-login-panel button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #001b15;
  font-weight: 900;
}

.inline-error {
  min-height: 22px;
  margin-top: 14px;
  color: #ff8d8d;
  text-align: center;
}

.bonus-shell {
  min-height: 100vh;
  padding: 20px clamp(16px, 5vw, 60px) 34px;
  color: #fff;
  background:
    radial-gradient(circle at 50% -4%, rgba(8, 214, 149, .38), transparent 18rem),
    radial-gradient(circle at 0% 75%, rgba(8, 214, 149, .24), transparent 18rem),
    radial-gradient(circle at 100% 65%, rgba(8, 214, 149, .2), transparent 20rem),
    linear-gradient(125deg, #04242b, #063a3f 52%, #031a20);
}

.site-header {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 26px;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  text-shadow: 0 0 34px rgba(8, 214, 149, .38);
}

.site-header p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .76);
}

.site-header nav,
.category-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.chip {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.pill.active,
.chip.active,
.pill:hover,
.chip:hover {
  border-color: var(--green);
  background: var(--green);
  color: #001b15;
  transform: translateY(-1px);
}

.category-row {
  margin: 0 auto 22px;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 210px));
  justify-content: center;
  gap: 24px 28px;
}

.bonus-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 11 / 14;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid rgba(8, 214, 149, .14);
  background: #06181e;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bonus-card:hover {
  border-color: rgba(8, 214, 149, .7);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.bonus-card::after {
  content: none;
}

.bonus-art {
  position: absolute;
  inset: 0;
  opacity: 1;
}

.bonus-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.bonus-copy {
  position: relative;
  z-index: 1;
  min-height: 252px;
  padding: 18px 16px 46px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.brand-mark {
  margin-bottom: 18px;
  color: #8fffe0;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.bonus-copy strong {
  color: var(--green);
  font-size: 54px;
  line-height: .9;
  font-weight: 950;
  text-shadow: 0 0 30px rgba(8, 214, 149, .28);
}

.bonus-copy h2 {
  max-width: 170px;
  margin: 6px 0 8px;
  color: #fff;
  font-size: 23px;
  line-height: 1.02;
  letter-spacing: 0;
}

.bonus-copy p {
  max-width: 175px;
  margin: auto 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1.35;
}

.info-button {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, .46);
  color: #fff;
  font-weight: 800;
  z-index: 2;
}

.bonus-card-footer button {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 36px;
  border: 0;
  background: var(--green);
  color: #001b15;
  font-weight: 800;
}

.bonus-card-footer button:disabled {
  opacity: .72;
}

.request-dialog {
  display: none;
  width: min(600px, calc(100% - 32px));
  min-height: 300px;
  border: 0;
  border-radius: 8px;
  padding: 58px 36px 44px;
  background: rgba(0, 5, 5, .88);
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62), 0 0 0 1px rgba(8, 214, 149, .08);
  text-align: center;
}

.request-dialog[open] {
  display: grid;
  place-items: center;
  align-content: center;
}

.request-dialog::backdrop {
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(7px) saturate(.8);
}

#requestDialogClose {
  position: absolute;
  top: 13px;
  right: 17px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #ff6b6b;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

#requestDialogClose:hover {
  color: #ff8c8c;
}

.request-logo {
  color: var(--green);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.request-logo span {
  color: rgba(255, 255, 255, .9);
}

.request-dialog p {
  margin: 28px 0 0;
  color: var(--green);
  font-size: clamp(22px, 4vw, 31px);
  line-height: 1.25;
  font-weight: 500;
}

.result-dialog {
  width: min(460px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 30px 28px 28px;
  background: rgba(0, 13, 15, .94);
  color: #eefdf8;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62), 0 0 0 1px rgba(8, 214, 149, .14);
}

.result-dialog::backdrop {
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(7px) saturate(.85);
}

.result-dialog h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 26px;
  line-height: 1.15;
}

.result-dialog p {
  margin: 12px 0;
  color: #c8ded9;
  font-size: 15px;
  line-height: 1.55;
}

.result-dialog p strong {
  color: var(--green);
}

.result-dialog .member-success-message {
  margin: 18px 0 8px;
  color: #f5fffb;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.result-dialog button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #001b15;
  font-weight: 800;
}

.info-dialog {
  width: min(500px, calc(100% - 28px));
}

.info-lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 22px;
}

.info-lines span {
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(8, 214, 149, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: #eefdf8;
}

.info-lines b {
  display: block;
  margin-bottom: 6px;
  color: #7ca49c;
  font-size: 12px;
}

.result-amount {
  margin: 18px 0;
  font-size: 34px;
  font-weight: 900;
}

.admin-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 186px 1fr;
  background: #f6f8fb;
}

.sidebar {
  min-height: 100vh;
  padding: 10px 8px;
  background: linear-gradient(180deg, #052d3d, #031f2b);
  color: #fff;
  box-shadow: inset -1px 0 rgba(255, 255, 255, .08);
}

.brand {
  margin-bottom: 34px;
  font-weight: 900;
  color: #fff;
}

.brand::first-letter {
  color: var(--green);
}

.brand span {
  display: block;
  color: #a9c1ca;
  font-size: 11px;
  font-weight: 500;
}

.side-link {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 4px;
  border: 0;
  color: #d8edf3;
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.side-link.active,
.side-link:hover {
  background: #064258;
  color: #fff;
}

.side-button {
  margin-top: 18px;
  color: #ffb4b4;
}

.admin-main {
  min-width: 0;
  padding: 28px 24px;
}

.admin-heading,
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-heading h1 {
  margin: 0 0 6px;
}

.admin-heading p {
  margin: 0;
  color: var(--muted);
}

.admin-open-site {
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 14px;
  margin: 26px 0 18px;
}

.metric,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(20, 37, 63, .04);
}

.metric {
  padding: 20px;
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
}

.metric strong {
  display: block;
  margin: 6px 0;
  font-size: 28px;
}

.metric.healthy {
  background: #e9fff5;
  border-color: #111;
}

.metric.healthy strong {
  color: var(--green-dark);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-card {
  padding: 20px;
}

.admin-card h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.status-line {
  display: grid;
  grid-template-columns: 120px 70px 1fr;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}

.bar {
  height: 7px;
  min-width: 5px;
  border-radius: 999px;
}

.bar.success {
  background: #16bf84;
}

.bar.rejected {
  background: var(--red);
}

.bar.pending {
  background: var(--orange);
}

.popular-item {
  display: grid;
  grid-template-columns: 28px 1fr 70px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
  margin-bottom: 10px;
}

.popular-item b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #dce9ff;
}

.popular-item small {
  display: block;
  color: var(--muted);
}

.popular-item strong {
  text-align: right;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-toolbar {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.table-toolbar input,
.table-toolbar select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.table-toolbar input {
  width: min(320px, 100%);
  padding: 0 12px;
}

.table-toolbar select {
  padding: 0 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  padding: 14px 16px;
  background: #043456;
  color: #fff;
  text-align: left;
  text-transform: uppercase;
  font-size: 11px;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f6;
  background: #fff;
}

tbody tr:hover td {
  background: #f8fbff;
}

.copy-user,
.row-action {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8fafc;
  color: #073456;
  font-weight: 800;
}

.copy-user {
  padding: 8px 10px;
}

.row-action {
  width: 28px;
  height: 28px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 12px;
}

.status.success {
  background: #e5fbf2;
  color: #079566;
}

.status.rejected {
  background: #ffecec;
  color: #e02d2d;
}

.status.pending {
  background: #fff5db;
  color: #a56700;
}

.status.error {
  background: #f3e8ff;
  color: #7e22ce;
}

.duration {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  background: #e8f6ff;
  font-weight: 800;
}

.empty-text {
  color: var(--muted);
}

@media (max-width: 1000px) {
  .admin-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .metric-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .table-card {
    overflow-x: auto;
  }
}

@media (max-width: 520px) {
  .bonus-grid {
    grid-template-columns: minmax(180px, 220px);
  }

  .login-panel {
    padding: 26px;
  }
}

/* UI refresh */
.login-brand {
  margin: 0 auto 18px;
  color: var(--green);
  font-size: 15px;
  font-weight: 950;
  text-align: center;
  text-shadow: 0 0 28px rgba(8, 214, 149, .34);
}

.login-brand-img {
  display: block;
  width: min(246px, 88%);
  height: auto;
  margin: 0 auto 22px;
}

.pill.ghost {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .08);
}

.member-strip {
  width: min(880px, 100%);
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.member-strip div {
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.member-strip span {
  display: block;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
}

.member-strip strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 17px;
}

.bonus-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
  color: rgba(255, 255, 255, .76);
  text-align: center;
}

.bonus-card-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.result-badge.ok {
  background: rgba(8, 214, 149, .16);
  color: var(--green);
}

.result-badge.reject {
  background: rgba(255, 107, 107, .14);
  color: #ff7b7b;
}

.brand {
  display: grid;
  min-height: 44px;
  align-content: center;
  margin: 0 4px 30px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand b {
  color: #fff;
  font-size: 15px;
}

.brand b::first-letter {
  color: var(--green);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #1d2d44;
  font-size: 13px;
  font-weight: 700;
}

.metric {
  position: relative;
  min-height: 118px;
  overflow: hidden;
}

.metric i {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #e8f1ff;
}

.metric i::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 12px;
  border-radius: 5px;
  background: currentColor;
}

.metric-blue i {
  color: #2f7df4;
  background: #e9f1ff;
}

.metric-green i {
  color: #16bf84;
  background: #e5fbf2;
}

.metric-purple i {
  color: #8b5cf6;
  background: #f0eaff;
}

.metric-orange i {
  color: #f59e0b;
  background: #fff4dc;
}

.healthy i {
  color: #05a777;
  background: #dffbed;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.card-title h2 {
  margin: 0;
}

.card-title span {
  color: var(--muted);
  font-size: 12px;
}

.activity-bars {
  min-height: 172px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 20px 8px 8px;
  border-radius: 8px;
  background:
    linear-gradient(#edf2f8 1px, transparent 1px) 0 0 / 100% 34px,
    #fff;
}

.activity-bars span {
  width: min(28px, 7%);
  min-width: 12px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #93c5fd, #2f7df4);
  position: relative;
}

.activity-bars span i {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  color: #6b7b90;
  font-size: 10px;
  font-style: normal;
}

.dashboard-grid.lower {
  grid-template-columns: 1fr 1fr;
}

.health-label {
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #e5fbf2;
  color: #079566 !important;
  font-weight: 900;
}

.domain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 8px;
  background: #f8fafc;
}

.domain-row + .domain-row {
  margin-top: 10px;
}

.domain-row span {
  color: var(--muted);
  font-size: 12px;
}

.domain-row strong {
  color: #17304f;
}

.table-toolbar {
  background: #fff;
}

.table-empty {
  height: 72px;
  color: var(--muted);
  text-align: center;
}

.row-action {
  width: auto;
  min-width: 56px;
  padding: 0 10px;
  color: #1b65d8;
  background: #edf5ff;
}

@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .metric-grid .healthy {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .member-strip,
  .dashboard-grid.lower {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid .healthy {
    grid-column: auto;
  }
}

/* Dashboard target layout */
.admin-dashboard {
  display: grid;
  grid-template-columns: 186px 1fr;
  min-height: 100vh;
  background: #f8fafc;
  color: #020817;
}

.dashboard-main {
  min-width: 0;
  padding: 22px 24px 0;
}

.dashboard-heading {
  margin-bottom: 30px;
}

.dashboard-heading h1 {
  margin: 0 0 8px;
  color: #020817;
  font-size: 29px;
  line-height: 1;
  font-weight: 900;
}

.dashboard-heading p {
  color: #667085;
  font-size: 13px;
}

.dashboard-heading .date-pill {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #d9e1ec;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  color: #0f172a;
  font-size: 13px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 18px;
  margin: 0 0 22px;
}

.dashboard-metrics .metric {
  min-height: 124px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 22px 22px;
  border: 1px solid #d9e1ec;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.dashboard-metrics .metric span {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-metrics .metric strong {
  margin: 5px 0 4px;
  color: #020817;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.dashboard-metrics .metric small {
  color: #7b8798;
  font-size: 12px;
}

.dashboard-metrics .metric .metric-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 9px;
}

.dashboard-metrics .metric .metric-icon::after {
  width: 18px;
  height: 18px;
  margin: 12px;
  border-radius: 4px;
}

.dashboard-metrics .healthy {
  border-color: #111827;
  background: #eafff4;
}

.dashboard-metrics .healthy strong {
  color: #08b981;
}

.delta {
  align-self: start;
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.delta.up {
  background: #d9ffe9;
  color: #06a56f;
}

.delta.down {
  background: #ffe3e3;
  color: #f04444;
}

.health-dot {
  align-self: start;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #10b981;
}

.dashboard-top,
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.dashboard-top .admin-card {
  min-height: 298px;
}

.dashboard-bottom .admin-card {
  min-height: 456px;
}

.admin-dashboard .admin-card {
  padding: 24px 22px;
  border: 1px solid #d9e1ec;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.admin-dashboard .card-title {
  margin-bottom: 30px;
}

.admin-dashboard .card-title h2 {
  margin: 0;
  color: #020817;
  font-size: 17px;
  font-weight: 900;
}

.admin-dashboard .card-title p,
.admin-dashboard .card-title span {
  margin: 8px 0 0;
  color: #98a2b3;
  font-size: 12px;
}

.peak-pill {
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #edf5ff;
  color: #2f7df4 !important;
  font-size: 12px !important;
  font-weight: 800;
}

.status-card .status-line {
  grid-template-columns: 140px 58px 1fr;
  gap: 14px;
  margin: 25px 0;
}

.status-card .status-line span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.status-card .status-line strong {
  color: #020817;
  font-size: 24px;
  text-align: right;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.success-dot {
  background: #10b981;
}

.rejected-dot {
  background: #ef4444;
}

.pending-dot {
  background: #f59e0b;
}

.status-card .bar {
  height: 7px;
  border-radius: 99px;
  background: currentColor;
  position: relative;
}

.status-card .bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(100vw);
  max-width: 100%;
  border-radius: inherit;
  background: #f0f2f6;
  z-index: -1;
}

.status-card .bar.success {
  color: #10b981;
}

.status-card .bar.rejected {
  color: #ef4444;
}

.status-card .bar.pending {
  color: #f59e0b;
}

.activity-card .card-title {
  margin-bottom: 20px;
}

.dashboard-activity {
  min-height: 212px;
  align-items: flex-end;
  gap: 15px;
  padding: 26px 36px 28px;
  background:
    linear-gradient(#eef2f7 1px, transparent 1px) 0 18px / 100% 40px,
    #fff;
}

.dashboard-activity span {
  width: 26px;
  min-width: 20px;
  border-radius: 4px 4px 2px 2px;
  background: #8fc1f8;
}

.dashboard-activity span:nth-last-child(1) {
  background: #2f7df4;
}

.dashboard-activity span i {
  bottom: -20px;
  color: #667085;
  font-size: 11px;
}

.popular-card .card-title {
  margin-bottom: 22px;
}

.admin-dashboard .popular-item {
  grid-template-columns: 30px 1fr 86px;
  min-height: 70px;
  gap: 14px;
  margin-bottom: 14px;
  padding: 13px 14px;
  border-radius: 7px;
  background: #fbfcfe;
}

.admin-dashboard .popular-item b {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #e9edf3;
  color: #667085;
  font-size: 14px;
}

.admin-dashboard .popular-item:first-child b {
  background: #3b82f6;
  color: #fff;
}

.admin-dashboard .popular-item span {
  color: #020817;
  font-size: 14px;
  font-weight: 900;
}

.admin-dashboard .popular-item small {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
}

.admin-dashboard .popular-item small i {
  font-style: normal;
}

.admin-dashboard .popular-item .ok {
  color: #00a775;
}

.admin-dashboard .popular-item .bad {
  color: #ef4444;
}

.admin-dashboard .popular-item .wait {
  color: #f59e0b;
}

.admin-dashboard .popular-item strong {
  color: #020817;
  font-size: 24px;
  line-height: 1;
  text-align: right;
}

.admin-dashboard .popular-item strong em {
  display: block;
  margin-top: 6px;
  color: #98a2b3;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.domain-card .card-title {
  margin-bottom: 24px;
}

.health-label {
  margin: 0 !important;
  padding: 5px 10px;
  border-radius: 5px;
  background: #dffbed;
  color: #08a96f !important;
  font-size: 12px !important;
  font-weight: 900;
}

.domain-box {
  min-height: 72px;
  display: grid;
  grid-template-columns: 38px 1fr 28px 28px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 7px;
  background: #fbfcfe;
}

.domain-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #3b82f6;
}

.domain-box span,
.domain-row span {
  display: block;
  color: #667085;
  font-size: 12px;
}

.domain-box strong {
  color: #2563eb;
}

.domain-box button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: #edf5ff;
}

.admin-dashboard .domain-row {
  min-height: 64px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 0 14px;
  border-radius: 7px;
  background: #fbfcfe;
}

.admin-dashboard .domain-row strong {
  justify-self: start;
  color: #020817;
}

.admin-dashboard .domain-row small {
  color: #08a96f;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1200px) {
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .dashboard-metrics .healthy {
    grid-column: span 2;
  }

  .dashboard-top,
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .dashboard-main {
    padding: 18px 14px;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics .healthy {
    grid-column: auto;
  }

  .dashboard-metrics .metric {
    grid-template-columns: 46px 1fr;
  }

  .delta,
  .health-dot {
    display: none;
  }
}

/* Bonus report */
.report-body {
  grid-template-columns: 196px 1fr;
  background: #fff;
}

.report-sidebar {
  background: linear-gradient(180deg, #052d3d, #031f2b);
}

.report-main {
  padding: 0 42px 52px;
  background: #fff;
}

.report-heading {
  padding: 10px 0 24px;
}

.report-heading h1 {
  margin: 0 0 12px;
  color: #020817;
  font-size: 24px;
  font-weight: 900;
}

.report-heading p {
  margin: 0;
  color: #344054;
  font-size: 15px;
}

.report-filter-card,
.report-empty-card,
.report-table-card,
.report-mini-card,
.report-stat {
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .1);
}

.report-filter-card {
  padding: 24px;
}

.report-filter-card h2 {
  margin: 0 0 18px;
  color: #020817;
  font-size: 17px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 14px;
  align-items: end;
}

.report-filter-grid label {
  display: grid;
  gap: 8px;
  color: #020817;
  font-size: 13px;
  font-weight: 700;
}

.report-filter-grid input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d5dbe5;
  border-radius: 6px;
  background: #fff;
}

.report-primary,
.report-export {
  height: 40px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
}

.report-primary {
  background: #2563eb;
}

.report-export {
  background: #16a34a;
}

.quick-range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  color: #344054;
  font-size: 13px;
}

.quick-range button {
  min-height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: #e5e7eb;
  color: #020817;
  font-size: 13px;
}

.report-empty-card {
  min-height: 188px;
  display: grid;
  place-items: center;
  margin-top: 24px;
  padding: 32px;
  text-align: center;
}

.report-empty-card h2 {
  margin: 8px 0 8px;
  color: #172033;
  font-size: 18px;
}

.report-empty-card p {
  margin: 0;
  color: #667085;
}

.empty-chart {
  width: 58px;
  height: 48px;
  border-left: 4px solid #cbd5e1;
  border-bottom: 4px solid #cbd5e1;
  position: relative;
}

.empty-chart::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  width: 44px;
  height: 24px;
  border-top: 4px solid #cbd5e1;
  border-right: 4px solid #cbd5e1;
  transform: skew(-18deg);
}

.report-content {
  margin-top: 22px;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.report-stat {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  padding: 18px 18px;
}

.report-stat span {
  display: block;
  color: #475467;
  font-size: 13px;
}

.report-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.report-stat small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}

.report-stat i {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.report-stat.total strong {
  color: #2563eb;
}

.report-stat.total i {
  background: #dbeafe;
}

.report-stat.success strong,
.report-stat.success small {
  color: #16a34a;
}

.report-stat.success i {
  background: #dcfce7;
}

.report-stat.failed strong,
.report-stat.failed small {
  color: #dc2626;
}

.report-stat.failed i {
  background: #fee2e2;
}

.report-table-card {
  padding: 24px 22px;
}

.report-table-card h2 {
  margin: 0 0 20px;
  color: #020817;
  font-size: 17px;
}

.report-table th {
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid #d8dee8;
  color: #020817;
  font-size: 13px;
  text-transform: none;
}

.report-table td {
  padding: 14px;
  color: #020817;
}

.rate-pill,
.success-pill,
.user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
}

.rate-pill.good {
  background: #fef3c7;
  color: #9a6700;
}

.rate-pill.warn {
  background: #ffedd5;
  color: #c2410c;
}

.rate-pill.bad {
  background: #fee2e2;
  color: #dc2626;
}

.success-pill {
  background: #dcfce7;
  color: #15803d;
}

.user-pill {
  background: #f3e8ff;
  color: #7e22ce;
}

.report-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.report-mini-card {
  padding: 24px 22px;
}

.report-mini-card h2 {
  margin: 0 0 22px;
  color: #020817;
  font-size: 17px;
}

.report-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  color: #020817;
}

.report-line strong {
  font-weight: 900;
}

.bonus-admin-main {
  padding: 28px 24px;
}

.bonus-manager-card {
  padding: 22px;
}

.bonus-manager-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(180px, 260px);
  gap: 14px;
  margin-bottom: 18px;
}

.bonus-manager-toolbar input,
.bonus-manager-toolbar select {
  height: 42px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  color: #020817;
  font: inherit;
}

.bonus-manager-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
}

.bonus-manager-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.bonus-manager-table th {
  height: 44px;
  background: #003557;
  color: #fff;
  padding: 0 14px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
}

.bonus-manager-table td {
  min-height: 64px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f6;
  color: #001b35;
  vertical-align: middle;
}

.bonus-manager-table tr:last-child td {
  border-bottom: 0;
}

.bonus-manager-table strong {
  display: block;
  font-size: 14px;
}

.bonus-manager-table small {
  display: block;
  margin-top: 5px;
  color: #667085;
}

.bonus-thumb {
  display: block;
  width: 42px;
  height: 54px;
  border-radius: 4px;
  object-fit: cover;
}

.image-edit-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-change {
  height: 30px;
  border: 1px solid #d8dee8;
  border-radius: 7px;
  background: #f8fafc;
  color: #003557;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.image-change:disabled {
  opacity: .65;
  cursor: wait;
}

.id-pill,
.soft-pill,
.state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.id-pill,
.soft-pill {
  background: #f1f5f9;
  color: #344054;
}

.state-pill.active {
  background: #dcfce7;
  color: #16a34a;
}

.state-pill.passive {
  background: #f1f5f9;
  color: #667085;
}

.requests-table .state-pill.passive {
  background: #fee2e2;
  color: #dc2626;
}

.requests-table .state-pill.pending {
  background: #eaf2ff;
  color: #2563eb;
}

.requests-table .state-pill.error {
  background: #f3e8ff;
  color: #7e22ce;
}

.requests-table .copy-user {
  min-width: 82px;
  min-height: 30px;
  padding: 0 11px;
  border-color: #d7e0eb;
  border-radius: 6px;
  background: #f3f6f9;
  color: #002b4d;
  font-size: 13px;
  font-weight: 900;
}

.requests-table .copy-user::after {
  content: "⧉";
  margin-left: 7px;
  color: #8aa0b8;
  font-size: 11px;
}

.requests-table .copy-user.copied {
  border-color: #10b981;
  background: #dcfce7;
}

.requests-table .icon-action {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #eaf2ff;
  color: #2f7df4;
  font-size: 16px;
}

.requests-table td span + .duration {
  display: block;
  width: max-content;
  margin-top: 4px;
}

.toggle-bonus {
  min-width: 96px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.toggle-bonus.danger {
  background: #ef4444;
}

.toggle-bonus.success {
  background: #16a34a;
}

.toggle-bonus:disabled {
  opacity: .65;
  cursor: wait;
}

.empty-table {
  height: 90px;
  text-align: center;
  color: #667085;
}

.user-form-card,
.users-card {
  padding: 22px;
  margin-bottom: 18px;
}

.user-form-card h2 {
  margin: 0 0 16px;
  color: #020817;
  font-size: 17px;
}

.admin-user-form {
  display: grid;
  grid-template-columns: 1fr 1fr 220px 140px;
  gap: 12px;
}

.admin-user-form input,
.admin-user-form select {
  height: 42px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  color: #020817;
  font: inherit;
}

.admin-user-form button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #003557;
  color: #fff;
  font-weight: 900;
}

.order-controls {
  display: inline-flex;
  gap: 6px;
}

.order-button {
  width: 30px;
  height: 30px;
  border: 1px solid #d8dee8;
  border-radius: 7px;
  background: #f8fafc;
  color: #003557;
  font-weight: 900;
}

.order-button:hover {
  border-color: #2f7df4;
  background: #edf5ff;
  color: #1b65d8;
}

.domain-message-box {
  grid-template-columns: 38px 1fr;
}

.domain-message-box p {
  margin: 7px 0 0;
  color: #667085;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .report-filter-grid,
  .report-summary-grid,
  .report-bottom-grid {
    grid-template-columns: 1fr;
  }

  .bonus-manager-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-user-form {
    grid-template-columns: 1fr;
  }
}

/* Member bonus screen */
.bonus-shell {
  padding: 14px clamp(14px, 4vw, 54px) 34px;
  background:
    radial-gradient(ellipse at 50% 2%, rgba(8, 214, 149, .24), transparent 28rem),
    radial-gradient(ellipse at 0% 66%, rgba(8, 214, 149, .23), transparent 23rem),
    radial-gradient(ellipse at 100% 70%, rgba(8, 214, 149, .18), transparent 24rem),
    linear-gradient(115deg, rgba(3, 20, 26, .92), rgba(4, 56, 61, .92)),
    linear-gradient(125deg, #021014, #06363d 52%, #021014);
}

.site-header {
  gap: 12px;
  margin-bottom: 22px;
}

.site-logo {
  display: block;
  width: min(294px, 72vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 24px rgba(8, 214, 149, .28));
}

.site-header h1 {
  font-size: clamp(34px, 4vw, 45px);
}

.site-header nav {
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 44px;
  padding: 0 22px;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(5, 40, 42, .66);
  font-size: 15px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 20px rgba(0, 0, 0, .2);
}

.pill.active {
  border-color: rgba(8, 214, 149, .9);
  background: #08d695;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .38), 0 12px 24px rgba(8, 214, 149, .22);
  transform: none;
}

.pill.ghost {
  background: rgba(255, 255, 255, .09);
  color: #fff;
}

.pill:hover {
  transform: none;
}

.member-strip {
  display: none;
}

.member-actions {
  width: min(1050px, 100%);
  margin: 0 auto 10px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.action-pill {
  min-width: 120px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(0, 9, 13, .62);
  color: #fff;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 13px 24px rgba(0, 0, 0, .25);
}

.action-pill:hover {
  border-color: var(--green);
  color: #001b15;
  background: var(--green);
}

.category-row {
  width: min(1050px, 100%);
  margin: 0 auto 18px;
  justify-content: flex-start;
  gap: 10px;
}

.chip {
  min-height: 36px;
  padding: 0 16px;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(0, 8, 13, .55);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.chip.active {
  box-shadow: 0 10px 22px rgba(8, 214, 149, .2);
}

.bonus-grid {
  width: min(1050px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, 192px);
  gap: 22px 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}

.bonus-shell.view-entered .bonus-grid {
  opacity: 1;
  transform: translateY(0);
}

.bonus-card {
  aspect-ratio: 11 / 14;
  min-height: 0;
  border: 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
}

.bonus-card-footer button {
  min-height: 32px;
  font-size: 15px;
}

.info-button {
  top: 10px;
  right: 9px;
  width: 28px;
  height: 28px;
  background: rgba(0, 7, 11, .72);
  font-size: 16px;
  line-height: 1;
}

.request-logo-img {
  display: block;
  width: min(330px, 82%);
  height: auto;
  margin: 0 auto;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, rgba(8, 214, 149, .12), transparent 22rem),
    rgba(1, 18, 21, .88);
  backdrop-filter: blur(3px);
}

.page-loader img {
  width: min(260px, 72vw);
  height: auto;
  animation: loaderPulse 1.1s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%,
  100% {
    opacity: .72;
    transform: scale(.985);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.admin-info-dialog {
  width: min(520px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  color: #020817;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .28);
}

.admin-info-dialog::backdrop {
  background: rgba(2, 8, 23, .48);
  backdrop-filter: blur(3px);
}

.admin-info-dialog h2 {
  margin: 0 40px 18px 0;
  font-size: 22px;
}

.detail-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.detail-line span,
.detail-box span {
  color: #667085;
  font-size: 13px;
}

.detail-line strong {
  text-align: right;
}

.detail-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
}

.detail-box p {
  margin: 8px 0 0;
  color: #020817;
  line-height: 1.45;
}

.history-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(720px, calc(100vh - 40px));
  border: 0;
  border-radius: 8px;
  padding: 28px 28px 30px;
  overflow: auto;
  background: rgba(0, 7, 8, .9);
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .66), 0 0 0 1px rgba(8, 214, 149, .08);
}

.history-dialog::backdrop {
  background: rgba(0, 0, 0, .54);
  backdrop-filter: blur(8px) saturate(.78);
}

.history-dialog h2 {
  margin: 0 42px 22px;
  text-align: center;
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
}

.dialog-x {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #ff6b6b;
  font-size: 32px;
  line-height: 1;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.history-item.reject {
  background: linear-gradient(180deg, #ff6b75, #ff5260);
}

.history-item.ok {
  background: linear-gradient(180deg, #10d99c, #05b77f);
  color: #001b15;
}

.history-item.pending {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #1d1300;
}

.history-item-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.history-item-head strong,
.history-item-head span,
.history-item-head em {
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.history-item p {
  margin: 8px 0 0;
  color: inherit;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.history-empty {
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .78);
  text-align: center;
}

@media (max-width: 760px) {
  .member-actions,
  .category-row {
    justify-content: center;
  }

  .bonus-grid {
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  }

  .history-item-head {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 1000px) {
  .admin-dashboard {
    grid-template-columns: 1fr;
  }
}
