/* ============================================================
   PROVENNCE AUTOMATIONS — dashboard.css
   Client Portal Styles
   ============================================================ */
:root {
  --black:  #080808;
  --dark:   #111111;
  --dark2:  #1a1a1a;
  --dark3:  #222222;
  --lime:   #d1ff00;
  --lime2:  #c5f000;
  --white:  #ffffff;
  --gray:   #686868;
  --gray2:  #3d3d3d;
  --border: rgba(255,255,255,.07);
  --sidebar-w: 220px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
body.light-mode {
  --black: #f4f5f7;
  --dark: #ffffff;
  --dark2: #eef0f4;
  --dark3: #e0e3ea;
  --lime: #5a7a00;
  --lime2: #4a6500;
  --white: #0a0a0a;
  --gray: #555555;
  --gray2: #777777;
  --border: rgba(0,0,0,0.1);
}

/* Fix every hardcoded rgba(255,255,255,...) color in light mode */
body.light-mode .snav-item { color: rgba(0,0,0,.5); }
body.light-mode .snav-item:hover { color: rgba(0,0,0,.85); }
body.light-mode .snav-item.active { background: rgba(80,110,0,.1); color: var(--lime); }
body.light-mode .ss-uptime { color: rgba(0,0,0,.4); }
body.light-mode .login-back { color: rgba(0,0,0,.3); }
body.light-mode .login-field input { color: #0a0a0a; }
body.light-mode .topbar-clock { color: rgba(0,0,0,.5); }
body.light-mode .topbar-notif { color: rgba(0,0,0,.6); }
body.light-mode .topbar-greeting { color: var(--white); }
body.light-mode .topbar-company { color: rgba(0,0,0,.45); }
body.light-mode .topbar-avatar { background: linear-gradient(135deg,#3a6a1a,#5a9a2a); }
body.light-mode .topbar-theme { color: rgba(0,0,0,.7); }
body.light-mode .topbar-theme:hover { color: var(--lime); }
body.light-mode .sec-title { color: #0a0a0a; }
body.light-mode .sec-date { color: rgba(0,0,0,.4); }
body.light-mode .filter-btn { color: rgba(0,0,0,.45); }
body.light-mode .stat-card { background: #fff; }
body.light-mode .stat-label { color: rgba(0,0,0,.45); }
body.light-mode .stat-num { color: #0a0a0a; }
body.light-mode .stat-change { color: var(--lime); }
body.light-mode .stat-icon { background: rgba(80,110,0,.08); }
body.light-mode .dash-card { background: #fff; border-color: rgba(0,0,0,.08); }
body.light-mode .dash-card:hover { border-color: rgba(0,0,0,.15); }
body.light-mode .dash-card-title { color: rgba(0,0,0,.7); }
body.light-mode .dash-card-link { color: rgba(0,0,0,.45); }
body.light-mode .dash-card-badge { background: rgba(80,110,0,.1); }
body.light-mode .bar { background: var(--lime); }
body.light-mode .bar--inactive { background: rgba(0,0,0,.12); }
body.light-mode .bar-group span { color: rgba(0,0,0,.4); }
body.light-mode .convo-name { color: #0a0a0a; }
body.light-mode .convo-last { color: rgba(0,0,0,.45); }
body.light-mode .convo-time { color: rgba(0,0,0,.3); }
body.light-mode .convo-item { border-color: rgba(0,0,0,.07); }
body.light-mode .ms-row { color: rgba(0,0,0,.6); border-color: rgba(0,0,0,.07); }
body.light-mode .ms-row strong { color: #0a0a0a; }
body.light-mode .bsd-label { color: var(--lime); }
body.light-mode .bsd-sub { color: rgba(0,0,0,.45); }
body.light-mode .bot-toggle-row { color: rgba(0,0,0,.5); }
body.light-mode .blog-item p { color: rgba(0,0,0,.6); }
body.light-mode .blog-item p span { color: rgba(0,0,0,.35); }
body.light-mode .donut-chart::after { background: #fff; color: var(--lime); }
body.light-mode .dl-item { color: rgba(0,0,0,.6); }
body.light-mode .dl-item strong { color: #0a0a0a; }
body.light-mode .plan-tier { color: #0a0a0a; }
body.light-mode .plan-price { color: #0a0a0a; }
body.light-mode .plan-price-note { color: rgba(0,0,0,.35); }
body.light-mode .plan-price-label { color: rgba(0,0,0,.4); }
body.light-mode .plan-features li { color: rgba(0,0,0,.7); }
body.light-mode .plan-next { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08); color: rgba(0,0,0,.55); }
body.light-mode .plan-next strong { color: #0a0a0a; }
body.light-mode .payment-item { background: #fff; color: rgba(0,0,0,.45); }
body.light-mode .payment-item strong { color: #0a0a0a; }
body.light-mode .support-chat-header { background: var(--dark2); }
body.light-mode .sch-name { color: #0a0a0a; }
body.light-mode .chat-msg-bot p { background: var(--dark2); color: rgba(0,0,0,.85); }
body.light-mode .chat-input { background: var(--dark2); color: #0a0a0a; }
body.light-mode .chat-input::placeholder { color: rgba(0,0,0,.3); }
body.light-mode .chat-quick { color: rgba(0,0,0,.6); border-color: rgba(0,0,0,.15); }
body.light-mode .chat-typing { background: var(--dark2); }
body.light-mode .chat-typing span { background: rgba(0,0,0,.3); }
body.light-mode .co-btn { background: var(--dark2); color: rgba(0,0,0,.7); }
body.light-mode .ticket-title { color: rgba(0,0,0,.65); }
body.light-mode .convo-table th { color: rgba(0,0,0,.4); border-color: rgba(0,0,0,.07); }
body.light-mode .convo-table td { color: rgba(0,0,0,.65); border-color: rgba(0,0,0,.04); }
body.light-mode .ct-name { color: #0a0a0a; }
body.light-mode .ct-time { color: rgba(0,0,0,.3); }
body.light-mode .ct-btn { color: rgba(0,0,0,.5); }
body.light-mode .upgrade-desc { color: rgba(0,0,0,.55); }
body.light-mode .upgrade-price { color: rgba(0,0,0,.5); }
body.light-mode .qa-btn { background: var(--dark2); color: rgba(0,0,0,.75); border-color: rgba(0,0,0,.1); }
body.light-mode .qa-btn:hover { background: var(--dark3); color: #0a0a0a; }
body.light-mode .bot-status-display { background: rgba(80,110,0,.05); border-color: rgba(80,110,0,.15); }
body.light-mode .login-hint { color: rgba(80,110,0,.6); }
body.light-mode .notif-item { border-color: rgba(0,0,0,.07) !important; }
body.light-mode .profile-dropdown { background: #fff; }
body.light-mode .pd-item { color: rgba(0,0,0,.7); }
body.light-mode .pd-item:hover { background: var(--dark2); color: #0a0a0a; }
body.light-mode .pd-divider { background: rgba(0,0,0,.08); }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--dark2) 25%, var(--dark3) 50%, var(--dark2) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s infinite;
  border-radius: 4px;
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-wrap {
  display: flex; flex-direction: column; gap: 20px; padding: 32px;
}
.sk-row { display: flex; gap: 1px; }
.sk-card {
  flex: 1; height: 100px; padding: 20px;
  background: var(--dark);
}
.sk-card .skeleton-title { height: 12px; width: 40%; margin-bottom: 16px; }
.sk-card .skeleton-num { height: 32px; width: 60%; }
.sk-card2 {
  flex: 1; min-height: 200px; padding: 24px;
  background: var(--dark); border: 1px solid var(--border);
}
.sk-card2 .skeleton-title { height: 12px; width: 50%; margin-bottom: 24px; }
.sk-card2 .skeleton-line { height: 10px; width: 100%; margin-bottom: 10px; }
.sk-card2 .skeleton-line:last-child { width: 60%; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-body); background: var(--black); color: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
.hidden { display: none !important; }
.lime-text { color: var(--lime); }
::selection { background: var(--lime); color: var(--black); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--lime); }

/* ─── LOGIN SCREEN ─── */
.login-screen {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  transition: opacity .5s ease, transform .5s ease;
}
.login-screen.exit {
  opacity: 0; transform: translateY(-20px); pointer-events: none;
}
.login-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.login-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(209,255,0,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(209,255,0,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.login-card {
  position: relative; z-index: 1;
  background: var(--dark);
  border: 1px solid var(--border);
  padding: 48px;
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; gap: 24px;
}
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 8px; }
.login-logo-main {
  font-family: var(--font-head); font-size: 52px; font-weight: 900;
  letter-spacing: -.04em; color: var(--white);
}
.login-logo-sub {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em;
  color: var(--lime); text-transform: uppercase;
}
.login-welcome {
  font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.5);
  text-align: center;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; flex-direction: column; gap: 8px; }
.login-field label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: rgba(255,255,255,.4);
}
.login-field input {
  background: var(--dark2); border: 1px solid var(--border);
  color: var(--white); font-family: var(--font-body); font-size: 14px;
  padding: 13px 16px; outline: none; width: 100%;
  transition: border-color .2s;
}
.login-field input:focus { border-color: var(--lime); }
.login-hint {
  font-family: var(--font-mono); font-size: 10px; color: rgba(209,255,0,.4);
  letter-spacing: .06em; text-align: center;
}
.login-btn {
  background: var(--lime); color: var(--black);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; padding: 15px; width: 100%;
  transition: background .25s, transform .2s;
}
.login-btn:hover { background: var(--lime2); transform: translateY(-1px); }
.login-back {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  color: rgba(255,255,255,.3); text-align: center;
  transition: color .2s;
}
.login-back:hover { color: var(--lime); }

/* ─── DASHBOARD LAYOUT ─── */
.dash-body { background: var(--black); }
.dash-layout {
  display: flex; min-height: 100vh;
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-w); background: var(--dark);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; transition: transform .3s ease;
}
.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.sl-main {
  font-family: var(--font-head); font-size: 22px; font-weight: 900;
  letter-spacing: -.03em; color: var(--white);
}
.sl-sub {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .15em;
  color: var(--lime); text-transform: uppercase;
}
.sidebar-nav {
  flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px;
}
.snav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.45);
  border-radius: 6px;
  transition: all .2s; cursor: pointer;
}
.snav-item svg { flex-shrink: 0; transition: color .2s; }
.snav-item:hover { background: var(--dark2); color: rgba(255,255,255,.8); }
.snav-item.active { background: rgba(209,255,0,.08); color: var(--lime); border-left: 2px solid var(--lime); }
.sidebar-status {
  padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.ss-dot {
  width: 8px; height: 8px; background: var(--lime);
  border-radius: 50%; flex-shrink: 0;
  animation: ssPulse 2s ease infinite;
}
@keyframes ssPulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.ss-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--lime);
}
.ss-uptime {
  font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,.3);
  margin-top: 2px;
}

/* ─── MAIN AREA ─── */
.dash-main {
  flex: 1; margin-left: var(--sidebar-w);
  display: flex; flex-direction: column; min-height: 100vh;
}

/* ─── TOPBAR ─── */
.dash-topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--dark); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 60px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 6px;
}
.sidebar-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--white);
}
.topbar-greeting {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  color: var(--white); line-height: 1;
}
.topbar-company {
  font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.4);
  letter-spacing: .06em; margin-top: 2px;
}
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-clock {
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.4);
  letter-spacing: .06em;
}
.topbar-notif {
  position: relative; color: rgba(255,255,255,.5); cursor: pointer;
  transition: color .2s;
}
.topbar-notif:hover { color: var(--lime); }
.notif-dot {
  position: absolute; top: -2px; right: -2px;
  width: 7px; height: 7px; background: var(--lime);
  border-radius: 50%; border: 1.5px solid var(--black);
}
.topbar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #2a4a2a, #4a7a2a);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  color: var(--white); cursor: pointer; transition: transform .2s;
}
.topbar-avatar:hover { transform: scale(1.1); }

.topbar-theme {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--dark2); color: var(--white);
  cursor: pointer; transition: all .2s;
  border: 1px solid var(--border);
}
.topbar-theme:hover { background: var(--dark3); color: var(--lime); border-color: var(--lime); }

/* ─── PROFILE DROPDOWN ─── */
.profile-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 12px;
  background: var(--dark); border: 1px solid var(--border);
  border-radius: 8px; width: 180px; display: flex; flex-direction: column;
  padding: 8px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 100;
}
.pd-item {
  padding: 10px 16px; font-family: var(--font-body); font-size: 13px;
  color: rgba(255,255,255,.7); transition: all .2s; cursor: pointer;
}
.pd-item:hover { background: var(--dark2); color: var(--white); }
.pd-divider { height: 1px; background: var(--border); margin: 4px 0; }
.pd-logout { color: #ff5252; }
.pd-logout:hover { background: rgba(255,82,82,.1); color: #ff5252; }

/* ─── HOVER EFFECTS & EXTRAS ─── */
.notif-item:hover { background: var(--dark2); cursor: pointer; }
.profile-photo-upload:hover .upload-overlay { opacity: 1 !important; }

/* ─── SECTIONS ─── */
.sections-wrap { flex: 1; padding: 32px; }
.dash-section { display: none; }
.dash-section.active { display: block; }
.sec-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.sec-title {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  letter-spacing: -.02em; color: var(--white);
}
.sec-date {
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.35);
  letter-spacing: .06em;
}
.sec-filters { display: flex; gap: 6px; }
.filter-btn {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  padding: 7px 14px; border: 1px solid var(--border);
  color: rgba(255,255,255,.4); background: transparent;
  transition: all .2s; cursor: pointer;
}
.filter-btn.active { background: var(--lime); color: var(--black); border-color: var(--lime); }
.filter-btn:hover:not(.active) { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.7); }

/* ─── STATS ROW ─── */
.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border);
  margin-bottom: 24px;
}
.stat-card {
  background: var(--dark); padding: 24px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: background .2s;
}
.stat-card:hover { background: var(--dark2); }
.stat-card--green { border-top: 2px solid var(--lime); }
.stat-card--alert { border-top: 2px solid #ff9800; }
.stat-icon {
  width: 44px; height: 44px; background: rgba(209,255,0,.07);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--lime);
}
.stat-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  color: rgba(255,255,255,.4); margin-bottom: 6px;
}
.stat-num {
  font-family: var(--font-head); font-size: 28px; font-weight: 700;
  color: var(--white); letter-spacing: -.02em; line-height: 1;
}
.stat-change {
  font-family: var(--font-mono); font-size: 10px; margin-top: 4px;
}
.stat-up { color: var(--lime); }
.stat-alert { color: #ff9800; }

/* ─── DASH CARDS ─── */
.dash-card {
  background: var(--dark); border: 1px solid var(--border);
  padding: 24px; transition: border-color .2s;
}
.dash-card:hover { border-color: rgba(255,255,255,.12); }
.dash-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.dash-card-title {
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,.75); margin-bottom: 16px;
}
.dash-card-badge {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em;
  background: rgba(209,255,0,.1); color: var(--lime); padding: 4px 10px;
}
.dash-card-link {
  font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.4);
  letter-spacing: .06em; transition: color .2s;
}
.dash-card-link:hover { color: var(--lime); }

/* ─── GRIDS ─── */
.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 24px; background: var(--border); }
.dash-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--border); margin-bottom: 24px; }

