:root {
  --color-primary: #1a73e8;
  --color-bg: #f7f8fa;
  --color-text: #202124;
  --color-border: #e0e0e0;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

a { color: var(--color-primary); text-decoration: none; }

.admin-shell, .user-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar, .user-sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--color-border);
  padding: 16px;
}

.admin-brand, .user-brand, .auth-brand {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.admin-content, .user-content {
  flex: 1;
  padding: 24px;
}

.menu { list-style: none; padding-left: 0; margin: 0; }
.menu .menu-item { padding: 4px 0; }
.menu .menu > .menu-item { padding-left: 12px; }
.menu-item a { display: flex; align-items: center; gap: 8px; }
.menu-icon { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 2; }

.stat-cards { display: flex; gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 24px;
}
.stat-number { display: block; font-size: 1.8rem; font-weight: 700; }
.stat-label { color: #666; font-size: 0.9rem; }

.data-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.data-table th, .data-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
}

form label { display: block; margin-bottom: 12px; }
form input[type="text"], form input[type="number"], form select {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-top: 4px;
}

button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 8px 16px;
  cursor: pointer;
}

.auth-shell {
  max-width: 420px;
  margin: 60px auto;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.home-hero {
  max-width: 720px;
  margin: 80px auto;
  text-align: center;
  padding: 0 16px;
}

.error-page {
  max-width: 480px;
  margin: 100px auto;
  text-align: center;
}

.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.alert-success { background: #e6f4ea; color: #137333; border: 1px solid #b7e1c3; }
.alert-error { background: #fce8e6; color: #c5221f; border: 1px solid #f6c6c3; }

.field-error {
  color: #c5221f;
  font-size: 0.8rem;
  margin: -8px 0 12px;
}

.link-button {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.notif-bell {
  position: relative;
  text-decoration: none;
  font-size: 1.2rem;
}
.notif-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #c5221f;
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 999px;
}

.biz-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

/* Used by both /admin/theme (theme picker) and /dashboard/subscription
   (plan comparison cards) — previously completely unstyled. */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.theme-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}
.theme-card h3 { margin-top: 0; }
.theme-card ul { padding-left: 18px; margin: 8px 0; font-size: 0.9rem; }
.theme-card form { margin-top: 8px; }

.app-footer {
  text-align: center;
  padding: 24px;
  color: #888;
  font-size: 0.85rem;
}

.auth-content h1 { margin-top: 0; }

.logout-form { display: inline; }
