/* =========================================================
   Creaplus CRM — Dark Navy Professional
   Mobile-first (375px+) → Desktop (768px+)
   ========================================================= */

:root {
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  --navy-500: #64748b;
  --navy-400: #94a3b8;
  --navy-300: #cbd5e1;
  --navy-200: #e2e8f0;
  --navy-100: #f1f5f9;
  --navy-50:  #f8fafc;

  --accent:   #1e3a8a;
  --accent-hover: #1e40af;
  --accent-light: #dbeafe;

  --success: #16a34a;
  --warning: #ea580c;
  --danger:  #dc2626;
  --info:    #0891b2;

  --text:       var(--navy-900);
  --text-muted: var(--navy-500);
  --border:     #e5e7eb;
  --bg:         #f5f7fa;
  --card-bg:    #ffffff;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow:    0 4px 12px rgba(15,23,42,.08);
  --radius:    10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* space for mobile bottom nav */
}

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

/* =============================================
   Layout
   ============================================= */

.layout { display: flex; min-height: 100vh; }

/* Sidebar — desktop */
.sidebar {
  display: none;
  width: 240px;
  background: var(--navy-900);
  color: var(--navy-300);
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
  flex-direction: column;
}

.brand {
  padding: 20px 22px 18px;
  display: flex; align-items: center; gap: 12px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.brand-logo {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
}
.brand-text {
  font-size: 16px; font-weight: 600; letter-spacing: -0.2px;
}
.brand-text small { display:block; font-size:10px; color: var(--navy-400); font-weight:400; }

.nav-menu { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy-300);
  font-size: 14px;
  margin-bottom: 2px;
  transition: all 0.15s;
}
.nav-menu a:hover { background: rgba(255,255,255,0.04); color: #fff; }
.nav-menu a.active {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}
.nav-menu a i { font-size: 17px; width: 20px; text-align: center; }
.nav-menu a .badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-section {
  padding: 18px 14px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy-500);
  font-weight: 600;
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 13px;
}
.user-info-text { flex: 1; min-width: 0; }
.user-info-name { color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info-role { color: var(--navy-400); font-size: 11px; text-transform: capitalize; }
.logout-btn { color: var(--navy-400); font-size: 18px; padding: 4px; }
.logout-btn:hover { color: #fff; }

/* Main content */
.main {
  flex: 1;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top bar (mobile) */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .brand-mobile { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy-900); }
.topbar .brand-mobile .brand-logo { width: 28px; height: 28px; font-size: 13px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.topbar-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-100);
  border-radius: 8px;
  color: var(--navy-700);
  font-size: 18px;
  border: none;
}

/* Main inner */
.main-inner { padding: 16px; flex: 1; }

/* Bottom nav (mobile) */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  z-index: 100;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 8px rgba(0,0,0,.05);
}
.bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 4px;
  color: var(--navy-500);
  font-size: 10px;
  gap: 2px;
  position: relative;
}
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a i { font-size: 20px; }
.bottom-nav .bn-badge {
  position: absolute;
  top: 2px;
  right: 25%;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  font-weight: 600;
}

/* Desktop: hide bottom nav & topbar, show sidebar */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sidebar { display: flex; }
  .main { margin-left: 240px; }
  .topbar { display: none; }
  .bottom-nav { display: none; }
  .main-inner { padding: 24px 28px; }
}

/* =============================================
   Page header
   ============================================= */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.page-header h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.3px;
  color: var(--navy-900);
}
.page-header .subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}
@media (min-width: 900px) {
  .page-header h1 { font-size: 24px; }
}

/* =============================================
   Cards
   ============================================= */

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-body { padding: 18px; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 680px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-card .stat-label i { font-size: 14px; }
.stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-900);
  margin-top: 6px;
  letter-spacing: -0.5px;
}
.stat-card .stat-sub { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* =============================================
   Contact list — mobile cards + desktop table
   ============================================= */

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.15s;
}
.contact-item:hover { border-color: var(--navy-300); box-shadow: var(--shadow-sm); }
.contact-item:active { transform: scale(0.99); }

