/*
 * UNIFIN site - kinetic chart stage (Unifin Charts solution page).
 * Dark canvas panel, UNIFIN gradient chrome, live tape and crosshair.
 * Print hides the stage; reduced motion keeps a static frame.
 */

.chart-stage { position: relative; }

.cst-grid {
    display: grid;
    grid-template-columns: minmax(300px, 5fr) minmax(430px, 7fr);
    gap: 30px;
    align-items: center;
}

.cst-copy .lead { margin-top: 10px; max-width: 46ch; }

.cst-points {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.cst-points li {
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
}

.cst-points li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2700FE, #CC06FB);
    box-shadow: 0 0 14px rgba(120, 32, 255, .55);
}

.cst-hint { margin-top: 18px; font-size: 13px; opacity: .62; }
.cst-link { margin-top: 12px; }
.cst-link a { font-weight: 600; }

.cst-panel {
    position: relative;
    border-radius: 22px;
    background: #06070C;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 80px rgba(3, 4, 12, .55);
    overflow: hidden;
    outline: none;
}

.cst-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(39, 0, 254, .6), rgba(204, 6, 251, .48), rgba(255, 255, 255, .06));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.cst-panel:focus-visible { box-shadow: 0 0 0 3px rgba(120, 32, 255, .45), 0 30px 80px rgba(3, 4, 12, .55); }

.cst-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(10, 11, 18, .74);
}

.cst-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .66);
}

.cst-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #35E08A;
    animation: cstPulse 2.2s infinite;
}

.cst-scenes, .cst-controls { display: flex; gap: 8px; flex-wrap: wrap; }

.cst-scene, .cst-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .8);
    font: inherit;
    font-size: 13px;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.cst-scene:hover, .cst-btn:hover { border-color: rgba(255, 255, 255, .32); color: #fff; }

.cst-scene[aria-pressed="true"] {
    background: linear-gradient(135deg, #2700FE, #CC06FB);
    border-color: transparent;
    color: #fff;
}

.cst-btn[aria-pressed="true"] {
    border-color: rgba(204, 6, 251, .65);
    color: #fff;
    box-shadow: 0 0 18px rgba(120, 32, 255, .28);
}

.cst-canvas-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    max-height: 560px;
}

.cst-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
    touch-action: none;
}

.cst-nofx .cst-canvas {
    background: linear-gradient(160deg, #0B0C14, #07070B);
}

.cst-stats {
    position: absolute;
    left: 14px;
    top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, .78);
    pointer-events: none;
}

.cst-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 9px;
    background: rgba(8, 9, 15, .74);
    border: 1px solid rgba(255, 255, 255, .08);
}

.cst-stat i { font-style: normal; opacity: .55; }
.cst-stat b { font-weight: 600; }
.cst-sym { letter-spacing: .07em; }
.cst-stat.is-up b { color: #35E08A; }
.cst-stat.is-down b { color: #FF5D7A; }

.cst-note {
    padding: 12px 16px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .52);
    border-top: 1px solid rgba(255, 255, 255, .07);
    background: rgba(9, 10, 16, .72);
}

@keyframes cstPulse {
    0% { box-shadow: 0 0 0 0 rgba(53, 224, 138, .55); }
    70% { box-shadow: 0 0 0 9px rgba(53, 224, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(53, 224, 138, 0); }
}

@media (max-width: 1060px) {
    .cst-grid { grid-template-columns: 1fr; }
    .cst-canvas-wrap { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
    .cst-dot { animation: none; }
    .cst-scene, .cst-btn { transition: none; }
}

/* trio of mini previews (TradingView-style row of three) */
.cst-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px 16px 0;
}

.cst-mini {
    position: relative;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #090A12;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.cst-mini:hover { border-color: rgba(160, 120, 255, .5); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(60, 20, 150, .35); }

.cst-mini[aria-pressed="true"] { border-color: transparent; box-shadow: 0 0 0 1px rgba(204, 6, 251, .55), 0 12px 30px rgba(60, 20, 150, .35); }

.cst-mini::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .09) 45%, transparent 60%);
    transform: translateX(-120%);
    animation: cstSheen 5.2s ease-in-out infinite;
    pointer-events: none;
}

.cst-mini-canvas { display: block; width: 100%; height: 64px; border-radius: 8px; }

.cst-mini-cap { display: block; margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .72); text-align: left; }

.cst-mini-note { display: block; margin-top: 2px; font-size: 11px; color: rgba(255, 255, 255, .48); text-align: left; }

@keyframes cstSheen {
    0%, 55% { transform: translateX(-120%); }
    85%, 100% { transform: translateX(130%); }
}

/* panel sheen and floating orbs behind the canvas */
.cst-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 42%, rgba(160, 90, 255, .07) 50%, transparent 58%);
    transform: translateX(-130%);
    animation: cstPanelSheen 7.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cstPanelSheen {
    0%, 60% { transform: translateX(-130%); }
    90%, 100% { transform: translateX(130%); }
}

.cst-canvas-wrap .cst-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
    pointer-events: none;
    background: radial-gradient(circle, rgba(39, 0, 254, .5), transparent 65%);
    animation: cstDrift 14s ease-in-out infinite alternate;
}

.cst-canvas-wrap .cst-orb.o1 { left: -60px; top: -40px; }

.cst-canvas-wrap .cst-orb.o2 {
    right: -40px;
    bottom: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(204, 6, 251, .35), transparent 65%);
    animation-duration: 18s;
    animation-delay: -6s;
}

@keyframes cstDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(40px, 26px, 0); }
}

@media (max-width: 720px) {
    .cst-trio { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .cst-mini::after, .cst-panel::after, .cst-canvas-wrap .cst-orb { animation: none; }
    .cst-mini { transition: none; }
}

@media print {
    .chart-stage { display: none; }
    .cst-trio { display: none; }
}

/* Solutions list: the leading live card carries a compact stage. */
.chart-live-card { padding: 12px; gap: 10px; }
.chart-live-card .cst-panel { border-radius: 10px; box-shadow: 0 12px 30px rgba(3, 4, 12, .35); }
.chart-live-card .cst-toolbar { flex-wrap: wrap; gap: 6px; }
.chart-live-card .cst-scene, .chart-live-card .cst-btn { font-size: 11px; padding: 4px 9px; }
.chart-live-card .cst-canvas-wrap { aspect-ratio: 16 / 10; min-height: 0; max-height: none; }
.chart-live-card .cst-canvas-wrap .cst-orb { display: none; }
.chart-live-card .cst-stats { left: 10px; top: 10px; gap: 6px; font-size: 11px; }
.chart-live-card .cst-stat { padding: 4px 7px; }
.chart-live-card .chart-live-hint { margin: 0; font-size: 12.5px; opacity: .62; }
@media print {
    .chart-live-card .cst-panel { display: none; }
}
