/* ═══════════════════════════════════════════════════════════
   SmartIV CMS — Mobile-First Stylesheet
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --sidebar-w: 260px;
  --bottom-h: 64px;
  --header-h: 56px;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.15);
  --transition: .2s ease;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; font-size: 16px; }
body { min-height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50); color: var(--gray-800); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Splash ─────────────────────────────────────────────── */
.splash { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; gap: 24px; }
.splash-logo { font-size: 2.5rem; font-weight: 900; color: var(--primary); }
.splash-logo span { color: var(--warning); }
.splash-spinner { width: 36px; height: 36px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Layout ─────────────────────────────────────────────── */
#root { min-height: 100vh; }
#app { display: flex; min-height: 100vh; }

/* Sidebar (desktop) */
.sidebar {
  width: var(--sidebar-w); min-height: 100vh; background: var(--gray-900);
  color: #fff; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; z-index: 100;
  transition: transform var(--transition);
}
.sidebar-logo {
  padding: 20px 20px 16px; font-size: 1.5rem; font-weight: 900; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-logo span { color: var(--warning); }
.sidebar-user { padding: 12px 20px; font-size: .8rem; color: var(--gray-400); border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-user strong { display: block; color: var(--gray-200); font-size: .9rem; }
.sidebar-nav { flex: 1; padding: 8px 0; overflow-y: auto; }
.nav-section { padding: 12px 20px 4px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  color: var(--gray-400); font-size: .9rem; transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent; cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(59,130,246,.2); color: #fff; border-left-color: var(--primary-light); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer .nav-item { padding: 8px 0; }

/* Main content */
.main-content { flex: 1; margin-left: var(--sidebar-w); min-height: 100vh; }
.page-header {
  background: #fff; border-bottom: 1px solid var(--gray-200); padding: 0 24px;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.page-header h1 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.page-body { padding: 24px; }

/* Bottom nav (mobile) */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom-h);
  background: #fff; border-top: 1px solid var(--gray-200); z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.bottom-nav-inner { display: flex; height: 100%; }
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--gray-500); font-size: .65rem; font-weight: 500;
  padding: 6px 4px; transition: color var(--transition); cursor: pointer; border: none; background: none;
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item svg { width: 22px; height: 22px; }

/* Mobile layout */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
  .sidebar-overlay.show { display: block; }
  .main-content { margin-left: 0; padding-bottom: var(--bottom-h); }
  .bottom-nav { display: flex; }
  .page-body { padding: 16px; }
  .page-header { padding: 0 16px; }
}

/* ─── Cards ──────────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.card-header h2 { font-size: 1rem; font-weight: 600; }
.card-body { padding: 20px; }
.card-footer { padding: 12px 20px; background: var(--gray-50); border-top: 1px solid var(--gray-100); }

/* ─── Stats grid ─────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow); border-left: 4px solid var(--primary);
}
.stat-card.green { border-color: var(--success); }
.stat-card.yellow { border-color: var(--warning); }
.stat-card.red { border-color: var(--danger); }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--gray-500); margin-top: 4px; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: 8px; font-size: .875rem; font-weight: 600; border: none;
  transition: opacity var(--transition), transform var(--transition); white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: var(--gray-100); color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-sm { padding: 5px 10px; font-size: .8rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn svg { width: 16px; height: 16px; }
.btn-sm svg { width: 14px; height: 14px; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.form-label .req { color: var(--danger); }
.form-control {
  display: block; width: 100%; padding: 9px 12px; border: 1.5px solid var(--gray-300);
  border-radius: 8px; font-size: .9rem; transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff; color: var(--gray-800);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: .75rem; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: .75rem; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ─── Tables ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { background: var(--gray-50); border-bottom: 2px solid var(--gray-200); padding: 10px 14px; text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge-draft    { background: var(--gray-100); color: var(--gray-600); }
.badge-aktif    { background: #dbeafe; color: #1e40af; }
.badge-selesai  { background: var(--success-light); color: #15803d; }
.badge-warning  { background: var(--warning-light); color: #92400e; }
.badge-danger   { background: var(--danger-light); color: #991b1b; }
.badge-dibuat       { background: var(--gray-100); color: var(--gray-600); }
.badge-dipinjamkan  { background: #dbeafe; color: #1e40af; }
.badge-kembali      { background: var(--warning-light); color: #92400e; }
.badge-selesai2     { background: var(--success-light); color: #15803d; }

/* ─── Search & Filter ────────────────────────────────────── */
.search-bar { position: relative; }
.search-bar input { padding-left: 38px; }
.search-bar .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.search-bar .search-icon svg { width: 16px; height: 16px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1.5px solid var(--gray-300);
  background: #fff; color: var(--gray-600); cursor: pointer; transition: all var(--transition);
}
.chip.active { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ─── Room Grid ──────────────────────────────────────────── */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
@media (min-width: 768px) { .room-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } }
.room-card {
  background: #fff; border-radius: 10px; padding: 10px 8px; cursor: pointer;
  border: 2px solid var(--gray-200); text-align: center; transition: all var(--transition);
  box-shadow: var(--shadow); position: relative;
}
.room-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.room-card:active { transform: scale(.97); }
.room-card.done    { border-color: var(--success); background: var(--success-light); }
.room-card.partial { border-color: var(--warning); background: var(--warning-light); }
.room-card.issue   { border-color: var(--danger); background: var(--danger-light); }
.room-card.empty   { border-color: var(--gray-200); }
.room-number { font-size: 1.1rem; font-weight: 800; color: var(--gray-800); }
.room-progress-bar { height: 4px; background: var(--gray-200); border-radius: 2px; margin: 6px 0 4px; overflow: hidden; }
.room-progress-fill { height: 100%; border-radius: 2px; background: var(--success); transition: width .3s ease; }
.room-card.partial .room-progress-fill { background: var(--warning); }
.room-card.issue   .room-progress-fill { background: var(--danger); }
.room-meta { font-size: .65rem; color: var(--gray-500); }
.room-issue-badge { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; }

/* ─── Room View (checklist overlay) ─────────────────────── */
.room-view {
  position: fixed; inset: 0; background: var(--gray-50); z-index: 200; display: flex; flex-direction: column;
  overflow: hidden;
}
.room-view-header {
  background: var(--primary); color: #fff; padding: 0 16px; height: 56px;
  display: flex; align-items: center; gap: 12px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.room-view-header h2 { flex: 1; font-size: 1.1rem; font-weight: 700; }
.room-view-header .nav-btns { display: flex; gap: 8px; }
.room-view-body { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.room-view-footer {
  background: #fff; border-top: 1px solid var(--gray-200); padding: 12px 16px;
  flex-shrink: 0; box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}

/* Platform account cards */
.platform-card { background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.platform-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.platform-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.platform-label { font-weight: 700; font-size: .95rem; }
.account-field { margin-bottom: 10px; }
.account-field label { font-size: .75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 3px; }
.account-input-wrap { position: relative; }
.account-input-wrap input {
  width: 100%; padding: 8px 36px 8px 10px; border: 1.5px solid var(--gray-300); border-radius: 7px;
  font-size: .9rem; transition: border-color var(--transition);
}
.account-input-wrap input:focus { outline: none; border-color: var(--primary); }
.account-input-wrap input.changed { border-color: var(--danger); background: var(--danger-light); color: var(--danger); }
.eye-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--gray-400); padding: 2px; cursor: pointer; }
.eye-btn svg { width: 18px; height: 18px; }
.original-value { font-size: .72rem; color: var(--gray-500); margin-top: 3px; }
.original-value span { text-decoration: line-through; color: var(--danger); font-weight: 600; }

/* Checklist items */
.checklist-section { margin-top: 16px; }
.checklist-section h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); margin-bottom: 10px; }
.checklist-item {
  display: flex; align-items: center; gap: 14px; background: #fff; padding: 14px 16px;
  border-radius: var(--radius); margin-bottom: 8px; box-shadow: var(--shadow); cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition); user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.checklist-item:hover { border-color: var(--primary-light); }
.checklist-item.checked { border-color: var(--success); background: var(--success-light); }
.checklist-item:active { transform: scale(.98); }
.check-box {
  width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--gray-300); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.checklist-item.checked .check-box { background: var(--success); border-color: var(--success); }
.check-box svg { width: 16px; height: 16px; color: #fff; opacity: 0; transition: opacity var(--transition); }
.checklist-item.checked .check-box svg { opacity: 1; }
.checklist-text { flex: 1; font-size: .95rem; font-weight: 500; }

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal-overlay { align-items: center; } }
.modal {
  background: #fff; border-radius: 16px 16px 0 0; width: 100%; max-height: 90vh; overflow-y: auto;
  animation: slideUp .25s ease; padding: 0 0 env(safe-area-inset-bottom);
}
@media (min-width: 640px) { .modal { border-radius: var(--radius); max-width: 540px; max-height: 85vh; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gray-100); }
.modal-header h2 { font-size: 1.05rem; font-weight: 700; }
.modal-close { background: var(--gray-100); border: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-close svg { width: 18px; height: 18px; color: var(--gray-600); }
.modal-body { padding: 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--gray-100); display: flex; gap: 8px; justify-content: flex-end; }

/* ─── Wizard steps ───────────────────────────────────────── */
.wizard-steps { display: flex; align-items: center; margin-bottom: 24px; }
.wizard-step { display: flex; align-items: center; flex: 1; }
.wizard-step:last-child { flex: 0; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-200); color: var(--gray-500); font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); }
.step-dot.active { background: var(--primary); color: #fff; }
.step-dot.done { background: var(--success); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--gray-200); margin: 0 4px; }
.step-line.done { background: var(--success); }
.step-label { font-size: .7rem; color: var(--gray-500); margin-top: 4px; text-align: center; display: block; }

