/* ===== PORTDA Web App · Premium Maritime palette ===== */
:root {
  /* Brand · vibrant violet (Stripe/Linear feel) on white */
  --primary: #8B5CF6;
  --primary-dark: #7C3AED;
  --primary-light: #F5F3FF;
  --accent: #1F2937;
  --accent-dark: #111827;
  --accent-light: #F3F4F6;
  --gold: #8B5CF6;

  /* Semantic · bright & friendly */
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  --danger-light: #FEE2E2;

  /* Ink */
  --text: #1F2937;
  --text-2: #6B7280;
  --text-3: #9CA3AF;
  --border: #E5E7EB;
  --border-2: #F3F4F6;

  /* Surfaces · airy white */
  --bg: #FFFFFF;
  --bg-2: #FAFAFA;
  --card: #FFFFFF;

  /* Multi-layer shadows for depth */
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, .05), 0 0 0 1px rgba(31, 41, 55, .03);
  --shadow-md: 0 4px 14px rgba(31, 41, 55, .07), 0 1px 4px rgba(31, 41, 55, .04);
  --shadow-lg: 0 18px 40px rgba(31, 41, 55, .10), 0 4px 12px rgba(31, 41, 55, .05);
  --shadow-xl: 0 30px 60px rgba(31, 41, 55, .14), 0 8px 20px rgba(31, 41, 55, .07);

  --sidebar-w: 240px;
  --topbar-h: 60px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
input, select, textarea, button { font-family: inherit; }

/* ===== App shell ===== */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas: "sidebar topbar" "sidebar main";
  height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  grid-area: sidebar;
  background: #fff;
  border-right: 1px solid var(--border-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-2);
}
.sidebar-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
.sidebar-name { font-weight: 800; font-size: 16px; letter-spacing: .3px; }
.sidebar-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--accent);
  text-transform: uppercase;
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: 6px;
}
.sidebar-role.buyer { color: var(--primary); background: var(--primary-light); }

.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.sidebar-section { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; padding: 12px 12px 6px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: var(--bg-2); color: var(--text); }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}
.nav-badge.gray { background: var(--bg-2); color: var(--text-2); }

.sidebar-foot {
  padding: 14px;
  border-top: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-chip {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg);
  color: inherit;
  transition: background .15s ease;
}
.user-chip:hover { background: var(--bg-2); }
.logout-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}
.logout-btn:hover { background: var(--danger-light); color: var(--danger); }
.logout-btn svg { width: 18px; height: 18px; }
.user-chip .avatar { width: 32px; height: 32px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.user-chip .name { font-size: 13px; font-weight: 700; color: var(--text); }
.user-chip .role { font-size: 11px; color: var(--text-3); }

/* ===== Topbar ===== */
.topbar {
  grid-area: topbar;
  background: #fff;
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
}
.search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 16px; height: 16px; }
.search input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.search input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  position: relative;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--bg-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; background: var(--danger); border: 2px solid #fff; border-radius: 50%; }
.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

