.demo-title { margin-top: 18px; }
.lab { padding: 20px 0 60px; }

/* Business switch */
.biz-switch {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 24px; padding: 12px 18px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
}
.biz-switch span { font-size: .84rem; color: var(--muted); font-weight: 500; }
.biz {
  padding: 8px 16px; border-radius: 10px; font-size: .84rem; font-weight: 600;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; transition: all .2s;
}
.biz:hover { color: var(--text); background: rgba(255,255,255,.08); }
.biz.active {
  background: var(--wa); color: #042416; border-color: var(--wa);
  box-shadow: 0 4px 16px -4px rgba(37, 211, 102, .5);
}

/* Grid */
.wa-grid {
  display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start;
}
@media (max-width: 980px) { .wa-grid { grid-template-columns: minmax(0, 1fr); } }

/* Phone Mockup */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-wrap .reset { width: 100%; max-width: 360px; }
.phone {
  width: 100%; max-width: 360px; height: 680px; border-radius: 40px;
  background: #0b141a; border: 10px solid #1e262c; box-shadow: 0 25px 60px -15px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}

.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 22px 4px; font-size: .75rem; font-weight: 600; color: #fff;
  background: #1f2c34;
}
.sb-icons { display: flex; gap: 6px; align-items: center; }
.sb-icons svg { width: 13px; height: 13px; }

.wa-header {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px;
  background: #1f2c34; border-bottom: 1px solid rgba(255,255,255,.06);
}
.wa-back { width: 18px; color: #8696a0; cursor: pointer; }
.wa-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #2a3942;
  display: grid; place-items: center; font-size: 1.25rem; flex: 0 0 38px;
}
.wa-title { flex: 1; min-width: 0; line-height: 1.2; }
.wa-title b { display: block; font-size: .88rem; color: #e9edef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-title small { font-size: .72rem; color: #25d366; }
.wa-verified svg { width: 18px; height: 18px; color: #25d366; }

.wa-body {
  flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 16px 16px;
}
.wa-msg {
  max-width: 82%; padding: 8px 11px; border-radius: 10px; font-size: .84rem; line-height: 1.45;
  position: relative; animation: fadeUp .25s var(--ease); word-break: break-word;
}
.wa-msg.in { align-self: flex-start; background: #202c33; color: #e9edef; border-top-left-radius: 2px; }
.wa-msg.out { align-self: flex-end; background: #005c4b; color: #e9edef; border-top-right-radius: 2px; }
.wa-msg .meta {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  font-size: .65rem; color: rgba(255,255,255,.55); margin-top: 4px;
}
.wa-msg.out .meta { color: #86b8a8; }
.wa-msg.out .meta svg { width: 13px; height: 13px; color: #53bdeb; }

.wa-typing {
  align-self: flex-start; background: #202c33; padding: 8px 12px; border-radius: 10px;
  display: flex; gap: 4px; align-items: center;
}
.wa-typing span { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: blink 1.2s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .2s; }
.wa-typing span:nth-child(3) { animation-delay: .4s; }

.wa-quick {
  display: flex; gap: 6px; overflow-x: auto; padding: 6px 12px;
  background: #111b21; border-top: 1px solid rgba(255,255,255,.05);
  scrollbar-width: none;
}
.wa-quick::-webkit-scrollbar { display: none; }
.quick-btn {
  white-space: nowrap; font-size: .75rem; padding: 6px 11px; border-radius: 999px;
  background: #202c33; color: #00a884; border: 1px solid #2a3942;
  cursor: pointer; transition: background .15s;
}
.quick-btn:hover { background: #2a3942; }

.wa-input {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: #202c33;
}
.wa-input input {
  flex: 1; padding: 9px 14px; border-radius: 22px; border: none;
  background: #2a3942; color: #e9edef; font-size: .84rem; outline: none;
}
.wa-input input::placeholder { color: #8696a0; }
.wa-input button {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: #00a884; color: #111b21; display: grid; place-items: center;
  cursor: pointer; transition: transform .15s;
}
.wa-input button:active { transform: scale(.92); }
.wa-input button svg { width: 17px; height: 17px; }

/* Dashboard column */
.dash { display: grid; gap: 16px; }
.dash-card {
  padding: 20px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.dc-head {
  display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem;
  margin-bottom: 14px;
}
.dc-head svg { width: 18px; color: var(--accent); }

.lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); display: block; margin-bottom: 3px; }

.intent-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.intent-row b { font-size: 1.05rem; color: var(--accent); }
.conf-wrap { min-width: 120px; }
.conf-bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.conf-bar i { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: 6px; transition: width .4s var(--ease); }

.entities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ent-tag {
  font-size: .75rem; padding: 4px 9px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono);
}
.ent-tag span { color: var(--muted); }
.ent-tag b { color: var(--cyan); }

.lead-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 600px) { .lead-grid { grid-template-columns: repeat(2, 1fr); } }
.lead-grid b { font-size: .88rem; color: var(--text); word-break: break-word; }

.score-line { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.score-track { flex: 1; height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.score-track i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #22d3ee, #34d399); transition: width .5s var(--ease); }
.score-line b { font-family: var(--font-mono); font-size: .95rem; color: var(--green); min-width: 32px; text-align: right; }

.calendar { display: grid; grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); gap: 8px; }
.cal-slot {
  padding: 8px 4px; border-radius: 8px; font-size: .78rem; font-family: var(--font-mono);
  text-align: center; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); transition: all .2s;
}
.cal-slot.available { color: var(--green); border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.06); }
.cal-slot.booked {
  background: rgba(251,191,36,.15); color: var(--accent); border-color: var(--accent);
  font-weight: 700; transform: scale(1.04);
}

.actions { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.act-item {
  display: flex; align-items: center; gap: 10px; font-size: .82rem; padding: 9px 12px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
  animation: fadeUp .3s var(--ease);
}
.act-item svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 16px; }
.act-item time { font-family: var(--font-mono); font-size: .72rem; color: var(--dim); margin-left: auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feat { padding: 22px; }
.feat svg { width: 28px; height: 28px; color: var(--wa); margin-bottom: 12px; }
.feat h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feat p { font-size: .86rem; margin: 0; }
.end-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
