/* Macaps Plugins — pré-visualizações (site + admin) */
.mk-host { position: relative; width: 100%; overflow: hidden; border-radius: 14px; }
.mk {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  background: #0E0E10; border: 1px solid #26262A; border-radius: 14px; overflow: hidden;
  color: #F6F6F7; font: 500 14px/1.35 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  display: flex; flex-direction: column; user-select: none;
}
.mk-bar { height: 34px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #141416; border-bottom: 1px solid #26262A; font-size: 12.5px; color: #CFCFD4; }
.mk-bar .cat { width: 16px; height: 14px; color: #F6F6F7; }
.mk-bar span { margin-right: auto; font-weight: 600; letter-spacing: .01em; }
.mk-bar i { width: 4px; height: 4px; border-radius: 50%; background: #4A4A50; }
.mk-body { position: relative; flex: 1; min-height: 0; }
.mk .chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; border: 1px solid #2E2E33; color: #A9A9B0; font-size: 12px; transition: all .25s; cursor: pointer; }
.mk .chip.on { background: #FFD23F; border-color: #FFD23F; color: #111; font-weight: 700; }
.mk .btn-y, .mk .btn-g { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 9px; font-weight: 700; font-size: 12.5px; transition: transform .15s, filter .15s; }
.mk .btn-y { background: #FFD23F; color: #111; }
.mk .btn-g { background: #1C1C20; color: #CFCFD4; border: 1px solid #2E2E33; }
.mk .pressed { transform: scale(.93); filter: brightness(1.15); }

.mk-cursor { position: absolute; left: 0; top: 0; z-index: 20; width: 22px; height: 22px; transform: translate(560px, 320px); transition: transform .65s cubic-bezier(.65, 0, .25, 1); pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.mk-cursor svg { width: 100%; height: 100%; transition: transform .15s; }
.mk-cursor.down svg { transform: scale(.8); }
.mk-cursor::after { content: ''; position: absolute; left: -6px; top: -6px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #FFD23F; opacity: 0; }
.mk-cursor.down::after { animation: mk-ring .5s ease-out; }
@keyframes mk-ring { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(2.2); } }

/* legendas */
.cap-video { position: absolute; inset: 14px 14px 76px; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 90% at 70% 10%, #2A2A30 0%, #141416 55%, #0A0A0B 100%); }
.cap-sun { position: absolute; right: 14%; top: 12%; width: 90px; height: 90px; border-radius: 50%; background: #FFD23F; opacity: .16; filter: blur(4px); }
.cap-person { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); width: 200px; height: 200px; }
.cap-person b { position: absolute; left: 62px; top: 16px; width: 76px; height: 86px; border-radius: 45%; background: #2E2E35; animation: cap-talk 2.2s ease-in-out infinite; }
.cap-person i { position: absolute; left: 10px; top: 100px; width: 180px; height: 140px; border-radius: 90px 90px 0 0; background: #26262D; }
@keyframes cap-talk { 50% { transform: translateY(-3px) rotate(-2deg); } }
.cap-rec { position: absolute; left: 12px; top: 10px; font-size: 11px; font-weight: 700; color: #F25F5C; letter-spacing: .08em; animation: cap-blink 1.4s steps(2) infinite; }
@keyframes cap-blink { 50% { opacity: .2; } }
.cap-line { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; font-size: 34px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.cap-line span { display: inline-block; margin: 0 .12em; color: rgba(255,255,255,.35); transition: color .15s, transform .2s cubic-bezier(.3,1.6,.5,1); text-shadow: 0 3px 0 #000, 0 0 18px rgba(0,0,0,.7); }
.cap-line span.seen { color: #fff; }
.cap-line span.on { color: #FFD23F; transform: scale(1.16) translateY(-2px); }
.cap-line.in { animation: cap-in .3s cubic-bezier(.2,1.4,.4,1); }
@keyframes cap-in { from { transform: translateY(10px) scale(.94); opacity: 0; } }
.cap-tl { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 50px; border-radius: 9px; background: #141416; border: 1px solid #26262A; overflow: hidden; }
.cap-wave { position: absolute; inset: 8px 10px; display: flex; align-items: center; gap: 3px; }
.cap-wave i { flex: 1; background: #34343B; border-radius: 2px; }
.cap-head { position: absolute; top: 0; bottom: 0; width: 2px; background: #FFD23F; box-shadow: 0 0 12px #FFD23F; transition: left .4s linear; }

/* curvas */
.cv-wrap { position: absolute; inset: 14px; display: grid; grid-template-columns: 1fr 150px; gap: 14px; }
.cv-graph { width: 100%; height: 100%; background: #111113; border: 1px solid #26262A; border-radius: 10px; }
.cv-graph line { stroke: #1E1E22; stroke-width: 1; }
.cv-path { fill: none; stroke: #F6F6F7; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cv-play { stroke: #FFD23F !important; stroke-width: 1.5 !important; }
.cv-h line { stroke: #FFD23F !important; stroke-width: 1.5 !important; }
.cv-h circle { fill: #FFD23F; }
.cv-side { display: flex; flex-direction: column; gap: 8px; }
.cv-track { position: relative; flex: 1; border-radius: 10px; background: #111113; border: 1px solid #26262A; }
.cv-track::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 14px; height: 2px; background: #2E2E33; }
.cv-ball { position: absolute; left: 50%; bottom: 16px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: #FFD23F; box-shadow: 0 0 24px rgba(255,210,63,.35); }
.cv-k { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 10px; background: #141416; border: 1px solid #26262A; border-radius: 8px; font-size: 12px; color: #A9A9B0; }
.cv-k b { color: #FFD23F; font-variant-numeric: tabular-nums; }
.cv-btn { height: 32px; display: grid; place-items: center; border-radius: 9px; background: #FFD23F; color: #111; font-weight: 700; font-size: 12.5px; transition: transform .15s; }

/* notas */
.nt-wrap { position: absolute; inset: 14px; display: grid; grid-template-columns: 230px 1fr; gap: 14px; }
.nt-pad { background: #141416; border: 1px solid #26262A; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; }
.nt-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #77777F; margin-bottom: 6px; }
.nt-text { min-height: 74px; padding: 10px; border-radius: 8px; background: #0E0E10; border: 1px solid #2A2A2F; font-size: 15px; font-weight: 600; }
.nt-text::after { content: ''; display: inline-block; width: 2px; height: 16px; background: #FFD23F; margin-left: 2px; vertical-align: -2px; animation: cap-blink 1s steps(2) infinite; }
.nt-btns { display: flex; gap: 6px; margin-top: 10px; }
.nt-btns span { flex: 1; font-size: 11.5px !important; padding: 0 6px !important; }
.nt-pal { display: flex; gap: 6px; }
.nt-pal i { flex: 1; height: 30px; border-radius: 7px; background: #1C1C20; border: 1px solid #26262A; transform: scale(.85); transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .2s; }
.nt-pal i.in { transform: scale(1); border-color: transparent; }
.nt-comp { position: relative; border-radius: 10px; border: 1px solid #26262A; background: repeating-conic-gradient(#121214 0 25%, #0F0F11 0 50%) 0 0/24px 24px; overflow: hidden; }
.nt-shot { position: absolute; right: 16px; top: 16px; width: 150px; height: 96px; border-radius: 8px; overflow: hidden; display: flex; opacity: 0; transform: translateY(8px) rotate(3deg); transition: all .4s cubic-bezier(.2,1.2,.4,1); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.nt-shot.in { opacity: 1; transform: rotate(-2deg); }
.nt-shot i { flex: 1; }
.nt-layer { position: absolute; left: 50%; top: 58%; transform: translate(-50%,-50%) scale(.6); opacity: 0; padding: 8px 14px; border: 1.5px dashed #FFD23F; transition: all .45s cubic-bezier(.2,1.5,.4,1); white-space: nowrap; }
.nt-layer span { font-size: 26px; font-weight: 800; }
.nt-layer.in { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* download */
.dl-wrap { position: absolute; inset: 22px; display: flex; flex-direction: column; gap: 14px; }
.dl-field { display: flex; align-items: center; height: 48px; padding: 0 7px 0 16px; border-radius: 12px; background: #141416; border: 1px solid #2E2E33; font-size: 15px; }
.dl-url { color: #DADADF; white-space: nowrap; overflow: hidden; }
.dl-caret { width: 2px; height: 18px; background: #FFD23F; margin-left: 2px; animation: cap-blink 1s steps(2) infinite; }
.dl-go { margin-left: auto; height: 36px !important; padding: 0 20px !important; }
.dl-q { display: flex; gap: 7px; }
.dl-card { display: flex; gap: 14px; padding: 14px; border-radius: 12px; background: #141416; border: 1px solid #26262A; opacity: 0; transform: translateY(12px); transition: all .45s cubic-bezier(.2,1.2,.4,1); }
.dl-card.in { opacity: 1; transform: none; }
.dl-thumb { width: 150px; height: 88px; flex: none; border-radius: 8px; background: linear-gradient(135deg, #2A2A30, #18181B); position: relative; }
.dl-thumb::after { content: ''; position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -7px; border-left: 18px solid #FFD23F; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.dl-meta { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.dl-bar { height: 10px; margin-top: 16px; border-radius: 99px; background: #26262A; position: relative; }
.dl-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, rgba(255,210,63,.3), #FFD23F); position: relative; }
.dl-runner { position: absolute; right: -14px; top: -24px; width: 28px; height: 24px; color: #FFD23F; animation: dl-hop .28s ease-in-out infinite alternate; }
.dl-runner .cat { width: 100%; height: 100%; }
@keyframes dl-hop { to { transform: translateY(-5px) rotate(-6deg); } }
.dl-card.done .dl-runner { animation: none; transform: scale(1.15); }
.dl-pct { color: #A9A9B0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dl-card.done .dl-pct { color: #FFD23F; font-weight: 700; }

/* console */
.cs-wrap { position: absolute; inset: 14px; border-radius: 10px; background: #0A0A0B; border: 1px solid #26262A; padding: 16px 18px; font: 500 14px/1.7 ui-monospace, 'Cascadia Code', Consolas, monospace; display: flex; flex-direction: column; justify-content: flex-end; }
.cs-l { color: #A9A9B0; animation: cap-in .3s ease-out; }
.cs-l b, .cs-in b { color: #FFD23F; }
.cs-l.ok { color: #F6F6F7; padding-left: 14px; }
.cs-in { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px solid #1E1E22; }

/* genérico */
.gn-wrap { position: absolute; inset: 14px; display: grid; grid-template-columns: 250px 1fr; gap: 14px; }
.gn-list { display: flex; flex-direction: column; gap: 7px; }
.gn-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #141416; border: 1px solid #26262A; font-size: 13px; transition: all .25s; }
.gn-item.on { border-color: #FFD23F; background: #1A1810; }
.gn-ic { width: 26px; height: 26px; flex: none; border-radius: 7px; background: #FFD23F; color: #111; display: grid; place-items: center; }
.gn-ic .glyph { width: 16px; height: 16px; }
.gn-stage { position: relative; border-radius: 10px; border: 1px solid #26262A; background: radial-gradient(circle at 50% 45%, #1C1C20, #0E0E10 70%); display: grid; place-items: center; }
.gn-big { width: 110px; height: 110px; border-radius: 26px; background: #FFD23F; color: #111; display: grid; place-items: center; box-shadow: 0 20px 60px rgba(255,210,63,.18); }
.gn-big .glyph { width: 58px; height: 58px; }
.gn-big.pop { animation: gn-pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes gn-pop { 30% { transform: scale(.88) rotate(-6deg); } }
.gn-toast { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 14px; border-radius: 99px; background: #F6F6F7; color: #111; font-weight: 700; font-size: 12.5px; white-space: nowrap; opacity: 0; }
.gn-toast.in { animation: gn-toast 1.6s cubic-bezier(.2,1.2,.4,1) forwards; }
@keyframes gn-toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 15%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .mk *, .mk-cursor { animation-duration: .01s !important; transition-duration: .01s !important; } }
