/* Fake-app UI kit for the product-tour mockups.
   Mirrors the real app screens (Lead, Call Log, Admin, Record Transfer, Attendance, WhatsApp)
   using made-up data only — never paste real customer data or screenshots here. */

.m {
  height: 100%; border-radius: 36px; overflow: hidden;
  background: #fffdf5;
  display: flex; flex-direction: column;
  font-size: 11px; line-height: 1.3; color: var(--ink);
  text-align: left;
}
.m-top {
  background: #fff; padding: 46px 14px 10px;
  display: flex; align-items: center; gap: 7px;
  border-bottom: 1px solid var(--line);
}
.m-top h4 { font-size: 17px; font-weight: 800; flex: 1; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-top h4 small { display: block; font-size: 9.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.m-top .date { font-weight: 700; font-size: 11px; }
.m-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; color: var(--purple); flex: none; }
.m-ico.red { background: #fdecef; color: var(--red); }
.m-ico svg { width: 13px; height: 13px; }
.m-back { width: 16px; height: 16px; flex: none; color: var(--ink); }

.m-body { flex: 1; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 7px; overflow: hidden; }
.m-body.lilac { background: #faf8fe; }
.m-body.flush { padding: 0; gap: 0; background: #faf8fe; }

.m-search { background: #f1ebfa; border-radius: 10px; padding: 8px 10px; color: #9a90ad; display: flex; gap: 6px; align-items: center; font-size: 10.5px; }
.m-search svg { width: 12px; height: 12px; flex: none; }
.m-seg { display: grid; grid-template-columns: 1fr 1fr; background: #f1ebfa; border-radius: 999px; padding: 3px; font-weight: 600; text-align: center; color: var(--ink-soft); font-size: 10.5px; }
.m-seg span { padding: 6px; border-radius: 999px; }
.m-seg .on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.m-chips { display: flex; gap: 5px; overflow: hidden; white-space: nowrap; }
.m-chip { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: #f6f1fd; font-weight: 600; font-size: 10px; color: var(--ink-soft); }
.m-chip.date { color: var(--purple); background: #f3e8ff; border-color: #e4c8ff; }
.m-chip.dark { background: #241a3a; color: #fff; border-color: #241a3a; }
.m-chip.on { background: var(--purple); color: #fff; border-color: var(--purple); }
.m-meta { color: var(--muted); font-size: 10px; }
.m-meta b { color: var(--ink); }

/* Collapsible status groups (Lead & Call Log screens) */
.m-group {
  background: #fff; border-radius: 10px; box-shadow: 0 2px 6px rgb(29 19 48 / 0.08);
  border-left: 3px solid #6f6485; padding: 9px 10px;
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: 0.06em; font-size: 10.5px; color: #6f6485;
}
.m-group::before { /* chevron: right when closed, down when open */
  content: ""; width: 5px; height: 5px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg); margin-right: 2px;
}
.m-group.open::before { transform: rotate(45deg) translate(-1px, -1px); }
.m-group .n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; font-size: 9.5px; background: #eeeaf3; letter-spacing: 0; }
.m-group.g-new { border-color: var(--purple); color: var(--purple); }
.m-group.g-new .n { background: #f3e8ff; }
.m-group.g-int { border-color: var(--green); color: #13a06a; }
.m-group.g-int .n { background: #e4f7ef; }
.m-group.g-not { border-color: var(--red); color: var(--red); }
.m-group.g-not .n { background: #fde8eb; }

.m-row { background: #fff; border-radius: 10px; box-shadow: 0 2px 6px rgb(29 19 48 / 0.07); padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.m-av { width: 28px; height: 28px; border-radius: 50%; background: #f3edfb; color: #6f6485; font-weight: 700; font-size: 10px; display: grid; place-items: center; flex: none; }
.m-av.p { color: var(--purple); background: #f3e8ff; }
.m-av.lg { width: 32px; height: 32px; font-size: 11px; }
.m-name { flex: 1; min-width: 0; }
.m-name b { display: block; font-weight: 800; text-transform: uppercase; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-name b.nc { text-transform: none; font-weight: 700; }
.m-name span { color: var(--muted); font-size: 10px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-chev { width: 6px; height: 6px; border-right: 1.5px solid #9a90ad; border-bottom: 1.5px solid #9a90ad; transform: rotate(-45deg); flex: none; margin-right: 3px; }
.m-dur { background: #f1ebfa; border-radius: 999px; padding: 2px 7px; font-size: 9.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.m-edit { width: 20px; height: 20px; border-radius: 50%; background: #f6f1fd; display: grid; place-items: center; color: var(--ink-soft); flex: none; }
.m-edit svg { width: 10px; height: 10px; }
.m-calls { background: #e4f7ef; color: #13895b; border-radius: 999px; padding: 3px 8px; font-weight: 700; font-size: 9.5px; white-space: nowrap; }

.m-tabbar { background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 0 16px; text-align: center; font-size: 9.5px; font-weight: 600; color: #9a90ad; }
.m-tabbar span { display: grid; justify-items: center; gap: 2px; }
.m-tabbar .on { color: var(--purple); }
.m-tabbar svg { width: 16px; height: 16px; }

/* Cards & forms (Record Transfer, Admin) */
.m-card { background: #fff; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 2px 8px rgb(29 19 48 / 0.06); padding: 10px; }
.m-label { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; color: #6f6485; text-transform: uppercase; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.m-label svg { width: 12px; height: 12px; }
.m-label .m-chip { margin-left: auto; letter-spacing: 0; text-transform: none; font-size: 9px; padding: 3px 7px; }
.m-flabel { font-size: 9.5px; font-weight: 600; color: var(--ink-soft); margin: 7px 0 3px; }
.m-field { border: 1px solid #ddd3ea; border-radius: 8px; padding: 6px 8px; font-size: 10px; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-inline { display: flex; gap: 6px; }
.m-inline .m-field { flex: 1; min-width: 0; }
.m-btn { background: var(--purple-dark); color: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 10.5px; text-align: center; flex: none; }
.m-btn.wide { display: block; border-radius: 999px; padding: 8px; margin-top: 8px; }
.m-info { background: #f3e8ff; color: var(--purple); border-radius: 8px; padding: 6px 8px; font-weight: 600; font-size: 10px; margin-top: 8px; }
.m-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.m-agents { display: grid; gap: 5px; margin-top: 7px; }
.m-agent { border: 1px solid #c9b1f0; background: #fbf8ff; border-radius: 9px; padding: 5px 8px; display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 10.5px; }
.m-check { width: 13px; height: 13px; border-radius: 3px; background: var(--purple); display: grid; place-items: center; color: #fff; flex: none; }
.m-check svg { width: 9px; height: 9px; }
.m-agent .m-av { width: 22px; height: 22px; font-size: 9px; background: var(--purple); color: #fff; }
.m-recs { margin-left: auto; background: #f3e8ff; color: var(--purple); border-radius: 999px; padding: 2px 7px; font-size: 9.5px; font-weight: 700; }

.m-h { font-size: 13px; font-weight: 800; letter-spacing: -0.01em; }
.m-stat { background: #fff; border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--purple); padding: 9px; box-shadow: 0 2px 8px rgb(29 19 48 / 0.06); }
.m-stat .ic { width: 24px; height: 24px; border-radius: 7px; background: #f3e8ff; color: var(--purple); display: grid; place-items: center; margin-bottom: 6px; }
.m-stat .ic svg { width: 12px; height: 12px; }
.m-stat small { color: var(--ink-soft); font-size: 10px; display: block; }
.m-stat b { font-size: 18px; font-weight: 800; }
.m-stat.green { border-left-color: var(--green); }
.m-stat.green .ic { background: #e4f7ef; color: var(--green); }
.m-donut-wrap { display: flex; align-items: center; gap: 12px; }
.m-donut {
  width: 70px; height: 70px; border-radius: 50%; position: relative; flex: none;
  background: conic-gradient(var(--green) 0 14%, var(--amber) 0 32%, var(--purple) 0 70%, var(--red) 0 100%);
}
.m-donut::after { content: ""; position: absolute; inset: 13px; background: #fff; border-radius: 50%; }
.is-visible .m-donut { animation: donut-in 1.2s var(--ease) both; }
@keyframes donut-in { from { transform: rotate(-120deg) scale(0.6); opacity: 0; } }
.m-legend { display: grid; gap: 4px; font-size: 10px; color: var(--ink-soft); }
.m-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.m-lb { display: flex; align-items: center; gap: 7px; padding: 6px 0; border-top: 1px solid var(--line); }
.m-lb .medal { width: 22px; height: 22px; border-radius: 50%; background: #f6f1fd; display: grid; place-items: center; font-size: 11px; flex: none; }
.m-lb .nm { flex: 1; min-width: 0; font-weight: 700; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-lb .k { text-align: center; font-size: 8.5px; color: var(--muted); min-width: 30px; }
.m-lb .k b { display: block; font-size: 11px; color: var(--ink); }
.m-lb .k.g b { color: var(--green); }

/* Attendance table (landscape) */
.m-table { width: 100%; border-collapse: collapse; font-size: 9.5px; }
.m-table th { background: #f3e8ff; color: var(--ink-soft); font-weight: 800; font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; padding: 6px; text-align: left; white-space: nowrap; }
.m-table td { padding: 5px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fff; }
.m-table .pr { color: #13a06a; font-weight: 700; }
.m-table .ab { color: #c0344a; font-weight: 700; }
.m-table .wk { color: var(--muted); }

/* WhatsApp inbox rows */
.m-chat { display: flex; gap: 9px; padding: 9px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.m-chat .m-name b { font-size: 10.5px; }
.m-chat .msg { color: var(--ink-soft); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-chat time { color: var(--muted); font-size: 9px; flex: none; }
.m-tag { display: inline-flex; background: #f3e8ff; color: var(--purple); font-weight: 700; font-size: 8px; border-radius: 999px; padding: 2px 6px; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.02em; }
.m-name .m-tag { display: inline-flex; }
.m-unread { width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #fff; font-size: 8.5px; font-weight: 700; display: grid; place-items: center; margin-top: 4px; margin-left: auto; }

/* Landscape phone frame */
.phone.landscape { width: min(100%, 580px); aspect-ratio: 19 / 9; padding: 10px; border-radius: 40px; }
.phone.landscape::before { top: 50%; left: 16px; width: 22px; height: 70px; translate: 0 -50%; }
.phone.landscape .m { border-radius: 30px; }
.phone.landscape .m-top { padding: 10px 14px 8px 46px; }
.phone.landscape .m-body { padding: 0 0 0 36px; background: #fff; }

/* Numbered annotation pins placed on a mockup (style="--x:..;--y:..") */
.pin {
  position: absolute; left: var(--x); top: var(--y); z-index: 5;
  width: 24px; height: 24px; translate: -50% -50%;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 11px; font-weight: 800;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgb(76 38 140 / 0.6);
  transition: transform 0.3s var(--ease);
}
.pin::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--lavender); animation: pin-pulse 2.4s ease-out infinite;
}
.pin.is-hot { transform: scale(1.3); }
@keyframes pin-pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }
