/* ╔══════════════════════════════════════════════════════════╗
   ║  MAC SDR — Design System v2                             ║
   ║  Inspiração: WhatsApp Web + Evo CRM + Miguelópolis      ║
   ║  Tipografia: Fira Sans + Fira Code                      ║
   ╚══════════════════════════════════════════════════════════╝ */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Tokens DARK ─────────────────────────────────────────────── */
:root, [data-theme="dark"] {
  /* Base — WhatsApp dark */
  --bg:           #111b21;
  --bg-2:         #1f2c34;
  --bg-3:         #2a3942;
  --border:       #374248;
  --text:         #e9edef;
  --text-muted:   #8696a0;
  --text-faded:   #54656f;

  /* Accent — verde WhatsApp Business */
  --primary:      #00a884;
  --primary-h:    #06cf9c;
  --primary-fg:   #111b21;

  /* Sidebar */
  --sidebar-bg:      #111b21;
  --sidebar-hover:   #182229;
  --sidebar-active:  #2a3942;
  --sidebar-border:  #2a3942;

  /* Chat bubbles */
  --bubble-in:    #1f2c34;
  --bubble-in-b:  #374248;
  --bubble-out:   #005c4b;
  --bubble-out-b: #005c4b;
  --chat-bg:      #0b141a;

  /* Semânticas */
  --green:        #00a884;
  --green-bg:     rgba(0,168,132,.15);
  --green-fg:     #06cf9c;
  --red:          #f15c6d;
  --red-bg:       rgba(241,92,109,.15);
  --red-fg:       #ff7b8a;
  --yellow:       #ffd60a;
  --yellow-bg:    rgba(255,214,10,.12);
  --yellow-fg:    #ffd60a;
  --blue:         #53bdeb;
  --blue-bg:      rgba(83,189,235,.12);
  --blue-fg:      #53bdeb;
  --gray-bg:      rgba(134,150,160,.12);
  --gray-fg:      #8696a0;

  /* Charts */
  --chart-1:  #00a884;
  --chart-2:  #06cf9c;
  --chart-3:  #ffd60a;
  --chart-4:  #f15c6d;
  --chart-5:  #53bdeb;

  /* Misc */
  --row-hover:  rgba(0,168,132,.06);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.5);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5);
  --radius:     8px;
  --transition: .18s ease;
}

