/* ═══════════════════════════════════════════════════════════
   Resolú — Design System
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* Brand */
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-900: #1E3A8A;

  --orange-50:  #FFF7ED;
  --orange-100: #FFEDD5;
  --orange-500: #F97316;
  --orange-600: #EA580C;

  --green-50:  #F0FDF4;
  --green-500: #22C55E;
  --green-600: #16A34A;
  --green-700: #15803D;

  --amber-50:  #FFFBEB;
  --amber-500: #F59E0B;
  --amber-600: #D97706;

  --red-50:  #FEF2F2;
  --red-500: #EF4444;
  --red-600: #DC2626;

  /* Neutrals */
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Semantic */
  --bg:          var(--slate-50);
  --surface:     #FFFFFF;
  --surface-2:   var(--slate-100);
  --border:      var(--slate-200);
  --border-dark: var(--slate-300);

  --text:        var(--slate-900);
  --text-2:      var(--slate-600);
  --text-3:      var(--slate-400);

  --primary:       var(--blue-600);
  --primary-hover: var(--blue-700);
  --primary-light: var(--blue-50);

  --cta:       var(--orange-600);
  --cta-hover: #C2410C;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);

  /* Spacing */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Layout */
  --nav-h: 68px;
  --max-w: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ───────────────────────────────────────────── */
.text-xs   { font-size: 11.5px; }
.text-sm   { font-size: 13.5px; }
.text-base { font-size: 15px; }
.text-lg   { font-size: 18px; }
.text-xl   { font-size: 22px; }
.text-2xl  { font-size: 28px; }
.text-3xl  { font-size: 36px; }
.text-4xl  { font-size: 46px; }

.font-medium  { font-weight: 500; }
.font-semi    { font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-primary { color: var(--primary); }
.text-2       { color: var(--text-2); }
.text-3       { color: var(--text-3); }
.text-white   { color: #fff; }
.text-success { color: var(--green-600); }
.text-warning { color: var(--amber-600); }
.text-danger  { color: var(--red-600); }
.text-cta     { color: var(--cta); }

.leading-tight { line-height: 1.25; }
.leading-snug  { line-height: 1.4; }

/* ── Flex / Grid utilities ────────────────────────────────── */
.flex     { display: flex; }
.inline-flex { display: inline-flex; }
.grid     { display: grid; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end  { justify-content: flex-end; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }

/* ── Spacing ─────────────────────────────────────────────── */
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }

/* ── ══════════════════════════════════════════════════════ ──
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  transition: all 0.18s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(37,99,235,.45);
  transform: translateY(-1px);
}

.btn-cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 2px 8px rgba(234,88,12,.35);
}
.btn-cta:hover:not(:disabled) {
  background: var(--cta-hover);
  box-shadow: 0 4px 16px rgba(234,88,12,.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover:not(:disabled) {
  background: var(--primary-light);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-dark);
}
.btn-outline-dark:hover:not(:disabled) {
  background: var(--slate-100);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--slate-100);
  color: var(--text);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover:not(:disabled) {
  background: var(--blue-50);
}

.btn-danger {
  background: var(--red-500);
  color: #fff;
}
.btn-danger:hover:not(:disabled) { background: var(--red-600); }

.btn-success {
  background: var(--green-600);
  color: #fff;
}
.btn-success:hover:not(:disabled) { background: var(--green-700); }

.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-xl { padding: 16px 36px; font-size: 17px; border-radius: var(--radius-lg); font-weight: 700; }

/* ── ══════════════════════════════════════════════════════ ──
   FORMS
   ═══════════════════════════════════════════════════════════ */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}
.field .hint {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
}

.input, .select, .textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--surface);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.input.error, .select.error, .textarea.error {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }

.textarea { resize: vertical; min-height: 90px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }

/* ── ══════════════════════════════════════════════════════ ──
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-sm { padding: 16px; border-radius: var(--radius); }
.card-hover {
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.card-hover:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--blue-200);
}
.card-selected {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
}

/* ── ══════════════════════════════════════════════════════ ──
   BADGES
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-blue    { background: var(--blue-100);  color: var(--blue-700); }
.badge-green   { background: var(--green-50);  color: var(--green-700); }
.badge-amber   { background: var(--amber-50);  color: var(--amber-600); }
.badge-red     { background: var(--red-50);    color: var(--red-600); }
.badge-slate   { background: var(--slate-100); color: var(--slate-600); }
.badge-orange  { background: var(--orange-50); color: var(--orange-600); }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot-green  { background: var(--green-500); }
.dot-amber  { background: var(--amber-500); }
.dot-red    { background: var(--red-500); }
.dot-blue   { background: var(--primary); }
.dot-slate  { background: var(--slate-400); }

/* ── ══════════════════════════════════════════════════════ ──
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.navbar .container { display: flex; align-items: center; gap: 32px; }
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.navbar-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
.navbar-logo .logo-mark {
  width: 34px; height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.navbar-link {
  padding: 6px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.navbar-link:hover { color: var(--text); background: var(--slate-100); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Dashboard navbar variant ──────────────────────────────── */
