/* style.css — SiteLead — Design inspired by Twenty CRM (adaptado do CataLead) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #0a0a12;
  --bg-2:          #0d0d1a;
  --surface-1:     rgba(255,255,255,0.035);
  --surface-2:     rgba(255,255,255,0.055);
  --surface-3:     rgba(255,255,255,0.085);
  --border:        rgba(255,255,255,0.09);
  --border-hover:  rgba(255,255,255,0.18);
  --border-active: rgba(59,130,246,0.55);

  --text:          #ededf2;
  --text-muted:    #70708a;
  --text-subtle:   #3e3e52;

  --primary:       #3b82f6;
  --primary-hover: #60a5fa;
  --primary-dim:   rgba(59,130,246,0.13);
  --primary-glow:  rgba(59,130,246,0.20);

  --green:         #22c55e;
  --green-dim:     rgba(34,197,94,0.12);
  --yellow:        #eab308;
  --yellow-dim:    rgba(234,179,8,0.12);
  --red:           #ef4444;
  --red-dim:       rgba(239,68,68,0.12);
  --blue:          #3b82f6;
  --blue-dim:      rgba(59,130,246,0.12);
  --orange:        #f97316;
  --orange-dim:    rgba(249,115,22,0.12);
  --purple:        #a855f7;
  --purple-dim:    rgba(168,85,247,0.12);

  --sidebar-w:     260px;
  --header-h:      56px;
  --radius-xs:     2px;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --radius-pill:   999px;

  --font: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;

  --glass-card:    rgba(255,255,255,0.025);
  --glass-border:  rgba(255,255,255,0.09);
  --glass-blur:    blur(16px) saturate(180%);
  --glass-shadow:  0 1px 0 rgba(255,255,255,0.04) inset, 0 4px 20px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.3);
  --glass-shadow-lg: 0 1px 0 rgba(255,255,255,0.05) inset, 0 12px 48px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);

  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
}

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  top: -300px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.03) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── APP LAYOUT ─────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: rgba(9,9,16,0.92);
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
}

.sidebar-logo {
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.sidebar-logo-sub {
  font-size: 10.5px;
  color: var(--text-subtle);
  margin-top: 1px;
  letter-spacing: 0.1px;
}

.sidebar-section {
  padding: 20px 10px 6px;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 8px;
  margin-bottom: 2px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.045);
  color: var(--text);
}

.nav-item.active {
  background: rgba(59,130,246,0.12);
  color: var(--primary);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 56%;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.nav-item svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  opacity: 0.65;
}
.nav-item.active svg { opacity: 1; }

.sidebar-footer {
  margin-top: auto;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.sidebar-user:hover { background: rgba(255,255,255,0.045); }

.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(59,130,246,0.22);
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info { flex: 1; min-width: 0; }

.user-name {
  font-size: 12px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.user-role { font-size: 10.5px; color: var(--text-subtle); }

.logout-btn {
  background: none; border: none;
  color: var(--text-subtle);
  padding: 4px; border-radius: 4px;
  transition: color 0.15s;
  display: flex; align-items: center;
}
.logout-btn:hover { color: var(--red); }

/* ── MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
  margin-left: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page-header {
  height: var(--header-h);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(10,10,18,0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-body {
  padding: 24px;
  flex: 1;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: -0.1px;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(59,130,246,0.28);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 18px rgba(59,130,246,0.36);
}

.btn-ghost {
  background: rgba(255,255,255,0.035);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-green {
  background: rgba(34,197,94,0.12);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.22);
}
.btn-green:hover {
  background: rgba(34,197,94,0.22);
  box-shadow: 0 2px 12px rgba(34,197,94,0.18);
}

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.18);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-sm  { padding: 5px 11px; font-size: 12px; }
.btn-xs  { padding: 3px 8px;  font-size: 11.5px; }
.btn svg { width: 14px; height: 14px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-success-xs { display:inline-flex;align-items:center;gap:4px;padding:3px 9px;font-size:11.5px;border-radius:var(--radius-sm);border:1px solid rgba(34,197,94,.28);background:rgba(34,197,94,.1);color:#22c55e;cursor:pointer;transition:background var(--transition-fast); }
.btn-success-xs:hover { background:rgba(34,197,94,.2); }

/* ── GLASS CARD ─────────────────────────────────────────────── */
.card {
  background: var(--glass-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

/* subtle top highlight */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

.card-sm { padding: 16px; }
.card-lg { padding: 28px; }

/* ── METRICS CARDS ──────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  pointer-events: none;
}

.metric-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 8px 28px rgba(0,0,0,0.4);
}

.metric-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.metric-icon-green  { background: rgba(34,197,94,0.1);   color: var(--green);   border-color: rgba(34,197,94,0.2); }
.metric-icon-yellow { background: rgba(234,179,8,0.1);   color: var(--yellow);  border-color: rgba(234,179,8,0.2); }
.metric-icon-primary{ background: rgba(59,130,246,0.12);color: var(--primary); border-color: rgba(59,130,246,0.25); }
.metric-icon-red    { background: rgba(239,68,68,0.1);   color: var(--red);     border-color: rgba(239,68,68,0.2); }
.metric-icon-blue   { background: rgba(59,130,246,0.1);  color: var(--blue);    border-color: rgba(59,130,246,0.2); }

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 0;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.6px;
  line-height: 1.1;
}

.metric-value.green   { color: var(--green); }
.metric-value.yellow  { color: var(--yellow); }
.metric-value.primary { color: var(--primary); }

.metric-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}

.metric-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.metric-link:hover { opacity: 0.7; }

/* ── CHART CONTAINER ────────────────────────────────────────── */
.chart-container { position: relative; width: 100%; }

/* ── DASHBOARD GRIDS ────────────────────────────────────────── */
.dash-grid-2      { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-grid-charts { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }

/* ── ACTIVITY LIST ──────────────────────────────────────────── */
.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}
.activity-row:last-child { border-bottom: none; }
.activity-row-info { flex: 1; min-width: 0; }
.activity-row-title { font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-row-sub   { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ── CLIENT HERO ────────────────────────────────────────────── */
.client-hero {
  background: var(--glass-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--glass-shadow-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.client-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.client-hero-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary-dim);
  border: 2px solid rgba(59,130,246,0.4);
  color: var(--primary);
  font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.1), 0 8px 24px rgba(0,0,0,0.4);
}

.client-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

.client-hero-info { flex: 1; }

.client-hero-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.client-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── INFO PANEL ─────────────────────────────────────────────── */
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  gap: 12px;
}
.info-row:last-child { border-bottom: none; }
.info-row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 12.5px;
}
.info-row-label svg { opacity: 0.5; }
.info-row-value {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

/* ── TABLES ─────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.07);
}

table { width: 100%; border-collapse: collapse; background: transparent; }
thead { background: rgba(255,255,255,0.025); }

th {
  text-align: left;
  padding: 9px 14px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}

td {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.045);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.1s; }
tbody tr:hover { background: rgba(255,255,255,0.028); }

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-green  { background: rgba(34,197,94,0.1);   color: var(--green);   border-color: rgba(34,197,94,0.2); }
.badge-yellow { background: rgba(234,179,8,0.1);   color: var(--yellow);  border-color: rgba(234,179,8,0.2); }
.badge-red    { background: rgba(239,68,68,0.1);   color: var(--red);     border-color: rgba(239,68,68,0.2); }
.badge-blue   { background: rgba(59,130,246,0.1);  color: var(--blue);    border-color: rgba(59,130,246,0.2); }
.badge-purple { background: rgba(168,85,247,0.1);  color: var(--purple);  border-color: rgba(168,85,247,0.2); }
.badge-orange { background: rgba(249,115,22,0.1);  color: var(--orange);  border-color: rgba(249,115,22,0.2); }
.badge-gray   { background: rgba(255,255,255,0.05);color: var(--text-muted); border-color: rgba(255,255,255,0.1); }

.tag-trafego  { background: rgba(59,130,246,0.12);  color: var(--blue);        border-color: rgba(59,130,246,0.28); }
.tag-crm      { background: rgba(34,197,94,0.12);   color: var(--green);       border-color: rgba(34,197,94,0.28); }
.tag-ia       { background: rgba(168,85,247,0.12);  color: var(--purple);      border-color: rgba(168,85,247,0.28); }
.tag-plataforma { background: rgba(249,115,22,0.12);color: var(--orange);      border-color: rgba(249,115,22,0.28); }
.tag-outro    { background: rgba(255,255,255,0.05); color: var(--text-muted);  border-color: rgba(255,255,255,0.1); }

/* Tighter tag badges inside kanban cards */
.kcard-tags .badge {
  font-size: 10.5px;
  padding: 2px 8px;
  font-weight: 600;
}

/* ── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(59,130,246,0.5);
  background: rgba(59,130,246,0.035);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-subtle); }
.form-select option { background: #111118; }
.form-textarea { resize: vertical; min-height: 80px; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: rgba(12,12,20,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--glass-shadow-lg);
  transform: translateY(10px) scale(0.99);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-lg { max-width: 720px; }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.modal-title { font-size: 14px; font-weight: 600; color: var(--text); }

.modal-close {
  background: none; border: none;
  color: var(--text-muted);
  font-size: 18px; line-height: 1;
  padding: 4px 8px; border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.modal-body   { padding: 18px 22px; }
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ── SEARCH & FILTERS ───────────────────────────────────────── */
.filters-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; flex-wrap: wrap;
}

.search-input {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  padding: 7px 11px 7px 34px;
  font-size: 13px; color: var(--text);
  outline: none; transition: border-color var(--transition-fast);
  width: 220px;
}
.search-input:focus { border-color: rgba(59,130,246,0.45); }
.search-input::placeholder { color: var(--text-subtle); }

.search-wrap { position: relative; }
.search-wrap svg {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text-subtle);
  pointer-events: none;
}