/* ── Tokens LIGHT ────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:           #f0f2f5;
  --bg-2:         #ffffff;
  --bg-3:         #f0f2f5;
  --border:       #e9edef;
  --text:         #111b21;
  --text-muted:   #54656f;
  --text-faded:   #8696a0;
  --primary:      #00a884;
  --primary-h:    #017561;
  --primary-fg:   #fff;
  --sidebar-bg:      #f0f2f5;
  --sidebar-hover:   #e9edef;
  --sidebar-active:  #d9d9d9;
  --sidebar-border:  #e9edef;
  --bubble-in:    #ffffff;
  --bubble-in-b:  #e9edef;
  --bubble-out:   #d9fdd3;
  --bubble-out-b: #c5e6bd;
  --chat-bg:      #efeae2;
  --green:        #00a884;
  --green-bg:     rgba(0,168,132,.10);
  --green-fg:     #017561;
  --red:          #dc2626;
  --red-bg:       rgba(220,38,38,.10);
  --red-fg:       #b91c1c;
  --yellow:       #ca8a04;
  --yellow-bg:    rgba(202,138,4,.12);
  --yellow-fg:    #a16207;
  --blue:         #1d4ed8;
  --blue-bg:      rgba(29,78,216,.10);
  --blue-fg:      #1e40af;
  --gray-bg:      rgba(100,116,139,.10);
  --gray-fg:      #475569;
  --row-hover:    rgba(0,168,132,.05);
  --shadow-sm:    0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 12px rgba(0,0,0,.08);
  --chat-bg:      #efeae2;
}

/* ── Reset ───────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html,body {
  height:100%; background:var(--bg); color:var(--text);
  font-family:"Fira Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  font-size:14px; line-height:1.55;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
a { color:var(--primary); text-decoration:none; }
a:hover { color:var(--primary-h); text-decoration:underline; }
code,.mono {
  font-family:"Fira Code","Consolas","SF Mono",ui-monospace,monospace;
  font-feature-settings:"tnum" on;
}
code { font-size:.85em; background:var(--bg-3); padding:1px 5px; border-radius:4px; }
:focus-visible { outline:2px solid var(--primary); outline-offset:2px; border-radius:4px; }
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { transition-duration:.01ms!important; animation-duration:.01ms!important; }
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity:0; transform:translateY(4px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes slideInRight {
  from { opacity:0; transform:translateX(12px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes slideInLeft {
  from { opacity:0; transform:translateX(-12px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes pulse {
  0%,100% { opacity:1; }
  50%      { opacity:.35; }
}
@keyframes spin { to { transform:rotate(360deg); } }

.animate-fade  { animation:fadeIn .2s ease both; }
.animate-slide { animation:slideInRight .2s ease both; }

/* ── Topbar ──────────────────────────────────────────────────── */
.topbar {
  display:flex; align-items:center; background:var(--bg-2);
  border-bottom:1px solid var(--border); padding:.6rem 1.25rem;
  gap:1.25rem; position:sticky; top:0; z-index:50; box-shadow:var(--shadow-sm);
}
.brand { display:flex; align-items:center; gap:.45rem; }
.brand-icon { color:var(--primary); display:inline-flex; }
.brand-icon svg { width:20px; height:20px; }
.brand-name { font-weight:700; font-size:15px; letter-spacing:-.01em; white-space:nowrap; }
.brand-sub  { font-size:.72rem; color:var(--text-muted); white-space:nowrap; margin-left:.35rem; }
.nav { display:flex; gap:.2rem; flex:1; margin-left:.75rem; }
.nav a {
  padding:.35rem .75rem; border-radius:var(--radius); color:var(--text-muted);
  font-size:13px; font-weight:500; transition:background var(--transition),color var(--transition);
  white-space:nowrap;
}
.nav a:hover { background:var(--bg-3); color:var(--text); text-decoration:none; }
.nav a.active { background:var(--green-bg); color:var(--primary); }
.topbar-end { margin-left:auto; display:flex; align-items:center; gap:.5rem; }
.btn-ghost {
  background:none; border:1px solid var(--border); color:var(--text-muted);
  padding:.3rem .65rem; border-radius:var(--radius); cursor:pointer; font-size:13px;
  font-family:inherit; transition:var(--transition); display:inline-flex; align-items:center; gap:.35rem;
}
.btn-ghost:hover { background:var(--bg-3); color:var(--text); text-decoration:none; }
.theme-toggle {
  background:none; border:none; cursor:pointer; color:var(--text-muted);
  padding:.4rem; border-radius:var(--radius); display:inline-flex; transition:var(--transition);
}
.theme-toggle:hover { background:var(--bg-3); color:var(--text); }
.theme-toggle svg { width:16px; height:16px; }
[data-theme="dark"]  .icon-light { display:none; }
[data-theme="light"] .icon-dark  { display:none; }
.nav-toggle {
  display:none; background:none; border:none; cursor:pointer;
  color:var(--text-muted); padding:.4rem; border-radius:var(--radius);
}
.nav-toggle svg { width:20px; height:20px; }

/* ── Container ───────────────────────────────────────────────── */
.container { max-width:1100px; margin:0 auto; padding:1.5rem; }
.container-full { width:100%; margin:0; padding:0; }

/* ── Page header ─────────────────────────────────────────────── */
.page-header { margin-bottom:1.5rem; }
.page-header h1 { font-size:1.35rem; font-weight:700; letter-spacing:-.02em; }
.page-header p  { color:var(--text-muted); margin-top:.25rem; font-size:13px; }