/* ─── ACTIVITY CHART (CSS bars) ─── */
.activity-chart {
  height: 140px; display: flex; align-items: flex-end; padding-top: 8px;
}
.chart-bars {
  width: 100%; display: flex; align-items: flex-end; gap: 6px; height: 100%;
}
.bar-group {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 6px; height: 100%; justify-content: flex-end;
}
.bar {
  width: 100%; height: var(--h, 50%); background: var(--lime);
  opacity: .7; transition: opacity .2s, height .5s ease;
  min-height: 4px;
}
.bar:hover { opacity: 1; }
.bar--inactive { background: rgba(255,255,255,.15); opacity: 1; }
.bar--today { background: var(--lime); opacity: 1; }
.bar-group span {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em;
  color: rgba(255,255,255,.3); white-space: nowrap;
}

/* ─── CONVO LIST ─── */
.convo-list { display: flex; flex-direction: column; gap: 1px; }
.convo-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: background .2s; cursor: pointer;
}
.convo-item:last-child { border-bottom: none; }
.convo-item:hover { background: rgba(255,255,255,.02); margin: 0 -8px; padding: 12px 8px; }
.convo-green { border-left: 2px solid var(--lime); padding-left: 10px; }
.convo-alert { border-left: 2px solid #ff9800; padding-left: 10px; }
.convo-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--dark2); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.6); flex-shrink: 0;
}
body.light-mode .convo-avatar { background: #e0e3ea; color: rgba(0,0,0,.65); }
body.light-mode .convo-last { color: rgba(0,0,0,.5) !important; }
.convo-info { flex: 1; min-width: 0; }
.convo-name { font-size: 13px; font-weight: 600; color: var(--white); }
.convo-last { font-size: 12px; color: rgba(255,255,255,.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.convo-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; padding: 3px 8px; }
.tag-booked { background: rgba(209,255,0,.1); color: var(--lime); }
.tag-done { background: rgba(76,175,80,.1); color: #4CAF50; }
.tag-human { background: rgba(255,152,0,.1); color: #ff9800; }
.convo-time { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.25); }

/* ─── BOT STATUS DISPLAY ─── */
.bot-status-display {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: rgba(209,255,0,.04);
  border: 1px solid rgba(209,255,0,.12); margin-bottom: 16px;
}
.bsd-indicator { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bsd-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--lime); opacity: .3;
  animation: bsdPulseRing 2s ease infinite;
}
@keyframes bsdPulseRing { 0%{transform:scale(1);opacity:.3} 50%{transform:scale(1.2);opacity:.1} 100%{transform:scale(1);opacity:.3} }
.bsd-dot { width: 12px; height: 12px; background: var(--lime); border-radius: 50%; }
.bsd-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--lime); }
.bsd-sub { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.4); margin-top: 4px; }
.bot-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.5);
}