.filter-select {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  padding: 7px 11px; font-size: 12.5px;
  color: var(--text-muted); outline: none;
  cursor: pointer; transition: border-color var(--transition-fast);
}
.filter-select:focus { border-color: rgba(59,130,246,0.45); }
.filter-select option { background: #111118; }

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { width: 40px; height: 40px; margin: 0 auto 12px; opacity: 0.25; }
.empty-state-title { font-size: 15px; font-weight: 600; color: var(--text-subtle); margin-bottom: 6px; }
.empty-state-desc  { font-size: 13px; }

/* ── CLIENT AVATAR ──────────────────────────────────────────── */
.client-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0; overflow: hidden;
  border: 1px solid rgba(59,130,246,0.2);
}
.client-avatar img { width: 100%; height: 100%; object-fit: cover; }

.client-name-cell { display: flex; align-items: center; gap: 10px; }

/* ── PRODUCT TAGS ───────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* ── LOADING ────────────────────────────────────────────────── */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; color: var(--text-muted); gap: 10px;
}

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 9000;
  display: flex; flex-direction: column; gap: 6px;
  pointer-events: none;
}

.toast {
  background: rgba(18,18,28,0.97);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 13px; color: var(--text);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  max-width: 300px;
  animation: toastIn 0.2s ease;
  pointer-events: all;
}
.toast.success { border-left: 2px solid var(--green); }
.toast.error   { border-left: 2px solid var(--red); }
.toast.info    { border-left: 2px solid var(--primary); }