/* ── KPI cards ───────────────────────────────────────────────── */
.kpis {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:.85rem; margin-bottom:1.25rem;
}
.kpi {
  background:var(--bg-2); border:1px solid var(--border); border-radius:10px;
  padding:1rem 1.15rem; animation:fadeIn .25s ease both;
}
.kpi-head { display:flex; align-items:center; gap:.4rem; margin-bottom:.5rem; }
.kpi-head svg { width:14px; height:14px; color:var(--text-muted); }
.kpi-label { font-size:11px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.05em; font-weight:600; }
.kpi-value { font-family:"Fira Code",monospace; font-size:1.5rem; font-weight:700; font-feature-settings:"tnum" on; }
.kpi-value.sm { font-size:1rem; }
.kpi.green { border-color:var(--primary); }
.kpi.green .kpi-value { color:var(--green-fg); }
.kpi.red   { border-color:var(--red); }
.kpi.red   .kpi-value { color:var(--red-fg); }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background:var(--bg-2); border:1px solid var(--border); border-radius:10px;
  padding:1.15rem 1.35rem; margin-bottom:1.1rem; animation:fadeIn .25s ease both;
}
.card h2 {
  font-size:13px; font-weight:600; margin-bottom:.9rem; padding-bottom:.7rem;
  border-bottom:1px solid var(--border); display:flex; align-items:center; gap:.45rem;
}
.card h2 svg { width:14px; height:14px; color:var(--text-muted); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display:inline-flex; align-items:center; gap:.25rem; padding:.2rem .6rem;
  border-radius:20px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
}
.badge-green  { background:var(--green-bg);  color:var(--green-fg); }
.badge-red    { background:var(--red-bg);    color:var(--red-fg); }
.badge-yellow { background:var(--yellow-bg); color:var(--yellow-fg); }
.badge-blue   { background:var(--blue-bg);   color:var(--blue-fg); }
.badge-gray   { background:var(--gray-bg);   color:var(--gray-fg); }

/* ── Status dot ──────────────────────────────────────────────── */
.status-dot {
  width:8px; height:8px; border-radius:50%; display:inline-block; flex-shrink:0;
}
.status-dot.green { background:var(--primary); box-shadow:0 0 0 2px var(--green-bg); }
.status-dot.red   { background:var(--red);     box-shadow:0 0 0 2px var(--red-bg); }
.status-dot.pulse { animation:pulse 2s infinite; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; gap:.4rem; padding:.45rem .95rem;
  border-radius:var(--radius); font-size:13px; font-weight:600; cursor:pointer;
  border:none; font-family:inherit; transition:var(--transition);
}
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn svg { width:14px; height:14px; }
.btn-primary { background:var(--primary); color:var(--primary-fg); }
.btn-primary:hover { background:var(--primary-h); color:var(--primary-fg); text-decoration:none; }
.btn-danger  { background:var(--red); color:#fff; }
.btn-danger:hover  { opacity:.85; }
.btn-success { background:var(--primary); color:var(--primary-fg); }
.btn-success:hover { background:var(--primary-h); }
.btn-outline {
  background:transparent; border:1px solid var(--border);
  color:var(--text-muted);
}
.btn-outline:hover { background:var(--bg-3); color:var(--text); text-decoration:none; }
.actions { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.9rem; }

/* ── Forms ───────────────────────────────────────────────────── */
.field { margin-bottom:.9rem; }
.field label {
  display:block; font-size:11px; font-weight:600; color:var(--text-muted);
  text-transform:uppercase; letter-spacing:.05em; margin-bottom:.4rem;
}
.field .hint { font-size:11px; color:var(--text-faded); margin-top:.3rem; }
input[type=text],input[type=password],input[type=number],select,textarea {
  width:100%; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius);
  color:var(--text); padding:.5rem .75rem; font-size:13px; font-family:inherit;
  transition:border var(--transition);
}
input:focus,select:focus,textarea:focus { border-color:var(--primary); outline:none; }
textarea {
  resize:vertical; line-height:1.55;
  font-family:"Fira Code",monospace; font-size:12.5px; min-height:400px;
}
.row-2 { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }

/* ── Range slider ────────────────────────────────────────────── */
.range-wrap { display:flex; align-items:center; gap:.75rem; }
.range-wrap input[type=range] { flex:1; accent-color:var(--primary); }
.range-val {
  font-family:"Fira Code",monospace; font-size:13px; font-weight:700;
  min-width:36px; text-align:right; color:var(--primary);
}
.range-hint {
  font-size:10px; color:var(--text-faded);
  display:flex; justify-content:space-between; margin-top:.2rem;
}