/* ─── Tags / Platform tags ───────────────────────────────── */
.platform-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.platform-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px; font-size: .8rem; font-weight: 600; background: var(--gray-100); }
.platform-tag .remove-tag { background: none; border: none; color: inherit; opacity: .6; cursor: pointer; padding: 0; display: flex; align-items: center; }
.platform-tag .remove-tag:hover { opacity: 1; }

/* ─── Item list (BAST items) ─────────────────────────────── */
.item-row { display: grid; grid-template-columns: 1fr 1fr 60px 60px 28px; gap: 6px; align-items: center; margin-bottom: 6px; }
@media (max-width: 480px) { .item-row { grid-template-columns: 1fr 50px 28px; } }
.item-row input { padding: 7px 10px; border: 1.5px solid var(--gray-300); border-radius: 7px; font-size: .85rem; width: 100%; }
.item-row input:focus { outline: none; border-color: var(--primary); }
.remove-item { background: none; border: none; color: var(--danger); cursor: pointer; opacity: .7; }
.remove-item:hover { opacity: 1; }
.remove-item svg { width: 16px; height: 16px; }

/* ─── Toast ──────────────────────────────────────────────── */
#toast-container { position: fixed; top: 16px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (max-width: 768px) { #toast-container { top: auto; bottom: calc(var(--bottom-h) + 8px); left: 16px; right: 16px; } }
.toast {
  background: var(--gray-900); color: #fff; padding: 12px 16px; border-radius: 10px;
  font-size: .875rem; max-width: 320px; box-shadow: var(--shadow-lg); animation: toastIn .3s ease;
  pointer-events: all; display: flex; align-items: center; gap: 10px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(110%); opacity: 0; } }