.contact-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}
.contact-body { flex: 1; min-width: 0; }
.contact-name { font-weight: 600; color: var(--navy-900); font-size: 15px; line-height: 1.3; }
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.contact-meta > * { display: inline-flex; align-items: center; gap: 4px; }
.contact-actions-row {
  display: flex; gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.contact-status-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
}

/* Quick-action chips */
.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--navy-100);
  color: var(--navy-700);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.quick-chip:hover { background: var(--navy-200); color: var(--navy-900); }
.quick-chip.phone { background: #d1fae5; color: #065f46; }
.quick-chip.phone:hover { background: #a7f3d0; }
.quick-chip.whatsapp { background: #dcfce7; color: #166534; }
.quick-chip.whatsapp:hover { background: #bbf7d0; }
.quick-chip.email { background: #dbeafe; color: #1e40af; }
.quick-chip.email:hover { background: #bfdbfe; }

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Priority indicator */
.priority-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  margin-right: 4px;
}
.priority-high { background: var(--danger); }
.priority-normal { background: var(--navy-400); }
.priority-low { background: var(--navy-300); }

/* =============================================
   Contact detail
   ============================================= */

.contact-hero {
  background: linear-gradient(135deg, var(--accent) 0%, #1e40af 100%);
  color: #fff;
  padding: 24px 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  position: relative;
}
.contact-hero-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  margin-bottom: 12px;
  border: 2px solid rgba(255,255,255,0.2);
}
.contact-hero-name { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.contact-hero-sub { opacity: 0.85; font-size: 13px; margin-top: 2px; }
.contact-hero-actions {
  display: flex; gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.contact-hero-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.22);
  cursor: pointer;
  text-decoration: none;
}
.contact-hero-btn:hover { background: rgba(255,255,255,0.28); color: #fff; }
.contact-hero-btn.primary {
  background: #fff;
  color: var(--accent);
  border: none;
  font-weight: 600;
}
.contact-hero-btn.primary:hover { background: #f0f9ff; color: var(--accent-hover); }

/* Info grid */
.info-list { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 600px) { .info-list { grid-template-columns: 1fr 1fr; gap: 0 20px; } }
.info-row { padding: 8px 0; border-bottom: 1px solid var(--navy-100); }
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; }
.info-value { font-size: 14px; color: var(--navy-900); margin-top: 2px; word-break: break-word; }

/* Activity timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--navy-200);
}
.timeline-item {
  position: relative;
  padding: 8px 0 18px 0;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -24px;
  top: 10px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--navy-600);
  z-index: 1;
}
.timeline-marker.call     { border-color: #16a34a; color: #16a34a; background: #f0fdf4; }
.timeline-marker.note     { border-color: #64748b; color: #64748b; }
.timeline-marker.meeting  { border-color: #7c3aed; color: #7c3aed; background: #faf5ff; }
.timeline-marker.status_change { border-color: #ea580c; color: #ea580c; background: #fff7ed; }
.timeline-marker.deal     { border-color: #16a34a; color: #16a34a; background: #f0fdf4; }
.timeline-marker.task     { border-color: #f59e0b; color: #f59e0b; background: #fffbeb; }

.timeline-title { font-weight: 500; color: var(--navy-900); font-size: 13px; }
.timeline-body { color: var(--navy-700); font-size: 13px; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.timeline-meta { color: var(--text-muted); font-size: 11px; margin-top: 4px; }

/* =============================================
   Forms
   ============================================= */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 680px) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-grid .full { grid-column: 1 / -1; }
}

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy-700);
  display: flex; align-items: center; gap: 4px;
}
.form-label .req { color: var(--danger); }

.form-control, .form-select, textarea.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--navy-900);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}
textarea.form-control { resize: vertical; min-height: 80px; }
.form-help { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--navy-100); color: var(--navy-700); }
.btn-secondary:hover { background: var(--navy-200); color: var(--navy-900); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-outline { background: #fff; color: var(--navy-700); border-color: var(--border); }
.btn-outline:hover { background: var(--navy-50); color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--navy-600); }
.btn-ghost:hover { background: var(--navy-100); color: var(--navy-900); }

/* Floating action button */
.fab {
  position: fixed;
  bottom: 86px;
  right: 16px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 14px rgba(30,58,138,0.4);
  cursor: pointer;
  z-index: 90;
  text-decoration: none;
}
.fab:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }
@media (min-width: 900px) { .fab { bottom: 20px; right: 24px; } }

