/* NexaOS animated product mock-ups (used with motion.js).
   Each .nx-card holds one .ui scene, authored at a fixed size and scaled to fit.
   Every rule is scoped to .nx-card so the short class names never clash with the page's own styles.
   Dark styles at the bottom follow the site's theme toggle (:root[data-theme="dark"]). */

.nx-fit { position: relative; width: 100%; min-width: 0; }
.nx-card { position: absolute; left: 0; top: 0; border-radius: 22px; overflow: hidden; background: #fff; transform-origin: 0 0;
  box-shadow: 0 50px 110px -34px rgba(30,60,140,.38), 0 12px 30px -12px rgba(30,60,140,.16), 0 0 0 1px rgba(15,35,68,.07); }

.nx-card .ui { position: absolute; inset: 0; font-family: "Plus Jakarta Sans", "Manrope", sans-serif; padding: 26px 30px; font-size: 17px; color: #0f1a33; background: #fff; text-align: left; line-height: normal; }
.nx-card .ui [data-in] { opacity: 0; }
.nx-card .uh { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.nx-card .uh b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.nx-card .uh em { font-style: normal; color: #8793ab; font-size: 15px; font-weight: 600; margin-left: auto; }
.nx-card .uh .st { margin-left: 14px; }
.nx-card .uh em + .st { margin-left: 14px; }
.nx-card .live { display: inline-flex; align-items: center; gap: 7px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: #16a34a; background: #e9f9ef; padding: 5px 10px; border-radius: 999px; }
.nx-card .live i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; display: block; }
.nx-card .kp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.nx-card .k { border: 1px solid #e6ebf3; border-radius: 14px; padding: 14px 16px; position: relative; box-shadow: 0 4px 12px -8px rgba(30,60,140,.25); }
.nx-card .k b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; display: block; padding-left: 18px; }
.nx-card .k small { font-size: 11px; font-weight: 700; color: #8793ab; letter-spacing: .08em; padding-left: 18px; white-space: nowrap; }
.nx-card .k .d { position: absolute; left: 16px; top: 29px; width: 9px; height: 9px; border-radius: 50%; }
.nx-card .g { background: #16a34a; } .nx-card .b { background: #0060e4; } .nx-card .o { background: #f59e0b; } .nx-card .r { background: #e11d48; } .nx-card .y { background: #f59e0b; }
.nx-card .tb { border: 1px solid #e6ebf3; border-radius: 14px; overflow: hidden; }
.nx-card .tr { display: grid; grid-template-columns: 2.1fr 1.1fr 1.3fr 1.3fr; align-items: center; padding: 0 18px; height: 57px; border-top: 1px solid #eef2f8; font-weight: 600; }
.nx-card .tr.th { height: 38px; border-top: 0; background: #f7f9fc; font-size: 11px; letter-spacing: .08em; color: #8793ab; font-weight: 700; }
.nx-card .nm { display: flex; align-items: center; gap: 12px; font-weight: 700; white-space: nowrap; }
.nx-card .av { width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nx-card .tg { font-size: 13px; font-weight: 700; color: #0060e4; background: #e8f1fe; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.nx-card .pl { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; background: transparent !important; }
.nx-card .pl i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.nx-card .pl.g { color: #15803d; box-shadow: inset 0 0 0 100px #e9f9ef; } .nx-card .pl.g i { background: #16a34a; }
.nx-card .pl.o, .nx-card .pl.y { color: #b45309; box-shadow: inset 0 0 0 100px #fff4dc; } .nx-card .pl.o i, .nx-card .pl.y i { background: #f59e0b; }
.nx-card .pl.r { color: #be123c; box-shadow: inset 0 0 0 100px #ffe9ee; } .nx-card .pl.r i { background: #e11d48; }
.nx-card .sw { display: inline-grid; justify-items: start; align-items: center; }
.nx-card .sw > * { grid-area: 1/1; }
.nx-card .sw > *:nth-child(2) { opacity: 0; }
.nx-card .br, .nx-card .ab { display: block; height: 8px; border-radius: 4px; background: #eaf0fb; overflow: hidden; }
.nx-card .br i, .nx-card .ab i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #0060e4, #18a0fc); }
.nx-card .ab.bad i { background: #e11d48; } .nx-card .ab.warn i { background: linear-gradient(90deg, #f59e0b, #ea580c); }
.nx-card .pr { padding-right: 6px; }
.nx-card .sg { border: 1px solid #e6ebf3; border-radius: 14px; padding: 6px 14px 12px; }
.nx-card .sr { display: grid; grid-template-columns: 150px repeat(7, 1fr); gap: 8px; align-items: center; height: 62px; }
.nx-card .sr.sh { height: 36px; font-size: 11px; font-weight: 700; color: #8793ab; letter-spacing: .08em; text-align: center; }
.nx-card .c { display: block; font-style: normal; text-align: center; font-family: "JetBrains Mono", monospace; font-size: 14px; padding: 11px 0; border-radius: 9px; background: #e8f1fe; color: #0047b3; width: 100%; }
.nx-card .c.e { background: transparent; color: #c3cbdb; }
.nx-card .c.hot { background: #0060e4; color: #fff; box-shadow: 0 8px 18px -8px rgba(0,96,228,.8); }
.nx-card .c.off { background: #f1f3f7; color: #6b7890; font-family: "Plus Jakarta Sans", "Manrope", sans-serif; font-weight: 700; white-space: nowrap; }
.nx-card .sg .sw { display: grid; justify-items: stretch; }
.nx-card .toast { position: absolute; right: 30px; bottom: 24px; display: flex; align-items: center; gap: 10px; background: #0f1a33; color: #fff; font-weight: 700; font-size: 16px; padding: 13px 18px; border-radius: 12px; box-shadow: 0 16px 30px -12px rgba(15,26,51,.6); }
.nx-card .toast svg { width: 20px; height: 20px; }
.nx-card .ap { display: grid; grid-template-columns: 1fr 250px; gap: 26px; align-items: center; }
.nx-card .al { border: 1px solid #e6ebf3; border-radius: 14px; padding: 8px 20px; }
.nx-card .ar { display: grid; grid-template-columns: 1.25fr 1fr 80px; gap: 16px; align-items: center; height: 62px; border-top: 1px solid #eef2f8; font-weight: 700; }
.nx-card .ar:first-child { border-top: 0; }
.nx-card .an { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.nx-card .an u { text-decoration: none; font-size: 10px; letter-spacing: .06em; color: #be123c; background: #ffe9ee; padding: 4px 8px; border-radius: 6px; }
.nx-card .at { font-family: "JetBrains Mono", monospace; font-size: 14px; color: #5b6782; text-align: right; }
.nx-card .dn { position: relative; width: 250px; height: 250px; }
.nx-card .dn svg { width: 100%; height: 100%; }
.nx-card .dc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nx-card .dc b { font-size: 52px; font-weight: 800; letter-spacing: -.04em; } .nx-card .dc small { color: #8793ab; font-weight: 700; font-size: 14px; }
.nx-card .ch { width: 100%; height: 210px; border: 1px solid #e6ebf3; border-radius: 14px; padding: 6px 0; }
.nx-card .trk { stroke: #eaf0fb; } .nx-card .gl { stroke: #eef2f8; }
.nx-card .als { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.nx-card .alr { display: flex; align-items: center; gap: 14px; border: 1px solid #e6ebf3; border-radius: 13px; padding: 12px 16px; box-shadow: 0 8px 18px -12px rgba(30,60,140,.3); }
.nx-card .alr b { display: block; font-size: 17px; font-weight: 800; } .nx-card .alr small { color: #5b6782; font-size: 14px; font-weight: 600; }
.nx-card .ai { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; color: #fff; flex: none; }
.nx-card .ai.r { background: #e11d48; } .nx-card .ai.o { background: #f59e0b; } .nx-card .ai.b { background: #0060e4; }
.nx-card .mo { font-family: "JetBrains Mono", monospace; font-size: 15px; } .nx-card .mo.gr { color: #16a34a; } .nx-card .mo.bd { font-weight: 500; color: #0f1a33; font-size: 16px; }
.nx-card .tb.pay .tr, .nx-card .tb.inv .tr { grid-template-columns: 2.2fr 1fr 1fr 1.2fr; height: 56px; }
.nx-card .tb.pay .tr.th, .nx-card .tb.inv .tr.th { height: 38px; }
.nx-card .tot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 14px 20px; border-radius: 14px; background: #f2f7ff; border: 1px solid #d9e7fd; font-weight: 700; color: #3d4a66; }
.nx-card .tot b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: #0060e4; }
.nx-card .ex { display: flex; gap: 12px; margin-top: 14px; }
.nx-card .ec { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e6ebf3; border-radius: 11px; padding: 10px 16px; font-weight: 700; font-size: 16px; box-shadow: 0 6px 14px -10px rgba(30,60,140,.35); }
.nx-card .ec svg { width: 18px; height: 18px; }
.nx-card .bud { margin-top: 14px; border: 1px solid #e6ebf3; border-radius: 14px; padding: 14px 20px; }
.nx-card .bud > div { display: flex; justify-content: space-between; font-weight: 700; color: #3d4a66; margin-bottom: 10px; } .nx-card .bud b { color: #0f1a33; } .nx-card .bud i { font-style: normal; }
.nx-card .ui.ph { padding: 0; background: #dfeafb; }
.nx-card .phh { display: flex; align-items: center; gap: 14px; padding: 22px 22px 18px; background: #fff; border-bottom: 1px solid #e6ebf3; }
.nx-card .phh b { font-size: 20px; font-weight: 800; display: block; } .nx-card .phh small { color: #16a34a; font-weight: 700; font-size: 13px; }
.nx-card .bot { width: 48px; height: 48px; border-radius: 50%; background: #0060e4; display: flex; align-items: center; justify-content: center; }
.nx-card .bot img { width: 26px; height: 24px; }
.nx-card .chat { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px; align-items: flex-start; }
.nx-card .m { background: #fff; border-radius: 18px 18px 18px 6px; padding: 13px 16px; font-size: 17px; font-weight: 600; line-height: 1.35; max-width: 340px; box-shadow: 0 6px 14px -10px rgba(30,60,140,.4); }
.nx-card .m.me { align-self: flex-end; background: #0060e4; color: #fff; border-radius: 18px 18px 6px 18px; font-family: "JetBrains Mono", monospace; font-size: 15px; }
.nx-card .m.ty { display: flex; gap: 6px; padding: 16px 18px; } .nx-card .m.ty i { width: 8px; height: 8px; border-radius: 50%; background: #9aa7bf; display: block; }
.nx-card .m.rp { width: 340px; } .nx-card .m.rp > b { font-weight: 800; display: block; margin-bottom: 6px; }
.nx-card .m.rp p { display: flex; justify-content: space-between; margin: 0; padding: 3px 0; font-weight: 600; color: #3d4a66; } .nx-card .m.rp p b { font-family: "JetBrains Mono", monospace; font-weight: 500; }
.nx-card .rd { color: #e11d48; } .nx-card .or { color: #d97706; } .nx-card .gn { color: #16a34a; } .nx-card .bl { color: #0060e4; }

/* ── Dark theme: dark card, light text, same blue / green / amber / red accents (lifted for contrast on navy) ── */
:root[data-theme="dark"] .nx-card { background: #132a50; box-shadow: 0 50px 110px -34px rgba(0,0,0,.7), 0 12px 30px -12px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.09); }
:root[data-theme="dark"] .nx-card .ui { background: #132a50; color: #e8eef8; }
:root[data-theme="dark"] .nx-card .uh em,
:root[data-theme="dark"] .nx-card .k small,
:root[data-theme="dark"] .nx-card .tr.th,
:root[data-theme="dark"] .nx-card .sr.sh,
:root[data-theme="dark"] .nx-card .dc small { color: #9aabc6; }
:root[data-theme="dark"] .nx-card .tr.th { background: #1b3866; }
:root[data-theme="dark"] .nx-card .k,
:root[data-theme="dark"] .nx-card .tb,
:root[data-theme="dark"] .nx-card .sg,
:root[data-theme="dark"] .nx-card .al,
:root[data-theme="dark"] .nx-card .ch,
:root[data-theme="dark"] .nx-card .alr,
:root[data-theme="dark"] .nx-card .ec,
:root[data-theme="dark"] .nx-card .bud { border-color: #2a4a78; box-shadow: none; }
:root[data-theme="dark"] .nx-card .tr,
:root[data-theme="dark"] .nx-card .ar { border-top-color: #22406b; }
:root[data-theme="dark"] .nx-card .live { color: #4ade80; background: rgba(74,222,128,.14); }
:root[data-theme="dark"] .nx-card .live i,
:root[data-theme="dark"] .nx-card .g { background: #22c55e; }
:root[data-theme="dark"] .nx-card .b { background: #2b8cff; }
:root[data-theme="dark"] .nx-card .o, :root[data-theme="dark"] .nx-card .y { background: #fbbf24; }
:root[data-theme="dark"] .nx-card .r { background: #fb4f74; }
:root[data-theme="dark"] .nx-card .tg { color: #8fd0ff; background: rgba(24,160,252,.16); }
:root[data-theme="dark"] .nx-card .pl.g { color: #4ade80; box-shadow: inset 0 0 0 100px rgba(74,222,128,.14); } :root[data-theme="dark"] .nx-card .pl.g i { background: #4ade80; }
:root[data-theme="dark"] .nx-card .pl.o, :root[data-theme="dark"] .nx-card .pl.y { color: #fcd34d; box-shadow: inset 0 0 0 100px rgba(251,191,36,.15); } :root[data-theme="dark"] .nx-card .pl.o i, :root[data-theme="dark"] .nx-card .pl.y i { background: #fbbf24; }
:root[data-theme="dark"] .nx-card .pl.r { color: #fda4b8; box-shadow: inset 0 0 0 100px rgba(251,79,116,.17); } :root[data-theme="dark"] .nx-card .pl.r i { background: #fb4f74; }
:root[data-theme="dark"] .nx-card .br, :root[data-theme="dark"] .nx-card .ab { background: #22406b; }
:root[data-theme="dark"] .nx-card .ab.bad i { background: #fb4f74; }
:root[data-theme="dark"] .nx-card .c { background: rgba(24,160,252,.16); color: #a8dcff; }
:root[data-theme="dark"] .nx-card .c.e { background: transparent; color: #4f6890; }
:root[data-theme="dark"] .nx-card .c.hot { background: #0060e4; color: #fff; box-shadow: 0 8px 18px -8px rgba(24,160,252,.7); }
:root[data-theme="dark"] .nx-card .c.off { background: rgba(255,255,255,.07); color: #b7c4d8; }
:root[data-theme="dark"] .nx-card .toast { background: #f1f6fd; color: #0f1a33; box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); }
:root[data-theme="dark"] .nx-card .an u { color: #fda4b8; background: rgba(251,79,116,.17); }
:root[data-theme="dark"] .nx-card .at,
:root[data-theme="dark"] .nx-card .alr small { color: #b7c4d8; }
:root[data-theme="dark"] .nx-card .trk { stroke: #22406b; } :root[data-theme="dark"] .nx-card .gl { stroke: #1f3a63; }
:root[data-theme="dark"] .nx-card .arc-bad { stroke: #fb4f74; } :root[data-theme="dark"] .nx-card .arc-ok { stroke: #2b8cff; }
:root[data-theme="dark"] .nx-card .ln-ok { stroke: #2b8cff; } :root[data-theme="dark"] .nx-card .ln-bad { stroke: #fb4f74; } :root[data-theme="dark"] .nx-card .dot-bad { fill: #fb4f74; }
:root[data-theme="dark"] .nx-card .ai.r { background: #e11d48; } :root[data-theme="dark"] .nx-card .ai.o { background: #d97706; }
:root[data-theme="dark"] .nx-card .mo.gr { color: #4ade80; } :root[data-theme="dark"] .nx-card .mo.bd { color: #e8eef8; }
:root[data-theme="dark"] .nx-card .tot { background: rgba(24,160,252,.10); border-color: rgba(24,160,252,.28); color: #c3cfe0; }
:root[data-theme="dark"] .nx-card .tot b { color: #5cc8ff; }
:root[data-theme="dark"] .nx-card .bud > div { color: #c3cfe0; } :root[data-theme="dark"] .nx-card .bud b { color: #e8eef8; }
:root[data-theme="dark"] .nx-card .ui.ph { background: #0b1a35; }
:root[data-theme="dark"] .nx-card .phh { background: #132a50; border-bottom-color: #2a4a78; }
:root[data-theme="dark"] .nx-card .phh small { color: #4ade80; }
:root[data-theme="dark"] .nx-card .m { background: #1b3866; color: #e8eef8; box-shadow: none; }
:root[data-theme="dark"] .nx-card .m.me { background: #0060e4; color: #fff; }
:root[data-theme="dark"] .nx-card .m.ty i { background: #7d93b8; }
:root[data-theme="dark"] .nx-card .m.rp p { color: #c3cfe0; }
:root[data-theme="dark"] .nx-card .rd { color: #fd8aa3; } :root[data-theme="dark"] .nx-card .or { color: #fcd34d; } :root[data-theme="dark"] .nx-card .gn { color: #4ade80; } :root[data-theme="dark"] .nx-card .bl { color: #5cc8ff; }
