.crm-demo-overlay {
  position: fixed; inset: 0;
  background: rgba(8,12,28,0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.crm-demo-overlay.open { opacity: 1; pointer-events: auto; }
.crm-demo-win {
  width: 900px; max-width: 100%;
  background: #0F172A;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  display: flex; flex-direction: column;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}
.crm-demo-overlay.open .crm-demo-win { transform: translateY(0) scale(1); }

/* Chrome */
.cd-chrome {
  background: #1E293B;
  padding: 11px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.cd-tlights { display: flex; gap: 7px; }
.cd-tl { width: 12px; height: 12px; border-radius: 50%; }
.cd-tl:nth-child(1) { background: #FF5F57; }
.cd-tl:nth-child(2) { background: #FFBC2E; }
.cd-tl:nth-child(3) { background: #28C840; }
.cd-url {
  flex: 1; text-align: center;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px; padding: 4px 14px;
  font-size: 0.7rem; color: rgba(255,255,255,0.32);
  font-family: monospace;
}
.cd-xbtn {
  background: none; border: none;
  color: rgba(255,255,255,0.3); font-size: 1rem;
  cursor: pointer; padding: 3px 7px; border-radius: 5px; line-height: 1;
  margin-left: auto; flex-shrink: 0;
}
.cd-xbtn:hover { background: rgba(255,255,255,0.08); color: white; }

/* Shell */
.cd-shell {
  display: flex; flex: 1; overflow: hidden;
  height: 460px;
}

/* Sidebar */
.cd-sidebar {
  width: 172px; flex-shrink: 0;
  background: #1A2744;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.cd-brand {
  font-size: 0.88rem; font-weight: 800; color: white;
  padding: 4px 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 6px;
}
.cd-brand span { color: #FF6900; }
.cd-nav {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 7px;
  font-size: 0.74rem; font-weight: 500;
  color: rgba(255,255,255,0.36); cursor: default;
}
.cd-nav.on { background: rgba(37,99,235,0.13); color: #93C5FD; }
.cd-nav i { font-size: 0.78rem; flex-shrink: 0; }

/* Screen */
.cd-screen { flex: 1; overflow-y: auto; padding: 20px 22px; }

/* Steps */
.cstep { display: none; }
.cstep.on { display: block; }

/* Footer */
.cd-footer {
  background: #1E293B;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 11px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.cd-dots { display: flex; gap: 6px; align-items: center; }
.cdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  cursor: pointer; transition: all 0.2s;
}
.cdot.on { background: #FF6900; width: 20px; border-radius: 4px; }
.cd-navbtns { display: flex; gap: 8px; }
.cdbtn {
  padding: 7px 16px; border-radius: 7px;
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.15s;
}
.cdbtn-back {
  background: transparent; color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.12);
}
.cdbtn-back:hover { color: white; border-color: rgba(255,255,255,0.3); }
.cdbtn-next { background: #FF6900; color: white; }
.cdbtn-next:hover { background: #FF6900; }

/* Spotlight pulse */
@keyframes cdpulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,105,0,0.8); }
  65%  { box-shadow: 0 0 0 9px rgba(255,105,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,105,0,0); }
}
.cd-spotlight { animation: cdpulse 1.6s ease infinite; }

/* Tip callout */
.cd-tip {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(255,105,0,0.07);
  border: 1px solid rgba(255,105,0,0.22);
  border-radius: 9px; padding: 11px 14px;
  font-size: 0.77rem; color: rgba(255,255,255,0.78); line-height: 1.55;
  margin-top: 14px;
}
.cd-tip-icon { color: #FF6900; flex-shrink: 0; margin-top: 2px; }

/* ── Simulated UI elements ── */
.s-bar {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
}
.s-title { font-size: 0.95rem; font-weight: 700; color: white; flex: 1; }
.s-search {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px; padding: 6px 12px;
  font-size: 0.72rem; color: rgba(255,255,255,0.28); width: 140px;
}
.sbtn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 7px;
  font-size: 0.74rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.15s;
}
.sbtn-blue { background: #2563EB; color: white; }
.sbtn-orange { background: #FF6900; color: white; }
.sbtn-ghost {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}
.sbtn-ghost:hover { background: rgba(255,255,255,0.09); }

/* Table */
.s-thdr {
  display: grid; grid-template-columns: 2fr 2fr 1.2fr 1.1fr;
  padding: 5px 10px; margin-bottom: 5px;
  font-size: 0.61rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: rgba(255,255,255,0.26);
}
.s-trow {
  display: grid; grid-template-columns: 2fr 2fr 1.2fr 1.1fr;
  padding: 9px 10px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 0.74rem; color: rgba(255,255,255,0.4);
  margin-bottom: 5px; align-items: center;
  filter: blur(2.5px); opacity: 0.32;
}
.s-cell { display: flex; align-items: center; gap: 8px; }
.sav {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg,#2563EB,#1D4ED8);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700; color: white; flex-shrink: 0;
}
.stag {
  display: inline-block; padding: 2px 8px; border-radius: 100px;
  font-size: 0.62rem; font-weight: 600;
}
.stag-blue { background: rgba(37,99,235,0.14); color: #93C5FD; }
.stag-orange { background: rgba(255,105,0,0.14); color: #FF8C40; }
.stag-green { background: rgba(34,197,94,0.14); color: #4ADE80; }

/* Form */
.s-form { display: flex; flex-direction: column; gap: 11px; }
.s-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.s-field { display: flex; flex-direction: column; gap: 4px; }
.s-lbl {
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: rgba(255,255,255,0.32);
}
.s-inp {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 7px; padding: 7px 11px;
  font-size: 0.78rem; color: white;
}
.s-inp.ok { border-color: rgba(37,99,235,0.35); background: rgba(37,99,235,0.05); }
.s-inp.empty { color: rgba(255,255,255,0.22); }

/* Profile header */
.s-phdr {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
}
.sav-lg {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg,#2563EB,#1D4ED8);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 800; color: white; flex-shrink: 0;
}
.s-pname {
  font-size: 0.94rem; font-weight: 700; color: white;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.s-psub { font-size: 0.71rem; color: rgba(255,255,255,0.36); margin-top: 3px; }

/* Tabs */
.s-tabs {
  display: flex; gap: 3px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
}
.s-tab {
  padding: 5px 11px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 600;
  color: rgba(255,255,255,0.3); cursor: default;
  display: inline-flex; align-items: center; gap: 5px;
}
.s-tab.on { background: rgba(37,99,235,0.14); color: #93C5FD; }

/* Stats row */
.s-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 7px; margin-bottom: 14px;
}
.s-sbox {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px; padding: 9px 11px;
}
.s-sv { font-size: 0.85rem; font-weight: 700; color: white; }
.s-sl { font-size: 0.62rem; color: rgba(255,255,255,0.3); margin-top: 2px; }

/* Section header */
.s-shdr {
  font-size: 0.63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: rgba(255,255,255,0.26); margin-bottom: 8px;
}

/* Note area */
.s-narea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(37,99,235,0.35);
  border-radius: 8px; padding: 9px 13px;
  font-size: 0.77rem; color: white; line-height: 1.55;
  resize: none; font-family: inherit; margin-bottom: 9px;
}

/* Logged note row */
.s-nrow {
  display: flex; gap: 9px; align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 9px 11px; margin-bottom: 8px;
}
.s-ndot {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(37,99,235,0.17); color: #93C5FD;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; flex-shrink: 0;
}
.s-nbody { font-size: 0.75rem; color: rgba(255,255,255,0.7); line-height: 1.5; }
.s-nmeta { font-size: 0.62rem; color: rgba(255,255,255,0.28); margin-top: 3px; }

@media (max-width: 640px) {
  .cd-sidebar { display: none; }
  .cd-shell { height: 400px; }
  .s-row2 { grid-template-columns: 1fr; }
}
@media (max-height: 580px) {
  .cd-shell { height: 320px; }
}