/* ============================================================
   TECNICOSCERCA — ESTILOS PRINCIPALES
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --primary:       #4E7A5C;
  --primary-light: #E3EBE4;
  --primary-dark:  #33503E;
  --accent:        #3A3833;
  --accent2:       #3E6B4F;
  --warning:       #B8914A;
  --danger:        #A85B46;
  --bg:            #F7F6F2;
  --surface:       #FFFFFF;
  --surface2:      #E8E4DC;
  --border:        rgba(33,32,28,.08);
  --text:          #21201C;
  --text2:         #3A3833;
  --text3:         #6E6B64;
  --text4:         #9A958C;
  --sidebar-w:     240px;
  --header-h:      64px;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 1px 2px rgba(33,32,28,.04), 0 12px 32px rgba(33,32,28,.07);
  --shadow-lg:     0 2px 4px rgba(33,32,28,.05), 0 24px 56px rgba(33,32,28,.13);
  --transition:    .22s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Manrope', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* ── ANIMACIONES ─────────────────────────────────────────── */
@keyframes fadeIn    { from { opacity:0; transform:translateY(12px) } to { opacity:1; transform:none } }
@keyframes bounceIn  { 0%{transform:scale(.88);opacity:0} 80%{transform:scale(1.03)} 100%{transform:scale(1);opacity:1} }
@keyframes spin      { to { transform: rotate(360deg) } }
@keyframes shimmer   { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes chatPop   { from{opacity:0;transform:scale(.92) translateY(8px)} to{opacity:1;transform:none} }
@keyframes typingDot { 0%,80%,100%{transform:scale(.6)} 40%{transform:scale(1)} }
@keyframes toastIn   { from{transform:translateX(120%);opacity:0} to{transform:none;opacity:1} }
@keyframes gradShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar       { width:5px; height:5px }
::-webkit-scrollbar-track { background:transparent }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:10px }
::-webkit-scrollbar-thumb:hover { background:var(--text4) }

/* ── HELPERS ─────────────────────────────────────────────── */
.hidden  { display: none !important }
.visible { opacity: 1 !important }
.setup-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  background: #111827; color: #FDE68A; padding: 12px 20px;
  font-size: 13px; display: flex; gap: 12px; align-items: flex-start;
  line-height: 1.5;
}
.setup-banner code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 4px; color: #fff; }
.chatbot-fab.hidden { display: none !important; }

/* ── APP SHELL ───────────────────────────────────────────── */
.app-screen  { position:fixed; inset:0; display:flex; flex-direction:column; }
.app-body    { display:flex; flex:1; overflow:hidden; }
.main-content{ flex:1; overflow-y:auto; padding:24px; display:flex; flex-direction:column; }

