.admin-shell {
  min-height: 100vh;
  padding: 24px 14px;
  background:
    radial-gradient(circle at top left, rgba(93, 168, 255, 0.18), transparent 36rem),
    var(--bg);
}

.login-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  min-width: min(280px, calc(100% - 28px));
  border: 1px solid rgba(87, 216, 170, 0.34);
  border-radius: 14px;
  padding: 12px 16px;
  transform: translateX(-50%);
  background: #12352f;
  color: #d8fff0;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  font-weight: 800;
  text-align: center;
}

.admin-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px;
}

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

.admin-heading h1 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(28px, 8vw, 52px);
}

.admin-heading p {
  margin: 0;
  color: var(--amber);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.token-form {
  margin: 24px 0 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.admin-heading button,
.token-form button,
.table-actions button,
.toggle {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.admin-message {
  border-radius: 14px;
  padding: 12px 14px;
}

.stats-row {
  margin: 20px 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.stats-row span {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--glass);
  font-weight: 780;
}

.table-actions {
  margin-bottom: 14px;
}

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

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  text-align: left;
}

th {
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toggle.paid {
  border-color: rgba(87, 216, 170, 0.24);
  background: rgba(87, 216, 170, 0.13);
  color: #a8f4d6;
}

.donation-toggle {
  min-width: 230px;
  background: rgba(93, 168, 255, 0.15);
  color: #cbe5ff;
}

.pledged {
  color: var(--soft);
  font-weight: 780;
}

.pledged.yes {
  color: #a8f4d6;
}

@media (max-width: 520px) {
  .admin-card {
    border-radius: 20px;
  }

  .token-form,
  .admin-heading {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }
}
