/* ============================================================
   Mockups animados dos cases (telas ilustrativas, dados fictícios)
   Cada tela é desenhada num tamanho fixo e escalada pelo mockups.js
   ============================================================ */
.mock-frame {
  position: relative;
  border-radius: 26px;
  padding: 18px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(61, 107, 255, 0.45) 0%, rgba(61, 107, 255, 0) 60%),
    linear-gradient(160deg, #0a1636 0%, #050b1f 100%);
  box-shadow: 0 30px 80px rgba(0, 24, 96, 0.28);
  overflow: hidden;
}
.mock-frame--sm { padding: 14px; border-radius: 22px; }
.mock-stage { position: relative; width: 100%; aspect-ratio: 760 / 470; }
.mock-frame--sm .mock-stage { aspect-ratio: 380 / 300; }

.mk {
  position: absolute; top: 0; left: 0;
  width: 760px; height: 470px;
  transform-origin: top left;
  transform: scale(var(--s, 1));
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  font-family: var(--font);
  color: #0b1020;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}
.mk-small { width: 380px; height: 300px; flex-direction: column; padding: 16px; gap: 8px; }

/* Estrutura comum */
.mk-side { width: 170px; flex: 0 0 170px; background: #f6f8fd; border-right: 1px solid #e7ebf4; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.mk-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mk-brand i { width: 26px; height: 26px; border-radius: 8px; background: #0040e0; color: #fff; font-style: normal; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.mk-brand b { font-size: 13px; }
.mk-nav { padding: 7px 10px; border-radius: 8px; color: #5d6575; font-weight: 500; }
.mk-nav.is-on { background: #e3eaff; color: #0040e0; font-weight: 700; }
.mk-side__card { margin-top: auto; background: #0040e0; color: #fff; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.mk-side__card small { opacity: 0.75; font-size: 10px; }
.mk-side__card b { font-size: 13px; }
.mk-side__card span { font-size: 10px; opacity: 0.8; }

.mk-main { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; position: relative; min-width: 0; }
.mk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk-top h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.mk-small .mk-top h4 { font-size: 14px; }
.mk-chip { font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: #f1f3f8; color: #5d6575; white-space: nowrap; }
.mk-chip--blue { background: #e3eaff; color: #0040e0; }
.mk-chip--green { background: #e3f8ec; color: #12a150; }
.mk-chip--ml { background: #fff3b0; color: #6b5800; }
.mk-chip--sp { background: #ffe4dc; color: #c2410c; }

.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-kpi { border: 1px solid #e7ebf4; border-radius: 12px; padding: 10px 12px; }
.mk-kpi small { color: #5d6575; font-size: 10px; display: block; }
.mk-kpi b { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mk-zero s { color: #c0c6d4; font-size: 15px; margin-right: 4px; }
.mk-card { border: 1px solid #e7ebf4; border-radius: 12px; padding: 12px; }
.mk-card small { color: #5d6575; font-size: 10px; display: block; }
.mk-bar { height: 6px; background: #edf0f7; border-radius: 99px; overflow: hidden; }
.mk-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0040e0, #5b85ff); border-radius: inherit; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.is-live .mk-bar i[style] { width: var(--w); }

/* Toasts que aparecem e somem */
[data-toast] { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
[data-toast].is-show { opacity: 1; transform: none; }

/* ---------- ICR ---------- */
.mk-table { border: 1px solid #e7ebf4; border-radius: 12px; overflow: hidden; flex: 1; }
.mk-tr { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px; padding: 9px 12px; align-items: center; border-bottom: 1px solid #f0f2f7; }
.mk-th { background: #f6f8fd; color: #5d6575; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mk-rows { height: 200px; overflow: hidden; }
.mk-rows .mk-tr { animation: rowIn .5s ease both; }
.mk-tr .who { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mk-tr .who i { width: 22px; height: 22px; border-radius: 50%; background: #e3eaff; color: #0040e0; font-style: normal; font-size: 9px; display: grid; place-items: center; }
.mk-tr .closer { color: #0040e0; font-weight: 700; }
.mk-tr .st { justify-self: start; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-14px); background: #eef2ff; } to { opacity: 1; transform: none; background: #fff; } }
.mk-icr .mk-toast { position: absolute; right: 20px; bottom: 20px; background: #0b1020; color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.mk-icr .mk-toast b { font-size: 12px; }
.mk-icr .mk-toast span { font-size: 11px; opacity: .75; }
.mk-icr .mk-toast::before { content: ""; position: absolute; left: -4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: #ffb020; box-shadow: 0 0 0 4px rgba(255,176,32,.3); }

/* ---------- Modaly ---------- */
.mk-merge { margin-top: auto; background: #fff; border: 1px solid #e7ebf4; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.mk-merge small { color: #5d6575; font-size: 10px; }
.mk-merge__dots { display: flex; gap: 6px; }
.mk-merge__dots i { width: 18px; height: 18px; border-radius: 6px; background: #c9d4f0; animation: mergeDot 4s ease-in-out infinite; }
.mk-merge__dots i:nth-child(2) { animation-delay: .1s } .mk-merge__dots i:nth-child(3) { animation-delay: .2s }
.mk-merge__dots i:nth-child(4) { animation-delay: .3s } .mk-merge__dots i:nth-child(5) { animation-delay: .4s }
@keyframes mergeDot { 0%, 30% { transform: none; opacity: 1; } 55%, 85% { transform: translateX(var(--x, 0)) scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
.mk-merge__dots i:nth-child(1) { --x: 48px } .mk-merge__dots i:nth-child(2) { --x: 24px } .mk-merge__dots i:nth-child(4) { --x: -24px } .mk-merge__dots i:nth-child(5) { --x: -48px }
.mk-merge__one { background: #0040e0; color: #fff; font-weight: 700; border-radius: 8px; padding: 6px 10px; text-align: center; animation: mergeOne 4s ease-in-out infinite; }
@keyframes mergeOne { 0%, 40% { transform: scale(.92); opacity: .5; } 60%, 90% { transform: scale(1); opacity: 1; } 100% { transform: scale(.92); opacity: .5; } }
.mk-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mk-stage { border: 1px solid #e7ebf4; border-radius: 12px; padding: 10px; position: relative; overflow: hidden; }
.mk-stage small { color: #5d6575; font-size: 10px; display: block; }
.mk-stage b { font-size: 17px; font-variant-numeric: tabular-nums; }
.mk-stage:not(:last-child)::after { content: "›"; position: absolute; right: 6px; top: 8px; color: #b6c3e6; font-size: 16px; font-weight: 700; }
.mk-dots { height: 14px; margin-top: 6px; position: relative; overflow: hidden; }
.mk-dots::before { content: ""; position: absolute; inset: 5px 0; background: repeating-linear-gradient(90deg, #0040e0 0 6px, transparent 6px 14px); opacity: .35; animation: flowDots 1.2s linear infinite; }
@keyframes flowDots { from { transform: translateX(-14px); } to { transform: translateX(0); } }
.mk-sales { border: 1px solid #e7ebf4; border-radius: 12px; padding: 10px 12px; flex: 1; overflow: hidden; }
.mk-sales__head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.mk-sales__head small { color: #5d6575; font-size: 10px; margin-right: auto; }
.mk-feed { height: 118px; overflow: hidden; }
.mk-sale { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f0f2f7; animation: rowIn .5s ease both; }
.mk-sale b { font-weight: 700; }
.mk-sale em { font-style: normal; color: #12a150; font-weight: 700; }

/* ---------- Brasil Urbano ---------- */
.mk-bu__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; flex: 1; }
.mk-chart b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; display: block; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.mk-chart { display: flex; flex-direction: column; }
.mk-chart svg { width: 100%; flex: 1; min-height: 120px; display: block; }
.mk-line { stroke-dasharray: 420; stroke-dashoffset: 420; }
.mk-area { opacity: 0; transition: opacity 1s ease .8s; }
.is-live .mk-line { animation: draw 2s cubic-bezier(.3,.7,.2,1) forwards; }
.is-live .mk-area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mk-obras { display: flex; flex-direction: column; gap: 10px; }
.mk-docs__t { margin-top: 6px; }
.mk-doc { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 500; padding: 5px 0; border-top: 1px solid #f0f2f7; }
.mk-doc em { font-style: normal; }
.mk-obra { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.mk-obra span { font-weight: 700; font-size: 11px; }
.mk-obra em { font-style: normal; font-weight: 700; color: #0040e0; font-size: 11px; grid-row: 1; grid-column: 2; }
.mk-obra .mk-bar { grid-column: 1 / -1; }
.mk-notify { display: flex; flex-direction: column; background: #f4f7ff; border-color: #cdd9ff; }
.mk-notify b { font-size: 12px; color: #0040e0; }
.mk-notify span { font-size: 11px; color: #5d6575; }

/* ---------- Dr. Delivery ---------- */
.mk-ing { display: flex; justify-content: space-between; padding: 6px 10px; border: 1px solid #e7ebf4; border-radius: 9px; }
.mk-ing em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-fee { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 4px 2px; }
.mk-fee span { color: #5d6575; }
.mk-fee em { font-style: normal; font-weight: 700; width: 30px; text-align: right; }
.mk-fee .mk-bar i { transition: width .8s ease; }
.mk-price { margin-top: auto; background: #0040e0; color: #fff; border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.mk-price small { grid-column: 1; opacity: .8; font-size: 10px; }
.mk-price b { grid-column: 1; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-price .mk-chip { grid-column: 2; grid-row: 1 / 3; }

/* ---------- Evolve (chat) ---------- */
.mk-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden; }
.mk-msg { max-width: 82%; padding: 8px 11px; border-radius: 14px; font-size: 11.5px; animation: msgIn .35s ease both; }
.mk-msg--in { background: #f1f3f8; align-self: flex-start; border-bottom-left-radius: 4px; }
.mk-msg--out { background: #0040e0; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.mk-msg--ai::before { content: "IA"; display: inline-block; font-size: 8px; font-weight: 700; background: #e3eaff; color: #0040e0; border-radius: 4px; padding: 1px 4px; margin-right: 5px; vertical-align: 1px; }
.mk-typing { display: inline-flex; gap: 3px; }
.mk-typing i { width: 5px; height: 5px; border-radius: 50%; background: #9aa3b5; animation: typing 1s infinite; }
.mk-typing i:nth-child(2) { animation-delay: .15s } .mk-typing i:nth-child(3) { animation-delay: .3s }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Mol Spa (agenda) ---------- */
.mk-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.mk-col { position: relative; border: 1px solid #e7ebf4; border-radius: 10px; background: repeating-linear-gradient(180deg, transparent 0 33px, #f0f2f7 33px 34px); }
.mk-col small { position: absolute; top: -1px; left: 0; right: 0; text-align: center; font-size: 10px; color: #5d6575; background: #fff; padding: 3px 0; border-radius: 10px 10px 0 0; border-bottom: 1px solid #e7ebf4; font-weight: 700; z-index: 1; }
.mk-col i { position: absolute; left: 5px; right: 5px; top: calc(24px + var(--t) * 34px); height: calc(var(--h) * 34px - 5px); border-radius: 8px; font-style: normal; font-size: 10px; font-weight: 700; padding: 5px 7px; opacity: 0; transform: scale(.9); transition: opacity .4s ease, transform .4s ease; }
.mk-col i.c1 { background: #e3eaff; color: #0040e0; border-left: 3px solid #0040e0; }
.mk-col i.c2 { background: #e3f8ec; color: #12813f; border-left: 3px solid #12a150; }
.mk-col i.c3 { background: #f3e8ff; color: #7a2fc4; border-left: 3px solid #9b51e0; }
.mk-col i.is-on { opacity: 1; transform: none; }
.mk-wa { position: absolute; left: 16px; right: 16px; bottom: 14px; background: #0b1020; color: #fff; border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.mk-wa b { font-size: 11px; color: #8fffc0; }
.mk-wa span { font-size: 11px; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .mk *, .mk *::before { animation: none !important; transition: none !important; }
  .mk-line { stroke-dashoffset: 0; }
  .mk-area, [data-toast], .mk-col i { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .mock-frame { padding: 10px; border-radius: 18px; }
  .mock-frame--sm { padding: 10px; }
}
