:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --primary: #ff6500;
  --primary-dark: #d94e00;
  --nav: #111827;
  --nav-soft: #1f2937;
  --green: #16a34a;
  --red: #dc2626;
  --blue: #2563eb;
}

/* Premium super-admin refresh */
:root {
  --primary: #1237c9;
  --primary-dark: #0b2a9b;
  --bg: #f7f8fd;
  --panel: #ffffff;
  --line: #dbe3f1;
  --nav: #060b26;
  --nav-soft: #0b1550;
}

body.admin-page {
  background: var(--bg);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
}

.sidebar {
  width: 246px;
  padding: 16px 14px;
  background: #060b26;
  box-shadow: 8px 0 26px rgba(6,11,38,.12);
}

.brand { padding: 4px 8px 18px; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: #fff; }
.brand strong { font-size: 18px; }
.side-nav { gap: 6px; }
.side-nav a, .logout { min-height: 38px; border-radius: 8px; color: rgba(255,255,255,.72); }
.side-nav a span { background: rgba(255,255,255,.08); }
.side-nav a:hover, .side-nav a.active, .logout:hover { background: rgba(18,55,201,.28); color: #fff; }
.side-nav .admin-cta-link { background: rgba(18,55,201,.28); }

.main {
  margin-left: 246px;
  padding: 16px 18px 28px;
}

.topbar {
  min-height: 56px;
  margin: -16px -18px 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(247,248,253,.9);
}

.topbar h1 { color: #08213d; font-size: 24px; letter-spacing: -.02em; }
.admin-pill { min-height: 38px; border-color: var(--line); border-radius: 999px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.admin-pill > span { background: #eef3ff; color: var(--primary); }

.hero {
  min-height: 94px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b34c8, #3151d4);
  color: #fff;
  box-shadow: 0 8px 18px rgba(18,55,201,.18);
}

.hero span, .hero p { color: rgba(255,255,255,.82); }
.hero h2 { font-size: 26px; }
.secondary-button { color: var(--primary); }

.cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.cards article {
  position: relative;
  min-height: 92px;
  padding: 16px 18px;
  border-color: var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.cards article::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); }
.cards span { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cards strong { font-size: 28px; }

.panel { border-color: var(--line); border-radius: 8px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.panel-head { align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
th { background: #fbfcff; font-size: 10px; letter-spacing: .08em; }
td { background: #fff; }
tbody tr:hover td { background: #f7f9ff; }

button, .button { min-height: 36px; border-radius: 5px; background: var(--primary); }
button:hover, .button:hover { background: var(--primary-dark); }
.light-btn, button.light-btn, .secondary-button { border: 1px solid var(--line); background: #fff; color: #08213d; }
.modal-card { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 28px 70px rgba(6,11,38,.22); }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--primary-dark);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 101, 0, .18), transparent 28%),
    linear-gradient(135deg, #fff7ed 0%, #eef5ff 56%, #ffffff 100%);
}

.login-shell {
  width: min(980px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: .86fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(219, 231, 246, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 34px 80px rgba(15, 23, 42, .16);
}

.login-brand {
  padding: 46px;
  color: #fff;
  background: linear-gradient(145deg, #071326, #10233c 60%, #1e3a5f);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff6500, #ffb000);
  color: #111827;
  font-weight: 950;
}

.login-brand .brand-mark {
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: #fff;
  color: var(--primary);
  font-size: 24px;
}

.login-brand h1 {
  margin: 0;
  font-size: 34px;
}

.login-brand p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  line-height: 1.55;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.feature-list span {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .09);
}

.login-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 48px;
  background: #fff;
}

.eyebrow {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.login-card h2 {
  margin: 0;
  font-size: 32px;
}

.login-card p,
.login-card small,
.panel p,
.topbar p,
.admin-pill small,
.brand span,
.module-grid small,
.lead-list small {
  color: var(--muted);
}

.login-card label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.login-card input {
  min-height: 48px;
  border: 1px solid #d9e6f5;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
}

.login-card input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 101, 0, .12);
}

.alert {
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

.success {
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
  color: #15803d;
  font-weight: 800;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 264px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--nav);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand strong {
  display: block;
  font-size: 18px;
}

.side-nav {
  display: grid;
  gap: 8px;
  padding: 18px 0;
}

.side-nav a,
.logout {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: #d1d5db;
  font-weight: 750;
}

.side-nav a span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
  font-size: 12px;
}

.side-nav a:hover,
.side-nav a.active,
.logout:hover {
  background: var(--nav-soft);
  color: #fff;
}

.side-nav .admin-cta-link {
  background: rgba(255, 101, 0, .18);
  color: #fff;
}

.logout {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, .08);
}

.return-link {
  margin-top: 10px;
  background: rgba(255, 101, 0, .16);
  color: #fff;
}

.main {
  margin-left: 264px;
  padding: 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -18px -18px 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 246, 248, .92);
  backdrop-filter: blur(14px);
}

.topbar h1,
.topbar p,
.panel h3,
.panel p,
.hero h2,
.hero p {
  margin: 0;
}

.topbar h1 {
  font-size: 24px;
}

.admin-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.admin-pill > span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff3e8;
  color: var(--primary);
  font-weight: 900;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid #ffd4b2;
  border-radius: 10px;
  background:
    radial-gradient(circle at right, rgba(255, 101, 0, .18), transparent 34%),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

.hero span {
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
}

.hero h2 {
  margin-top: 8px;
  font-size: 30px;
}

.hero p {
  margin-top: 8px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.secondary-button:hover {
  background: var(--soft);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.quick-actions a {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #ffd4b2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.quick-actions a:hover {
  background: #fff7ed;
}

.quick-actions span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 950;
}

.quick-actions strong,
.quick-actions small {
  display: block;
}

.quick-actions small {
  margin-top: 3px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.cards article,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.cards article {
  padding: 16px;
}

.cards span {
  color: var(--muted);
  font-size: 12px;
}

.cards strong {
  display: block;
  margin-top: 6px;
  font-size: 27px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 14px;
}

.panel {
  padding: 16px;
  margin-bottom: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

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

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

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 900;
}

.badge.approved,
.badge.active,
.badge.contacted,
.badge.closed {
  background: #dcfce7;
  color: #15803d;
}

.badge.pending,
.badge.new,
.badge.assigned {
  background: #fff7ed;
  color: #c2410c;
}

.badge.rejected,
.badge.blocked {
  background: #fee2e2;
  color: #b91c1c;
}

.lead-list {
  display: grid;
  gap: 10px;
}

.lead-list article,
.module-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.lead-list strong,
.lead-list small,
.module-grid strong,
.module-grid small {
  display: block;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.module-grid article > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff3e8;
  color: var(--primary);
  font-weight: 950;
}

.module-grid article div {
  flex: 1;
}

.module-grid em {
  color: var(--green);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.admin-form label,
.admin-row label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 12px;
  font-weight: 850;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-row input,
.admin-row select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d9e6f5;
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

.admin-form textarea {
  min-height: 84px;
  padding: 10px 11px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-row input:focus,
.admin-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 101, 0, .1);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr .9fr .8fr .8fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.admin-row-head {
  display: grid;
  gap: 7px;
  align-self: center;
}

.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.light-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.light-btn:hover {
  background: #fff7ed;
  color: var(--primary);
}

.inline-delete-form {
  display: inline-flex;
  margin: 0 0 0 6px;
}

.danger-btn {
  min-height: 40px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0 12px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 850;
}

.danger-btn:hover {
  background: #dc2626;
  color: #fff;
}

.admin-table td {
  vertical-align: middle;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-actions form {
  margin: 0;
}

.muted-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .54);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(1040px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .24);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.modal-head h3,
.modal-head p {
  margin: 0;
}

.modal-head h3 {
  font-size: 18px;
  line-height: 1.05;
}

.modal-head p {
  margin-top: 2px;
  color: #344256;
  font-size: 12px;
}

.icon-close {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #123fd1;
  color: #fff;
  font-size: 18px;
}

.admin-modal-card .admin-form {
  padding: 10px 16px 9px;
}

.modal-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.admin-modal-card .admin-form label {
  gap: 4px;
  color: #1e2f47;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .02em;
}

.admin-modal-card .admin-form input,
.admin-modal-card .admin-form select {
  min-height: 34px;
  border: 1px solid #bfcbe0;
  border-radius: 3px;
  padding: 0 10px;
  color: #06162d;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

.admin-modal-card .admin-form input:focus,
.admin-modal-card .admin-form select:focus {
  border-color: #0b43d9;
  box-shadow: 0 0 0 2px rgba(11, 67, 217, .12);
}

.wide-field {
  grid-column: 1 / -1;
}

.property-option-builder {
  margin: 0 16px 10px;
  padding: 0;
  border: 1px solid #cfd9ea;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.property-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid #cfd9ea;
  background: #f8fbff;
}

.property-option-head strong {
  font-size: 13px;
  line-height: 1;
}

.property-option-head small {
  color: #64748b;
  font-size: 10px;
  font-weight: 650;
}

.property-option-builder h4 {
  margin: 9px 12px 6px;
  font-size: 11px;
  line-height: 1;
  color: #26364f;
  font-weight: 800;
}

.property-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 12px;
}

.property-option-grid + h4 {
  margin-top: 10px;
}

.property-option-builder .property-option-grid:last-child {
  padding-bottom: 10px;
}

.property-option-grid label {
  min-height: 31px;
  border: 1px solid #bfcbe0;
  border-radius: 3px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 650;
  color: #06162d;
  box-shadow: none;
}

.property-option-grid input {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  accent-color: #0f43c8;
}

.property-option-grid label:hover {
  border-color: #0b43d9;
  background: #f8fbff;
}

.category-assign {
  margin: 0 16px 16px;
  padding: 14px;
  border: 1px solid #ffd4b2;
  border-radius: 10px;
  background: #fff7ed;
}

.category-assign strong,
.category-assign small {
  display: block;
}

.category-assign small {
  margin-top: 3px;
  color: var(--muted);
}

.category-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.category-check-grid label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
}

.category-check-grid label[hidden] {
  display: none !important;
}

.tree-check-grid label {
  padding-left: calc(12px + (var(--depth, 0) * 16px));
}

.tree-check-grid label span::before {
  content: "";
}

.tree-check-grid label[style*="--depth: 1"] span::before,
.tree-check-grid label[style*="--depth: 2"] span::before,
.tree-check-grid label[style*="--depth: 3"] span::before {
  content: "↳ ";
  color: var(--muted);
}

.category-check-grid input {
  width: auto;
  min-height: auto;
}

.compact-panel {
  padding: 12px;
}

.category-admin-table {
  border-collapse: collapse;
  table-layout: auto;
  background: #fff;
}

.category-admin-table thead th {
  padding: 9px 12px;
  background: #f7f9fc;
  color: #45556d;
  font-size: 11px;
  letter-spacing: .04em;
}

.category-admin-table th:nth-child(1),
.category-admin-table td:nth-child(1) { min-width: 420px; width: 40%; }
.category-admin-table th:nth-child(2),
.category-admin-table td:nth-child(2) { min-width: 130px; }
.category-admin-table th:nth-child(3),
.category-admin-table td:nth-child(3) { min-width: 170px; }
.category-admin-table th:nth-child(4),
.category-admin-table td:nth-child(4) { min-width: 110px; }
.category-admin-table th:nth-child(5),
.category-admin-table td:nth-child(5) { min-width: 70px; }
.category-admin-table th:nth-child(6),
.category-admin-table td:nth-child(6) { min-width: 170px; }

.category-admin-table tbody tr {
  position: relative;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.category-admin-table tbody tr::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 0;
  border-radius: 0 6px 6px 0;
  background: #123fd1;
  transition: width .16s ease;
}

.category-admin-table tbody tr:hover {
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px #dbe7ff;
}

.category-admin-table tbody tr:hover::before {
  width: 4px;
}

.category-admin-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e4ebf5;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.category-title-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding-left: calc(var(--depth, 0) * 18px);
  min-width: 0;
}

.category-level,
.module-chip {
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.category-level {
  background: #eef4ff;
  color: #123fd1;
}

.module-chip {
  padding: 0 10px;
  background: #f2f6fb;
  color: #344256;
}

.category-title-cell strong,
.category-title-cell small,
.category-title-cell em {
  display: block;
}

.category-title-cell strong {
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.category-title-cell small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.category-title-cell em {
  margin-top: 2px;
  color: #6b7b92;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.category-admin-table .badge {
  min-width: 64px;
  justify-content: center;
  padding: 6px 10px;
}

.category-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.category-row-actions .light-btn,
.category-row-actions .danger-btn {
  min-height: 32px;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12px;
}

.category-row-actions .light-btn {
  border-color: #cbd7ea;
  background: #fff;
  color: #0b1b33;
}

.category-row-actions .danger-btn {
  border-color: #fecaca;
  background: #fff5f5;
  color: #dc2626;
}

.category-row-actions .light-btn:hover {
  background: #eef4ff;
  color: #123fd1;
}

.category-row-actions .danger-btn:hover {
  background: #dc2626;
  color: #fff;
}

.category-row-actions .inline-delete-form {
  margin: 0;
}

.category-workspace {
  display: grid;
  gap: 10px;
}

.category-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid #d7e2f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.category-page-head span {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 8px;
  border: 1px solid #d7e2f2;
  border-radius: 999px;
  background: #f7faff;
  color: #123fd1;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.category-page-head h2,
.category-page-head p {
  margin: 0;
}

.category-page-head h2 {
  font-size: 20px;
  line-height: 1.1;
}

.category-page-head p {
  margin-top: 3px;
  color: #5e6f86;
  font-size: 13px;
}

.category-page-head button {
  min-height: 38px;
  border-radius: 7px;
  padding: 0 20px;
  background: #123fd1;
  color: #fff;
}

.category-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.category-summary-grid article {
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid #d7e2f2;
  border-left: 4px solid #123fd1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .045);
}

.category-summary-grid article:nth-child(2) { border-left-color: #16a34a; }
.category-summary-grid article:nth-child(3) { border-left-color: #f59e0b; }
.category-summary-grid article:nth-child(4) { border-left-color: #8b5cf6; }

.category-summary-grid span,
.category-summary-grid small {
  display: block;
}

.category-summary-grid span {
  color: #5e6f86;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.category-summary-grid strong {
  display: block;
  margin: 5px 0 2px;
  font-size: 22px;
  line-height: 1;
}

.category-summary-grid small {
  color: #68788f;
  font-size: 12px;
  font-weight: 700;
}

.category-filterbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 190px 150px;
  gap: 8px;
  padding: 9px;
  border: 1px solid #d7e2f2;
  border-radius: 9px;
  background: #fff;
}

.category-filterbar label {
  display: grid;
  gap: 5px;
}

.category-filterbar span {
  color: #344256;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.category-filterbar input,
.category-filterbar select {
  height: 34px;
  border: 1px solid #cbd7ea;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #0b1b33;
  font-size: 13px;
}

.category-list {
  overflow: hidden;
  border: 1px solid #d7e2f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.category-list-head,
.category-row-card {
  display: grid;
  grid-template-columns: minmax(340px, 1.6fr) 125px minmax(130px, .65fr) 104px 72px 150px;
  gap: 10px;
  align-items: center;
}

.category-list-head {
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid #dbe4f0;
  background: #f8fafc;
  color: #344256;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.category-row-card {
  position: relative;
  min-height: 52px;
  padding: 6px 12px;
  border-bottom: 1px solid #e5edf7;
  transition: background .16s ease, box-shadow .16s ease;
}

.category-row-card:last-child {
  border-bottom: 0;
}

.category-row-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 0;
  border-radius: 0 6px 6px 0;
  background: #123fd1;
  transition: width .16s ease;
}

.category-row-card:hover {
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px #dbe7ff;
}

.category-row-card:hover::before {
  width: 4px;
}

.category-cell-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding-left: calc(var(--depth, 0) * 14px);
}

.category-depth-pill {
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4ff;
  color: #123fd1;
  font-size: 11px;
  font-weight: 900;
}

.category-cell-main strong,
.category-cell-main small,
.category-cell-main em {
  display: block;
}

.category-cell-main strong {
  color: #101828;
  font-size: 13px;
  line-height: 1.1;
}

.category-cell-main small {
  margin-top: 1px;
  color: #64748b;
  font-size: 11px;
}

.category-cell-main em {
  margin-top: 2px;
  color: #667b96;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.category-parent-cell,
.category-sort-cell {
  color: #111827;
  font-size: 12px;
}

.category-sort-cell {
  display: grid;
  gap: 1px;
}

.category-sort-cell b {
  font-size: 13px;
}

.category-sort-cell small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.category-list .module-chip {
  min-height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

.category-list .badge {
  min-width: 68px;
  justify-content: center;
  padding: 5px 9px;
}

.category-list .category-row-actions {
  justify-content: flex-end;
}

.category-list .category-row-actions .light-btn,
.category-list .category-row-actions .danger-btn {
  min-height: 30px;
  border-radius: 6px;
  padding: 0 11px;
  font-size: 12px;
}

.category-empty {
  padding: 20px;
  color: #64748b;
  text-align: center;
  font-weight: 750;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 9px 16px 10px;
  border-top: 1px solid #e3e9f2;
  background: #fff;
}

.admin-modal-card .modal-actions button {
  min-height: 34px;
  border-radius: 5px;
  padding: 0 14px;
  font-size: 13px;
}

.admin-modal-card .modal-actions button[type="submit"] {
  background: #123fd1;
  color: #fff;
}

.admin-modal-card .modal-actions .light-btn {
  background: #fff;
  color: #0b1b33;
}

.warning-card {
  width: min(520px, 100%);
}

.warning-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
}

.warning-list {
  display: grid;
  gap: 8px;
  padding: 14px 16px 0;
}

.warning-list > strong {
  color: var(--text);
}

.warning-list-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.warning-list-row span,
.warning-list-row small {
  display: block;
}

.warning-list-row small {
  color: var(--muted);
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    display: none;
  }

  .sidebar {
    position: static;
    width: auto;
    min-height: auto;
  }

  .main {
    margin-left: 0;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-form,
  .admin-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-row-head,
  .row-actions {
    grid-column: 1 / -1;
  }

  .modal-form-grid {
    grid-template-columns: 1fr;
  }

  .property-option-grid {
    grid-template-columns: 1fr;
  }

  .category-page-head,
  .category-filterbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .category-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-list {
    overflow-x: auto;
  }

  .category-list-head,
  .category-row-card {
    min-width: 980px;
  }
}

@media (max-width: 640px) {
  .login-page {
    padding: 0;
  }

  .login-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .login-card {
    padding: 26px 18px;
  }

  .topbar,
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-form,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }
}

/* Final premium super-admin overrides */
body.admin-page { background: #f7f8fd; font-family: Inter, Arial, sans-serif; font-size: 13px; }
body.admin-page .sidebar { width: 246px; padding: 16px 14px; background: #060b26; box-shadow: 8px 0 26px rgba(6,11,38,.12); }
body.admin-page .brand { padding: 4px 8px 18px; }
body.admin-page .brand-mark { width: 40px; height: 40px; border-radius: 10px; background: #1237c9; color: #fff; }
body.admin-page .side-nav a,
body.admin-page .logout { min-height: 38px; border-radius: 8px; color: rgba(255,255,255,.72); }
body.admin-page .side-nav a:hover,
body.admin-page .side-nav a.active,
body.admin-page .logout:hover,
body.admin-page .side-nav .admin-cta-link { background: rgba(18,55,201,.28); color: #fff; }
body.admin-page .main { margin-left: 246px; padding: 16px 18px 28px; }
body.admin-page .topbar { min-height: 56px; margin: -16px -18px 18px; padding: 0 18px; border-bottom: 1px solid #dbe3f1; background: rgba(247,248,253,.9); }
body.admin-page .topbar h1 { color: #08213d; font-size: 24px; letter-spacing: -.02em; }
body.admin-page .admin-pill { min-height: 38px; border-color: #dbe3f1; border-radius: 999px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
body.admin-page .admin-pill > span { background: #eef3ff; color: #1237c9; }
body.admin-page .hero { min-height: 94px; border: 0; border-radius: 8px; background: linear-gradient(135deg, #0b34c8, #3151d4); color: #fff; box-shadow: 0 8px 18px rgba(18,55,201,.18); }
body.admin-page .hero span,
body.admin-page .hero p { color: rgba(255,255,255,.82); }
body.admin-page .cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
body.admin-page .cards article { position: relative; min-height: 92px; padding: 16px 18px; border-color: #dbe3f1; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
body.admin-page .cards article::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #1237c9; }
body.admin-page .cards span { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
body.admin-page .panel { border-color: #dbe3f1; border-radius: 8px; box-shadow: 0 2px 8px rgba(15,23,42,.04); }
body.admin-page .panel-head { align-items: center; padding-bottom: 10px; border-bottom: 1px solid #dbe3f1; }
body.admin-page th { background: #fbfcff; font-size: 10px; letter-spacing: .08em; }
body.admin-page tbody tr:hover td { background: #f7f9ff; }
body.admin-page button,
body.admin-page .button { min-height: 36px; border-radius: 5px; background: #1237c9; }
body.admin-page button:hover,
body.admin-page .button:hover { background: #0b2a9b; }
body.admin-page .light-btn,
body.admin-page button.light-btn,
body.admin-page .secondary-button { border: 1px solid #dbe3f1; background: #fff; color: #08213d; }
body.admin-page .modal-card { border-radius: 10px; border: 1px solid #dbe3f1; box-shadow: 0 28px 70px rgba(6,11,38,.22); }

.module-dashboard-main .module-hero {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 20px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b34c8, #3151d4);
  color: #fff;
  box-shadow: 0 8px 18px rgba(18,55,201,.18);
}

.module-hero span,
.module-hero p {
  color: rgba(255,255,255,.82);
}

.module-hero h2,
.module-hero p {
  margin: 0;
}

.module-hero h2 {
  margin-top: 6px;
  font-size: 26px;
}

.module-kpis {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.module-kpis article {
  min-height: 78px;
  position: relative;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #dbe3f1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}

.module-kpis article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #1237c9;
}

.module-kpis span {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.module-kpis strong {
  color: #08213d;
  font-size: 22px;
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr);
  gap: 14px;
}

.module-grid.lower {
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .85fr);
}

.module-brand-list,
.module-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-brand-list span,
.module-category-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dbe3f1;
  border-radius: 999px;
  background: #f8fbff;
  color: #08213d;
  font-weight: 700;
}

.module-side-stack {
  display: grid;
  gap: 14px;
}

.module-context-nav a {
  min-height: 40px;
}

.module-context-nav a:first-child {
  min-height: 50px;
  align-items: flex-start;
  padding-top: 10px;
  line-height: 1.25;
  background: rgba(18,55,201,.28);
  color: #fff;
}

.module-context-nav a span {
  flex: 0 0 24px;
}

@media (max-width: 1100px) {
  .module-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid,
  .module-grid.lower,
  .module-dashboard-main .module-hero { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
}

.category-row-thumb {
  width: 38px;
  height: 34px;
  border: 1px solid #d8e2f1;
  border-radius: 7px;
  background: #eef5ff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 38px;
}

.category-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-row-thumb i {
  color: #1237c9;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.category-image-field {
  grid-column: 1 / -1;
}

.category-image-picker {
  min-height: 96px;
  border: 2px dashed #c2cde1;
  border-radius: 7px;
  background: #f1f6ff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: #2d3b52;
}

.category-image-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.category-image-picker img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-image-picker.has-image::after {
  content: "Change Image";
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #1237c9;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}

.category-image-picker .material-symbols-outlined {
  color: #9baac2;
}

.category-image-picker b {
  font-size: 13px;
}

.category-image-picker small {
  color: #607089;
  font-size: 11px;
}

.module-scope-dashboard {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
}

.scope-head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #dbe3f1;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 60%, #eef4ff 100%);
  box-shadow: 0 6px 18px rgba(15,23,42,.045);
}

.scope-head span {
  color: #1237c9;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.scope-head h2 {
  margin: 5px 0 2px;
  color: #08213d;
  font-size: 22px;
  line-height: 1;
}

.scope-head p {
  margin: 0;
  color: #5f7087;
}

.scope-select {
  min-width: 220px;
  display: grid;
  gap: 5px;
}

.scope-select label {
  color: #455872;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scope-select select {
  height: 36px;
  border: 1px solid #cbd6e8;
  border-radius: 7px;
  background: #fff;
  padding: 0 12px;
  color: #08213d;
  font-weight: 750;
}

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

.scope-kpis article {
  position: relative;
  min-height: 78px;
  padding: 12px 13px;
  border: 1px solid #dbe3f1;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15,23,42,.04);
  overflow: hidden;
}

.scope-kpis article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #1237c9;
}

.scope-kpis article:nth-child(2)::before { background: #10b981; }
.scope-kpis article:nth-child(3)::before { background: #f59e0b; }
.scope-kpis article:nth-child(4)::before { background: #ef4444; }
.scope-kpis article:nth-child(5)::before { background: #8b5cf6; }

.scope-kpis .dark {
  background: #0e1830;
  border-color: #0e1830;
  color: #fff;
}

.scope-kpis small,
.scope-kpis em {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.scope-kpis .dark small,
.scope-kpis .dark em {
  color: #8abaff;
}

.scope-kpis strong {
  display: block;
  margin: 6px 0 4px;
  color: #08213d;
  font-size: 23px;
  line-height: 1;
}

.scope-kpis .dark strong {
  color: #fff;
}

.scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .72fr) minmax(260px, .72fr);
  gap: 10px;
}

.scope-panel {
  min-width: 0;
  border: 1px solid #dbe3f1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15,23,42,.04);
  overflow: hidden;
}

.scope-panel header {
  height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid #e8eef7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scope-panel h3 {
  margin: 0;
  color: #08213d;
  font-size: 14px;
}

.scope-panel header a {
  color: #1237c9;
  font-size: 12px;
  font-weight: 800;
}

.scope-table,
.scope-category-list,
.scope-admin-list {
  display: grid;
}

.scope-table article {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 105px 86px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid #eef2f7;
}

.scope-table article:first-child,
.scope-category-list article:first-child,
.scope-admin-list article:first-child {
  border-top: 0;
}

.scope-table article:hover,
.scope-category-list article:hover,
.scope-admin-list article:hover {
  background: #f8fbff;
  box-shadow: inset 4px 0 0 #1237c9;
}

.scope-thumb,
.scope-thumb img,
.scope-thumb i,
.scope-category-list article > span,
.scope-category-list img,
.scope-category-list i,
.scope-admin-list article > span {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.scope-thumb,
.scope-category-list article > span,
.scope-admin-list article > span {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eef5ff;
  color: #1237c9;
  font-weight: 850;
}

.scope-thumb img,
.scope-category-list img {
  object-fit: cover;
}

.scope-thumb i,
.scope-category-list i {
  display: grid;
  place-items: center;
  font-style: normal;
}

.scope-table b,
.scope-category-list b,
.scope-admin-list b {
  display: block;
  overflow: hidden;
  color: #08213d;
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-table small,
.scope-category-list small,
.scope-admin-list small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-table strong {
  color: #1237c9;
  font-size: 12px;
  white-space: nowrap;
}

.scope-table em,
.scope-admin-list em {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2ff;
  color: #1237c9;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.scope-table em.approved,
.scope-table em.active,
.scope-admin-list em.active {
  background: #dcfce7;
  color: #07813b;
}

.scope-table em.pending {
  background: #fff3d8;
  color: #a45d00;
}

.scope-table em.draft {
  background: #e8eef6;
  color: #52647d;
}

.scope-category-list article,
.scope-admin-list article {
  min-height: 54px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-top: 1px solid #eef2f7;
}

.scope-category-list em {
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1237c9;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 850;
}

.scope-panel p {
  margin: 0;
  padding: 16px;
  color: #64748b;
}

@media (max-width: 1320px) {
  .scope-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scope-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .scope-head { display: block; }
  .scope-select { margin-top: 12px; min-width: 0; }
  .scope-kpis { grid-template-columns: 1fr 1fr; }
  .scope-table article { grid-template-columns: 38px minmax(0, 1fr); }
  .scope-table strong,
  .scope-table em { margin-left: 48px; }
}

.super-dashboard-main {
  max-width: none;
  background:
    linear-gradient(180deg, rgba(238,244,255,.72), rgba(247,248,253,0) 260px);
}

.sa-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .8fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #dce5f4;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(18,55,201,.96), rgba(43,91,231,.92)),
    #1237c9;
  color: #fff;
  box-shadow: 0 18px 42px rgba(18,55,201,.2);
  overflow: hidden;
  position: relative;
}

.sa-command-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.sa-hero-copy,
.sa-hero-metrics,
.sa-hero-actions {
  position: relative;
  z-index: 1;
}

.sa-hero-copy span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.84);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sa-hero-copy span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #45f3a0;
  box-shadow: 0 0 0 5px rgba(69,243,160,.12);
}

.sa-hero-copy h2 {
  margin: 8px 0 5px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.03em;
}

.sa-hero-copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 13px;
}

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

.sa-hero-metrics article {
  min-height: 74px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}

.sa-hero-metrics small,
.sa-hero-metrics em {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.sa-hero-metrics strong {
  display: block;
  margin: 6px 0 3px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.sa-hero-actions {
  display: grid;
  gap: 8px;
  min-width: 132px;
}

.sa-hero-actions .button {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: none;
}

.sa-hero-actions .secondary-button {
  background: #fff;
  color: #1237c9;
}

.module-scope-dashboard {
  gap: 10px;
}

.module-scope-dashboard .scope-head {
  min-height: 96px;
  border-radius: 13px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fbff 56%, #eef5ff 100%);
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.module-scope-dashboard .scope-head h2 {
  font-size: 24px;
}

.scope-mini-chart {
  height: 74px;
  min-width: 170px;
  padding: 9px 11px;
  border: 1px solid #e0e8f5;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: end;
  gap: 9px;
}

.scope-mini-chart span {
  width: 26px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  box-shadow: 0 8px 18px rgba(59,130,246,.18);
}

.scope-mini-chart span:nth-child(2) { background: linear-gradient(180deg, #f59e0b, #ffd166); }
.scope-mini-chart span:nth-child(3) { background: linear-gradient(180deg, #10b981, #7dd3fc); }
.scope-mini-chart span:nth-child(4) { background: linear-gradient(180deg, #ef476f, #f9a8d4); }

.scope-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.scope-kpis article {
  min-height: 94px;
  padding: 12px 12px 11px 50px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.scope-kpis article::before {
  width: 0;
}

.scope-kpis article > i {
  position: absolute;
  left: 12px;
  top: 13px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #eaf2ff;
  color: #1237c9;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.scope-kpis article:nth-child(2) > i { background: #dcfce7; color: #059669; }
.scope-kpis article:nth-child(3) > i { background: #fff4d6; color: #d97706; }
.scope-kpis article:nth-child(4) > i { background: #fee2e2; color: #dc2626; }
.scope-kpis article:nth-child(5) > i { background: #f3e8ff; color: #7c3aed; }
.scope-kpis article.dark > i { background: #2b62e8; color: #fff; }

.scope-kpis small {
  color: #53657e;
  font-weight: 850;
}

.scope-kpis strong {
  margin-top: 8px;
  font-size: 25px;
  font-weight: 800;
}

.scope-kpis em {
  font-size: 10px;
  text-transform: none;
}

.scope-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .75fr) minmax(280px, .75fr);
}

.scope-panel {
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(15,23,42,.055);
}

.scope-panel header {
  height: 44px;
  background: #fbfdff;
}

.scope-table article {
  min-height: 60px;
  grid-template-columns: 42px minmax(0, 1fr) 112px 88px;
}

.scope-table article:hover,
.scope-category-list article:hover,
.scope-admin-list article:hover {
  box-shadow: inset 3px 0 0 #1237c9;
}

.sa-global-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}

.sa-global-strip article {
  min-height: 70px;
  padding: 11px 12px;
  border: 1px solid #dbe3f1;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

.sa-global-strip span,
.sa-global-strip em {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sa-global-strip strong {
  display: block;
  margin: 5px 0 3px;
  color: #08213d;
  font-size: 23px;
  line-height: 1;
}

.super-dashboard-main .dashboard-grid {
  gap: 10px;
}

.super-dashboard-main .panel {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15,23,42,.045);
}

.super-dashboard-main .panel-head {
  padding: 12px 14px;
}

.super-dashboard-main .panel-head h3 {
  margin: 0;
  font-size: 14px;
}

.super-dashboard-main .panel-head p {
  margin: 3px 0 0;
  font-size: 12px;
}

.super-dashboard-main table td {
  padding: 9px 12px;
  font-size: 12.5px;
}

.super-dashboard-main table th {
  padding: 9px 12px;
}

.super-dashboard-main .module-grid article {
  border-radius: 10px;
  box-shadow: none;
}

@media (max-width: 1360px) {
  .sa-command-hero { grid-template-columns: 1fr; }
  .sa-hero-actions { display: flex; }
  .scope-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scope-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sa-hero-metrics,
  .sa-global-strip { grid-template-columns: 1fr 1fr; }
  .scope-mini-chart { display: none; }
}

@media (max-width: 640px) {
  .sa-command-hero { padding: 14px; }
  .sa-hero-copy h2 { font-size: 22px; }
  .sa-hero-metrics,
  .scope-kpis,
  .sa-global-strip { grid-template-columns: 1fr; }
}

.super-dashboard-main > .sa-command-hero,
.super-dashboard-main > .module-scope-dashboard,
.super-dashboard-main > .sa-global-strip,
.super-dashboard-main > .dashboard-grid,
.super-dashboard-main > .panel {
  display: none !important;
}

.fresh-admin-dashboard {
  display: grid;
  gap: 12px;
  color: #142033;
}

.fresh-admin-dashboard * {
  letter-spacing: 0;
}

.fresh-hero {
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d8e3f2;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f7fbff 55%, #edf6ff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.fresh-hero span,
.fresh-module-card header span,
.fresh-overview span {
  color: #677891;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.fresh-hero h2 {
  margin: 6px 0 5px;
  color: #07162d;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.fresh-hero p {
  margin: 0;
  color: #5c6b80;
  font-size: 13px;
}

.fresh-module-select {
  display: grid;
  gap: 5px;
}

.fresh-module-select label {
  color: #677891;
  font-size: 11px;
  font-weight: 500;
}

.fresh-module-select select {
  height: 38px;
  border: 1px solid #cbd8ea;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  color: #142033;
  font-size: 13px;
  font-weight: 500;
}

.fresh-actions {
  display: flex;
  gap: 8px;
}

.fresh-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd8ea;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: #142033;
  font-size: 13px;
  font-weight: 500;
}

.fresh-actions a:first-child {
  border-color: #1237c9;
  background: #1237c9;
  color: #fff;
}

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

.fresh-overview article,
.fresh-module-card,
.fresh-panel {
  border: 1px solid #d8e3f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}

.fresh-overview article {
  min-height: 80px;
  padding: 13px 14px;
}

.fresh-overview b {
  display: block;
  margin: 6px 0 4px;
  color: #07162d;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.fresh-overview small,
.fresh-panel small,
.fresh-module-stats span {
  color: #6b7a90;
  font-size: 12px;
  font-weight: 400;
}

.fresh-module-board {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 360px;
  gap: 12px;
  align-items: start;
}

.fresh-module-card {
  padding: 14px;
}

.fresh-module-card header,
.fresh-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fresh-module-card h3,
.fresh-panel h3 {
  margin: 4px 0 0;
  color: #07162d;
  font-size: 18px;
  font-weight: 500;
}

.fresh-module-card header a,
.fresh-panel header a,
.fresh-panel header span {
  color: #1237c9;
  font-size: 12px;
  font-weight: 500;
}

.fresh-module-meter {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 8px 0 14px;
}

.fresh-module-meter > div {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: conic-gradient(#1237c9 calc(var(--live) * 1%), #e9eff8 0);
  display: grid;
  place-items: center;
}

.fresh-module-meter > div i {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
}

.fresh-module-meter p {
  margin: 0;
}

.fresh-module-meter b {
  display: block;
  color: #07162d;
  font-size: 26px;
  font-weight: 600;
}

.fresh-module-meter span {
  color: #6b7a90;
  font-size: 12px;
}

.fresh-module-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fresh-module-stats p {
  margin: 0;
  padding: 9px;
  border: 1px solid #e5edf7;
  border-radius: 10px;
  background: #fbfdff;
}

.fresh-module-stats b {
  display: block;
  margin-top: 3px;
  color: #07162d;
  font-size: 15px;
  font-weight: 500;
}

.fresh-panel {
  padding: 14px;
  min-width: 0;
}

.fresh-latest article,
.fresh-admins article,
.fresh-leads article {
  min-height: 54px;
  display: grid;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #edf2f7;
  padding: 9px 0;
}

.fresh-latest article {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.fresh-latest article:first-of-type,
.fresh-admins article:first-child,
.fresh-leads article:first-child {
  border-top: 0;
}

.fresh-latest article > span,
.fresh-category-cloud a > span,
.fresh-admins article > span {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eef5ff;
  color: #1237c9;
  font-size: 12px;
  font-weight: 500;
}

.fresh-latest img,
.fresh-category-cloud img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fresh-latest i,
.fresh-category-cloud i {
  font-style: normal;
}

.fresh-latest b,
.fresh-category-cloud b,
.fresh-admins b,
.fresh-leads b {
  display: block;
  overflow: hidden;
  color: #142033;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fresh-latest em,
.fresh-leads em,
.fresh-admins em {
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2ff;
  color: #1237c9;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
}

.fresh-latest em.approved,
.fresh-leads em.approved {
  background: #e2fbe9;
  color: #08793b;
}

.fresh-latest em.pending,
.fresh-leads em.pending {
  background: #fff3d8;
  color: #a45d00;
}

.fresh-category-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fresh-category-cloud a {
  min-height: 76px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5edf7;
  border-radius: 12px;
  padding: 8px;
  background: #fbfdff;
}

.fresh-category-cloud small {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1237c9;
  display: grid;
  place-items: center;
}

.fresh-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.fresh-admins article {
  grid-template-columns: 40px minmax(0, 1fr) auto;
}

.fresh-leads article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.fresh-panel p {
  margin: 0;
  color: #6b7a90;
  font-size: 13px;
}

@media (max-width: 1320px) {
  .fresh-hero,
  .fresh-module-board,
  .fresh-bottom-grid {
    grid-template-columns: 1fr;
  }
  .fresh-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .fresh-overview,
  .fresh-category-cloud {
    grid-template-columns: 1fr;
  }
  .fresh-hero h2 {
    font-size: 23px;
  }
}

.location-main {
  background: linear-gradient(180deg, #f3f7ff 0, #f7f8fd 240px);
}

.location-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid #d8e3f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15,23,42,.055);
}

.location-hero span {
  color: #1237c9;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.location-hero h2 {
  margin: 5px 0 3px;
  color: #07162d;
  font-size: 24px;
  font-weight: 600;
}

.location-hero p {
  margin: 0;
  color: #64748b;
}

.location-hero > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, auto auto);
  align-items: center;
  gap: 4px 10px;
  padding: 10px 12px;
  border: 1px solid #e5edf7;
  border-radius: 12px;
  background: #fbfdff;
}

.location-hero b {
  color: #07162d;
  font-size: 20px;
  font-weight: 600;
}

.location-hero small {
  color: #64748b;
  font-size: 11px;
}

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

.location-card,
.location-table-card {
  border: 1px solid #d8e3f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.045);
  overflow: hidden;
}

.location-card header,
.location-table-card header {
  height: 42px;
  padding: 0 13px;
  border-bottom: 1px solid #e6edf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbfdff;
}

.location-card h3,
.location-table-card h3 {
  margin: 0;
  color: #07162d;
  font-size: 14px;
  font-weight: 600;
}

.location-table-card header span {
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1237c9;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.location-form {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.location-form label {
  display: grid;
  gap: 4px;
  color: #30425a;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.location-form label:first-of-type {
  grid-column: 1 / -1;
}

.location-form input,
.location-form select,
.location-row input,
.location-row select {
  height: 34px;
  border: 1px solid #c5d1e4;
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
  color: #142033;
  font-size: 13px;
  font-weight: 400;
  min-width: 0;
}

.location-form .check,
.location-row label {
  height: 34px;
  border: 1px solid #d8e3f2;
  border-radius: 7px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: none;
}

.location-form input[type=checkbox],
.location-row input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #1237c9;
}

.location-form button,
.location-row button {
  min-height: 34px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
}

.location-table-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  margin-bottom: 12px;
}

.location-table-card.full {
  margin-bottom: 20px;
}

.location-row {
  display: grid;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid #edf2f7;
}

.state-row {
  grid-template-columns: minmax(140px, 1fr) 70px 70px 92px 70px 64px 70px;
}

.city-row {
  grid-template-columns: minmax(140px, .9fr) minmax(120px, 1fr) 70px 92px 90px 64px 70px;
}

.locality-row {
  grid-template-columns: minmax(180px, 1.1fr) minmax(160px, 1fr) 90px 70px 92px 64px 70px;
}

.location-row small {
  color: #64748b;
  font-size: 11px;
}

.danger-light {
  border: 1px solid #fecaca !important;
  background: #fff5f5 !important;
  color: #dc2626 !important;
}

.location-row:hover {
  background: #f8fbff;
  box-shadow: inset 3px 0 0 #1237c9;
}

@media (max-width: 1300px) {
  .location-grid,
  .location-table-grid {
    grid-template-columns: 1fr;
  }
  .state-row,
  .city-row,
  .locality-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .location-hero,
  .location-form,
  .state-row,
  .city-row,
  .locality-row {
    grid-template-columns: 1fr;
  }
  .location-hero > div:last-child {
    grid-template-columns: auto auto;
  }
}

.location-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px;
  border: 1px solid #d8e3f2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

.location-tabs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 0 13px;
  color: #52647d;
  font-weight: 500;
}

.location-tabs a.active {
  background: #1237c9;
  color: #fff;
}

.location-tabs b {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(18,55,201,.1);
  color: #1237c9;
  font-size: 11px;
}

.location-tabs a.active b {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.location-tab-panel header button {
  min-height: 34px;
  border-radius: 8px;
  font-weight: 500;
}

.location-data-table {
  display: grid;
  overflow-x: auto;
}

.location-data-table .head,
.location-data-table article {
  display: grid;
  gap: 12px;
  align-items: center;
  min-width: 900px;
  padding: 0 14px;
}

.location-data-table.states .head,
.location-data-table.states article {
  grid-template-columns: minmax(220px, 1.4fr) 90px 90px 110px 80px 170px;
}

.location-data-table.cities .head,
.location-data-table.cities article {
  grid-template-columns: minmax(200px, 1.2fr) minmax(180px, 1fr) 100px 110px 80px 170px;
}

.location-data-table.localities .head,
.location-data-table.localities article {
  grid-template-columns: minmax(210px, 1.2fr) minmax(160px, .9fr) minmax(160px, .9fr) 100px 110px 170px;
}

.location-data-table .head {
  height: 42px;
  background: #f8fbff;
  border-bottom: 1px solid #dbe5f2;
  color: #354760;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.location-data-table article {
  min-height: 58px;
  border-bottom: 1px solid #edf2f7;
  transition: .15s;
}

.location-data-table article:hover {
  background: #f8fbff;
  box-shadow: inset 3px 0 0 #1237c9;
}

.location-data-table strong {
  display: block;
  color: #142033;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
}

.location-data-table strong small {
  display: block;
  margin-top: 3px;
  color: #6b7a90;
  font-size: 11px;
  font-weight: 400;
}

.location-data-table article > span {
  color: #26364f;
  font-size: 13px;
}

.location-data-table mark {
  justify-self: start;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
}

.location-data-table article > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.location-data-table button {
  min-height: 32px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
}

.location-data-table form {
  margin: 0;
}

.location-modal-card {
  width: min(720px, 94vw);
}

.location-modal-fields {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.location-modal-fields label {
  display: grid;
  gap: 5px;
  color: #30425a;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.location-modal-fields label[hidden] {
  display: none !important;
}

.location-modal-fields input:not([type=checkbox]),
.location-modal-fields select {
  height: 36px;
  border: 1px solid #c5d1e4;
  border-radius: 7px;
  background: #fff;
  padding: 0 10px;
  color: #142033;
  font-size: 13px;
  font-weight: 400;
}

.location-modal-fields .check {
  height: 36px;
  align-self: end;
  border: 1px solid #d8e3f2;
  border-radius: 7px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: none;
}

.location-modal-fields input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #1237c9;
}

@media (max-width: 760px) {
  .location-tabs {
    overflow-x: auto;
  }
  .location-modal-fields {
    grid-template-columns: 1fr;
  }
}

.sa-settings-main {
  background: linear-gradient(180deg, #f1f6ff 0, #f7f8fd 260px);
}

.sa-settings-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.sa-settings-nav {
  position: sticky;
  top: 74px;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #d8e3f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.045);
}

.sa-settings-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 9px;
  padding: 0 11px;
  color: #40526b;
  font-weight: 500;
}

.sa-settings-nav a:hover {
  background: #eef5ff;
  color: #1237c9;
}

.sa-settings-content {
  display: grid;
  gap: 12px;
}

.sa-settings-head,
.sa-setting-card {
  border: 1px solid #d8e3f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.045);
}

.sa-settings-head {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
}

.sa-settings-head span {
  color: #1237c9;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.sa-settings-head h2 {
  margin: 5px 0 3px;
  color: #07162d;
  font-size: 24px;
  font-weight: 600;
}

.sa-settings-head p {
  margin: 0;
  color: #64748b;
}

.sa-settings-head button {
  min-width: 140px;
  border-radius: 9px;
  font-weight: 500;
}

.sa-setting-card {
  overflow: hidden;
}

.sa-setting-card header {
  min-height: 48px;
  padding: 11px 14px;
  border-bottom: 1px solid #e6edf7;
  background: #fbfdff;
}

.sa-setting-card h3 {
  margin: 0;
  color: #07162d;
  font-size: 15px;
  font-weight: 600;
}

.sa-setting-card header small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.sa-setting-grid {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.sa-setting-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
.sa-setting-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sa-setting-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sa-setting-grid .full {
  grid-column: 1 / -1;
}

.sa-setting-grid label,
.sa-template-list label,
.sa-policy-list label {
  display: grid;
  gap: 5px;
  color: #30425a;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.sa-setting-grid input,
.sa-setting-grid select,
.sa-setting-grid textarea,
.sa-template-list input,
.sa-template-list textarea,
.sa-policy-list input,
.sa-policy-list textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #c5d1e4;
  border-radius: 7px;
  background: #fff;
  color: #142033;
  font-size: 13px;
  font-weight: 400;
}

.sa-setting-grid input,
.sa-setting-grid select,
.sa-template-list input,
.sa-policy-list input {
  height: 36px;
  padding: 0 10px;
}

.sa-setting-grid textarea,
.sa-template-list textarea,
.sa-policy-list textarea {
  min-height: 86px;
  padding: 9px 10px;
  resize: vertical;
}

.sa-setting-grid .check,
.sa-toggle-row label,
.sa-template-list section > div label,
.sa-policy-list section > div label {
  min-height: 36px;
  border: 1px solid #d8e3f2;
  border-radius: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
}

.sa-setting-grid input[type=checkbox],
.sa-toggle-row input,
.sa-template-list input[type=checkbox],
.sa-policy-list input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #1237c9;
}

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

.sa-template-list,
.sa-policy-list {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.sa-template-list section,
.sa-policy-list section {
  border: 1px solid #e4ebf6;
  border-radius: 12px;
  background: #fbfdff;
  padding: 11px;
  display: grid;
  gap: 9px;
}

.sa-template-list section > div,
.sa-policy-list section > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sa-template-list h4,
.sa-policy-list h4 {
  margin: 0;
  color: #07162d;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .sa-settings-shell { grid-template-columns: 1fr; }
  .sa-settings-nav { position: static; display: flex; overflow-x: auto; }
  .sa-setting-grid.four,
  .sa-setting-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .sa-settings-head { display: block; }
  .sa-settings-head button { margin-top: 10px; width: 100%; }
  .sa-setting-grid.two,
  .sa-setting-grid.three,
  .sa-setting-grid.four,
  .sa-toggle-row { grid-template-columns: 1fr; }
  .sa-template-list section > div,
  .sa-policy-list section > div:first-child { display: grid; }
}

/* Super admin settings refresh */
.sa-settings-main {
  padding-bottom: 28px;
}

.sa-settings-main .topbar {
  margin-bottom: 14px;
}

.sa-settings-shell {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 14px;
  max-width: none;
}

.sa-settings-nav {
  top: 86px;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.sa-settings-nav a {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
}

.sa-settings-nav a span {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef4ff;
  color: #1237c9;
  font-size: 11px;
  font-weight: 600;
}

.sa-settings-nav a strong {
  color: #102033;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
}

.sa-settings-nav a small {
  color: #718096;
  font-size: 11px;
  line-height: 1.2;
}

.sa-settings-nav a:hover {
  border-color: #bfd0ef;
  background: #f1f6ff;
}

.sa-settings-nav a:hover span {
  background: #1237c9;
  color: #fff;
}

.sa-settings-content {
  max-width: none;
}

.sa-setting-card {
  border-radius: 10px;
}

.sa-setting-card > header {
  padding: 12px 15px;
  background: #f8fbff;
}

.sa-setting-card > header h3 {
  font-size: 16px;
  font-weight: 600;
}

.sa-setting-grid,
.sa-template-list,
.sa-policy-list {
  padding: 12px;
}

.sa-policy-list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.sa-policy-list section {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
}

.sa-policy-list h4 {
  font-size: 13px;
  font-weight: 600;
}

.sa-policy-list section > div:first-child a {
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd8ec;
  border-radius: 7px;
  color: #1237c9;
  font-size: 12px;
  font-weight: 600;
}

.sa-html-editor {
  overflow: hidden;
  border: 1px solid #cbd8ec;
  border-radius: 9px;
  background: #fff;
}

.sa-html-toolbar {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 6px;
  border-bottom: 1px solid #dce6f4;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f7fd 100%);
}

.sa-html-toolbar button {
  min-width: 32px;
  height: 28px;
  border: 1px solid #c8d5e9;
  border-radius: 6px;
  background: #fff;
  color: #17243a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sa-html-toolbar button:hover {
  border-color: #1237c9;
  color: #1237c9;
  background: #eef4ff;
}

.sa-html-area {
  min-height: 220px;
  max-height: 520px;
  overflow: auto;
  padding: 16px;
  color: #17243a;
  font-size: 14px;
  line-height: 1.65;
  outline: none;
}

.sa-html-area:focus {
  box-shadow: inset 0 0 0 2px rgba(18, 55, 201, .14);
}

.sa-html-area h2,
.sa-html-area h3 {
  margin: 12px 0 8px;
  color: #07162d;
  font-weight: 600;
  line-height: 1.25;
}

.sa-html-area h2 {
  font-size: 20px;
}

.sa-html-area h3 {
  font-size: 17px;
}

.sa-html-area p {
  margin: 0 0 10px;
}

.sa-html-area ul,
.sa-html-area ol {
  margin: 8px 0 12px 20px;
}

@media (max-width: 1200px) {
  .sa-settings-shell {
    grid-template-columns: 1fr;
  }

  .sa-settings-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .sa-settings-nav {
    grid-template-columns: 1fr;
  }

  .sa-html-area {
    min-height: 180px;
  }
}

.sa-pages-main {
  background: linear-gradient(180deg, #f2f6ff 0, #f7f8fd 260px);
  padding-bottom: 30px;
}

.sa-page-hero {
  margin-bottom: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #d8e3f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.sa-page-hero span,
.sa-page-editor-head span {
  color: #1237c9;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sa-page-hero h2,
.sa-page-editor-head h2 {
  margin: 2px 0;
  color: #07162d;
  font-size: 22px;
  font-weight: 600;
}

.sa-page-hero p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.sa-page-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 7px;
}

.sa-page-metrics article {
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid #d8e3f2;
  border-radius: 8px;
  background: #f8fbff;
}

.sa-page-metrics small {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sa-page-metrics strong {
  display: block;
  margin-top: 2px;
  color: #07162d;
  font-size: 21px;
  font-weight: 600;
}

.sa-page-table-card {
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
}

.sa-page-table-card .panel-head.compact {
  min-height: 48px;
  padding: 10px 16px;
  border-bottom: 1px solid #dfe8f5;
}

.sa-page-table-card .panel-head.compact h3 {
  font-size: 16px;
  font-weight: 600;
}

.sa-page-table-card .panel-head.compact p {
  margin-top: 1px;
  font-size: 12px;
}

.sa-page-table {
  width: 100%;
  border-collapse: collapse;
}

.sa-page-table th {
  height: 36px;
  padding: 0 12px;
  background: #f8fbff;
  color: #30425a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}

.sa-page-table td {
  padding: 8px 12px;
  border-top: 1px solid #dfe8f5;
  color: #142033;
  font-size: 12px;
  vertical-align: middle;
}

.sa-page-table tr {
  transition: background .16s ease, box-shadow .16s ease;
}

.sa-page-table tbody tr:hover {
  background: #f5f8ff;
  box-shadow: inset 4px 0 0 #1237c9;
}

.sa-page-table td strong {
  display: block;
  color: #07162d;
  font-size: 13px;
  font-weight: 600;
}

.sa-page-table td small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}

.sa-page-table code {
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef4ff;
  color: #1237c9;
  font-size: 11px;
}

.sa-content-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.sa-page-table .status {
  min-width: 68px;
  min-height: 22px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.sa-page-table .row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sa-page-table .btn-outline {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd8ec;
  border-radius: 7px;
  background: #fff;
  color: #102033;
  font-size: 12px;
  font-weight: 600;
}

.sa-page-table .btn-outline:hover {
  border-color: #1237c9;
  background: #eef4ff;
  color: #1237c9;
}

.sa-page-table .btn-outline:first-child {
  background: #1237c9;
  border-color: #1237c9;
  color: #fff;
}

.sa-page-table .btn-outline:first-child:hover {
  background: #0d2fae;
  color: #fff;
}

.sa-content-pill.ready {
  background: #dcfce7;
  color: #07833d;
}

.sa-page-editor-page {
  display: grid;
  gap: 10px;
}

.sa-page-editor-head {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d8e3f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.sa-page-editor-head a {
  display: inline-flex;
  margin-bottom: 5px;
  color: #1237c9;
  font-size: 12px;
  font-weight: 600;
}

.sa-page-editor-head > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sa-page-editor-head label {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd8ec;
  border-radius: 8px;
  background: #f8fbff;
  color: #17243a;
  font-size: 12px;
  font-weight: 600;
}

.sa-page-editor-head input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #1237c9;
}

.sa-page-editor-head button {
  min-height: 36px;
  padding: 0 17px;
  border-radius: 8px;
  font-weight: 600;
}

.sa-full-editor-card {
  border-radius: 10px;
}

.sa-full-html-wrap {
  padding: 10px;
}

.sa-html-editor-large .sa-html-area {
  min-height: calc(100vh - 330px);
  max-height: none;
}

.sa-html-editor-large .sa-html-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
}

@media (max-width: 900px) {
  .sa-page-hero,
  .sa-page-editor-head {
    display: grid;
  }

  .sa-page-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .sa-page-metrics {
    grid-template-columns: 1fr;
  }

  .sa-page-editor-head > div:last-child {
    display: grid;
  }
}

/* Screenshot-style console login */
.console-login-page {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #eef4fb 0%, #e8eef7 100%);
  color: #1e242b;
  font-family: Inter, Arial, sans-serif;
}

.console-login-shell {
  min-height: 100vh;
  width: min(420px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 18px 0;
}

.console-login-brand {
  position: relative;
  width: 360px;
  height: 60px;
  margin: 0 auto 10px;
}

.console-login-brand > strong {
  position: absolute;
  right: 0;
  top: 6px;
  margin: 0;
  color: #101b2e;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.console-logo {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #173dd1;
  color: #fff;
  box-shadow: 0 12px 24px rgba(18, 55, 201, .22);
}

.console-logo span {
  font-size: 18px;
  line-height: 1;
}

.console-login-brand small {
  position: absolute;
  left: 14px;
  top: 48px;
  margin: 0;
  color: #4779ef;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.console-login-card {
  padding: 16px 18px;
  border: 1px solid #cbd7e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.console-login-card h1 {
  margin: 0 0 3px;
  color: #06162d;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.console-login-card > p {
  margin: 0 0 16px;
  color: #68758b;
  font-size: 14px;
  line-height: 1.35;
}

.console-alert {
  margin: -7px 0 11px;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff1f2;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

.console-login-card > label {
  position: relative;
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
  color: #2e384c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.console-login-card > label > a {
  position: absolute;
  right: 0;
  top: 0;
  color: #0b5bd3;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.console-input-wrap {
  height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #bfccdf;
  border-radius: 7px;
  background: #fff;
  padding: 0 10px 0 13px;
}

.console-input-wrap:focus-within {
  border-color: #1237c9;
  box-shadow: 0 0 0 3px rgba(18, 55, 201, .1);
}

.console-input-wrap i {
  width: 20px;
  color: #9eabc0;
  font-size: 15px;
  font-style: normal;
}

.console-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #273142;
  font-size: 14px;
  font-weight: 400;
}

.console-input-wrap input::placeholder {
  color: #8ea0bb;
}

.console-input-wrap button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #a8b0bf;
  font-size: 15px;
  cursor: pointer;
}

.console-login-options {
  margin: 7px 0 11px;
}

.console-login-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #40506a;
  font-size: 14px;
  font-weight: 400;
}

.console-login-options input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #1237c9;
}

.console-signin {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: #2038d1;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.console-signin span {
  margin-left: 8px;
  font-size: 20px;
  vertical-align: -2px;
}

.console-signin:hover {
  background: #0b1f6f;
}

.console-or {
  position: relative;
  margin: 12px 0 9px;
  height: 14px;
  display: grid;
  place-items: center;
  color: #b3bac6;
  font-size: 13px;
  font-weight: 600;
}

.console-or:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #edf0f5;
}

.console-or span {
  position: relative;
  padding: 0 14px;
  background: #fff;
}

.console-alt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.console-alt-actions button {
  height: 34px;
  border: 1px solid #d6e0ec;
  border-radius: 7px;
  background: #fff;
  color: #273142;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
}

.console-alt-actions button:hover {
  border-color: #1237c9;
  color: #1237c9;
  background: #f4f7ff;
}

.console-login-footer {
  width: 360px;
  margin: 13px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7f8ca3;
  font-size: 11px;
  font-weight: 600;
}

.console-login-footer nav {
  display: flex;
  gap: 20px;
}

.console-login-footer a {
  color: #7f8ca3;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .console-login-shell {
    width: min(500px, calc(100% - 24px));
  }

  .console-login-card {
    padding: 20px 16px;
  }

  .console-login-brand > strong {
    font-size: 22px;
  }

  .console-login-card h1 {
    font-size: 26px;
  }

  .console-login-card > p,
  .console-login-options label {
    font-size: 16px;
  }

  .console-alt-actions {
    grid-template-columns: 1fr;
  }
}