/* ─── TOGGLE SWITCH ─── */
.toggle-switch { position: relative; width: 40px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--dark2);
  border-radius: 22px; cursor: pointer;
  transition: background .3s;
}
.toggle-slider::before {
  content: ''; position: absolute; width: 16px; height: 16px;
  background: rgba(255,255,255,.4); border-radius: 50%;
  bottom: 3px; left: 3px; transition: transform .3s, background .3s;
}
.toggle-switch input:checked + .toggle-slider { background: rgba(209,255,0,.15); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); background: var(--lime); }

/* ─── QUICK ACTIONS ─── */
.quick-actions { display: flex; flex-direction: column; gap: 8px; }
.qa-btn {
  width: 100%; padding: 11px 14px; background: var(--dark2);
  color: rgba(255,255,255,.7); font-size: 13px;
  text-align: left; border: 1px solid var(--border);
  transition: all .2s; cursor: pointer;
}
.qa-btn:hover { background: var(--dark3); color: var(--white); border-color: rgba(255,255,255,.15); }
.qa-btn--lime { background: rgba(209,255,0,.08); color: var(--lime); border-color: rgba(209,255,0,.15); }
.qa-btn--lime:hover { background: rgba(209,255,0,.15); }

/* ─── MONTH SUMMARY ─── */
.month-summary { display: flex; flex-direction: column; gap: 10px; }
.ms-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.6);
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.ms-row:last-child { border-bottom: none; padding-bottom: 0; }
.ms-row strong { color: var(--white); font-weight: 600; }
.ms-row--highlight { background: rgba(209,255,0,.03); margin: 0 -8px; padding: 10px 8px; }

