/* =========================================================
   LEAD FLOW STUDIO — SYSTEM DESIGN TOKENS & STYLING
   ========================================================= */
:root {
  --bg-app: #080a0f;
  --bg-sidebar: #0e121b;
  --bg-card: #151b28;
  --bg-card-hover: #1c2435;
  --bg-surface: #121722;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(139, 92, 246, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --col-blue: #3b82f6;
  --col-yellow: #f59e0b;
  --col-purple: #8b5cf6;
  --col-green: #10b981;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* =========================================================
   TOP DEMO BANNER
   ========================================================= */
.demo-banner {
  background: linear-gradient(90deg, #111827 0%, #1e1b4b 50%, #0f172a 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 100;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.back-link {
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.back-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-2px);
}

.badge-demo {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.banner-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 250px;
  text-align: center;
}
.banner-hint strong {
  color: #38bdf8;
}

.btn-cta {
  background: #8b5cf6;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.btn-cta:hover {
  background: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

/* =========================================================
   APP LAYOUT (SIDEBAR + CONTENT)
   ========================================================= */
.main-layout {
  display: flex;
  min-height: calc(100vh - 56px);
}

.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  flex-shrink: 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 2rem;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.logo-text strong {
  font-weight: 700;
  background: linear-gradient(90deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
  color: #ffffff;
  border-left: 3px solid #8b5cf6;
  font-weight: 600;
}
.nav-badge {
  margin-left: auto;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
}

.sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}
.avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.user-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.online-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  flex-shrink: 0;
}

/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */
.content-area {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
  min-width: 0;
}

/* HEADER */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.page-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.last-sync {
  font-size: 0.85rem;
  color: var(--col-green);
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.search-box {
  position: relative;
  width: 280px;
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}
.search-box input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.9rem;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: 99px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.search-box input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.btn-add {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: all 0.2s;
}
.btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* =========================================================
   KPI METRICS GRID
   ========================================================= */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-card);
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.metric-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.metric-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.metric-icon.purple { background: rgba(139, 92, 246, 0.15); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.3); }
.metric-icon.green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.metric-data {
  display: flex;
  flex-direction: column;
}
.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.metric-value {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  margin-top: 0.2rem;
  letter-spacing: -0.5px;
}
.metric-trend {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-weight: 600;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.metric-trend.up { color: #34d399; }
.metric-trend.neutral { color: #94a3b8; }

/* =========================================================
   FILTER BAR
   ========================================================= */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-surface);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.filter-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}
.filter-pill.active {
  background: #3b82f6;
  color: #fff;
  border-color: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* =========================================================
   KANBAN BOARD
   ========================================================= */
.kanban-scroll-area {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
}
.kanban-board {
  display: flex;
  gap: 1.25rem;
  height: calc(100vh - 360px);
  min-height: 540px;
  min-width: 1200px;
}
.kanban-column {
  flex: 1;
  width: 285px;
  min-width: 285px;
  background: rgba(14, 18, 27, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s;
}
.kanban-column.drag-over {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.2) inset;
}

.col-header {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.col-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.dot-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.col-blue .dot-indicator { background: var(--col-blue); box-shadow: 0 0 10px var(--col-blue); }
.col-yellow .dot-indicator { background: var(--col-yellow); box-shadow: 0 0 10px var(--col-yellow); }
.col-purple .dot-indicator { background: var(--col-purple); box-shadow: 0 0 10px var(--col-purple); }
.col-green .dot-indicator { background: var(--col-green); box-shadow: 0 0 10px var(--col-green); }

.col-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.col-count {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.col-revenue {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
  padding: 0.4rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

.col-cards-container {
  flex: 1;
  padding: 0.8rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* =========================================================
   LEAD CARDS (KANBAN ITEMS)
   ========================================================= */
.lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: grab;
  position: relative;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.lead-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.lead-card.dragging {
  opacity: 0.4;
  cursor: grabbing;
  border: 2px dashed #8b5cf6;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.client-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.client-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #272f45;
  color: #c4b5fd;
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}
.btn-wa {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.btn-wa:hover {
  background: #10b981;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.6);
}

.card-company {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.card-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.75rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}
.tag.hot { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.tag.urgente { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag.saas { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }

/* Mobile / Touch Move Menu */
.btn-move {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-move:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   MODALS
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #111723;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.2);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}
.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.btn-close-modal:hover { color: #fff; }

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input, .form-group select {
  background: #090c14;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.btn-cancel {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-submit {
  background: #3b82f6;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: #2563eb; }

/* WHATSAPP SIMULATOR MODAL */
.whatsapp-box {
  background: #0d1418;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0;
  overflow: hidden;
  max-width: 440px;
}
.wa-header {
  background: #1b262c;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wa-user-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.wa-avatar {
  width: 40px;
  height: 40px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-user-info h4 { font-size: 1rem; font-weight: 600; }
.wa-status { font-size: 0.75rem; color: #10b981; }
.wa-close { color: var(--text-muted); }

.wa-messages {
  padding: 1.25rem;
  min-height: 280px;
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: radial-gradient(circle at 50% 50%, #111a20 0%, #0b1114 100%);
}
.wa-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.4;
  position: relative;
}
.wa-bubble.received {
  align-self: flex-start;
  background: #1e2a30;
  border-bottom-left-radius: 2px;
  color: #e2e8f0;
}
.wa-bubble.sent {
  align-self: flex-end;
  background: #005c4b;
  border-bottom-right-radius: 2px;
  color: #ffffff;
}
.wa-time {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  margin-top: 0.3rem;
}

.wa-input-area {
  padding: 0.8rem 1.25rem;
  background: #1e2428;
  display: flex;
  gap: 0.6rem;
}
.wa-input-area input {
  flex: 1;
  background: #2a3237;
  border: none;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 99px;
  outline: none;
  font-size: 0.9rem;
}
.wa-input-area button {
  background: #00a884;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 99px;
  cursor: pointer;
}

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}
.toast {
  background: #111723;
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInToast 0.3s ease forwards;
  pointer-events: auto;
}
@keyframes slideInToast {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .main-layout { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .nav-item { width: auto; flex: 1; min-width: 130px; justify-content: center; }
  .content-area { padding: 1rem; }
  .kanban-board { min-height: 480px; }
}

@media (max-width: 768px) {
  /* Hiding scrollbars for cleaner mobile look */
  ::-webkit-scrollbar { display: none; }
  * { scrollbar-width: none; }
  
  .demo-banner { flex-direction: column; align-items: flex-start; text-align: left; gap: 0.8rem; padding: 0.75rem 1rem; }
  .banner-hint { text-align: left; font-size: 0.8rem; }
  .btn-cta { width: 100%; text-align: center; }
  
  .sidebar { padding: 1rem; }
  .sidebar-nav { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 0.5rem; justify-content: flex-start; }
  .nav-item { flex: 0 0 auto; min-width: auto; padding: 0.6rem 0.8rem; scroll-snap-align: start; }
  .nav-item span:not(.nav-badge) { font-size: 0.85rem; }
  
  .content-area { padding: 1rem 0; gap: 1rem; }
  .app-header { flex-direction: column; align-items: flex-start; gap: 0.8rem; padding: 0 1rem; }
  .page-title { font-size: 1.4rem; }
  .header-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 0.8rem; }
  .search-box { width: 100%; }
  
  /* Horizontal scrolling metrics instead of stacked */
  .metrics-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding: 0 1rem; -webkit-overflow-scrolling: touch; }
  .metric-card { flex: 0 0 80vw; max-width: 280px; scroll-snap-align: center; padding: 1rem; gap: 0.8rem; }
  .metric-value { font-size: 1.35rem; }
  
  /* Horizontal scroll for filters */
  .filter-bar { padding: 0.6rem 1rem; border-radius: 0; border-left: none; border-right: none; }
  .filter-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.2rem; -webkit-overflow-scrolling: touch; }
  .filter-pill { flex: 0 0 auto; font-size: 0.75rem; padding: 0.3rem 0.7rem; }
  
  /* KANBAN PREMIUM MOBILE (Horizontal Snap) */
  .kanban-scroll-area { 
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; 
    padding: 0 1rem 1rem 1rem; 
  }
  .kanban-board { 
    min-width: auto; /* override 1200px */
    width: max-content; 
    height: auto; 
    min-height: 60vh;
    padding-right: 1rem; /* spacing at the end */
  }
  .kanban-column { 
    width: 85vw; 
    max-width: 320px; 
    scroll-snap-align: center; 
    flex: 0 0 auto;
    background: rgba(14, 18, 27, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  }
  .col-cards-container { max-height: 55vh; }
  
  /* COMPACT CARDS */
  .lead-card { padding: 0.75rem; }
  .client-avatar { width: 26px; height: 26px; font-size: 0.65rem; }
  .client-name { font-size: 0.85rem; }
  .card-value { font-size: 1rem; margin-bottom: 0.5rem; }
  .card-company { font-size: 0.75rem; margin-bottom: 0.3rem; }
  .tag { font-size: 0.65rem; padding: 0.1rem 0.4rem; }
  .btn-move { font-size: 0.7rem; padding: 0.2rem 0.4rem; }
  .btn-wa { width: 28px; height: 28px; }
  .btn-wa svg { width: 14px; height: 14px; }
  
  /* Modals */
  .modal-box { max-width: 95vw; padding: 1.25rem; }
  .wa-header { flex-direction: column; gap: 0.8rem; align-items: flex-start; }
  .wa-input-area { flex-direction: column; gap: 0.6rem; }
  .wa-input-area input { width: 100%; }
  .wa-input-area button { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .modal-header { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .modal-actions { flex-direction: column-reverse; gap: 0.6rem; }
  .modal-actions button { width: 100%; }
}