/* =============================================
   Filter bar
   ============================================= */

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar .form-control, .filter-bar .form-select {
  flex: 1; min-width: 140px;
}
.search-input {
  flex: 1;
  position: relative;
  min-width: 200px;
}
.search-input input {
  padding-left: 38px;
}
.search-input i {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0; flex-wrap: wrap; }
.filter-chip {
  padding: 5px 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy-700);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.filter-chip:hover { background: var(--navy-50); color: var(--navy-900); }
.filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* =============================================
   Modal (mobile: bottom sheet)
   ============================================= */

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: #fff;
  width: 100%;
  max-height: 92vh;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.2s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close {
  background: var(--navy-100);
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--navy-600);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 18px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

@media (min-width: 680px) {
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal {
    max-width: 560px;
    max-height: 88vh;
    border-radius: 12px;
  }
  @keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}

/* =============================================
   Pipeline / Kanban
   ============================================= */

.pipeline {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px;
  margin: 0 -16px;
  padding: 4px 16px;
}
@media (min-width: 900px) { .pipeline { margin: 0; padding: 4px 0; } }
.pipe-col {
  flex: 0 0 280px;
  background: var(--navy-50);
  border-radius: var(--radius);
  padding: 12px;
}
.pipe-col-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
}
.pipe-col-head .pch-label { font-weight: 600; color: var(--navy-800); }
.pipe-col-head .pch-count {
  background: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--navy-600);
  font-weight: 600;
}

.deal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  display: block;
  color: inherit;
  text-decoration: none;
}
.deal-card:hover { border-color: var(--navy-300); color: inherit; }
.deal-card .dc-title { font-weight: 500; font-size: 13px; color: var(--navy-900); }
.deal-card .dc-contact { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.deal-card .dc-amount { font-weight: 600; color: var(--accent); font-size: 14px; margin-top: 6px; }
.deal-card .dc-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* =============================================
   Tables
   ============================================= */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.table { width: 100%; border-collapse: collapse; }
.table thead th {
  background: var(--navy-50);
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--navy-100);
  font-size: 14px;
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--navy-50); }

/* =============================================
   Alerts / Flash
   ============================================= */

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  border: 1px solid transparent;
}
.alert i { font-size: 18px; flex-shrink: 0; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* =============================================
   Login
   ============================================= */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--accent) 100%);
  padding: 20px;
}
.login-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.login-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.login-brand .brand-logo { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; }
.login-brand .lt { font-size: 20px; font-weight: 700; color: var(--navy-900); }
.login-brand .ls { font-size: 12px; color: var(--text-muted); }

/* =============================================
   Utilities
   ============================================= */

.text-muted { color: var(--text-muted) !important; }
.text-small { font-size: 12px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.hide-mobile { display: none !important; }
@media (min-width: 680px) { .hide-mobile { display: initial !important; } .hide-desktop { display: none !important; } }
.text-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowrap { white-space: nowrap; }

/* Empty state */
.empty-state {
  padding: 50px 20px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state i { font-size: 48px; opacity: 0.3; display: block; margin-bottom: 12px; }
.empty-state h3 { margin: 8px 0 4px; font-size: 16px; font-weight: 600; color: var(--navy-700); }
.empty-state p { margin: 0 0 16px; font-size: 14px; }
