/* Magni client-panel mock for the commercial site hero.
   Scope: everything lives under .mk (classes all start with mk-). Dark only.
   Layout: a 560x400 "app window" (.mk-win) scaled with transform by --mk-s (set by mock.js from the slot width);
   .mk-float carries the scaled size so the page flows around it. Under 440px the sidebar collapses to icons
   (.mk-narrow, base width 464). The tour (4 scenes, ~14s) is driven by classes toggled in mock.js:
   .mk-on/.mk-out on a scene, .mk-go (scene content plays), .mk-in (deposit row), .mk-flipped (pending -> active),
   .mk-typing-on / .mk-replied (chat). prefers-reduced-motion: no transitions, final state only. */

#mock-slot:has(.mk) { min-height: 0; border: 0; outline: 0; background: none; }

.mk {
  --mk-bw: 560px; --mk-bh: 400px; --mk-s: 1;
  --mk-text: #E8ECF1; --mk-muted: #A3ADBA; --mk-line: rgba(255,255,255,.12);
  --mk-blue: #0237D7; --mk-blue-b: #4B74FF; --mk-blue-t: #8FA9FF; --mk-green: #5BD6A6;
  --mk-card: linear-gradient(180deg, #161E29, #111820);
  position: relative; width: 100%; color: var(--mk-text);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  user-select: none; -webkit-user-select: none;
}
.mk, .mk *, .mk *::before, .mk *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* glow + wrapper (it used to float up and down; Lucas asked for it to stay still, 02/11/2026) */
.mk-glow {
  position: absolute; left: 50%; top: 50%; width: 125%; height: 135%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(2,55,215,.40), rgba(2,55,215,.12) 55%, rgba(2,55,215,0));
  pointer-events: none; z-index: 0;
}
.mk-float {
  position: relative; z-index: 1; margin: 0 auto;
  width: calc(var(--mk-bw) * var(--mk-s)); height: calc(var(--mk-bh) * var(--mk-s));
}

/* the window */
.mk-win {
  position: absolute; top: 0; left: 0; width: 560px; height: 400px;
  transform: scale(var(--mk-s)); transform-origin: 0 0;
  display: flex; overflow: hidden; border-radius: 16px;
  background: #101820; border: 1px solid var(--mk-line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 80px rgba(2,55,215,.18), inset 0 1px 0 rgba(255,255,255,.05);
  font-size: 12px; line-height: 1.45;
}
.mk-narrow .mk-win { width: 464px; }