@keyframes toastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ── CHECKLIST TABS ─────────────────────────────────────────── */
.checklist-tabs { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.cl-tab {
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 14px; border-radius:8px; font-size:12.5px; font-weight:500;
  border:1px solid rgba(255,255,255,0.08); background:transparent;
  color:var(--text-muted); cursor:pointer; transition:all .15s;
}
.cl-tab:hover { background:rgba(255,255,255,0.05); color:var(--text); }
.cl-tab.active { background:rgba(59,130,246,.15); border-color:rgba(59,130,246,.4); color:var(--primary); }
.cl-tab-badge {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:18px; height:18px; padding:0 5px; border-radius:9px;
  font-size:10px; font-weight:700;
  background:rgba(59,130,246,.2); color:var(--primary);
}
.cl-tab.active .cl-tab-badge { background:var(--primary); color:#fff; }
.cl-progress { display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.cl-progress-bar { flex:1; height:4px; border-radius:4px; background:rgba(255,255,255,0.07); overflow:hidden; }
.cl-progress-fill { height:100%; border-radius:4px; background:var(--primary); transition:width .3s; }
.cl-progress-label { font-size:11px; color:var(--text-subtle); white-space:nowrap; }

/* ── CHECKLIST ITEMS ────────────────────────────────────────── */
.checklist-item {
  display:flex; align-items:center; gap:12px;
  padding:10px 12px; border-radius:8px; margin-bottom:4px;
  transition:background .12s;
}
.checklist-item:hover { background:rgba(255,255,255,0.03); }
.checklist-item.done-item { opacity:.65; }
.checklist-cb-wrap {
  width:20px; height:20px; border-radius:6px; flex-shrink:0;
  border:2px solid rgba(255,255,255,0.18); background:transparent;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:all .15s;
}
.checklist-cb-wrap.checked { background:var(--primary); border-color:var(--primary); }
.checklist-cb-wrap.checked svg { display:block; }
.checklist-cb-wrap svg { display:none; }
.checklist-cb { display:none; }
.checklist-label { flex:1; font-size:13.5px; color:var(--text); cursor:pointer; }
.checklist-label.done { text-decoration:line-through; color:var(--text-muted); }
.checklist-meta { font-size:11px; color:var(--text-subtle); white-space:nowrap; }
.checklist-optional { font-size:10px; padding:1px 6px; border-radius:4px; background:rgba(255,255,255,0.06); color:var(--text-subtle); }

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-title { font-size: 13px; font-weight: 600; color: var(--text); }

/* ── DIVIDER ────────────────────────────────────────────────── */
.divider { height: 1px; background: rgba(255,255,255,0.07); margin: 18px 0; }

/* ── SIDEBAR LOGO ICON ──────────────────────────────────────── */
.sidebar-logo-icon {
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(59,130,246,0.35);
}
.sidebar-logo-icon svg { width: 14px; height: 14px; color: #fff; }

/* ── DATE PICKER ────────────────────────────────────────────── */
input[type="date"], input[type="month"] { color-scheme: dark; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── LOGIN PAGE ─────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(59,130,246,0.06) 0%, transparent 50%),
              var(--bg);
}

.login-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--glass-shadow-lg);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), transparent);
}