/* ── Tables ──────────────────────────────────────────────────── */
.data-table { width:100%; border-collapse:collapse; }
.data-table th {
  text-align:left; font-size:11px; color:var(--text-muted); text-transform:uppercase;
  letter-spacing:.05em; padding:.55rem .75rem; border-bottom:1px solid var(--border); font-weight:600;
}
.data-table td { padding:.6rem .75rem; border-bottom:1px solid var(--bg-3); font-size:13px; }
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:hover td { background:var(--row-hover); }
.muted { color:var(--text-faded); font-size:13px; padding:.75rem 0; }

/* ── Flash / Toast ───────────────────────────────────────────── */
.flash-area { margin-bottom:1rem; }
.flash {
  padding:.6rem 1rem; border-radius:var(--radius); font-size:13px;
  margin-bottom:.4rem; animation:slideInRight .2s ease;
}
.flash-success { background:var(--green-bg); color:var(--green-fg); border:1px solid var(--primary); }
.flash-error   { background:var(--red-bg);   color:var(--red-fg);   border:1px solid var(--red); }

/* ── Log box ─────────────────────────────────────────────────── */
.log-box {
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius);
  padding:1rem; font-family:"Fira Code",monospace; font-size:11.5px; line-height:1.6;
  overflow:auto; max-height:520px; color:var(--text-muted); white-space:pre-wrap; word-break:break-all;
}
.log-info    { color:var(--blue-fg); }
.log-warning { color:var(--yellow-fg); }
.log-error   { color:var(--red-fg); }

/* ── Auth ────────────────────────────────────────────────────── */
.auth-screen { display:flex; align-items:center; justify-content:center; min-height:100vh; background:var(--bg); }
.auth-card {
  background:var(--bg-2); border:1px solid var(--border); border-radius:12px;
  padding:2.25rem; width:360px; box-shadow:var(--shadow-md);
  animation:fadeIn .3s ease;
}
.auth-header { text-align:center; margin-bottom:1.5rem; }
.auth-header svg { width:32px; height:32px; color:var(--primary); margin-bottom:.75rem; }
.auth-header h1 { font-size:1.2rem; font-weight:700; }
.auth-header p  { color:var(--text-muted); font-size:13px; margin-top:.25rem; }
.auth-form label {
  display:flex; flex-direction:column; gap:.35rem; margin-bottom:.9rem;
  font-size:11px; font-weight:600; color:var(--text-muted);
  text-transform:uppercase; letter-spacing:.05em;
}
.btn-block { width:100%; justify-content:center; padding:.65rem; font-size:14px; }

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
  display:inline-block; width:14px; height:14px;
  border:2px solid rgba(255,255,255,.25); border-top-color:currentColor;
  border-radius:50%; animation:spin .7s linear infinite;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  WhatsApp Chat Shell                                    ║
   ╚══════════════════════════════════════════════════════════╝ */

.container.full { max-width:100%; padding:0; }

.wa-shell {
  display:grid; grid-template-columns:340px 1fr;
  height:calc(100vh - 57px);
  background:var(--bg);
}

/* ── WA Sidebar ──────────────────────────────────────────── */
.wa-sidebar {
  display:flex; flex-direction:column;
  background:var(--sidebar-bg);
  border-right:1px solid var(--sidebar-border);
  overflow:hidden;
}
.wa-sidebar-header {
  display:flex; align-items:center; gap:.6rem;
  padding:.85rem 1rem; background:var(--bg-2);
  border-bottom:1px solid var(--sidebar-border); flex-shrink:0;
}
.wa-sidebar-title { font-size:15px; font-weight:700; flex:1; color:var(--text); }
.wa-sidebar-badge {
  background:var(--primary); color:var(--primary-fg);
  font-size:11px; font-weight:700; border-radius:10px; padding:1px 8px;
}

/* WA Search */
.wa-search {
  display:flex; align-items:center; gap:.5rem;
  padding:.55rem .75rem; background:var(--sidebar-bg);
  border-bottom:1px solid var(--sidebar-border); flex-shrink:0;
}
.wa-search svg { width:15px; height:15px; color:var(--text-faded); flex-shrink:0; }
.wa-search input {
  flex:1; background:var(--bg-3); border:none; border-radius:20px;
  padding:.4rem .85rem; font-size:13px; color:var(--text); outline:none;
}
.wa-search input::placeholder { color:var(--text-faded); }