/* ─── CONVO TABLE ─── */
.convo-table { width: 100%; border-collapse: collapse; }
.convo-table th {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  color: rgba(255,255,255,.35); padding: 12px 12px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.convo-table td {
  padding: 14px 12px; font-size: 13px; color: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.convo-table tr:hover td { background: rgba(255,255,255,.02); }
.ct-name { color: var(--white); font-weight: 600; }
.ct-time { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.3); }
.ct-btn {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  padding: 6px 12px; border: 1px solid var(--border);
  color: rgba(255,255,255,.5); background: transparent; cursor: pointer;
  transition: all .2s;
}
.ct-btn:hover { border-color: var(--lime); color: var(--lime); }
.ct-btn--alert { border-color: rgba(255,152,0,.3); color: #ff9800; }
.ct-btn--alert:hover { border-color: #ff9800; background: rgba(255,152,0,.07); }

/* ─── BOT CONFIG ─── */
.bot-config-items { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.bc-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; font-size: 13px; color: rgba(255,255,255,.7);
  background: var(--dark); gap: 12px;
}
.bot-log { display: flex; flex-direction: column; gap: 12px; }
.blog-item { display: flex; align-items: flex-start; gap: 10px; }
.blog-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.blog-green { background: #4CAF50; }
.blog-lime  { background: var(--lime); }
.blog-white { background: rgba(255,255,255,.3); }
.blog-item p { font-size: 13px; color: rgba(255,255,255,.6); }
.blog-item p span { color: rgba(255,255,255,.3); font-size: 11px; }

/* ─── DONUT CHART (CSS) ─── */
.donut-chart-wrap { display: flex; align-items: center; gap: 32px; }
.donut-chart {
  width: 120px; height: 120px; flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--lime) 0deg 313.2deg,
    #4CAF50 313.2deg 341.9deg,
    #ff9800 341.9deg 360deg
  );
  position: relative;
}
.donut-chart::after {
  content: '87%'; position: absolute; inset: 22px;
  background: var(--dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--lime);
}
.donut-legend { display: flex; flex-direction: column; gap: 12px; }
.dl-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.6); }
.dl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dl-item strong { color: var(--white); margin-left: 4px; }

