body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.admin-header h1 {
  margin: 0;
  font-size: 28px;
}

.admin-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 15px;
}

h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid #dbe1ea;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  box-sizing: border-box;
  background: #fff;
}

.admin-form textarea {
  min-height: 140px;
  resize: vertical;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.field-help {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.upload-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-row input[type="file"] {
  flex: 1;
  min-width: 240px;
  padding: 10px 12px;
}

.upload-status {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
}

.current-image-preview {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.current-image-preview img {
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #dbe1ea;
  background: #f8fafc;
}

.current-image-preview a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.current-image-preview a:hover {
  text-decoration: underline;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  color: #334155;
}

.checkbox-line input {
  width: auto;
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
}

.btn-primary {
  background: #1d4ed8;
  color: #fff;
}

.btn-light {
  background: #eef2f7;
  color: #1f2937;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}

.alert {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  font-weight: 600;
}

.alert.success {
  background: #eaf8ee;
  color: #166534;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: 14px;
  color: #334155;
}

.admin-table td {
  font-size: 15px;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.actions form {
  margin: 0;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .upload-row {
    flex-direction: column;
  }
}