.toast.out { animation: toastOut .3s ease forwards; }

/* ─── Empty state ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--gray-500); }
.empty-state svg { width: 64px; height: 64px; opacity: .25; margin-bottom: 12px; }
.empty-state h3 { font-size: 1rem; color: var(--gray-700); margin-bottom: 6px; }
.empty-state p { font-size: .875rem; }

/* ─── Misc ───────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 16px 0; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-gray { color: var(--gray-500); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.fw-bold { font-weight: 700; }
.loading { text-align: center; padding: 40px; color: var(--gray-400); }
.loading::after { content: ''; display: inline-block; width: 20px; height: 20px; border: 2px solid var(--gray-300); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin-left: 8px; vertical-align: middle; }

/* ─── UAT detail toolbar ─────────────────────────────────── */
.uat-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.room-stats-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; font-size: .8rem; }
.room-stat-pill { padding: 4px 10px; border-radius: 999px; background: var(--gray-100); font-weight: 600; }
.room-stat-pill.done    { background: var(--success-light); color: #15803d; }
.room-stat-pill.partial { background: var(--warning-light); color: #92400e; }
.room-stat-pill.issue   { background: var(--danger-light);  color: #991b1b; }

/* ─── Login page ─────────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 20px; }
.login-card { background: #fff; border-radius: 16px; padding: 36px 32px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-logo { font-size: 2rem; font-weight: 900; color: var(--primary); text-align: center; margin-bottom: 4px; }
.login-logo span { color: var(--warning); }
.login-subtitle { text-align: center; color: var(--gray-500); font-size: .875rem; margin-bottom: 28px; }
.login-error { background: var(--danger-light); color: var(--danger); padding: 10px 14px; border-radius: 8px; font-size: .875rem; margin-bottom: 16px; }

/* ─── CSV import dropzone ────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 32px;
  text-align: center; cursor: pointer; transition: all var(--transition);
}
.dropzone:hover, .dropzone.drag-over { border-color: var(--primary); background: #eff6ff; }
.dropzone svg { width: 40px; height: 40px; color: var(--gray-400); margin-bottom: 8px; }
.dropzone p { color: var(--gray-500); font-size: .9rem; }
.dropzone strong { color: var(--primary); }

/* ─── Scroll utilities ───────────────────────────────────── */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── FAB ────────────────────────────────────────────────── */
.fab {
  position: fixed; bottom: calc(var(--bottom-h) + 16px); right: 16px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff;
  border: none; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(29,78,216,.4); transition: all var(--transition);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 24px; height: 24px; }
@media (min-width: 769px) { .fab { bottom: 24px; right: 24px; } }

/* ═══════════════════════════════════════════════════════════
   SmartIV CMS v2 — New Component Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Signature widget ───────────────────────────────────── */
.sig-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
.sig-canvas {
  display: block;
  width: 100%;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}
.sig-clear-btn {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: .75rem;
  padding: 2px 8px;
  cursor: pointer;
  color: var(--gray-600);
  transition: background var(--transition);
}
.sig-clear-btn:hover { background: #fff; color: var(--danger); }

/* ─── Signature status box ───────────────────────────────── */
.sig-box {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px;
  min-height: 120px;
  background: var(--gray-50);
}

/* ─── Badge extras ───────────────────────────────────────── */
.badge-gray {
  background: var(--gray-200);
  color: var(--gray-700);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  display: inline-block;
}
.badge-purple {
  background: #ede9fe;
  color: #5b21b6;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
  display: inline-block;
}

/* ─── Share URL modal ────────────────────────────────────── */
.share-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.share-modal-box {
  background: #fff; border-radius: 12px; padding: 24px;
  max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.share-modal-box h3 { margin: 0 0 16px; font-size: 1rem; }
.share-modal-url {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.share-modal-url input {
  flex: 1; font-size: .8rem; background: var(--gray-50);
  border: 1px solid var(--gray-300); border-radius: 6px; padding: 8px 10px;
  color: var(--gray-700);
}
.share-modal-close {
  margin-top: 4px; width: 100%;
  background: var(--gray-100); border: none; border-radius: 6px;
  padding: 8px; cursor: pointer; font-size: .875rem; color: var(--gray-700);
}
.share-modal-close:hover { background: var(--gray-200); }

/* ─── Nav section label ──────────────────────────────────── */
.nav-section {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 12px 16px 4px;
  margin-top: 4px;
}

/* ─── Asset catalog filters ──────────────────────────────── */
.cat-filter-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.cat-chip {
  padding: 4px 12px; border-radius: 20px; font-size: .8rem;
  border: 1px solid var(--gray-300); cursor: pointer;
  background: #fff; color: var(--gray-700); transition: all .15s;
}
.cat-chip.active, .cat-chip:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ─── Progress bar ───────────────────────────────────────── */
.progress-bar {
  height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--success); border-radius: 4px; transition: width .3s;
}

/* ─── Text utilities ─────────────────────────────────────── */
.text-sm { font-size: .875rem; }
.text-gray { color: var(--gray-500); }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
