/* Animated phone mockups shared by the What's New page and the homepage teaser.
   They replicate the real Asset Arca app UI (see whatsNew/index.html for the markup). */

.mk {
    width: 300px; max-width: 100%;
    border-radius: 26px;
    padding: 8px;
    position: relative;
    box-shadow: 0 14px 34px rgba(30,28,22,.16), 0 3px 8px rgba(30,28,22,.08);
    background-clip: padding-box;
    background-color: #111;
}
.mk-screen {
    background:
        radial-gradient(130% 80% at 10% 0%, #ffffff 0%, rgba(255,255,255,0) 50%),
        linear-gradient(160deg, #f6f5f2 0%, #eceae4 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.mk-header {
    display:flex; align-items:flex-start; justify-content:space-between;
    padding: 16px 14px 12px;
    background: rgba(255,255,255,.82);
    border-bottom: 1px solid #E0E0E0;
}
.mk-brand .t { font-size:15px; font-weight:400; color:#000; letter-spacing:-.2px; }
.mk-brand .amt { font-size:12px; font-weight:300; color:#666; margin-top:3px; }
.mk-prof { width:26px; height:26px; border-radius:50%; background:#000; display:flex; align-items:center; justify-content:center; flex:none; }
.mk-prof svg { width:14px; height:14px; fill:#fff; }
.mk-list { padding: 8px 14px 16px; position:relative; }
.mk-sec { display:flex; align-items:center; gap:9px; margin:12px 2px 8px; }
.mk-sec svg { width:17px; height:17px; stroke:#1a1a1a; fill:none; stroke-width:1.7; }
.mk-sec-t { font-size:13.5px; font-weight:700; color:#1a1a1a; }
.mk-group { background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.mk-row {
    display:flex; align-items:center; justify-content:space-between;
    padding: 12px 14px; background:#fff; overflow:hidden;
}
.mk-row + .mk-row { border-top:1px solid #eee; }
.mk-info { min-width:0; flex:1; margin-right:10px; }
.mk-name { font-size:14px; font-weight:300; color:#1a1a1a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mk-sub  { font-size:11.5px; font-weight:200; color:#666; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mk-bal  { font-size:14px; font-weight:300; color:#1a1a1a; white-space:nowrap; }
.mk-bal.neg { color:#8B0000; }

@media (prefers-reduced-motion: reduce) { .mk * { animation:none !important; } }

/* ── v2.3 — Dashboard switcher (three dashboards cross-fade) ── */
.d3-titles { position:relative; height:19px; width:185px; }
.d3-t { position:absolute; left:0; top:0; font-size:15px; font-weight:400; color:#000; letter-spacing:-.2px; white-space:nowrap; opacity:0; animation:d3fade 12s infinite; }
.d3-t2 { animation-delay:4s; } .d3-t3 { animation-delay:8s; }
.d3-filter { width:30px; height:30px; border-radius:50%; background:#efefef; display:flex; align-items:center; justify-content:center; flex:none; }
.d3-filter svg { width:16px; height:16px; stroke:#1a1a1a; fill:none; stroke-width:1.8; stroke-linecap:round; transform-origin:center; animation:d3tap 4s infinite; }
.d3-filter .knob { fill:#efefef; }
@keyframes d3tap { 0%{transform:scale(1);} 5%{transform:scale(.78);} 13%{transform:scale(1);} 100%{transform:scale(1);} }
.d3-body { position:relative; height:248px; padding:0 !important; }
.d3-panel { position:absolute; inset:0; padding:14px; opacity:0; animation:d3fade 12s infinite; }
.d3-p2 { animation-delay:4s; } .d3-p3 { animation-delay:8s; }
@keyframes d3fade {
    0%{opacity:0; transform:translateY(6px);}
    2%{opacity:1; transform:translateY(0);}
    31%{opacity:1; transform:translateY(0);}
    34%{opacity:0; transform:translateY(-6px);}
    100%{opacity:0; transform:translateY(-6px);}
}
.d3-ico { width:30px; height:30px; flex:none; margin-right:10px; display:flex; align-items:center; justify-content:center; }
.d3-ico svg { width:19px; height:19px; stroke:#555; fill:none; stroke-width:1.7; stroke-linecap:round; }
.d3-date { font-size:13px; font-weight:400; color:#333; white-space:nowrap; }
.d3-total { background:#1C1C1E; border-radius:14px; padding:14px; text-align:center; margin-bottom:12px; }
.d3-total .lbl { font-size:11px; color:#E0E0E0; font-weight:300; }
.d3-total .val { font-size:22px; color:#fff; font-weight:400; margin-top:4px; }

/* ── v2.3 — Asset Guide (guided onboarding) ── */
.ag-screen { display:flex; flex-direction:column; min-height:372px; }
.ag-top { padding:14px 14px 0; }
.ag-close { width:17px; height:17px; stroke:#1a1a1a; fill:none; stroke-width:2; stroke-linecap:round; display:block; }
.ag-prog { height:6px; border-radius:3px; background:#e2e2e5; overflow:hidden; margin-top:12px; }
.ag-bar { height:100%; width:4%; background:#1C1C1E; border-radius:3px; animation:agbar 9s infinite; }
@keyframes agbar { 0%,6%{width:4%;} 12%{width:22%;} 18%{width:42%;} 24%{width:62%;} 30%{width:82%;} 36%,92%{width:100%;} 96%,100%{width:4%;} }
.ag-body { flex:1; padding:14px 14px 4px; }
.ag-title { font-size:19px; font-weight:200; color:#1a1a1a; letter-spacing:-.2px; }
.ag-sub { font-size:12px; color:#666; margin:5px 0 12px; }
.ag-cat { font-size:12px; font-weight:700; color:#555; margin:12px 2px 7px; }
.ag-group { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.ag-row { display:flex; align-items:center; gap:11px; padding:11px 13px; }
.ag-row + .ag-row { border-top:1px solid #eee; }
.ag-ic svg { width:19px; height:19px; stroke:#8a8a8a; fill:none; stroke-width:1.6; display:block; }
.ag-name { flex:1; font-size:13px; font-weight:300; color:#1a1a1a; }
.ag-box { width:21px; height:21px; border-radius:6px; flex:none; position:relative; border:1.8px solid #c7c7cc; background:#fff; }
/* White check is always drawn; it only shows once the box turns dark. */
.ag-box svg { position:absolute; inset:0; margin:auto; width:12px; height:12px; stroke:#fff; fill:none; stroke-width:2.8; stroke-linecap:round; stroke-linejoin:round; }
.ag-box.b1 { animation:agb1 9s infinite; } .ag-box.b2 { animation:agb2 9s infinite; }
.ag-box.b3 { animation:agb3 9s infinite; } .ag-box.b4 { animation:agb4 9s infinite; }
.ag-box.b5 { animation:agb5 9s infinite; }
@keyframes agb1 { 0%,6%{background:#fff;border-color:#c7c7cc;} 12%,92%{background:#1C1C1E;border-color:#1C1C1E;} 96%,100%{background:#fff;border-color:#c7c7cc;} }
@keyframes agb2 { 0%,12%{background:#fff;border-color:#c7c7cc;} 18%,92%{background:#1C1C1E;border-color:#1C1C1E;} 96%,100%{background:#fff;border-color:#c7c7cc;} }
@keyframes agb3 { 0%,18%{background:#fff;border-color:#c7c7cc;} 24%,92%{background:#1C1C1E;border-color:#1C1C1E;} 96%,100%{background:#fff;border-color:#c7c7cc;} }
@keyframes agb4 { 0%,24%{background:#fff;border-color:#c7c7cc;} 30%,92%{background:#1C1C1E;border-color:#1C1C1E;} 96%,100%{background:#fff;border-color:#c7c7cc;} }
@keyframes agb5 { 0%,30%{background:#fff;border-color:#c7c7cc;} 36%,92%{background:#1C1C1E;border-color:#1C1C1E;} 96%,100%{background:#fff;border-color:#c7c7cc;} }
.ag-foot { padding:12px 14px 16px; display:flex; justify-content:flex-end; }
.ag-btn { background:#1C1C1E; color:#fff; font-size:13px; font-weight:300; padding:11px 26px; border-radius:20px; }

/* ── v2.3 — Bubbles (floating asset-category bubbles) ── */
.bb-toggle { display:flex; justify-content:center; padding:10px 0 0; }
.bb-pill { display:flex; background:#ececec; border-radius:999px; padding:3px; }
.bb-opt { display:flex; align-items:center; gap:5px; padding:5px 13px; border-radius:999px; font-size:11px; font-weight:300; color:#666; }
.bb-opt svg { width:13px; height:13px; stroke:#666; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.bb-opt.on { background:#fff; color:#000; font-weight:700; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.bb-opt.on svg { stroke:#000; }
.bb-field { position:relative; height:276px; }
.bb-b { position:absolute; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center;
        text-align:center; color:#fbf8f2; overflow:hidden; box-shadow:0 8px 14px rgba(30,28,22,.22);
        animation:bbfloat 6s ease-in-out infinite; }
.bb-b::before { content:""; position:absolute; top:0; left:0; right:0; height:55%; background:rgba(255,255,255,.14); }
.bb-b svg { position:relative; width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.bb-b span { position:relative; margin-top:3px; padding:0 6px; font-size:9.5px; line-height:1.15; font-weight:700; }
.bb-b.s1 { width:104px; height:104px; left:16px; top:18px; background:#6E8070; animation-delay:0s; }
.bb-b.s2 { width:86px; height:86px; left:150px; top:10px; background:#5F7079; animation-delay:-1.4s; animation-duration:7s; }
.bb-b.s3 { width:76px; height:76px; left:182px; top:112px; background:#7F8E95; animation-delay:-2.6s; animation-duration:5.4s; }
.bb-b.s4 { width:70px; height:70px; left:72px; top:140px; background:#8A6A51; animation-delay:-3.8s; animation-duration:6.6s; }
.bb-b.s5 { width:58px; height:58px; left:6px; top:152px; background:#C4B393; color:#2b2721; animation-delay:-1s; animation-duration:5.8s; }
.bb-b.s6 { width:62px; height:62px; left:152px; top:192px; background:#6E7A82; animation-delay:-4.6s; animation-duration:6.2s; }
.bb-b.s5 span, .bb-b.s5 svg { color:#2b2721; }
@keyframes bbfloat {
    0%,100% { transform:translate(0,0); }
    25% { transform:translate(4px,-5px); }
    50% { transform:translate(-3px,-2px); }
    75% { transform:translate(-4px,4px); }
}