.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo-text { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.4px; }
.login-logo-sub  { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.login-error {
  background: var(--red-dim);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; color: var(--red);
  margin-bottom: 16px; display: none;
}

/* ── DATE RANGE PICKER ──────────────────────────────────────── */
.drp-trigger-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 13px; font-weight: 500; font-family: var(--font);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap; overflow: hidden;
}
.drp-trigger-btn::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(59,130,246,0.9), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.drp-trigger-btn::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(59,130,246,0.6), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.drp-trigger-btn:hover { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.45); color: var(--primary); }
.drp-trigger-btn:hover::before, .drp-trigger-btn.open::before { opacity: 1; }
.drp-trigger-btn:hover::after,  .drp-trigger-btn.open::after  { opacity: 0.7; }
.drp-trigger-btn.open { background: rgba(59,130,246,0.14); border-color: rgba(59,130,246,0.55); color: var(--primary); }

.drp-container {
  position: absolute; z-index: 9999;
  display: flex;
  background: rgba(12,12,20,0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.4);
  animation: drpIn .15s ease;
}
@keyframes drpIn { from { opacity:0; transform:translateY(-6px) scale(.98); } to { opacity:1; transform:none; } }

.drp-presets-wrap { display: flex; flex-direction: column; }
.drp-presets {
  display: flex; flex-direction: column;
  padding: 10px 6px; min-width: 155px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(59,130,246,0.3) transparent;
}
.drp-preset {
  background: none; border: none; text-align: left;
  padding: 7px 12px; font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  cursor: pointer; font-family: var(--font);
  border-radius: 8px; white-space: nowrap;
  transition: background .12s, color .12s;
}
.drp-preset:hover { background: rgba(59,130,246,0.14); color: var(--primary); }