/* ===== Main content ===== */
.main {
  grid-area: main;
  overflow-y: auto;
  padding: 28px 32px;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-title h1 { font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.page-title p { color: var(--text-2); font-size: 13px; margin: 4px 0 0; }
.page-actions { display: flex; gap: 8px; align-items: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 38px;
  transition: background .15s ease, transform .1s ease, box-shadow .2s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(124, 58, 237, .26), 0 1px 2px rgba(31, 41, 55, .08); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 18px rgba(124, 58, 237, .34), 0 2px 4px rgba(31, 41, 55, .10); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 3px 10px rgba(239, 68, 68, .22); }
.btn-success { background: var(--success); color: #fff; box-shadow: 0 3px 10px rgba(16, 185, 129, .22); }
.btn-sm { padding: 6px 14px; font-size: 12px; min-height: 32px; border-radius: 8px; }
.btn-lg { padding: 13px 24px; font-size: 15px; min-height: 48px; border-radius: 11px; }
.btn-block { width: 100%; }

/* Premium button rows · equal-width, never wrap, never overflow */
.page-actions { display: flex; gap: 8px; align-items: stretch; flex-wrap: nowrap; }
.page-actions .btn { flex-shrink: 0; }
.row.gap-8 > .btn, .row.gap-10 > .btn, .lead-actions > .btn { min-width: 0; }
.lead-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== Cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 18px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.card-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.card-head .link { font-size: 13px; color: var(--primary); font-weight: 600; }
.card-grid { display: grid; gap: 16px; }

/* ===== KPI strip ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.kpi {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.kpi-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .6px; }
.kpi-value { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.kpi-delta { font-size: 12px; font-weight: 600; }
.kpi-delta.up { color: var(--success); }
.kpi-delta.down { color: var(--danger); }
.kpi-icon { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.kpi-icon.indigo { background: var(--primary-light); color: var(--primary); }
.kpi-icon.orange { background: var(--accent-light); color: var(--accent); }
.kpi-icon.green { background: var(--success-light); color: var(--success); }
.kpi-icon.amber { background: var(--warning-light); color: var(--warning); }

/* ===== Chips ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.chip-success { background: var(--success-light); color: #047857; }
.chip-warning { background: var(--warning-light); color: #92400E; }
.chip-danger { background: var(--danger-light); color: #B91C1C; }
.chip-primary { background: var(--primary-light); color: var(--primary); }
.chip-gray { background: var(--bg-2); color: var(--text-2); }
.chip-gold { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }

/* ===== Tables ===== */
.table-wrap { background: #fff; border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; }
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-2);
  gap: 12px;
  flex-wrap: wrap;
}
.table-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.table-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.tab.active { background: var(--primary-light); color: var(--primary); }

table.t { width: 100%; border-collapse: collapse; }
table.t thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 12px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-2);
}
table.t tbody td {
  padding: 14px 18px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-2);
  vertical-align: middle;
}
table.t tbody tr:last-child td { border-bottom: none; }
table.t tbody tr:hover { background: var(--bg); cursor: pointer; }
.t-buyer { display: flex; align-items: center; gap: 10px; }
.t-buyer .avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t-buyer .avatar.b1 { background: var(--primary-light); color: var(--primary); }
.t-buyer .avatar.b2 { background: var(--accent-light); color: var(--accent); }
.t-buyer .avatar.b3 { background: var(--success-light); color: var(--success); }
.t-buyer .avatar.b4 { background: #FCE7F3; color: #BE185D; }
.t-buyer .name { font-weight: 700; color: var(--text); }
.t-buyer .sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.t-amount { font-weight: 800; color: var(--text); }
.t-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ===== Layout: dashboard ===== */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ===== Activity feed ===== */
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-2);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-icon.indigo { background: var(--primary-light); color: var(--primary); }
.activity-icon.green { background: var(--success-light); color: var(--success); }
.activity-icon.orange { background: var(--accent-light); color: var(--accent); }
.activity-icon.amber { background: var(--warning-light); color: var(--warning); }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-size: 13px; font-weight: 700; color: var(--text); display: flex; justify-content: space-between; gap: 8px; }
.activity-title time { font-size: 11px; color: var(--text-3); font-weight: 500; flex-shrink: 0; }
.activity-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ===== Form ===== */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; letter-spacing: .3px; text-transform: uppercase; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-help { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ===== Inbox specifics ===== */
.lead-card {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-2);
  cursor: pointer;
  transition: background .15s ease;
}
.lead-card:hover { background: var(--bg); }
.lead-card:last-child { border-bottom: none; }
.lead-card.premium {
  background: linear-gradient(90deg, #FEF3C7 0%, #fff 30%);
  border-left: 3px solid var(--warning);
  padding-left: 15px;
}
.lead-meta { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.lead-id { font-size: 11px; color: var(--text-3); font-weight: 600; }
.lead-body { flex: 1; min-width: 0; }
.lead-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.lead-sub { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.lead-amount { font-size: 16px; font-weight: 800; color: var(--primary); }
.lead-actions { display: flex; flex-direction: column; gap: 6px; align-self: center; }

/* ===== Tab strip ===== */
.tab-strip { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 18px; width: fit-content; }
.tab-strip a { padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tab-strip a.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* ===== Quote builder ===== */
.builder-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.builder-summary { background: #fff; border: 1px solid var(--border-2); border-radius: 14px; padding: 20px; position: sticky; top: 28px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--text-2); border-bottom: 1px dashed var(--border-2); }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-weight: 800; color: var(--text); font-size: 16px; padding-top: 14px; }
.divider { height: 1px; background: var(--border-2); margin: 12px 0; }

.milestone-row { display: grid; grid-template-columns: 1fr 100px 100px 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.milestone-row input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; width: 100%; }

/* ===== Chat ===== */
.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; height: calc(100vh - var(--topbar-h) - 56px); background: #fff; border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--border-2); overflow-y: auto; }
.chat-search { padding: 12px; border-bottom: 1px solid var(--border-2); }
.chat-search input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: var(--bg); }
.chat-list-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-2); cursor: pointer; transition: background .15s ease; }
.chat-list-item:hover { background: var(--bg); }
.chat-list-item.active { background: var(--primary-light); }
.chat-list-item .avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.chat-list-item .preview { flex: 1; min-width: 0; }
.chat-list-item .name { font-weight: 700; font-size: 13px; color: var(--text); display: flex; justify-content: space-between; gap: 6px; }
.chat-list-item .name time { font-size: 11px; color: var(--text-3); font-weight: 500; flex-shrink: 0; }
.chat-list-item .msg { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-unread { background: var(--primary); color: #fff; font-size: 10px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px; margin-top: 2px; }

.chat-thread { display: flex; flex-direction: column; }
.chat-thread-head { padding: 14px 20px; border-bottom: 1px solid var(--border-2); display: flex; align-items: center; gap: 12px; }
.chat-thread-head .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.chat-thread-head .name { font-weight: 700; font-size: 14px; }
.chat-thread-head .sub { font-size: 12px; color: var(--success); display: flex; align-items: center; gap: 4px; }
.chat-thread-head .sub::before { content: ""; width: 7px; height: 7px; background: var(--success); border-radius: 50%; }
.chat-thread-body { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 60%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--border-2); border-bottom-left-radius: 4px; }
.bubble time { display: block; font-size: 10px; opacity: .7; margin-top: 4px; }
.chat-input { padding: 14px; border-top: 1px solid var(--border-2); display: flex; gap: 8px; align-items: center; }
.chat-input input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; outline: none; }
.chat-input input:focus { border-color: var(--primary); }

/* ===== Auth pages ===== */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  background: linear-gradient(135deg, #4C1D95 0%, #7C3AED 50%, #A855F7 100%);
  color: #fff;
  padding: 56px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, rgba(217, 70, 239, .28), transparent 60%);
  pointer-events: none;
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side h1 { font-size: 38px; margin: 0 0 16px; font-weight: 900; line-height: 1.1; letter-spacing: -.8px; }
.auth-side p { font-size: 16px; opacity: .9; margin: 0 0 32px; max-width: 380px; line-height: 1.5; }
.auth-side .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  width: fit-content;
  margin-bottom: 28px;
}
.auth-side ul { list-style: none; padding: 0; margin: auto 0 0; }
.auth-side ul li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 0; opacity: .9; }
.auth-side ul li svg { color: #10B981; width: 16px; height: 16px; flex-shrink: 0; }
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fff;
}
.auth-form {
  width: 100%;
  max-width: 380px;
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; font-weight: 800; font-size: 18px; }
.auth-logo .mark { width: 32px; height: 32px; background: linear-gradient(135deg, #7C3AED, #A855F7); color: #fff; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.auth-form h2 { font-size: 26px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.4px; }
.auth-form .lede { color: var(--text-2); font-size: 14px; margin: 0 0 26px; }
.auth-tabs { display: flex; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 22px; }
.auth-tabs a { flex: 1; text-align: center; padding: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); border-radius: 7px; }
.auth-tabs a.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 11px; margin: 18px 0; text-transform: uppercase; letter-spacing: 1px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-2); }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-2); }
.auth-foot a { color: var(--primary); font-weight: 700; }