/* ─── PLAN CARD ─── */
.plan-card { border: 1px solid rgba(209,255,0,.2) !important; position: relative; display: flex; flex-direction: column; gap: 20px; }
.plan-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--lime); color: var(--black);
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .12em; padding: 4px 12px;
}
.plan-tier {
  font-family: var(--font-head); font-size: 32px; font-weight: 900;
  letter-spacing: -.03em; color: var(--white);
}
.plan-pricing { display: flex; gap: 32px; }
.plan-price-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: rgba(255,255,255,.35); display: block; margin-bottom: 4px; }
.plan-price { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--white); }
.plan-price--main { font-size: 32px; color: var(--lime); }
.plan-price-note { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.3); margin-left: 4px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.plan-features li { font-size: 13px; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 8px; }
.pf-check { color: var(--lime); font-size: 12px; }
.plan-next { padding: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: rgba(255,255,255,.5); }
.plan-next strong { color: var(--white); }
.upgrade-card { border: 1px solid rgba(209,255,0,.1) !important; }
.upgrade-desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.5); margin-top: -8px; margin-bottom: 12px; }
.upgrade-price { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.5); flex-wrap: wrap; }
.payment-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.payment-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--dark); padding: 12px;
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.4);
  gap: 12px;
}
.payment-item strong { color: var(--white); font-family: var(--font-head); font-size: 14px; font-weight: 700; }