/* ── HEADER ──────────────────────────────────────────────── */
.app-header {
  height:var(--header-h); background:var(--surface); border-bottom:1px solid var(--border);
  display:flex; align-items:center; padding:0 20px; gap:16px;
  z-index:100; flex-shrink:0; box-shadow:0 1px 0 var(--border);
}
.menu-toggle {
  display:none; border:none; background:none; font-size:20px; cursor:pointer;
  padding:6px; color:var(--text3); border-radius:8px; transition:var(--transition);
}
.menu-toggle:hover { background:var(--bg); color:var(--text); }
.header-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.header-logo-icon {
  width:36px; height:36px; border-radius:10px;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:16px;
}
.header-logo span { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:16px; color:var(--text); }
.header-search-wrapper { flex:1; max-width:440px; position:relative; }
.header-search {
  width:100%; padding:9px 14px 9px 38px; border:1.5px solid var(--border);
  border-radius:100px; font-size:13px; font-family:inherit;
  background:var(--bg); color:var(--text); outline:none; transition:border-color var(--transition);
}
.header-search:focus { border-color:var(--primary); background:var(--surface); }
.search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--text4); font-size:14px; }
.header-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  width:var(--sidebar-w); background:var(--surface); border-right:1px solid var(--border);
  display:flex; flex-direction:column; overflow-y:auto; flex-shrink:0;
  transition:transform var(--transition); scrollbar-width:none;
}
.sidebar::-webkit-scrollbar { display:none }
.sidebar-section { padding:16px 12px 8px; }
.sidebar-label   { font-size:10px; font-weight:700; color:var(--text4); text-transform:uppercase; letter-spacing:1px; padding:0 8px; margin-bottom:6px; }
.nav-item {
  display:flex; align-items:center; gap:10px; padding:9px 10px;
  border-radius:var(--radius-sm); cursor:pointer; transition:var(--transition);
  color:var(--text3); font-size:13.5px; font-weight:500; margin-bottom:2px;
}
.nav-item i    { width:18px; text-align:center; font-size:15px; }
.nav-item:hover{ background:var(--bg); color:var(--text); }
.nav-item.active { background:rgba(33,32,28,.08); color:var(--primary); font-weight:600; }
.nav-item.active i { color:var(--primary); }
.nav-item .badge {
  margin-left:auto; background:var(--danger); color:#fff;
  border-radius:100px; padding:1px 7px; font-size:10px; font-weight:700;
}
.sidebar-profile { padding:16px 12px; margin-top:auto; border-top:1px solid var(--border); }
.sidebar-user    { display:flex; align-items:center; gap:10px; padding:8px; border-radius:var(--radius-sm); cursor:pointer; transition:var(--transition); }
.sidebar-user:hover { background:var(--bg); }
.sidebar-user-info { flex:1; min-width:0; }
.sidebar-user-name { font-size:13px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-user-role { font-size:11px; color:var(--text3); }

/* ── STATS GRID ──────────────────────────────────────────── */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin-bottom:24px; }
.stat-card  {
  background:var(--surface); border-radius:var(--radius); padding:20px;
  box-shadow:var(--shadow); border:1px solid var(--border);
  display:flex; flex-direction:column; gap:8px; transition:var(--transition);
}
.stat-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.stat-icon  { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:18px; }
.stat-value { font-family:'Space Grotesk',sans-serif; font-size:28px; font-weight:700; color:var(--text); }
.stat-label { font-size:12.5px; color:var(--text3); font-weight:500; }
.stat-change{ font-size:11.5px; font-weight:600; }
.stat-change.up  { color:var(--accent2); }
.stat-change.down{ color:var(--danger); }

/* ── CONTENT GRID ────────────────────────────────────────── */
.content-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.workers-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }

/* ── CARDS ───────────────────────────────────────────────── */
.card { background:var(--surface); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); border:1px solid var(--border); }
.card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.card-title  { font-size:14px; font-weight:700; color:var(--text); }
.card-action { font-size:12px; color:var(--primary); cursor:pointer; font-weight:600; }

/* ── PAGE ────────────────────────────────────────────────── */
.page-header  { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; flex-wrap:wrap; gap:12px; }
.page-title   { font-family:'Space Grotesk',sans-serif; font-size:22px; font-weight:700; color:var(--text); }
.page-subtitle{ font-size:13px; color:var(--text3); margin-top:2px; }