/* ===== Empty + utility ===== */
.empty { padding: 48px 24px; text-align: center; color: var(--text-3); font-size: 13px; }
.flex-1 { flex: 1; }
.center { text-align: center; }
.muted { color: var(--text-3); }
.hidden { display: none; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.divider { height: 1px; background: var(--border-2); margin: 14px 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ===== Profile ===== */
.profile-cover {
  background: linear-gradient(135deg, #4C1D95, #A855F7);
  border-radius: 14px;
  padding: 28px;
  color: #fff;
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.profile-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(217, 70, 239, .28), transparent 60%); pointer-events: none; }
.profile-cover > * { position: relative; z-index: 1; }
.profile-avatar { width: 72px; height: 72px; border-radius: 18px; background: rgba(255, 255, 255, .15); border: 2px solid rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; flex-shrink: 0; }
.profile-cover h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.profile-cover .sub { font-size: 13px; opacity: .85; }
.profile-cover .row-chips { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.profile-cover .row-chips .chip { background: rgba(255, 255, 255, .15); color: #fff; }

/* ===== Sub-services checklist ===== */
.checklist {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.checklist-head {
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.checklist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-2);
}
.checklist-row:last-child { border-bottom: none; }
.check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}
.check-circle.on { background: var(--primary); border-color: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }

/* ===== Notifications dropdown placeholder (page) ===== */
.notif-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-2); cursor: pointer; transition: background .15s ease; }
.notif-item:hover { background: var(--bg); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--primary-light); }
.notif-item.unread:hover { background: #E0E7FF; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .builder-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --sidebar-w: 64px; }
  .sidebar-name, .sidebar-role, .nav-item span, .sidebar-section, .user-chip .name, .user-chip .role { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .sidebar-head { justify-content: center; padding: 16px 0; }
  .nav-badge { display: none; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-list { display: none; }
}

@media (max-width: 560px) {
  .main { padding: 18px; }
  .kpi-grid { grid-template-columns: 1fr; }
}