/* WA Conversation list */
.wa-conv-list { flex:1; overflow-y:auto; }
.wa-conv-list::-webkit-scrollbar { width:4px; }
.wa-conv-list::-webkit-scrollbar-track { background:transparent; }
.wa-conv-list::-webkit-scrollbar-thumb { background:var(--bg-3); border-radius:4px; }
.wa-empty-list { padding:1.5rem; text-align:center; font-size:13px; color:var(--text-faded); }

.wa-conv-item {
  display:flex; align-items:center; gap:.75rem;
  padding:.75rem 1rem; cursor:pointer;
  border-bottom:1px solid var(--sidebar-border);
  transition:background var(--transition);
  animation:fadeIn .2s ease both;
}
.wa-conv-item:hover { background:var(--sidebar-hover); }
.wa-conv-item.active {
  background:var(--sidebar-active);
  border-left:3px solid var(--primary);
}
.wa-conv-info { flex:1; min-width:0; }
.wa-conv-top {
  display:flex; justify-content:space-between;
  align-items:baseline; margin-bottom:.2rem;
}
.wa-conv-name {
  font-size:13px; font-weight:600;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:160px;
  color:var(--text);
}
.wa-conv-time { font-size:11px; color:var(--text-faded); white-space:nowrap; }
.wa-conv-preview {
  font-size:12px; color:var(--text-muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:200px;
}
.wa-unread-dot {
  width:9px; height:9px; border-radius:50%;
  background:var(--primary); flex-shrink:0;
}

/* WA Avatar */
.wa-avatar {
  width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; font-weight:700; flex-shrink:0; text-transform:uppercase;
}
.wa-avatar-marina { background:#005c4b; color:#e9feea; }
.wa-avatar-lead   { background:#1f6feb; color:#fff; }
.wa-avatar-sm { width:32px; height:32px; font-size:12px; }

/* ── WA Chat area ────────────────────────────────────────── */
.wa-chat { display:flex; flex-direction:column; overflow:hidden; background:var(--bg); }

.wa-chat-header {
  display:flex; align-items:center; gap:.75rem;
  padding:.65rem 1.15rem; background:var(--bg-2);
  border-bottom:1px solid var(--border); flex-shrink:0;
  box-shadow:var(--shadow-sm);
}
.wa-chat-header-info { flex:1; }
.wa-chat-contact-name { font-size:14px; font-weight:700; color:var(--text); }
.wa-chat-status {
  font-size:11px; color:var(--text-muted);
  display:flex; align-items:center; gap:.3rem; margin-top:.1rem;
}
.wa-header-actions { display:flex; align-items:center; gap:.5rem; }

/* WA Messages */
.wa-messages-bg {
  flex:1; overflow-y:auto; padding:1rem;
  background-color:var(--chat-bg);
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
}
.wa-messages-bg::-webkit-scrollbar { width:5px; }
.wa-messages-bg::-webkit-scrollbar-track { background:transparent; }
.wa-messages-bg::-webkit-scrollbar-thumb { background:var(--bg-3); border-radius:4px; }

.wa-messages { display:flex; flex-direction:column; gap:.25rem; }

/* Day separator */
.wa-day { text-align:center; margin:.85rem 0; }
.wa-day span {
  background:var(--bg-2); border:1px solid var(--border);
  border-radius:8px; padding:.2rem .8rem;
  font-size:11px; color:var(--text-muted); box-shadow:var(--shadow-sm);
}

/* Bubbles */
.wa-msg { display:flex; margin:1px 0; }
.wa-msg-in  { justify-content:flex-start; }
.wa-msg-out { justify-content:flex-end; }

.wa-bubble {
  max-width:66%; border-radius:var(--radius); padding:.45rem .7rem .3rem;
  position:relative; word-break:break-word;
  box-shadow:var(--shadow-sm);
}
.wa-msg-in  .wa-bubble {
  background:var(--bubble-in); border:1px solid var(--bubble-in-b);
  border-top-left-radius:0;
}
.wa-msg-out .wa-bubble {
  background:var(--bubble-out); border:1px solid var(--bubble-out-b);
  border-top-right-radius:0;
  color:#e9feea;
}
[data-theme="light"] .wa-msg-out .wa-bubble { color:#111b21; }

/* Tails */
.wa-msg-in .wa-bubble::before {
  content:''; position:absolute; top:0; left:-7px;
  border:7px solid transparent;
  border-right-color:var(--bubble-in-b);
  border-top-color:var(--bubble-in-b);
}
.wa-msg-out .wa-bubble::after {
  content:''; position:absolute; top:0; right:-7px;
  border:7px solid transparent;
  border-left-color:var(--bubble-out);
  border-top-color:var(--bubble-out);
}

.wa-bubble-text { font-size:13px; line-height:1.5; white-space:pre-wrap; }
.wa-bubble-meta {
  display:flex; justify-content:flex-end; align-items:center;
  gap:.3rem; margin-top:.15rem;
}
.wa-bubble-time { font-size:10px; opacity:.6; }

/* WA Input bar */
.wa-input-bar {
  display:flex; align-items:center; gap:.75rem;
  padding:.65rem 1.15rem; background:var(--bg-2);
  border-top:1px solid var(--border); flex-shrink:0;
}

/* WA No chat */
.wa-no-chat {
  flex:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:1rem; color:var(--text-faded);
  background:var(--chat-bg);
}
.wa-no-chat h2 { font-size:16px; font-weight:600; color:var(--text-muted); }
.wa-no-chat p  { font-size:13px; }

/* ── Kanban ───────────────────────────────────────────────── */
.kanban-board {
  display:grid; grid-template-columns:repeat(5,1fr);
  gap:.85rem; align-items:start;
}
.kanban-col {
  background:var(--bg-2); border:1px solid var(--border);
  border-radius:10px; overflow:hidden; animation:fadeIn .25s ease both;
}
.kanban-col-header {
  padding:.6rem .85rem; background:var(--bg-3);
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
}
.kanban-count {
  font-family:"Fira Code",monospace; font-size:11px; font-weight:700;
  color:var(--text-muted); background:var(--bg-2); border:1px solid var(--border);
  border-radius:10px; padding:1px 7px;
}
.kanban-cards { padding:.55rem; display:flex; flex-direction:column; gap:.45rem; min-height:80px; }
.kanban-card {
  background:var(--bg); border:1px solid var(--border);
  border-radius:7px; padding:.6rem .75rem;
  transition:border-color var(--transition), box-shadow var(--transition);
  animation:fadeIn .2s ease both;
}
.kanban-card:hover { border-color:var(--primary); box-shadow:0 0 0 1px var(--primary); }
.kanban-card-name { font-size:13px; font-weight:600; margin-bottom:.2rem; }
.kanban-card-contact { font-size:11px; color:var(--text-muted); margin-bottom:.15rem; }
.kanban-card-date {
  font-size:10px; color:var(--text-faded);
  display:flex; align-items:center; gap:.25rem; margin-top:.25rem;
}
.kanban-empty { font-size:12px; color:var(--text-faded); text-align:center; padding:1rem 0; }

/* ── Mobile ───────────────────────────────────────────────── */
@media(max-width:680px) {
  .nav-toggle { display:inline-flex; }
  .nav {
    display:none; position:fixed; top:0; left:0; right:0; bottom:0;
    background:var(--bg-2); flex-direction:column;
    padding:4.5rem 1.5rem 2rem; z-index:49; gap:.25rem; margin:0;
  }
  .nav.open { display:flex; animation:slideInLeft .2s ease; }
  .nav a { font-size:16px; padding:.75rem 1rem; }
  .brand-sub { display:none; }
  .row-2 { grid-template-columns:1fr; }
  .kpis { grid-template-columns:1fr 1fr; }
  .wa-shell { grid-template-columns:1fr; }
  .wa-sidebar { position:fixed; inset:57px 0 0 0; z-index:40; transform:translateX(-100%); transition:transform .2s ease; }
  .wa-sidebar.open { transform:translateX(0); }
  .kanban-board { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:480px) {
  .kanban-board { grid-template-columns:1fr; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.mac-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-faded);
  background: var(--bg-2);
  flex-shrink: 0;
}
.mac-footer a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.mac-footer a:hover { color: var(--primary-h); }
.mac-footer-sep { color: var(--border); }

/* Avatar com foto do contato */
.wa-avatar-img {
  object-fit: cover;
  border: none;
}