/* ── WORKER CARD ─────────────────────────────────────────── */
.worker-card {
  background:var(--surface); border-radius:var(--radius); padding:20px;
  box-shadow:var(--shadow); border:1px solid var(--border);
  transition:var(--transition); cursor:pointer;
}
.worker-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); border-color:var(--primary-light); }
.worker-card-header { display:flex; align-items:flex-start; gap:14px; margin-bottom:12px; }
.worker-avatar  { width:52px; height:52px; border-radius:14px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:20px; font-weight:700; color:#fff; }
.worker-info    { flex:1; min-width:0; }
.worker-name    { font-size:15px; font-weight:700; color:var(--text); }
.worker-trade   { font-size:12px; color:var(--text3); margin-top:2px; }
.worker-stars   { display:flex; align-items:center; gap:3px; margin-bottom:10px; }
.worker-stars span { font-size:12px; color:var(--text3); margin-left:4px; }
.worker-tags    { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.worker-footer  { display:flex; align-items:center; justify-content:space-between; }
.worker-price   { font-size:13px; font-weight:700; color:var(--text); }
.worker-price span { font-size:11px; font-weight:400; color:var(--text4); }

/* ── AVAILABILITY ─────────────────────────────────────────── */
.avail-dot      { width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:4px; }
.avail-dot.available { background:var(--accent2); }
.avail-dot.busy      { background:var(--danger); }
.avail-dot.partial   { background:var(--warning); }
.avail-text     { font-size:11.5px; color:var(--text3); }

/* ── BADGES ──────────────────────────────────────────────── */
.verified-badge {
  display:inline-flex; align-items:center; gap:4px;
  background:rgba(107,115,108,.12); color:#4A524B;
  border-radius:100px; padding:3px 8px; font-size:10.5px; font-weight:700; margin-top:4px;
}
.role-badge  { padding:4px 10px; border-radius:100px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; }
.role-badge.worker { background:rgba(168,152,120,.16); color:#6B5E45; }
.role-badge.client { background:rgba(111,111,107,.14);  color:#4A4A47; }
.role-badge.admin  { background:rgba(33,32,28,.12);  color:var(--primary-dark); }

/* ── STATUS PILLS ────────────────────────────────────────── */
.status-pill  { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:100px; font-size:11px; font-weight:700; }
.status-pill.verified { background:rgba(107,115,108,.12); color:#4A524B; }
.status-pill.pending  { background:rgba(168,152,120,.16); color:#6B5E45; }
.status-pill.rejected { background:rgba(143,106,106,.14);  color:#6B4545; }
.status-pill.active   { background:rgba(111,111,107,.14);  color:#4A4A47; }
.status-pill.inactive { background:rgba(143,106,106,.14);  color:#6B4545; }

.bar-row { display:flex; align-items:center; gap:10px; margin:8px 0; }
.bar-label { width:118px; font-size:12px; color:var(--text3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bar-track { flex:1; height:10px; background:var(--bg); border-radius:100px; overflow:hidden; }
.bar-fill { height:100%; border-radius:100px; min-width:4px; }
.bar-val { width:36px; font-size:12px; font-weight:700; text-align:right; }
.filter-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.filter-tab {
  border:1px solid var(--border); background:var(--surface); color:var(--text3);
  border-radius:100px; padding:6px 14px; font-size:12px; font-weight:600; cursor:pointer;
}
.filter-tab.active { background:rgba(33,32,28,.1); color:var(--primary); border-color:transparent; }

/* ── TAGS / CHIPS ────────────────────────────────────────── */
.tag        { padding:3px 10px; border-radius:100px; font-size:11px; font-weight:600; background:var(--bg); color:var(--text3); border:1px solid var(--border); }
.tag.primary{ background:rgba(33,32,28,.08); color:var(--primary); border-color:rgba(33,32,28,.2); }
.info-chip  { display:inline-flex; align-items:center; gap:6px; background:var(--bg); border:1px solid var(--border); border-radius:100px; padding:5px 12px; font-size:12px; font-weight:500; color:var(--text2); }

/* ── FILTERS ─────────────────────────────────────────────── */
.filters-bar { display:flex; align-items:center; gap:10px; margin-bottom:20px; flex-wrap:wrap; }
.filter-chip {
  padding:6px 14px; border-radius:100px; font-size:12.5px; font-weight:600;
  border:1.5px solid var(--border); background:var(--surface); color:var(--text3); cursor:pointer; transition:var(--transition);
}
.filter-chip:hover  { border-color:var(--primary-light); color:var(--primary); }
.filter-chip.active { border-color:var(--primary); background:rgba(33,32,28,.08); color:var(--primary); }
.filter-select { padding:7px 12px; border:1.5px solid var(--border); border-radius:100px; font-size:12.5px; font-family:inherit; color:var(--text2); background:var(--surface); outline:none; cursor:pointer; }

/* ── NOTIF PANEL ─────────────────────────────────────────── */
.notif-btn   { width:38px; height:38px; border-radius:10px; border:1.5px solid var(--border); background:var(--surface); cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--text3); position:relative; transition:var(--transition); }
.notif-btn:hover { border-color:var(--primary-light); color:var(--primary); }
.notif-badge {
  position:absolute; top:-4px; right:-4px; width:18px; height:18px;
  background:var(--danger); border-radius:50%; font-size:10px; font-weight:700;
  color:#fff; display:flex; align-items:center; justify-content:center; border:2px solid var(--surface);
}
.notif-panel {
  position:fixed; top:var(--header-h); right:0; width:min(360px, calc(100vw - 8px));
  background:var(--surface); border-left:1px solid var(--border);
  height:calc(100vh - var(--header-h)); overflow-y:auto; z-index:200;
  transform:translateX(100%); transition:transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow:-8px 0 32px rgba(0,0,0,.1);
}
.notif-panel.open { transform:translateX(0); }
.notif-panel-header { padding:20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.notif-item { padding:14px 20px; border-bottom:1px solid var(--border); cursor:pointer; transition:var(--transition); display:flex; gap:12px; align-items:flex-start; }
.notif-item:hover   { background:var(--bg); }
.notif-item.unread  { background:rgba(33,32,28,.04); border-left:3px solid var(--primary); }
.notif-icon-wrap    { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.notif-title { font-size:13px; font-weight:600; color:var(--text); }
.notif-desc  { font-size:12px; color:var(--text3); margin-top:2px; line-height:1.4; }

/* ── USER AVATAR ─────────────────────────────────────────── */
.user-avatar {
  width:38px; height:38px; border-radius:10px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:15px; color:#fff; flex-shrink:0;
  border:2px solid rgba(33,32,28,.2); overflow:hidden;
}

/* ── DROPDOWN ────────────────────────────────────────────── */
.dropdown      { position:relative; }
.dropdown-menu {
  position:absolute; top:calc(100% + 8px); right:0; min-width:180px;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm);
  box-shadow:var(--shadow-lg); z-index:500; overflow:hidden;
  transform-origin:top right; transform:scale(.95); opacity:0;
  transition:transform .15s, opacity .15s; pointer-events:none;
}
.dropdown.open .dropdown-menu { transform:scale(1); opacity:1; pointer-events:all; }
.dropdown-item  { padding:10px 16px; font-size:13px; cursor:pointer; display:flex; align-items:center; gap:10px; color:var(--text2); transition:background .15s; }
.dropdown-item:hover { background:var(--bg); }
.dropdown-item.danger{ color:var(--danger); }
.dropdown-divider    { height:1px; background:var(--border); }

/* ── CHAT ────────────────────────────────────────────────── */
.chat-layout    { display:flex; flex:1; gap:16px; height:calc(100vh - var(--header-h) - 100px); }
.chat-list      { width:300px; background:var(--surface); border-radius:var(--radius); border:1px solid var(--border); overflow-y:auto; flex-shrink:0; }
.chat-list-item { padding:14px 16px; border-bottom:1px solid var(--border); cursor:pointer; transition:var(--transition); display:flex; align-items:center; gap:12px; }
.chat-list-item:hover  { background:var(--bg); }
.chat-list-item.active { background:rgba(33,32,28,.06); border-left:3px solid var(--primary); }
.chat-window    { flex:1; background:var(--surface); border-radius:var(--radius); border:1px solid var(--border); display:flex; flex-direction:column; overflow:hidden; }
.chat-header    { padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:12px; flex-shrink:0; }
.chat-messages  { flex:1; padding:20px; overflow-y:auto; display:flex; flex-direction:column; gap:14px; }
.msg { max-width:72%; animation:chatPop .25s ease; }
.msg.sent     { align-self:flex-end; }
.msg.received { align-self:flex-start; }
.msg-bubble { padding:11px 15px; border-radius:16px; font-size:13.5px; line-height:1.5; }
.msg.received .msg-bubble { background:var(--bg); color:var(--text); border-bottom-left-radius:4px; }
.msg.sent .msg-bubble     { background:var(--primary); color:#fff; border-bottom-right-radius:4px; }
.msg-time { font-size:10.5px; color:var(--text4); margin-top:4px; }
.msg.sent .msg-time       { text-align:right; }
.chat-input-bar { padding:16px 20px; border-top:1px solid var(--border); display:flex; gap:10px; align-items:flex-end; flex-shrink:0; }
.chat-input { flex:1; padding:10px 14px; border:1.5px solid var(--border); border-radius:var(--radius-sm); font-size:13.5px; font-family:inherit; resize:none; outline:none; transition:border-color var(--transition); max-height:120px; min-height:40px; }
.chat-input:focus { border-color:var(--primary); }

/* ── CHART ───────────────────────────────────────────────── */
.chart-container { width:100%; height:180px; position:relative; overflow:hidden; }

/* ── REVIEWS ─────────────────────────────────────────────── */
.review-item   { padding:16px 0; border-bottom:1px solid var(--border); }
.review-item:last-child { border-bottom:none; }
.review-header { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.review-avatar { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:#fff; }
.review-name   { font-size:13px; font-weight:600; }
.review-date   { font-size:11px; color:var(--text4); }
.review-text   { font-size:13px; color:var(--text2); line-height:1.6; }

/* ── ADMIN TABLE ─────────────────────────────────────────── */
.admin-table    { width:100%; border-collapse:collapse; }
.admin-table th { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text4); padding:10px 14px; text-align:left; border-bottom:1px solid var(--border); }
.admin-table td { padding:12px 14px; font-size:13px; border-bottom:1px solid var(--border); }
.admin-table tr:hover td { background:var(--bg); }

/* ── TOAST ───────────────────────────────────────────────── */
.toast-container { position:fixed; top:80px; right:20px; z-index:9999; display:flex; flex-direction:column; gap:8px; }
.toast {
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:12px 16px; min-width:280px; box-shadow:var(--shadow-lg);
  display:flex; align-items:center; gap:12px; font-size:13px;
  animation:toastIn .35s ease; transition:opacity .3s, transform .3s;
}
.toast.success { border-left:3px solid var(--accent2); }
.toast.error   { border-left:3px solid var(--danger); }
.toast.info    { border-left:3px solid var(--primary); }
.toast.success i { color:var(--accent2); }
.toast.error i   { color:var(--danger); }
.toast.info i    { color:var(--primary); }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:800;
  display:flex; align-items:center; justify-content:center; padding:20px;
  backdrop-filter:blur(4px);
}
.modal {
  background:var(--surface); border-radius:20px; padding:32px;
  width:100%; max-width:520px; box-shadow:0 32px 80px rgba(0,0,0,.25);
  animation:bounceIn .35s ease; max-height:90vh; overflow-y:auto;
}
.modal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.modal-title  { font-size:18px; font-weight:700; font-family:'Space Grotesk',sans-serif; }
.modal-close  { width:32px; height:32px; border:none; background:var(--bg); border-radius:8px; cursor:pointer; font-size:16px; color:var(--text3); display:flex; align-items:center; justify-content:center; }
.worker-modal-header { display:flex; gap:16px; margin-bottom:20px; }
.worker-modal-avatar { width:72px; height:72px; border-radius:18px; display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:700; color:#fff; flex-shrink:0; }

/* ── CHATBOT ─────────────────────────────────────────────── */
.chatbot-fab {
  position:fixed; bottom:28px; right:28px; z-index:500;
  width:56px; height:56px; border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  color:#fff; border:none; cursor:pointer; font-size:22px;
  box-shadow:0 8px 24px rgba(33,32,28,.45);
  display:flex; align-items:center; justify-content:center;
  transition:transform .2s, box-shadow .2s;
}
.chatbot-fab:hover { transform:scale(1.08); box-shadow:0 12px 32px rgba(33,32,28,.55); }
.chatbot-window {
  position:fixed; bottom:96px; right:28px; z-index:500;
  width:360px; max-height:520px; background:var(--surface);
  border-radius:20px; box-shadow:0 20px 60px rgba(0,0,0,.18);
  border:1px solid var(--border); display:flex; flex-direction:column;
  transform:scale(.92) translateY(12px); opacity:0;
  transition:transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s;
  pointer-events:none; overflow:hidden;
}
.chatbot-window.open { transform:scale(1) translateY(0); opacity:1; pointer-events:all; }
.chatbot-header {
  padding:16px 18px; background:linear-gradient(135deg,var(--primary),var(--accent));
  color:#fff; display:flex; align-items:center; gap:12px; flex-shrink:0;
}
.chatbot-avatar     { width:40px; height:40px; border-radius:12px; background:rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; font-size:18px; }
.chatbot-bot-name   { font-size:14px; font-weight:700; }
.chatbot-status     { font-size:11px; opacity:.85; display:flex; align-items:center; gap:5px; }
.chatbot-status-dot { width:6px; height:6px; border-radius:50%; background:#4ade80; }
.chatbot-messages   { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; scrollbar-width:none; }
.chatbot-messages::-webkit-scrollbar { display:none }
.bot-msg, .user-msg { animation:chatPop .25s ease; }
.bot-msg  { align-self:flex-start; max-width:85%; }
.user-msg { align-self:flex-end;   max-width:85%; }
.bot-bubble  { background:var(--bg); color:var(--text); padding:10px 14px; border-radius:16px 16px 16px 4px; font-size:13px; line-height:1.5; }
.user-bubble { background:var(--primary); color:#fff; padding:10px 14px; border-radius:16px 16px 4px 16px; font-size:13px; line-height:1.5; }
.typing-indicator     { display:flex; gap:5px; padding:12px 14px; background:var(--bg); border-radius:16px 16px 16px 4px; width:fit-content; }
.typing-indicator span{ width:7px; height:7px; border-radius:50%; background:var(--text4); animation:typingDot 1.4s infinite; }
.typing-indicator span:nth-child(2) { animation-delay:.2s }
.typing-indicator span:nth-child(3) { animation-delay:.4s }
.chatbot-quick-replies{ display:flex; gap:6px; flex-wrap:wrap; padding:4px 0 8px; }
.quick-reply {
  padding:5px 12px; border:1.5px solid var(--primary-light); border-radius:100px;
  font-size:12px; font-weight:600; color:var(--primary); cursor:pointer;
  background:rgba(33,32,28,.04); transition:var(--transition);
}
.quick-reply:hover { background:rgba(33,32,28,.1); }
.chatbot-input-bar { padding:12px 14px; border-top:1px solid var(--border); display:flex; gap:8px; flex-shrink:0; }
.chatbot-input { flex:1; padding:9px 12px; border:1.5px solid var(--border); border-radius:10px; font-size:13px; font-family:inherit; outline:none; transition:border-color var(--transition); }
.chatbot-input:focus { border-color:var(--primary); }
.chatbot-send { width:36px; height:36px; background:var(--primary); color:#fff; border:none; border-radius:10px; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:14px; transition:var(--transition); }
.chatbot-send:hover { background:var(--primary-dark); }

/* ── MISC ────────────────────────────────────────────────── */
.progress-bar  { height:6px; background:var(--bg); border-radius:100px; overflow:hidden; }
.progress-fill { height:100%; border-radius:100px; background:linear-gradient(90deg,var(--primary),var(--accent)); transition:width .6s ease; }
.empty-state   { text-align:center; padding:48px 20px; color:var(--text3); }
.empty-state i { font-size:48px; margin-bottom:12px; opacity:.4; display:block; }
.empty-state h3{ font-size:16px; font-weight:700; color:var(--text2); margin-bottom:6px; }
.empty-state p { font-size:13px; }
.skeleton { background:linear-gradient(90deg,var(--bg) 25%,var(--border) 50%,var(--bg) 75%); background-size:200% 100%; animation:shimmer 1.5s infinite; border-radius:var(--radius-sm); }
.spinner  { width:16px; height:16px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; display:inline-block; }
.verify-banner {
  background:rgba(245,158,11,.08); border:1px solid rgba(245,158,11,.3);
  border-radius:var(--radius-sm); padding:12px 16px;
  display:flex; align-items:center; gap:10px; margin-bottom:20px; font-size:13px; color:#92400E;
}
.verify-banner a { color:var(--warning); font-weight:700; cursor:pointer; text-decoration:underline; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width:900px) {
  .sidebar { position:fixed; top:var(--header-h); left:0; bottom:0; z-index:300; transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); box-shadow:8px 0 32px rgba(0,0,0,.12); }
  .content-grid { grid-template-columns:1fr; }
  .chat-list    { display:none; }
  .menu-toggle  { display:flex !important; }
}
@media (max-width:600px) {
  .stats-grid   { grid-template-columns:1fr 1fr; }
  .workers-grid { grid-template-columns:1fr; }
  .main-content { padding:14px; }
  .app-header   { padding:0 10px; gap:8px; }
  .header-logo  { gap:6px; }
  .header-logo span { display:none; }
  .header-search-wrapper { max-width:150px; }
  .header-search { padding:8px 10px 8px 30px; font-size:12px; }
  .header-actions { gap:4px; }
}