.navbar-dark {
  background: var(--slate-900);
  border-bottom: 1px solid var(--slate-800);
}
.navbar-dark .navbar-logo { color: #fff; }
.navbar-dark .navbar-logo .logo-mark { background: var(--blue-500); }
.navbar-dark .navbar-link { color: var(--slate-400); }
.navbar-dark .navbar-link:hover { color: #fff; background: var(--slate-800); }

/* ── ══════════════════════════════════════════════════════ ──
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════ */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
}
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.sidebar-section { margin-bottom: 8px; }
.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  padding: 8px 10px 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.15s;
  width: 100%;
  text-align: left;
}
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-link:hover { color: var(--text); background: var(--slate-100); }
.sidebar-link.active {
  color: var(--primary);
  background: var(--blue-50);
  font-weight: 600;
}
.dash-content {
  flex: 1;
  padding: 28px 32px;
  min-width: 0;
}
.dash-content.no-sidebar { max-width: 760px; margin: 0 auto; }

/* ── ══════════════════════════════════════════════════════ ──
   PAGE HEADERS
   ═══════════════════════════════════════════════════════════ */
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.page-head p { color: var(--text-2); font-size: 14.5px; }

/* ── ══════════════════════════════════════════════════════ ──
   STATS ROW
   ═══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 20px;
}
.stat-card .stat-value { font-size: 26px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.stat-card.card-hover { transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.stat-card.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }

/* ── ══════════════════════════════════════════════════════ ──
   TABLES
   ═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: var(--slate-50);
  padding: 11px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--slate-50); }
tbody tr { transition: background 0.1s; }

/* ── ══════════════════════════════════════════════════════ ──
   PROGRESS / STEPPER
   ═══════════════════════════════════════════════════════════ */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.step:last-child { flex: 0; }
.step-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--border-dark);
  color: var(--text-3);
  background: var(--surface);
  flex-shrink: 0;
  transition: all 0.2s;
}
.step-circle.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.step-circle.done {
  border-color: var(--green-500);
  background: var(--green-500);
  color: #fff;
}
.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}
.step-label.active { color: var(--primary); font-weight: 600; }
.step-label.done { color: var(--green-600); }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 10px;
}
.step-line.done { background: var(--green-500); }

/* ── ══════════════════════════════════════════════════════ ──
   JOB STATUS TRACKER
   ═══════════════════════════════════════════════════════════ */
.status-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 4px;
}
.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 80px;
  position: relative;
}
.status-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
}
.status-step.done:not(:last-child)::after { background: var(--primary); }
.status-step .ss-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--slate-200);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 1;
  transition: all 0.2s;
}
.status-step.done .ss-dot  { background: var(--primary); border-color: var(--primary); color: #fff; }
.status-step.current .ss-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.2); }
.status-step .ss-label { font-size: 11.5px; color: var(--text-3); margin-top: 7px; text-align: center; font-weight: 500; }
.status-step.done .ss-label { color: var(--primary); }
.status-step.current .ss-label { color: var(--primary); font-weight: 700; }