/* sidebar */
.mk-side {
  flex: none; width: 148px; display: flex; flex-direction: column; gap: 4px; padding: 14px 10px 12px;
  border-right: 1px solid rgba(255,255,255,.09); background: linear-gradient(180deg, #121A24, #0E151D);
}
.mk-tile {
  width: 40px; height: 40px; margin: 0 0 14px 2px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1D2631, #121820); border: 1px solid var(--mk-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px rgba(0,0,0,.4), 0 0 24px rgba(2,55,215,.3);
}
.mk-tile img { display: block; height: 20px; width: auto; }
.mk-nav { display: flex; flex-direction: column; gap: 4px; }
.mk-nav-item {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: 10px;
  color: var(--mk-muted); font-weight: 500; font-size: 12px; white-space: nowrap;
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.mk-nav-item svg { width: 16px; height: 16px; flex: none; }
.mk-nav-item.mk-active { background-color: var(--mk-blue); color: #fff; box-shadow: 0 6px 16px rgba(2,55,215,.35); }
.mk-side-foot { margin-top: auto; display: flex; align-items: center; gap: 7px; padding: 0 10px; font-size: 10px; color: var(--mk-muted); white-space: nowrap; }
.mk-narrow .mk-side { width: 52px; padding: 12px 6px 10px; }
.mk-narrow .mk-tile { margin-left: 0; }
.mk-narrow .mk-nav-item { justify-content: center; padding: 0; }
.mk-narrow .mk-nav-item > span, .mk-narrow .mk-side-foot > span { display: none; }
.mk-narrow .mk-side-foot { justify-content: center; padding: 0; }

/* main column */
.mk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mk-top {
  flex: none; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.mk-title { font-family: 'Glancyr', 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .01em; }
.mk-top-right { display: flex; align-items: center; gap: 12px; }
.mk-bell { position: relative; display: grid; place-items: center; width: 24px; height: 24px; color: var(--mk-muted); }
.mk-bell svg { width: 16px; height: 16px; }
.mk-bell i { position: absolute; top: 3px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--mk-blue-b); box-shadow: 0 0 0 2px #101820; }
.mk-avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #4B74FF, #0237D7); border: 1px solid rgba(255,255,255,.18);
}
.mk-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }

/* scenes */
.mk-scene {
  position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.mk-scene.mk-on { opacity: 1; transform: none; transition-delay: .12s; }
.mk-scene.mk-out { opacity: 0; transform: translateY(-8px); transition: opacity .35s ease, transform .35s ease; transition-delay: 0s; }
.mk:not(.mk-js) .mk-scene-wallet { opacity: 1; transform: none; }

/* shared bits */
.mk-card { background: var(--mk-card); border: 1px solid rgba(255,255,255,.10); border-radius: 12px; padding: 14px 16px; }
.mk-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-label { font-size: 11px; font-weight: 500; color: var(--mk-muted); letter-spacing: .02em; }
.mk-h { font-family: 'Glancyr', 'Montserrat', sans-serif; font-weight: 600; font-size: 13px; }
.mk-sub { font-size: 11px; color: var(--mk-muted); margin-top: 4px; }
.mk-muted { color: var(--mk-muted); }
.mk-big { display: block; font-family: 'Glancyr', 'Montserrat', sans-serif; font-weight: 600; font-size: 32px; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mk-big-sm { font-size: 22px; margin-top: 4px; }
.mk-today { font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 11px; color: var(--mk-muted); letter-spacing: 0; }
.mk-chip { font-size: 10px; font-weight: 600; color: var(--mk-blue-t); background: rgba(75,116,255,.12); border: 1px solid rgba(75,116,255,.25); border-radius: 6px; padding: 2px 6px; }
.mk-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.mk-pill-green { color: var(--mk-green); background: rgba(91,214,166,.13); border: 1px solid rgba(91,214,166,.3); }
.mk-pill-amber { color: #F2B45A; background: rgba(242,154,31,.13); border: 1px solid rgba(242,154,31,.3); }
.mk-pill-blue { color: var(--mk-blue-t); background: rgba(75,116,255,.13); border: 1px solid rgba(75,116,255,.3); }
.mk-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.mk-dot-green { color: var(--mk-green); box-shadow: 0 0 8px rgba(91,214,166,.6); }
.mk-flip-wrap { position: relative; display: inline-grid; }
.mk-flip-wrap > .mk-pill { grid-area: 1 / 1; transition: opacity .4s ease, transform .4s ease; }
.mk-flip-wrap > .mk-flip-b { opacity: 0; transform: translateY(6px); }
.mk-flipped .mk-flip-wrap > .mk-flip-a { opacity: 0; transform: translateY(-6px); }
.mk-flipped .mk-flip-wrap > .mk-flip-b { opacity: 1; transform: none; }

/* scene 1: wallet */
.mk-wallet { padding: 16px 18px; }
.mk-deposit {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px;
  background: rgba(91,214,166,.06); border: 1px solid rgba(91,214,166,.22);
  opacity: 0; transform: translateX(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.mk-deposit.mk-in { opacity: 1; transform: none; }
.mk-dep-icon { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--mk-green); background: rgba(91,214,166,.14); }
.mk-dep-icon svg { width: 15px; height: 15px; }
.mk-dep-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mk-dep-text strong { font-weight: 600; font-size: 12px; }
.mk-dep-text span { font-size: 11px; color: var(--mk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-deposit .mk-pill { flex: none; opacity: 0; transform: scale(.7); transition: opacity .35s ease .25s, transform .4s cubic-bezier(.3,1.4,.5,1) .25s; }
.mk-deposit.mk-in .mk-pill { opacity: 1; transform: none; }
.mk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-tile-stat { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; }
.mk-tile-stat strong { font-family: 'Glancyr', 'Montserrat', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.15; }

/* scene 2: accounts */
.mk-scene-head { padding: 0 2px; }
.mk-table-card { padding: 4px 6px; }
.mk-table { width: 100%; border-collapse: collapse; }
.mk-table th { text-align: left; font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mk-muted); padding: 9px 10px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mk-table td { padding: 10px 10px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; white-space: nowrap; }
.mk-table tbody tr:last-child td { border-bottom: 0; }
.mk-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.mk-acc { font-size: 12px; color: var(--mk-muted); }
.mk-acc b { font-weight: 600; color: var(--mk-text); }
.mk-table tbody tr { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.mk-go .mk-table tbody tr { opacity: 1; transform: none; }
.mk-table tbody tr:nth-child(2) { transition-delay: .08s; }
.mk-table tbody tr:nth-child(3) { transition-delay: .16s; }
.mk-table tbody tr:nth-child(4) { transition-delay: .24s; }
.mk-table tbody tr.mk-flipped { animation: mk-flash 1.6s ease-out; }
@keyframes mk-flash { 0% { background: rgba(91,214,166,0); } 18% { background: rgba(91,214,166,.16); } 100% { background: rgba(91,214,166,0); } }

/* scene 3: spend */
.mk-chart-card { padding: 14px 16px 12px; }
.mk-chart-head { align-items: flex-start; }
.mk-chart-head > span:first-child { display: flex; flex-direction: column; }
.mk-chart { display: block; width: 100%; height: 104px; margin-top: 10px; overflow: visible; }
.mk-bar { fill: var(--mk-blue); transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.mk-bar-today { fill: var(--mk-blue-b); }
.mk-base { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.mk-go .mk-bar { transform: scaleY(1); }
.mk-bar:nth-child(1) { transition-delay: .00s; } .mk-bar:nth-child(2) { transition-delay: .05s; }
.mk-bar:nth-child(3) { transition-delay: .10s; } .mk-bar:nth-child(4) { transition-delay: .15s; }
.mk-bar:nth-child(5) { transition-delay: .20s; } .mk-bar:nth-child(6) { transition-delay: .25s; }
.mk-bar:nth-child(7) { transition-delay: .30s; } .mk-bar:nth-child(8) { transition-delay: .35s; }
.mk-bar:nth-child(9) { transition-delay: .40s; } .mk-bar:nth-child(10) { transition-delay: .45s; }
.mk-bar:nth-child(11) { transition-delay: .50s; } .mk-bar:nth-child(12) { transition-delay: .55s; }
.mk-bar:nth-child(13) { transition-delay: .60s; } .mk-bar:nth-child(14) { transition-delay: .65s; }
.mk-deltas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-delta { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.mk-go .mk-delta { opacity: 1; transform: none; }
.mk-delta:nth-child(1) { transition-delay: .5s; } .mk-delta:nth-child(2) { transition-delay: .62s; } .mk-delta:nth-child(3) { transition-delay: .74s; }
.mk-delta strong { font-family: 'Glancyr', 'Montserrat', sans-serif; font-weight: 600; font-size: 17px; line-height: 1.15; }
.mk-delta em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--mk-green); }

/* scene 4: support */
.mk-chat { flex: 1; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mk-chat-head { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mk-msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.mk-msg { max-width: 78%; border-radius: 14px; padding: 9px 12px 7px; font-size: 12px; line-height: 1.45; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.mk-msg p { margin: 0; }
.mk-msg time { display: block; font-size: 9px; margin-top: 3px; opacity: .7; }
.mk-msg-me { align-self: flex-end; background: var(--mk-blue); color: #fff; border-bottom-right-radius: 4px; }
.mk-msg-me time { text-align: right; }
.mk-msg-them { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-bottom-left-radius: 4px; }
.mk-who { display: block; font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mk-blue-t); margin-bottom: 3px; }
.mk-go .mk-msg-me { opacity: 1; transform: none; transition-delay: .15s; }
.mk-typing { display: none; padding-bottom: 9px; }
.mk-typing-on .mk-typing { display: block; opacity: 1; transform: none; animation: mk-pop .4s cubic-bezier(.2,.7,.2,1); }
@keyframes mk-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.mk-replied .mk-typing { display: none; }
.mk-dots { display: inline-flex; gap: 4px; height: 12px; align-items: center; }
.mk-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mk-muted); animation: mk-typing 1s ease-in-out infinite; }
.mk-dots i:nth-child(2) { animation-delay: .15s; } .mk-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mk-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.mk-reply { display: none; }
.mk-replied .mk-reply { display: block; opacity: 1; transform: none; animation: mk-pop .4s cubic-bezier(.2,.7,.2,1); }
.mk-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 16px 14px; height: 36px; padding: 0 6px 0 14px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); font-size: 11px; color: var(--mk-muted); }
.mk-send { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--mk-blue); color: #fff; }
.mk-send svg { width: 13px; height: 13px; }

/* reduced motion: no movement at all; mock.js shows the final state */
@media (prefers-reduced-motion: reduce) {
  .mk, .mk *, .mk *::before, .mk *::after { animation: none !important; transition: none !important; }
}