.drp-sep-v { width: 1px; background: rgba(255,255,255,0.07); flex-shrink: 0; }
.drp-sep-h { height: 1px; background: rgba(255,255,255,0.07); margin: 10px 0; }

.drp-right { padding: 14px 16px 16px; }
.drp-inputs-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.drp-input-box {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 6px 10px; text-align: center;
}
.drp-input-label { display: block; font-size: 10px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.drp-input-val   { font-size: 13px; font-weight: 500; color: var(--text); }
.drp-input-arrow { color: var(--text-subtle); font-size: 14px; flex-shrink: 0; }

.drp-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drp-cal-title { font-size: 13px; font-weight: 600; color: var(--text); }
.drp-nav {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: none;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, color .15s;
}
.drp-nav:hover { background: var(--primary-dim); color: var(--primary); }

.drp-weekdays { display: grid; grid-template-columns: repeat(7, 36px); margin-bottom: 2px; }
.drp-wd { text-align: center; font-size: 11px; font-weight: 500; color: var(--text-subtle); text-transform: uppercase; padding: 4px 0; }
.drp-days { display: grid; grid-template-columns: repeat(7, 36px); }
.drp-day { position: relative; width: 36px; height: 36px; cursor: pointer; user-select: none; }
.drp-day-bg { position: absolute; inset: 0; pointer-events: none; }
.drp-day-inner {
  position: relative; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,0.75);
  transition: background .12s, color .12s;
}
.drp-day:not(.drp-outside):not(.drp-sel):hover .drp-day-inner { background: var(--primary-dim); color: var(--primary); }
.drp-outside .drp-day-inner { color: var(--text-subtle); }
.drp-outside { cursor: default; }
.drp-today .drp-day-inner::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.drp-sel.drp-today .drp-day-inner::after { background: rgba(255,255,255,0.5); }
.drp-in-range .drp-day-bg { background: var(--primary-dim); }
.drp-sel-start .drp-day-bg { background: linear-gradient(to right, transparent 50%, var(--primary-dim) 50%); }
.drp-sel-end   .drp-day-bg { background: linear-gradient(to left,  transparent 50%, var(--primary-dim) 50%); }
.drp-sel:not(.drp-sel-start):not(.drp-sel-end):not(.drp-in-range) .drp-day-bg { background: none; }
.drp-sel .drp-day-inner { background: var(--primary); color: #fff; font-weight: 700; }

.drp-footer { display: flex; justify-content: flex-end; padding-top: 10px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,0.07); }
.drp-confirm-btn {
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px;
  padding: 7px 18px; font-size: 12.5px; font-weight: 600;
  font-family: var(--font); cursor: pointer;
  transition: background .15s;
  box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}
.drp-confirm-btn:hover { background: var(--primary-hover); }

/* ── PRODUCT PILLS ──────────────────────────────────────────── */
.prod-selector { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.prod-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
  user-select: none;
}
.prod-pill svg { width: 14px; height: 14px; opacity: 0.6; transition: opacity 0.15s; }
.prod-pill:hover { background: rgba(255,255,255,0.08); color: var(--text); border-color: rgba(255,255,255,0.16); }
.prod-pill:hover svg { opacity: 1; }

.prod-pill.selected-trafego  { background: rgba(59,130,246,0.14);  border-color: rgba(59,130,246,0.4);  color: var(--blue);   }
.prod-pill.selected-crm_ia   { background: rgba(168,85,247,0.14);  border-color: rgba(168,85,247,0.4);  color: var(--purple); }
.prod-pill.selected-plataforma { background: rgba(249,115,22,0.14); border-color: rgba(249,115,22,0.4); color: var(--orange); }
.prod-pill.selected-trafego svg, .prod-pill.selected-crm_ia svg, .prod-pill.selected-plataforma svg { opacity: 1; }

/* ── KANBAN BOARD ───────────────────────────────────────────── */
.kanban-container {
  padding: 18px 24px 0;
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kanban-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  align-items: flex-start;
  padding-bottom: 20px;
}

