.admin-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px;
}

.admin-back {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.admin-back:hover {
  color: var(--accent-hover);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  max-width: 320px;
  margin: 60px auto 0;
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0 0 12px;
}

.login-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.login-card button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.login-card button:hover {
  background: var(--accent-hover);
}

.login-error {
  color: #dc2626;
  font-size: 13px;
  margin: 0 0 12px;
  min-height: 16px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

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

#grand-total {
  color: var(--text-muted);
  font-size: 14px;
  margin: 4px 0 16px;
}

.logout-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

.logout-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

table.stats {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.stats th,
table.stats td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.stats th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}