/* ── ══════════════════════════════════════════════════════ ──
   JOB CARD
   ═══════════════════════════════════════════════════════════ */
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.job-card:hover { box-shadow: var(--shadow); border-color: var(--blue-200); }
.job-card .job-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.job-card .job-info { flex: 1; min-width: 0; }
.job-card .job-title { font-weight: 600; font-size: 14.5px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-card .job-meta { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.job-card .job-id { font-family: monospace; font-size: 11.5px; color: var(--text-3); background: var(--slate-100); padding: 2px 7px; border-radius: 4px; }
.job-card .job-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── ══════════════════════════════════════════════════════ ──
   TECH CARD
   ═══════════════════════════════════════════════════════════ */
.tech-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.18s;
}
.tech-card:hover { box-shadow: var(--shadow); border-color: var(--blue-200); }
.tech-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.tech-card-head { display: flex; align-items: center; gap: 12px; }
.tech-card-head .avatar { width: 46px; height: 46px; font-size: 16px; }
.tech-card-head .tech-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.tech-card-head .tech-cats { font-size: 12.5px; color: var(--text-2); }
.tech-stats { display: flex; gap: 16px; }
.tech-stat { display: flex; flex-direction: column; gap: 2px; }
.tech-stat .tstat-val { font-size: 16px; font-weight: 700; }
.tech-stat .tstat-lbl { font-size: 11.5px; color: var(--text-3); }
.stars { color: #F59E0B; font-size: 13px; letter-spacing: 1px; }

/* ── ══════════════════════════════════════════════════════ ──
   CATEGORY GRID
   ═══════════════════════════════════════════════════════════ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.category-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.category-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.category-card.active { border-color: var(--primary); background: var(--blue-50); }
.category-card .cat-icon {
  font-size: 34px;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: var(--slate-50);
  border-radius: var(--radius-lg);
}
.category-card.active .cat-icon { background: var(--blue-100); }
.category-card .cat-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.category-card .cat-desc { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }

/* ── ══════════════════════════════════════════════════════ ──
   MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-lg { max-width: 760px; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-body { padding: 24px; }
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── ══════════════════════════════════════════════════════ ──
   TOASTS
   ═══════════════════════════════════════════════════════════ */
#toast-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--slate-900);
  color: #fff;
  padding: 13px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  min-width: 260px;
  max-width: 380px;
  animation: toastIn 0.25s ease;
  pointer-events: all;
}
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast.success { background: var(--green-600); }
.toast.error   { background: var(--red-600); }
.toast.info    { background: var(--primary); }

/* ── ══════════════════════════════════════════════════════ ──
   LANDING — HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, #1e2d5c 60%, #1a3a6e 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(37,99,235,.4);
  color: var(--blue-200);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--blue-200); }
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,.72);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}
.trust-item .icon { font-size: 18px; }

/* ── ══════════════════════════════════════════════════════ ══
   LANDING — SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }
.section-blue { background: var(--primary); color: #fff; }
.section-dark { background: var(--slate-900); color: #fff; }

.section-head { text-align: center; margin-bottom: 52px; }
.section-head .eyebrow {
  display: inline-block;
  background: var(--blue-50);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px; left: 16%; right: 16%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-200), var(--blue-400), var(--blue-200));
}
.step-box { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  position: relative;
  z-index: 1;
}
.step-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-box p { font-size: 14.5px; color: var(--text-2); line-height: 1.7; }

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.benefit-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.benefit-icon {
  width: 48px; height: 48px;
  background: var(--blue-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.benefit-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.benefit-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* Guarantee section */
.guarantee-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid var(--green-500);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
}
.guarantee-icon { font-size: 52px; margin-bottom: 16px; }
.guarantee-box h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; color: var(--green-700); }
.guarantee-box p { font-size: 16px; color: var(--slate-600); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card .quote { font-size: 14.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: 10px; }
.testimonial-card .author-info .name { font-weight: 700; font-size: 14px; }
.testimonial-card .author-info .role { font-size: 12.5px; color: var(--text-3); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-900) 100%);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
}
.cta-banner h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-banner p { font-size: 17px; color: rgba(255,255,255,.75); margin-bottom: 32px; }
.cta-banner-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* For Professionals Section */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-visual {
  background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-900) 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.split-visual::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(37,99,235,.3) 0%, transparent 70%);
}
.pro-benefits { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.pro-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pro-benefit .pb-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pro-benefit h4 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.pro-benefit p { font-size: 13.5px; color: rgba(255,255,255,.7); line-height: 1.5; }

/* ── ══════════════════════════════════════════════════════ ══
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--slate-900);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.55);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ── ══════════════════════════════════════════════════════ ══
   AUTH PAGES
   ═══════════════════════════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--slate-50);
}
.auth-box {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.auth-box.wide { max-width: 720px; }
.auth-head { text-align: center; margin-bottom: 32px; }
.auth-head h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.auth-head p { font-size: 14.5px; color: var(--text-2); }

/* Role selector */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.role-card {
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
}
.role-card:hover { border-color: var(--primary); background: var(--blue-50); }
.role-card.selected { border-color: var(--primary); background: var(--blue-50); }
.role-card .role-icon { font-size: 40px; margin-bottom: 12px; }
.role-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.role-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

/* Validation status */
.validation-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--amber-50);
  border: 1.5px solid var(--amber-500);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.validation-status.approved {
  background: var(--green-50);
  border-color: var(--green-500);
}
.validation-status.rejected {
  background: var(--red-50);
  border-color: var(--red-500);
}
.validation-status .vs-icon { font-size: 24px; flex-shrink: 0; }
.validation-status h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.validation-status p { font-size: 13px; color: var(--text-2); }

/* ── ══════════════════════════════════════════════════════ ══
   QUOTE CARD
   ═══════════════════════════════════════════════════════════ */
