/* ============================================================
   SchoolAid Owner Console — Brand Theme
   Palette from logo: royal blue + gold
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1a3fa8;
  --blue-dark:   #14308a;
  --blue-light:  #e8edfa;
  --blue-soft:   #f4f7fd;
  --gold:        #d99a1e;
  --gold-dark:   #b8811a;
  --gold-light:  #fdf6e3;

  --ink:         #0f1a3d;
  --ink-2:       #4a5573;
  --ink-3:       #8891a8;
  --line:        #e4e8f2;
  --bg:          #f7f9fc;
  --card:        #ffffff;

  --success:     #16a34a;
  --success-bg:  #dcfce7;
  --danger:      #dc2626;
  --danger-bg:   #fee2e2;
  --warning:     #d97706;
  --warning-bg:  #fef3c7;

  --shadow-sm:   0 1px 2px rgba(15,26,61,0.06);
  --shadow-md:   0 4px 12px rgba(15,26,61,0.08);
  --shadow-lg:   0 12px 32px rgba(15,26,61,0.12);
  --shadow-xl:   0 24px 60px rgba(15,26,61,0.18);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app { min-height: 100vh; }

/* ---------- Boot loader ---------- */
.boot-loader {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(217,154,30,0.1), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(26,63,168,0.1), transparent 45%),
    var(--bg);
}
.boot-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  animation: bootPulse 1.6s ease-in-out infinite;
}
.boot-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.01em;
}
.boot-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--blue-light);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes bootPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.06); opacity: 0.85; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Typography ---------- */
h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

a { color: var(--blue); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 20px;
}
.sidebar-brand img {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  flex-shrink: 0;
}
.sidebar-brand .name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.sidebar-brand .tag {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-top: 3px;
}

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, transform .05s;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
}
.nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item:active { transform: translateX(1px); }
.nav-item.active {
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217,154,30,0.4);
}
.nav-item .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.sidebar-foot {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.sidebar-foot .logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  border: none;
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: background .15s;
}
.sidebar-foot .logout:hover { background: rgba(255,255,255,0.22); }
.sidebar-foot .version { text-align: center; }

.main {
  padding: 32px 40px 60px;
  max-width: 1240px;
  width: 100%;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head h1 { margin-bottom: 4px; }
.page-head .sub { color: var(--ink-2); font-size: 13px; }

/* ---------- Buttons ---------- */
button, .btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(26,63,168,0.25);
}
.btn-primary:hover:not(:disabled) {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26,63,168,0.3);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 1px 2px rgba(217,154,30,0.35);
}
.btn-gold:hover:not(:disabled) {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217,154,30,0.4);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #15803d; }