/* ─── SUPPORT CHAT ─── */
.support-chat-card { display: flex; flex-direction: column; padding: 0; }
.support-chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: var(--dark2);
}
.chat-avatar-lg { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cal-dot-lg {
  position: absolute; top: 0; right: 0; width: 12px; height: 12px;
  background: var(--lime); border-radius: 50%; border: 2px solid var(--dark2);
}
.sch-name { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--white); }
.sch-status { font-family: var(--font-mono); font-size: 9px; color: var(--lime); letter-spacing: .08em; }
.support-messages {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 200px; max-height: 320px;
}
.chat-msg { max-width: 88%; }
.chat-msg-bot { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; }
.chat-msg p { font-size: 13px; line-height: 1.6; padding: 10px 14px; }
.chat-msg-bot p { background: var(--dark3); color: rgba(255,255,255,.85); border-radius: 0 8px 8px 8px; }
.chat-msg-user p { background: var(--lime); color: var(--black); border-radius: 8px 0 8px 8px; font-weight: 500; }
.chat-quick-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-quick {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  padding: 6px 12px; border: 1px solid rgba(255,255,255,.1);
  background: transparent; color: rgba(255,255,255,.6); cursor: pointer;
  transition: all .2s;
}
.chat-quick:hover { border-color: var(--lime); color: var(--lime); }
.chat-input-wrap { display: flex; }
.chat-input {
  flex: 1; background: var(--dark2); border: none; outline: none;
  color: var(--white); font-family: var(--font-body); font-size: 13px; padding: 14px 16px;
}
.chat-input::placeholder { color: rgba(255,255,255,.25); }
.chat-send {
  width: 48px; background: var(--lime); color: var(--black);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .2s;
}
.chat-send:hover { background: var(--lime2); }
.chat-typing { display: flex; align-items: center; gap: 4px; padding: 10px 14px; background: var(--dark3); width: fit-content; border-radius: 0 8px 8px 8px; }
.chat-typing span { width: 6px; height: 6px; background: rgba(255,255,255,.4); border-radius: 50%; animation: typingDot 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%,80%,100%{transform:scale(1);opacity:.4} 40%{transform:scale(1.3);opacity:1} }

