/* Homepage: live statistics dashboard (partials/home-stats.blade.php) */
.lsx { position: relative; padding: 84px 0; overflow: hidden; isolation: isolate; }
.lsx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(34, 211, 238, .10), transparent 70%),
    radial-gradient(45% 55% at 85% 80%, rgba(139, 92, 246, .14), transparent 70%),
    linear-gradient(rgba(140, 160, 230, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(140, 160, 230, .05) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 40%, transparent 100%); }

.lsx-head { text-align: center; max-width: 680px; margin: 0 auto 38px; }
.lsx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a5f3fc;
  padding: 6px 14px; border-radius: 999px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .28); box-shadow: 0 0 24px -6px rgba(34, 211, 238, .5); }
.lsx-head h2 { margin: 16px 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
.lsx-head h2 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lsx-head p { margin: 0; color: var(--text); font-size: 16.5px; }

.lsx-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: lsx-ping 1.8s ease-out infinite; flex: 0 0 auto; }
@keyframes lsx-ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }

.lsx-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; }
.lsx-card { position: relative; border-radius: 22px; padding: 22px; background: linear-gradient(180deg, rgba(15, 23, 54, .85), rgba(8, 13, 34, .85)); border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 60px -30px rgba(0, 0, 0, .9); backdrop-filter: blur(6px); }
.lsx-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(34, 211, 238, .55), transparent 35%, transparent 65%, rgba(139, 92, 246, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.lsx-card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.lsx-card-h b { display: block; color: var(--ink); font-size: 16px; }
.lsx-card-h small { color: var(--muted); font-size: 13px; }
.lsx-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #86efac; padding: 4px 11px; border-radius: 999px; background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .28); }

/* Summary row */
.lsx-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.lsx-sum > div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2); min-width: 0; }
.lsx-sum small { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsx-sum b { display: block; margin-top: 3px; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.lsx-up { color: #4ade80 !important; }
.lsx-down { color: #f87171 !important; }

/* Chart */
.lsx-plot { position: relative; height: 210px; }
.lsx-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lsx-gl { stroke: rgba(140, 160, 230, .12); stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.lsx-line, .lsx-line-glow { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.lsx-line { stroke-width: 3; }
.lsx-line-glow { stroke-width: 10; opacity: .28; filter: blur(6px); }
.lsx-area { opacity: .9; }
.lsx-pt { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.lsx-pt i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #0b1129; border: 3px solid #60a5fa; box-shadow: 0 0 12px rgba(96, 165, 250, .7); transition: transform .2s ease; }
.lsx-pt.now i { border-color: #c4b5fd; box-shadow: 0 0 0 6px rgba(167, 139, 250, .18), 0 0 18px rgba(167, 139, 250, .9); }
.lsx-pt.best i { border-color: #67e8f9; }
.lsx-val { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap;
  padding: 2px 8px; border-radius: 8px; background: rgba(11, 17, 41, .9); border: 1px solid var(--line); }
.lsx-pt.now .lsx-val { background: linear-gradient(135deg, #3b82f6, #8b5cf6); border-color: transparent; }
.lsx-pt:hover i { transform: scale(1.35); }
.lsx-days { display: flex; justify-content: space-between; padding: 10px calc(26 / 700 * 100%) 0; margin: 0 -10px; }
.lsx-days span { width: 0; display: flex; justify-content: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.lsx-days span.now { color: #c4b5fd; font-weight: 700; }

/* Draw-in animation when the section comes into view */
.lsx .lsx-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lsx .lsx-area, .lsx .lsx-line-glow, .lsx .lsx-pt { opacity: 0; }
.lsx.in .lsx-line { animation: lsx-draw 1.6s cubic-bezier(.6, .1, .2, 1) forwards; }
.lsx.in .lsx-area { animation: lsx-fade .9s .7s forwards; }
.lsx.in .lsx-line-glow { animation: lsx-fade .9s .9s forwards; }
.lsx.in .lsx-pt { animation: lsx-pop .45s forwards; }
.lsx.in .lsx-pt:nth-of-type(1) { animation-delay: .25s; } .lsx.in .lsx-pt:nth-of-type(2) { animation-delay: .45s; } .lsx.in .lsx-pt:nth-of-type(3) { animation-delay: .65s; }
.lsx.in .lsx-pt:nth-of-type(4) { animation-delay: .85s; } .lsx.in .lsx-pt:nth-of-type(5) { animation-delay: 1.05s; } .lsx.in .lsx-pt:nth-of-type(6) { animation-delay: 1.25s; }
.lsx.in .lsx-pt:nth-of-type(7) { animation-delay: 1.45s; }
@keyframes lsx-draw { to { stroke-dashoffset: 0; } }
@keyframes lsx-fade { to { opacity: 1; } }
@keyframes lsx-pop { from { opacity: 0; transform: translate(-50%, -30%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* Most used tools */
.lsx-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lsx-rank a { display: grid; grid-template-columns: 26px 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.lsx-rank a:hover { background: rgba(59, 130, 246, .1); border-color: rgba(99, 140, 255, .45); transform: translateX(3px); text-decoration: none; }
.lsx-pos { font-weight: 800; font-size: 13px; color: var(--muted); text-align: center; }
.lsx-rank li:first-child .lsx-pos { color: #fbbf24; } .lsx-rank li:nth-child(2) .lsx-pos { color: #cbd5e1; } .lsx-rank li:nth-child(3) .lsx-pos { color: #f59e0b; }
.lsx-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(139, 92, 246, .14)); border: 1px solid var(--line); }
.lsx-name { min-width: 0; }
.lsx-name b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsx-meter { display: block; height: 5px; margin-top: 6px; border-radius: 9px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.lsx-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); box-shadow: 0 0 10px rgba(59, 130, 246, .6); transition: width 1.2s cubic-bezier(.3, .7, .2, 1) .4s; }
.lsx.in .lsx-meter i { width: var(--w); }
.lsx-c { font-size: 13px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.lsx-empty { color: var(--muted); margin: 8px 0 0; }

/* Facts */
.lsx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.lsx-fact { --a: #22d3ee; position: relative; display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 54, .8), rgba(8, 13, 34, .8)); border: 1px solid var(--edge); transition: transform .2s ease, box-shadow .2s ease; }
.lsx-fact::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a) 35%, transparent), transparent 70%); pointer-events: none; }
.lsx-fact:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 45%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--a) 60%, transparent); }
.lsx-f-ai { --a: #a78bfa; } .lsx-f-runs { --a: #fbbf24; } .lsx-f-cats { --a: #3b82f6; }
.lsx-fico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; color: var(--a);
  background: color-mix(in srgb, var(--a) 14%, transparent); border: 1px solid color-mix(in srgb, var(--a) 40%, transparent); box-shadow: 0 0 22px -6px var(--a); }
.lsx-fact > div { min-width: 0; }
.lsx-fact b { display: block; font-size: 28px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.lsx-fact span { display: block; margin-top: 4px; font-weight: 700; color: var(--ink); font-size: 14px; }
.lsx-fact small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1100px) {
  .lsx-grid { grid-template-columns: 1fr; }
  .lsx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lsx { padding: 60px 0; }
  .lsx-card { padding: 16px; border-radius: 18px; }
  .lsx-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lsx-plot { height: 170px; }
  .lsx-val { font-size: 11px; padding: 1px 6px; }
  .lsx-days span { font-size: 11px; }
  .lsx-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lsx-fact { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .lsx-fact b { font-size: 24px; }
  .lsx-fact small { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .lsx-dot { animation: none; }
  .lsx .lsx-line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .lsx .lsx-area, .lsx .lsx-line-glow, .lsx .lsx-pt { opacity: 1; animation: none !important; }
  .lsx-meter i { width: var(--w); transition: none; }
  .lsx-fact, .lsx-rank a { transition: none; }
}