.quote-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.18s;
}
.quote-card:hover { border-color: var(--blue-300); }
.quote-card.accepted { border-color: var(--green-500); background: var(--green-50); }
.quote-price { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.quote-price span { font-size: 14px; font-weight: 500; color: var(--text-2); }

/* ── ══════════════════════════════════════════════════════ ══
   TIMELINE
   ═══════════════════════════════════════════════════════════ */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 22px; left: 11px;
  width: 2px;
  bottom: 0;
  background: var(--border);
}
.timeline-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  margin-top: 2px;
}
.timeline-content h5 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.timeline-content p { font-size: 12.5px; color: var(--text-2); }

/* ── ══════════════════════════════════════════════════════ ══
   MISC UTILITIES
   ═══════════════════════════════════════════════════════════ */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty-state .empty-icon { font-size: 52px; margin-bottom: 14px; }
.empty-state h3 { font-size: 17px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 320px; margin: 0 auto; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  display: inline-block;
}

/* Alert */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid; margin-bottom: 16px; }
.alert-icon { font-size: 18px; flex-shrink: 0; }
.alert-info    { background: var(--blue-50);  border-color: var(--blue-200);  color: var(--blue-700); }
.alert-success { background: var(--green-50); border-color: var(--green-500); color: var(--green-700); }
.alert-warning { background: var(--amber-50); border-color: var(--amber-500); color: var(--amber-600); }
.alert-danger  { background: var(--red-50);   border-color: var(--red-500);   color: var(--red-600); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color 0.15s, background 0.15s;
  position: relative;
  bottom: -2px;
  border-bottom: 2px solid transparent;
}
.tab-btn:hover { color: var(--text); background: var(--slate-100); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* Search input */
.search-box { position: relative; }
.search-box .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--text-3); pointer-events: none; }
.search-box input { padding-left: 38px; }

/* Section dividers (landing) */
.section-divider {
  width: 60px; height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .sidebar { display: none; }
  .dash-content { padding: 20px 16px; }
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-box { padding: 24px 20px; }
  .hero { padding: 56px 0 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .navbar-links { display: none; }
  .role-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── DB Admin quick links ────────────────────────────────── */
.db-quick-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--slate-50);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-1);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  cursor: pointer;
}
.db-quick-link:hover {
  background: var(--blue-50);
  border-color: var(--primary);
  transform: translateX(2px);
}

/* ── Coming soon block ───────────────────────────────────── */
.coming-soon-block {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1.5px dashed var(--slate-200);
  border-radius: var(--radius-lg);
  background: var(--slate-50);
  text-align: center;
}
.coming-soon-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.coming-soon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.coming-chip {
  padding: 6px 14px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--slate-200);
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

/* ── Notification badge ──────────────────────────────────── */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--red-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
  pointer-events: none;
  z-index: 10;
}

/* ── Chat widget ─────────────────────────────────────────── */
.chat-widget {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.chat-header h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  flex: 1;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--slate-50);
  scroll-behavior: smooth;
}
.chat-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  padding: 32px 16px;
}
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 76%;
  gap: 2px;
}
.chat-msg.mine {
  align-self: flex-end;
  align-items: flex-end;
}
.chat-msg.theirs {
  align-self: flex-start;
  align-items: flex-start;
}
.chat-sender {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 2px;
  padding-left: 2px;
}
.chat-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-msg.mine .chat-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.theirs .chat-bubble {
  background: #fff;
  color: var(--text-1);
  border: 1px solid var(--border-dark);
  border-bottom-left-radius: 4px;
}
.chat-time {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
  padding: 0 3px;
}
.chat-input-area {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  line-height: 1.5;
  transition: border-color 0.15s;
  background: var(--surface);
  color: var(--text-1);
}
.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.chat-send-btn {
  flex-shrink: 0;
  padding: 9px 18px;
  align-self: flex-end;
}

/* ── Media Upload ─────────────────────────────────────────── */
.media-upload-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 8px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-upload-zone:hover,
.media-upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--blue-50);
}
.media-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-align: center;
  pointer-events: none;
}
.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  width: 100%;
  padding: 4px;
}
.media-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--slate-100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  text-decoration: none;
}
.media-thumb:hover .media-remove-btn { opacity: 1; }
.media-thumb-video {
  background: var(--slate-100);
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  text-align: center;
}
.media-thumb-add {
  border: 2px dashed var(--border-dark);
  background: transparent;
  cursor: pointer;
  color: var(--text-3);
  flex-direction: column;
  gap: 2px;
  transition: border-color .15s, background .15s;
}
.media-thumb-add:hover {
  border-color: var(--primary);
  background: var(--blue-50);
  color: var(--primary);
}
.media-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.media-remove-btn:hover { background: var(--red-600); }

/* ── Document upload zones ───────────────────────────────── */
.doc-upload-zone {
  position: relative;
  height: 120px;
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.doc-upload-zone:hover {
  border-color: var(--primary);
  background: var(--blue-50);
}
.doc-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