.kanban-col {
  width: 300px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid var(--col-color, #3b82f6);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: 100%;
  transition: border-color 0.15s, background 0.15s;
}

.kanban-col.drag-over {
  background: rgba(59,130,246,0.04);
  border-color: rgba(59,130,246,0.35);
  border-top-color: var(--col-color, #3b82f6);
}

.kanban-col-header {
  padding: 12px 14px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.kanban-col-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-col-count {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1px 8px;
  font-weight: 700;
  flex-shrink: 0;
}

.kanban-col-sla {
  font-size: 10px;
  color: var(--text-subtle);
  white-space: nowrap;
}

.kanban-add-card-btn {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.kanban-add-card-btn:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
}

.kanban-col-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
}

.kanban-col-empty {
  text-align: center;
  padding: 28px 10px;
  font-size: 12px;
  color: var(--text-subtle);
}

/* ── KANBAN CARD ─────────────────────────────────────────────── */
.kanban-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-md);
  padding: 12px 13px;
  cursor: grab;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s, transform 0.12s, box-shadow 0.15s;
  user-select: none;
}

.kanban-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.kanban-card:active { cursor: grabbing; }

.kanban-card.sla-violated {
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.05);
}

.kanban-card.sla-violated:hover {
  border-color: rgba(239,68,68,0.65);
}

.kanban-card.dragging { opacity: 0.35; cursor: grabbing; }

/* Card top row: avatar + name */
.kcard-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.kcard-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.1);
}

.kcard-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
  flex: 1;
}

/* Product tags inside card */
.kcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 11px;
}

.kcard-tags .badge {
  font-size: 11px;
  padding: 3px 10px;
  font-weight: 600;
  border-radius: 20px;
}

/* Bottom row: just time */
.kcard-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.kcard-time {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.kcard-time.overdue {
  color: var(--red);
  font-weight: 600;
}

.mini-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary);
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(59,130,246,0.2);
}
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Assignee dropdown */
.assignee-dropdown {
  position: fixed;
  z-index: 800;
  background: rgba(14,14,22,0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  min-width: 190px;
  overflow: hidden;
  display: none;
}
.assignee-dropdown.open { display: block; }
.assignee-dropdown-title {
  padding: 8px 12px 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.assignee-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}
.assignee-option:hover { background: rgba(255,255,255,0.06); color: var(--text); }

/* Column management */
.col-manage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.col-manage-item:last-child { border-bottom: none; }
.col-manage-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.col-manage-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.col-manage-sla {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.col-manage-actions { display: flex; gap: 4px; }

/* Inline column form */
.col-form-inline {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 10px;
}

/* Pipeline setup */
.pipeline-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 14px;
  text-align: center;
  padding: 60px 20px;
}
.pipeline-setup-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary-dim);
  border: 1px solid rgba(59,130,246,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.pipeline-setup-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.pipeline-setup-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.6;
}

/* Color picker row */
.color-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.color-swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: #fff; transform: scale(1.1); }