.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat {
  background: var(--card);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
  position: relative;
  overflow: hidden;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat .label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.stat .label .ico {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
}
.stat .value {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .meta { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

.stat.blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-color: transparent;
}
.stat.blue .label { color: rgba(255,255,255,0.9); }
.stat.blue .label .ico { background: rgba(255,255,255,0.2); color: #fff; }
.stat.blue .value { color: #fff; }
.stat.blue .meta { color: rgba(255,255,255,0.75); }

.stat.gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-color: transparent;
}
.stat.gold .label { color: rgba(255,255,255,0.9); }
.stat.gold .label .ico { background: rgba(255,255,255,0.25); color: #fff; }
.stat.gold .value { color: #fff; }
.stat.gold .meta { color: rgba(255,255,255,0.85); }

.stat.profit .value { color: var(--success); }
.stat.loss .value { color: var(--danger); }

/* ---------- Tables ---------- */
.table-wrap {
  background: var(--card);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
}
.table-head h2 { color: var(--ink); }
.table-head .count {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 20px;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 14px 22px; }
th {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--blue-soft);
  border-bottom: 1px solid var(--line);
}
td { border-bottom: 1px solid var(--line); color: var(--ink); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .1s; }
tbody tr:hover td { background: var(--blue-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.right { text-align: right; white-space: nowrap; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.badge.active    { background: var(--success-bg); color: #14532d; }
.badge.suspended { background: var(--danger-bg); color: #7f1d1d; }
.badge.trial     { background: var(--warning-bg); color: #78350f; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group label .req { color: var(--danger); }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,63,168,0.12);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  padding: 8px 0;
}
.checkbox-row input { width: auto; margin: 0; cursor: pointer; }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 30%, rgba(217,154,30,0.15), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(26,63,168,0.15), transparent 45%),
    linear-gradient(135deg, #f7f9fc 0%, #eef2fb 100%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 14px;
}
.login-logo h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.login-logo h1 span { color: var(--blue); }
.login-logo .sub {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 6px;
}
.login-err {
  background: var(--danger-bg);
  color: #7f1d1d;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

/* ---------- Modal ---------- */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(15,26,61,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  backdrop-filter: blur(4px);
  animation: fadeIn .15s ease;
}
.modal {
  background: #fff;
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp .2s ease;
  display: flex;
  flex-direction: column;
}
.modal-head {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal-head h2 { font-size: 20px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.modal-head .sub { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.modal-body { padding: 24px 28px; }
.modal-foot {
  display: flex;
  gap: 10px;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--line);
  background: var(--blue-soft);
  position: sticky;
  bottom: 0;
}
.modal-foot button { flex: 1; }

.form-section {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
}
.form-section:first-child { margin-top: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn .2s ease;
  pointer-events: auto;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.info    { background: var(--blue); }
.toast .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Empty ---------- */
.empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--ink-3);
}
.empty .ill { font-size: 42px; margin-bottom: 12px; opacity: 0.5; }
.empty h3 {
  color: var(--ink-2);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.empty p { font-size: 13px; }

/* ---------- Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, #eef2fb 0%, #f7f9fc 50%, #eef2fb 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
  height: 16px;
}
.skeleton.stat-skel { height: 100px; border-radius: var(--r-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
    overflow-x: auto;
  }
  .sidebar-brand { padding: 0; border: none; margin: 0; }
  .sidebar-brand img { width: 32px; height: 32px; }
  .sidebar-brand .name { font-size: 14px; }
  .sidebar-brand .tag { font-size: 9px; }
  .nav { flex-direction: row; gap: 4px; flex: none; overflow-x: auto; }
  .nav-item { padding: 8px 10px; font-size: 0; gap: 0; }
  .nav-item .icon { font-size: 18px; }
  .sidebar-foot { border: none; padding: 0; }
  .sidebar-foot .logout { padding: 8px 10px; margin: 0; font-size: 0; gap: 0; }
  .sidebar-foot .logout .ico { font-size: 18px; }
  .sidebar-foot .version { display: none; }
  .main { padding: 20px 16px 60px; }
  .page-head h1 { font-size: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 14px; }
  .stat .value { font-size: 20px; }
  .stat .label { font-size: 10px; }
  th, td { padding: 10px 12px; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 560px; }
  .login-card { padding: 32px 24px; }
  .login-logo img { width: 72px; height: 72px; }
  .login-logo h1 { font-size: 24px; }
  .modal { max-height: 100vh; border-radius: 0; }
  .modal-bg { padding: 0; }
  .modal-foot { border-radius: 0; }
  #toast-container { top: 12px; right: 12px; left: 12px; }
  .toast { min-width: 0; width: 100%; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}
/* ============================================================
   Wizard (create school)
   ============================================================ */

.modal.wizard { max-width: 760px; }

.wizard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-direction: column;
}
.wizard-steps {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.wz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 62px;
  opacity: 0.4;
  transition: opacity .2s;
}
.wz-step.active { opacity: 1; }
.wz-step.done   { opacity: 1; }
.wz-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  border: 2px solid transparent;
}
.wz-step.active .wz-num { background: var(--gold); color: #fff; border-color: var(--gold); }
.wz-step.done   .wz-num { background: var(--blue); color: #fff; }
.wz-label {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wz-step.active .wz-label { color: var(--ink); }

/* Logo picker */
.logo-picker {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--blue-soft);
  border-radius: 12px;
  margin-bottom: 20px;
}
.logo-preview {
  width: 88px; height: 88px;
  background: #fff;
  border-radius: 12px;
  border: 2px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-placeholder { font-size: 36px; opacity: 0.3; }

/* Colour picker */
.color-pick { display: flex; gap: 8px; align-items: center; }
.color-pick input[type="color"] {
  width: 46px; height: 46px; padding: 2px; cursor: pointer;
  border-radius: 10px; border: 1.5px solid var(--line);
}

/* Theme preview */
.theme-preview {
  background: var(--blue-soft);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tp-card {
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #fff;
}
.tp-logo {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.tp-name { font-size: 18px; font-weight: 700; }
.tp-sub  { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.tp-btn, .tp-btn-outline {
  padding: 11px 18px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  color: #fff;
}
.tp-btn-outline { background: #fff; }

/* Row editors (departments, classes, subjects) */
.row-edit {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.row-edit input, .row-edit select { margin-bottom: 0; }
.row-edit input[type="text"], .row-edit input:not([type]) { flex: 1; }

/* User cards */
.user-card {
  background: var(--blue-soft);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.user-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.user-num {
  font-size: 11px; font-weight: 800;
  color: var(--blue);
  background: #fff;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Checkbox grid */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 4px 12px;
}

/* Info box */
.info-box {
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* Review grid */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.review-block {
  background: var(--blue-soft);
  border-radius: 10px;
  padding: 14px 16px;
}
.review-block h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.review-block p {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 2px;
}
.review-block p b { color: var(--ink); }

@media (max-width: 640px) {
  .modal.wizard { max-height: 100vh; border-radius: 0; }
  .wizard-steps { gap: 2px; }
  .wz-label { display: none; }
  .wz-step { min-width: 28px; }
  .logo-picker { flex-direction: column; text-align: center; }
  .check-grid { grid-template-columns: 1fr 1fr; }
}