* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #090910;
  color: #f4f4f8;
  font-family: Inter, system-ui, Arial, sans-serif;
}

a {
  color: #a986ff;
  text-decoration: none;
}

.container {
  width: min(1120px, 94%);
  margin: 32px auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin: 0 0 6px;
}

.topbar p {
  margin: 0;
  color: #85859a;
}

.user-box,
.nav,
.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav {
  margin-bottom: 20px;
}

.card {
  background: #111119;
  border: 1px solid #29293a;
  border-radius: 15px;
  padding: 22px;
  margin-bottom: 18px;
}

.auth-wrap {
  display: grid;
  place-items: center;
  min-height: 70vh;
}

.auth-card {
  width: min(480px, 100%);
}

.grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat span {
  display: block;
  color: #8d8da1;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

label {
  display: block;
  margin-top: 16px;
  color: #aaaabd;
  font-size: 13px;
}

input,
select {
  width: 100%;
  height: 46px;
  margin-top: 7px;
  padding: 0 12px;
  color: #fff;
  background: #0d0d15;
  border: 1px solid #303043;
  border-radius: 8px;
  outline: none;
}

input:focus,
select:focus {
  border-color: #8b46ff;
}

.otp {
  text-align: center;
  letter-spacing: 10px;
  font-size: 24px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  margin-top: 16px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #7444ef, #9d55ff);
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: #2d2d3c;
}

.button.danger {
  background: #9f3040;
}

.button.small {
  min-height: 34px;
  margin: 0;
  padding: 7px 10px;
}

.alert {
  margin: 12px 0;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid;
}

.alert.success {
  color: #8bf0bd;
  border-color: #286c4b;
  background: #10251c;
}

.alert.danger {
  color: #ff9baa;
  border-color: #823441;
  background: #281116;
}

.status-card {
  border-top: 3px solid #8b46ff;
}

.status-label {
  color: #85859a;
  font-size: 12px;
  font-weight: 700;
}

.status-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
}

.success-text {
  color: #36d98b;
}

.danger-text {
  color: #ff5267;
}

.muted {
  color: #85859a;
}

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

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

th,
td {
  padding: 11px;
  border-bottom: 1px solid #29293a;
  text-align: left;
  vertical-align: middle;
}

td form {
  margin: 0;
}

@media (max-width: 820px) {
  .grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