/* ── UTILITY ────────────────────────────────────────────────── */
.flex            { display: flex; }
.flex-col        { display: flex; flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.mb-4   { margin-bottom: 16px; }
.mb-6   { margin-bottom: 24px; }
.text-muted    { color: var(--text-muted); }
.text-sm       { font-size: 12.5px; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.truncate      { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden        { display: none !important; }

/* ════════════════════════════════════════════════════════════════
   LIGHT THEME
   ════════════════════════════════════════════════════════════════ */

html[data-theme="light"] {
  --bg:            #f0f0f6;
  --bg-2:          #e4e4ec;
  --surface-1:     rgba(0,0,0,0.03);
  --surface-2:     rgba(0,0,0,0.055);
  --surface-3:     rgba(0,0,0,0.09);
  --border:        rgba(0,0,0,0.09);
  --border-hover:  rgba(0,0,0,0.18);
  --border-active: rgba(59,130,246,0.5);

  --text:          #0f0f16;
  --text-muted:    #5a5a72;
  --text-subtle:   #a4a4bc;

  --primary:       #3b82f6;
  --primary-hover: #2563eb;
  --primary-dim:   rgba(59,130,246,0.12);
  --primary-glow:  rgba(59,130,246,0.2);

  --green-dim:     rgba(34,197,94,0.1);
  --yellow-dim:    rgba(234,179,8,0.1);
  --red-dim:       rgba(239,68,68,0.1);
  --blue-dim:      rgba(59,130,246,0.1);

  --glass-card:    rgba(255,255,255,0.72);
  --glass-border:  rgba(0,0,0,0.07);
  --glass-blur:    blur(20px) saturate(160%);
  --glass-shadow:  0 1px 0 rgba(255,255,255,0.9) inset, 0 4px 20px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --glass-shadow-lg: 0 1px 0 rgba(255,255,255,0.9) inset, 0 12px 48px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
}

/* body background */
html[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

html[data-theme="light"] body::before {
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 65%);
}
html[data-theme="light"] body::after {
  background: radial-gradient(circle, rgba(59,130,246,0.04) 0%, transparent 65%);
}

/* sidebar */
html[data-theme="light"] .sidebar {
  background: rgba(240,240,248,0.92);
  border-right-color: rgba(0,0,0,0.07);
}
html[data-theme="light"] .sidebar-logo {
  border-bottom-color: rgba(0,0,0,0.06);
}
html[data-theme="light"] .sidebar-footer {
  border-top-color: rgba(0,0,0,0.06);
}
html[data-theme="light"] .nav-item:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}
html[data-theme="light"] .nav-item.active {
  background: rgba(59,130,246,0.1);
}
html[data-theme="light"] .sidebar-user:hover {
  background: rgba(0,0,0,0.04);
}

/* page header */
html[data-theme="light"] .page-header {
  background: rgba(240,240,248,0.88);
  border-bottom-color: rgba(0,0,0,0.07);
}

/* buttons */
html[data-theme="light"] .btn-ghost {
  background: rgba(0,0,0,0.04);
  color: var(--text-muted);
  border-color: var(--border);
}
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(0,0,0,0.07);
  color: var(--text);
}

/* cards top edge highlight */
html[data-theme="light"] .card::before,
html[data-theme="light"] .metric-card::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}
html[data-theme="light"] .metric-card:hover {
  border-color: rgba(0,0,0,0.13);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 8px 32px rgba(0,0,0,0.1);
}

/* tables */
html[data-theme="light"] .table-wrap { border-color: var(--border); }
html[data-theme="light"] table thead tr {
  background: rgba(0,0,0,0.03);
  border-bottom-color: var(--border);
}
html[data-theme="light"] table tbody tr { border-bottom-color: rgba(0,0,0,0.04); }
html[data-theme="light"] table tbody tr:hover { background: rgba(0,0,0,0.025); }
html[data-theme="light"] th { color: var(--text-muted); }

/* modals */
html[data-theme="light"] .modal-overlay {
  background: rgba(0,0,0,0.3);
}
html[data-theme="light"] .modal {
  background: #f6f6fb;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}
html[data-theme="light"] .modal-header {
  border-bottom-color: rgba(0,0,0,0.07);
}
html[data-theme="light"] .modal-footer {
  border-top-color: rgba(0,0,0,0.07);
}

/* form inputs */
html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select,
html[data-theme="light"] .form-textarea {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.12);
  color: var(--text);
}
html[data-theme="light"] .form-input:focus,
html[data-theme="light"] .form-select:focus,
html[data-theme="light"] .form-textarea:focus {
  border-color: var(--primary);
  background: #fff;
}

/* kanban */
html[data-theme="light"] .kanban-col {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.07);
}
html[data-theme="light"] .kanban-col-header { border-bottom-color: rgba(0,0,0,0.06); }
html[data-theme="light"] .kcard {
  background: rgba(255,255,255,0.88);
  border-color: rgba(0,0,0,0.07);
}
html[data-theme="light"] .kcard:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

/* date picker */
html[data-theme="light"] .drp-trigger-btn {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: var(--text);
}

/* activity rows */
html[data-theme="light"] .activity-row { border-bottom-color: rgba(0,0,0,0.05); }
html[data-theme="light"] .activity-row:hover { background: rgba(0,0,0,0.025); }