/* ─── CONTACT OPTIONS ─── */
.contact-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.co-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--dark2);
  border: 1px solid var(--border); font-size: 13px; color: rgba(255,255,255,.7);
  transition: all .2s; cursor: pointer;
}
.co-btn:hover { border-color: rgba(255,255,255,.2); color: var(--white); }
.co-btn--wa:hover { border-color: #25D366; background: rgba(37,211,102,.07); }
.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-title { font-size: 13px; color: rgba(255,255,255,.6); }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 100px; right: 24px; z-index: 9999;
  background: var(--lime); color: var(--black);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; padding: 12px 20px;
  transform: translateY(20px); opacity: 0;
  transition: all .3s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .dash-grid-3 { grid-template-columns: 1fr 1fr; }
  .dash-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-220px); --sidebar-w: 220px; z-index: 200; }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,.4); }
  .dash-main { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .sections-wrap { padding: 12px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-card { padding: 16px 12px; }
  .stat-num { font-size: 22px; }
  .dash-grid-3 { grid-template-columns: 1fr; }
  .dash-grid-2 { grid-template-columns: 1fr; }
  .topbar-clock { display: none; }
  .dash-topbar { padding: 0 16px; }
  .sec-title { font-size: 18px; }
  .donut-chart-wrap { flex-direction: column; }
  .dash-card { padding: 16px; }
  .bot-status-display { flex-direction: column; gap: 12px; }
  .sk-row { flex-direction: column; }
  /* Mobile sidebar overlay */
  .sidebar-overlay.active { display: block !important; }
}
@media (max-width: 420px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat-num { font-size: 28px; }
  .login-card { padding: 28px 20px; }
  .login-logo-main { font-size: 38px; }
  .topbar-theme { display: none; }
  .sk-row { flex-direction: column; }
}

/* Sidebar mobile overlay backdrop */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 190;
}

/* ─── ADDITIONAL LIGHT MODE FIXES (bot config, blog dots, notif panel text) ─── */
body.light-mode .bc-item { color: rgba(0,0,0,.75); background: #fff; }
body.light-mode .bc-item span { color: rgba(0,0,0,.75) !important; }
body.light-mode .blog-white { background: rgba(0,0,0,.25) !important; }
body.light-mode .blog-item p { color: rgba(0,0,0,.65); }
body.light-mode .blog-item p span { color: rgba(0,0,0,.4); }
body.light-mode .plan-card { border-color: rgba(80,110,0,.3) !important; }
body.light-mode .plan-badge { background: var(--lime); color: #fff; }
body.light-mode .convo-tag { color: inherit; }
body.light-mode .tag-booked { background: rgba(80,110,0,.12); color: var(--lime); }
body.light-mode .tag-done { background: rgba(76,175,80,.12); color: #2a7a2a; }
body.light-mode .tag-human { background: rgba(255,152,0,.12); color: #b06000; }
body.light-mode .bot-config-items { background: rgba(0,0,0,.05); }
body.light-mode .login-screen { background: var(--black); }
body.light-mode .login-card { background: #fff; }
body.light-mode .login-welcome { color: rgba(0,0,0,.55); }
body.light-mode .login-field label { color: rgba(0,0,0,.45); }
body.light-mode .login-field input { background: var(--dark2); border-color: rgba(0,0,0,.15); }
body.light-mode .notif-dropdown p { color: rgba(0,0,0,.75) !important; }
body.light-mode .settings-form input { color: #0a0a0a !important; }
body.light-mode #sec-profile p[style*="color:var(--white)"] { color: #0a0a0a !important; }
body.light-mode #sec-profile p[style*="color:rgba(255,255,255"] { color: rgba(0,0,0,.5) !important; }
body.light-mode #sec-settings p[style*="color:var(--white)"] { color: #0a0a0a !important; }
body.light-mode #sec-settings span[style*="color:rgba(255,255,255"] { color: rgba(0,0,0,.5) !important; }

