:root {
  --bg: #0d1b24;
  --bg-soft: #142b39;
  --card: #ffffff;
  --text: #132230;
  --muted: #5f6f78;
  --brand: #13b6ec;
  --danger: #d64343;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Avenir Next", "SF Pro Text", "Segoe UI", sans-serif;
  background: #edf4f7;
  color: var(--text);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 0 0, #35d5ff 0, transparent 34%), linear-gradient(135deg, var(--bg), var(--bg-soft));
}

.login-card {
  width: min(440px, 92vw);
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.login-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

h1 { margin: 10px 0 6px; }

p { margin-top: 0; color: var(--muted); }

form { display: grid; gap: 10px; }

label { font-size: 13px; font-weight: 700; color: #32444e; }

input, textarea, select, button {
  border: 1px solid #cfdae0;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

button {
  background: linear-gradient(120deg, #13b6ec, #46cff8);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

button.danger, .danger {
  background: #fff2f2;
  border: 1px solid #f0bcbc;
  color: var(--danger);
  text-decoration: none;
}

.alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin: 12px 22px;
}

.alert.success {
  background: #ecfff3;
  border: 1px solid #a7e4bc;
}

.alert.error {
  background: #fff2f2;
  border: 1px solid #f0bcbc;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: #fff;
}

.admin-header p { color: rgba(255,255,255,0.75); }

.header-actions { display: flex; gap: 10px; }

.header-actions a {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.26);
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.admin-grid {
  padding: 20px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.panel {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.panel h2 { margin-top: 4px; }

.list-block {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f6fbfe;
  border: 1px solid #e3eef4;
  border-radius: 10px;
  padding: 10px;
}

.list-item small { color: #60717c; display: block; }

.business-card {
  border: 1px solid #e1edf4;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.sub-form {
  display: grid;
  gap: 8px;
  background: #f8fcff;
  padding: 10px;
  border-radius: 10px;
}

.nested {
  margin-left: 8px;
}

@media (max-width: 700px) {
  .admin-header { flex-direction: column; }
}