/* toast */
html[data-theme="light"] .toast {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* checklist */
html[data-theme="light"] .checklist-item:hover { background: rgba(0,0,0,0.03); }
html[data-theme="light"] .cl-tab { border-color: rgba(0,0,0,0.1); }
html[data-theme="light"] .cl-progress-bar { background: rgba(0,0,0,0.07); }
html[data-theme="light"] .checklist-cb-wrap { border-color: rgba(0,0,0,0.2); }
html[data-theme="light"] .info-row { border-bottom-color: rgba(0,0,0,0.05); }

/* ── Theme Toggle Button ──────────────────────────────────────── */
.theme-toggle-btn {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  color: var(--text);
}

/* sun icon — visible in dark mode */
.theme-icon-sun {
  position: absolute;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  transform: scale(1) rotate(0deg);
  opacity: 1;
}
/* moon icon — hidden in dark mode */
.theme-icon-moon {
  position: absolute;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  transform: scale(0) rotate(30deg);
  opacity: 0;
}

/* swap icons in light mode */
html[data-theme="light"] .theme-icon-sun {
  transform: scale(0) rotate(-30deg);
  opacity: 0;
}
html[data-theme="light"] .theme-icon-moon {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}
.w-full        { width: 100%; }

/* ── APP DOCK (macOS-style bottom navigation) ───────────────── */
.page-body {
  padding-bottom: 110px;
}

#app-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
}

.dock-user-popup {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: rgba(15,15,24,0.96);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 10px;
  width: 200px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.05) inset;
  display: none;
  flex-direction: column;
  gap: 4px;
  pointer-events: all;
}
.dock-user-popup.open { display: flex; }

.dup-info {
  padding: 4px 6px 8px;
}
.dup-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.dup-role {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.dup-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 2px 0;
}
.dup-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font);
  border-radius: 8px;
  text-align: left;
  transition: background .13s, color .13s;
  cursor: pointer;
}
.dup-btn:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text);
}
.dup-logout:hover {
  background: rgba(239,68,68,0.10);
  color: #ef4444;
}

.dock-inner {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  background: rgba(15,15,24,0.85);
  backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 11px 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.06) inset;
  pointer-events: all;
}

.dock-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.10);
  margin: 0 2px;
  align-self: center;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.dock-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: transform .15s ease;
  will-change: transform;
  box-shadow: 0 2px 8px rgba(0,0,0,0.30);
  flex-shrink: 0;
}

.dock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  transition: background .15s;
  margin-top: 1px;
}
.dock-item.active .dock-dot {
  background: rgba(255,255,255,0.55);
}

.dock-tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(10,10,18,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s, transform .15s;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.dock-item:hover .dock-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dock-user-icon {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}

/* Light theme dock adjustments */
html[data-theme="light"] .dock-inner {
  background: rgba(255,255,255,0.80);
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 1px 0 rgba(255,255,255,0.9) inset;
}
html[data-theme="light"] .dock-user-popup {
  background: rgba(255,255,255,0.94);
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
html[data-theme="light"] .dup-name { color: #111; }
html[data-theme="light"] .dup-role { color: #666; }
html[data-theme="light"] .dup-btn  { color: #444; }
html[data-theme="light"] .dup-btn:hover { background: rgba(0,0,0,0.05); color: #111; }
html[data-theme="light"] .dup-logout:hover { background: rgba(239,68,68,0.08); color: #dc2626; }
html[data-theme="light"] .dock-sep { background: rgba(0,0,0,0.10); }
html[data-theme="light"] .dock-tip {
  background: rgba(10,10,18,0.96);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
.app-logo-cata { color: rgba(255,255,255,0.85); }
html[data-theme="light"] .app-logo-cata { color: #111827; }

/* ── Dock plan lock badge ────────────────────────────────────────── */
.dock-plan-lock {
  position: absolute;
  bottom: -3px; right: -3px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: rgba(17,24,39,.85);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; line-height: 1;
  border: 1.5px solid rgba(255,255,255,.15);
  pointer-events: none;
}
.dock-plan-lock::after { content: '🔒'; }

/* Esconde elementos admin-only antes do JS carregar (evita flash) */
[data-admin-only] { display: none !important; }
