* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-card,
.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.auth-card {
  width: min(420px, calc(100vw - 32px));
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px 8px;
}

.stats-grid,
.layout-grid {
  display: grid;
  gap: 16px;
  padding: 16px 32px 24px;
}

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

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

.card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.muted {
  color: #6b7280;
}

form.stack,
form {
  display: grid;
  gap: 10px;
}

input,
textarea,
button {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 12px 14px;
  font-size: 14px;
}

button {
  cursor: pointer;
  border: none;
  background: #2563eb;
  color: #fff;
}

button.danger {
  background: #dc2626;
}

.button-link {
  display: inline-block;
  padding: 12px 14px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

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

.error {
  color: #dc2626;
}

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

.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox input {
  width: auto;
}

.plan-form {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}
