/* ===== TRADING BRIDGE COMPONENTS (Exness light) ===== */

/* TICKER */
.ticker-header{background:var(--text-light);padding:0}
.ticker-header *{color:#f4f6f9}
.ticker-viewport{overflow:hidden;position:relative}
.ticker-marquee{display:flex;width:max-content;animation:ticker-scroll 32s linear infinite}
.ticker-viewport:hover .ticker-marquee,.ticker-viewport:focus-within .ticker-marquee{animation-play-state:paused}
.ticker-track{display:flex;gap:2rem;padding:.7rem 1rem}
.ticker-item{display:inline-flex;align-items:center;gap:.5rem;font-size:.85rem;font-weight:600;white-space:nowrap}
.ticker-sym{color:#f4f6f9}
.ticker-up{color:var(--bull)}
.ticker-down{color:var(--bear)}
@keyframes ticker-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.ticker-marquee{animation:none}}

/* ANIMATED GRID BG */
.grid-bg{position:relative;overflow:hidden}
.grid-bg::before{content:"";position:absolute;inset:0;background-image:linear-gradient(var(--border) 1px,transparent 1px),linear-gradient(90deg,var(--border) 1px,transparent 1px);background-size:40px 40px;opacity:.4;animation:grid-pan 18s linear infinite;pointer-events:none;z-index:0}
@keyframes grid-pan{from{background-position:0 0}to{background-position:40px 40px}}
@media(prefers-reduced-motion:reduce){.grid-bg::before{animation:none}}
.grid-bg>*{position:relative;z-index:1}

/* HERO BENTO */
.hero-bento{background:var(--bg-base)}
.bento-grid{display:grid;gap:1.25rem;grid-template-columns:1fr}
.bento-cell{background:var(--panel);border:2px solid var(--text-light);border-radius:var(--radius);padding:1.6rem;box-shadow:var(--shadow-sm);transition:transform .18s ease,box-shadow .18s ease}
.bento-cell:hover{transform:translate(-3px,-3px);box-shadow:var(--shadow-hard)}
.bento-lead{grid-column:1/-1}
.bento-stat{font-size:2rem;font-weight:800;color:var(--bull)}
@media(min-width:780px){.bento-grid{grid-template-columns:repeat(3,1fr)}.bento-lead{grid-column:span 2;grid-row:span 2}}

/* PANELS */
.panel{background:var(--panel);border:2px solid var(--text-light);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow-sm)}
.panel-2{background:var(--panel-2)}
.panel-grid{display:grid;gap:1.25rem;grid-template-columns:1fr}
@media(min-width:640px){.panel-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:780px){.panel-grid{grid-template-columns:repeat(3,1fr)}}
.panel-hover{transition:transform .18s ease,box-shadow .18s ease}
.panel-hover:hover{transform:translate(-3px,-3px);box-shadow:var(--shadow-hard)}

/* SESSION STRIP */
.session-strip{display:grid;gap:1rem;grid-template-columns:repeat(2,1fr)}
@media(min-width:780px){.session-strip{grid-template-columns:repeat(4,1fr)}}
.session-cell{background:var(--panel-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1rem;text-align:center}
.session-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--bull);margin-right:.4rem}
.session-closed .session-dot{background:var(--bear)}

/* FILTER CHIPS */
.chip-row{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:1.5rem}
.filter-chip,.cat-chip{padding:.45rem 1rem;border:2px solid var(--text-light);border-radius:999px;background:var(--panel);font-weight:600;font-size:.85rem;transition:background .15s ease,color .15s ease}
.filter-chip.is-active,.cat-chip.is-active{background:var(--text-light);color:#f4f6f9}
.asset-card[hidden]{display:none}

/* TABS */
.tab-list{display:flex;flex-wrap:wrap;gap:.4rem;border-bottom:2px solid var(--border);margin-bottom:1.5rem}
.tab-btn{padding:.7rem 1.2rem;background:transparent;border:0;border-bottom:3px solid transparent;font-weight:700;color:var(--muted);font-size:.95rem}
.tab-btn.is-active{color:var(--text-light);border-bottom-color:var(--bull)}
.tab-panel{display:none;animation:fade-in .3s ease}
.tab-panel.is-active{display:block}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.tab-panel.is-active{animation:none}}

/* SEG CONTROL */
.seg-control{display:inline-flex;background:var(--panel-2);border:2px solid var(--text-light);border-radius:999px;padding:4px;gap:4px;margin-bottom:1.5rem}
.seg-btn{padding:.5rem 1.2rem;border:0;background:transparent;border-radius:999px;font-weight:700;font-size:.88rem;color:var(--muted)}
.seg-btn.is-active{background:var(--text-light);color:#f4f6f9}
.seg-panel{display:none}
.seg-panel.is-active{display:block}

/* ACCORDION */
.accordion-item,.faq-item,.checklist-item,.expand-card{border:2px solid var(--text-light);border-radius:var(--radius-sm);margin-bottom:.8rem;background:var(--panel);overflow:hidden}
.accordion-trigger{width:100%;text-align:left;background:var(--panel);border:0;padding:1.1rem 3rem 1.1rem 1.2rem;font-weight:700;font-size:1rem;color:var(--text-light);position:relative}
.accordion-trigger::after{content:"+";position:absolute;right:1.2rem;top:50%;transform:translateY(-50%);font-size:1.4rem;font-weight:700;color:var(--system);transition:transform .2s ease}
.accordion-item.open>.accordion-trigger::after,.faq-item.open>.accordion-trigger::after,.checklist-item.open>.accordion-trigger::after{content:"\2212"}
.accordion-body,.faq-body,.checklist-body{max-height:0;overflow:hidden;transition:max-height .3s ease}
.accordion-body>div,.faq-body>div,.checklist-body>div{padding:0 1.2rem 1.2rem}
@media(prefers-reduced-motion:reduce){.accordion-body,.faq-body,.checklist-body{transition:none}}

/* EXPAND CARDS */
.expand-trigger{width:100%;text-align:left;background:var(--panel);border:0;padding:1.1rem 1.2rem;font-weight:700;color:var(--text-light)}
.expand-body{max-height:0;overflow:hidden;transition:max-height .3s ease}
.expand-card.open .expand-body{max-height:600px}
.expand-body>div{padding:0 1.2rem 1.2rem}
@media(prefers-reduced-motion:reduce){.expand-body{transition:none}}

/* COMPARISON MATRIX / DENSE TABLES */
.matrix-wrap{overflow-x:auto;border:2px solid var(--text-light);border-radius:var(--radius-sm)}
table.matrix,table.data-table{width:100%;border-collapse:collapse;font-size:.9rem;min-width:520px}
.matrix th,.matrix td,.data-table th,.data-table td{padding:.8rem 1rem;text-align:left;border-bottom:1px solid var(--border)}
.matrix thead th,.data-table thead th{background:var(--text-light);color:#f4f6f9;font-weight:700;position:sticky;top:0}
.matrix tbody tr:nth-child(even),.data-table tbody tr:nth-child(even){background:var(--panel-2)}
.matrix tbody tr:hover,.data-table tbody tr:hover{background:#e3f7f0}
.matrix td.highlight{color:var(--bull);font-weight:700}
.cell-yes{color:var(--bull);font-weight:700}
.cell-no{color:var(--bear);font-weight:700}

/* TIER TABLE expandable rows */
.tier-detail-row{display:none}
.tier-detail-row.open{display:table-row}
.tier-detail-row td{background:var(--panel-2)}

/* TOOLTIP */
.tooltip{position:relative;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:var(--system);color:#fff;font-size:.7rem;font-weight:700;cursor:help;margin-left:.3rem}
.tooltip .tip-text{position:absolute;bottom:135%;left:50%;transform:translateX(-50%);background:var(--text-light);color:#f4f6f9;padding:.5rem .7rem;border-radius:6px;font-size:.78rem;font-weight:500;white-space:nowrap;max-width:240px;opacity:0;visibility:hidden;transition:opacity .15s ease;z-index:30;box-shadow:var(--shadow-md)}
.tooltip:hover .tip-text,.tooltip:focus .tip-text,.tooltip.is-open .tip-text{opacity:1;visibility:visible}

/* STEPS */
.steps{display:grid;gap:1.25rem;counter-reset:step}
@media(min-width:780px){.steps{grid-template-columns:repeat(4,1fr)}}
.step{background:var(--panel);border:2px solid var(--text-light);border-radius:var(--radius);padding:1.5rem 1.3rem;position:relative;box-shadow:var(--shadow-sm)}
.step::before{counter-increment:step;content:counter(step);display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--bull);color:var(--text-light);font-weight:800;margin-bottom:.8rem}
.step h3{font-size:1.05rem}
/* step connector animation */
.steps.connected .step:not(:last-child)::after{content:"";position:absolute;top:36px;right:-12px;width:24px;height:2px;background:var(--system)}
@media(max-width:779px){.steps.connected .step::after{display:none}}

/* STEP RAIL (login monospace) */
.step-rail{display:flex;flex-direction:column;gap:.5rem;font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace}
.rail-step{padding:.8rem 1rem;border-left:3px solid var(--border);background:var(--panel);transition:border-color .2s ease,background .2s ease}
.rail-step.is-active{border-left-color:var(--bull);background:var(--panel-2)}

/* PROGRESS / CHECKLIST tracker */
.progress-bar{height:8px;background:var(--panel-2);border-radius:999px;overflow:hidden;border:1px solid var(--border);margin-bottom:1.2rem}
.progress-fill{height:100%;width:0;background:var(--bull);transition:width .3s ease}
.check-step{display:flex;align-items:center;gap:.8rem;padding:.8rem 1rem;border:2px solid var(--text-light);border-radius:var(--radius-sm);margin-bottom:.6rem;background:var(--panel);cursor:pointer}
.check-step.done{background:#e3f7f0}
.check-box{width:24px;height:24px;border:2px solid var(--text-light);border-radius:6px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;font-weight:800}
.check-step.done .check-box{background:var(--bull)}
.check-step.done .check-box::after{content:"\2713"}

/* PLATFORM MOCK FRAMES */
.mock-frame{border:2px solid var(--text-light);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-md);background:var(--panel)}
.mock-bar{display:flex;align-items:center;gap:.4rem;padding:.6rem .9rem;background:var(--panel-2);border-bottom:1px solid var(--border)}
.mock-dot{width:11px;height:11px;border-radius:50%;background:var(--bear)}
.mock-dot:nth-child(2){background:#ffbd2e}
.mock-dot:nth-child(3){background:var(--bull)}
.mock-url{flex:1;margin-left:.6rem;background:var(--panel);border:1px solid var(--border);border-radius:6px;padding:.25rem .7rem;font-size:.78rem;color:var(--muted)}
.mock-body{padding:1.5rem;min-height:240px;background:linear-gradient(135deg,var(--panel),var(--panel-2))}
.mock-body.parallax{background-attachment:fixed}

/* HOTSPOTS */
.hotspot{position:absolute;width:26px;height:26px;border-radius:50%;background:var(--system);color:#fff;font-weight:800;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;animation:hot-pulse 2s infinite}
.screenshot-mock{position:relative}
@keyframes hot-pulse{0%,100%{box-shadow:0 0 0 0 rgba(59,130,246,.5)}50%{box-shadow:0 0 0 8px rgba(59,130,246,0)}}
@media(prefers-reduced-motion:reduce){.hotspot{animation:none}}

/* COMPARISON SLIDER */
.compare-slider{position:relative;border:2px solid var(--text-light);border-radius:var(--radius);overflow:hidden;user-select:none}
.compare-before,.compare-after{padding:2rem;min-height:200px}
.compare-after{position:absolute;inset:0;background:var(--panel-2);overflow:hidden;width:50%;border-right:3px solid var(--bull)}
.compare-range{width:100%;margin-top:1rem}
.compare-before{background:var(--panel)}

/* FLIP CARDS */
.flip-card{background:transparent;perspective:1000px;min-height:200px}
.flip-inner{position:relative;width:100%;height:100%;min-height:200px;transition:transform .6s;transform-style:preserve-3d}
.flip-card:hover .flip-inner,.flip-card:focus-within .flip-inner{transform:rotateY(180deg)}
.flip-front,.flip-back{position:absolute;inset:0;backface-visibility:hidden;border:2px solid var(--text-light);border-radius:var(--radius);padding:1.5rem;display:flex;flex-direction:column;justify-content:center}
.flip-front{background:var(--panel)}
.flip-back{background:var(--text-light);color:#f4f6f9;transform:rotateY(180deg)}
.flip-back *{color:inherit}
@media(prefers-reduced-motion:reduce){.flip-inner{transition:none}}

/* CAROUSEL / SCROLLER */
.scroller{display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:1rem;-webkit-overflow-scrolling:touch}
.scroller>*{scroll-snap-align:start;flex:0 0 80%}
@media(min-width:780px){.scroller>*{flex:0 0 32%}}
.carousel-track{display:flex;transition:transform .4s ease}
.carousel-slide{flex:0 0 100%;text-align:center;padding:2rem}
.carousel-dots{display:flex;gap:.5rem;justify-content:center;margin-top:1rem}
.carousel-dot{width:10px;height:10px;border-radius:50%;border:2px solid var(--text-light);background:var(--panel)}
.carousel-dot.is-active{background:var(--text-light)}

/* TIMELINE */
.timeline{position:relative;padding-left:2rem}
.timeline::before{content:"";position:absolute;left:7px;top:0;bottom:0;width:2px;background:var(--border)}
.timeline-item{position:relative;margin-bottom:1.8rem}
.timeline-item::before{content:"";position:absolute;left:-2rem;top:4px;width:16px;height:16px;border-radius:50%;background:var(--bull);border:3px solid var(--panel);box-shadow:0 0 0 2px var(--text-light)}

/* STAT COUNTER */
.stat-grid{display:grid;gap:1.25rem;grid-template-columns:repeat(2,1fr)}
@media(min-width:780px){.stat-grid{grid-template-columns:repeat(4,1fr)}}
.stat{text-align:center;padding:1.5rem;background:var(--panel);border:2px solid var(--text-light);border-radius:var(--radius)}
.stat-num{font-size:2.4rem;font-weight:800;color:var(--bull);font-family:var(--font-display)}
.stat-label{color:var(--muted);font-size:.85rem;text-transform:uppercase;letter-spacing:.06em}

/* STICKY SECTION NAV / TOC */
.toc-nav{position:sticky;top:90px;align-self:start}
.toc-nav a{display:block;padding:.4rem .6rem;border-left:3px solid transparent;color:var(--muted);font-size:.9rem}
.toc-nav a.is-active{border-left-color:var(--bull);color:var(--text-light);font-weight:700}
.layout-with-toc{display:grid;gap:2rem;grid-template-columns:1fr}
@media(min-width:780px){.layout-with-toc{grid-template-columns:220px 1fr}}

/* CTA BANDS */
.cta-band{background:var(--text-light);text-align:center;border-radius:var(--radius);padding:3rem 1.5rem;margin-block:1rem}
.cta-band,.cta-band *{color:#f4f6f9}
.cta-band h2{color:#f4f6f9}
.cta-band .btn-primary{color:var(--text-light)}
.dual-cta{display:grid;gap:1rem;grid-template-columns:1fr;max-width:520px;margin-inline:auto}
@media(min-width:640px){.dual-cta{grid-template-columns:1fr 1fr}}

/* NOTICE / RISK PANELS */
.notice{background:#fff7e6;border:2px solid #f0c674;border-left-width:6px;border-radius:var(--radius-sm);padding:1.2rem 1.4rem;color:var(--text-light);margin-bottom:1.5rem}
.risk-panel{background:#fdeaec;border:2px solid var(--bear);border-left-width:6px;border-radius:var(--radius-sm);padding:1.2rem 1.4rem;color:var(--text-light)}

/* CODE BLOCK (promo, url) */
.code-block{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:var(--text-light);border-radius:var(--radius-sm);padding:1rem 1.3rem;font-family:ui-monospace,Menlo,Consolas,monospace;flex-wrap:wrap}
.code-block,.code-block *{color:#f4f6f9}
.code-val{font-size:1.2rem;font-weight:700;letter-spacing:.05em;color:var(--bull)}
.copy-btn{background:var(--bull);color:var(--text-light);border:0;padding:.5rem 1rem;border-radius:6px;font-weight:700}
.copy-btn.copied{background:var(--system);color:#fff}

/* SUPPORT / VALUE CARDS */
.card-grid{display:grid;gap:1.25rem;grid-template-columns:1fr}
@media(min-width:640px){.card-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:780px){.card-grid{grid-template-columns:repeat(3,1fr)}}
.icon-card{background:var(--panel);border:2px solid var(--text-light);border-radius:var(--radius);padding:1.6rem;transition:transform .18s ease,box-shadow .18s ease}
.icon-card:hover{transform:translate(-3px,-3px);box-shadow:var(--shadow-hard)}
.icon-card .ic{font-size:1.8rem;margin-bottom:.6rem;display:inline-block}
.glow-icon{transition:filter .2s ease,transform .2s ease}
.glow-icon:hover .ic{filter:drop-shadow(0 0 8px var(--bull));transform:scale(1.1)}

/* BACK TO TOP FAB */
#back-to-top{position:fixed;bottom:1.5rem;right:1.5rem;width:48px;height:48px;border-radius:50%;background:var(--text-light);color:#f4f6f9;border:2px solid var(--bull);font-size:1.2rem;display:none;z-index:90;box-shadow:var(--shadow-md)}
#back-to-top.show{display:inline-flex;align-items:center;justify-content:center}

/* STICKY CTA BAR */
#sticky-cta{position:fixed;left:0;right:0;bottom:0;background:var(--text-light);padding:.8rem var(--space);display:flex;align-items:center;justify-content:space-between;gap:1rem;z-index:95;transform:translateY(100%);transition:transform .3s ease}
#sticky-cta.show{transform:translateY(0)}
#sticky-cta,#sticky-cta strong{color:#f4f6f9}
@media(prefers-reduced-motion:reduce){#sticky-cta{transition:none}}

/* MODAL / LIGHTBOX */
.modal-overlay{position:fixed;inset:0;background:rgba(20,24,32,.7);display:none;align-items:center;justify-content:center;z-index:300;padding:1.5rem}
.modal-overlay.open{display:flex}
.modal-box{background:var(--panel);border:2px solid var(--text-light);border-radius:var(--radius);max-width:640px;width:100%;padding:2rem;position:relative;max-height:90vh;overflow-y:auto}
.modal-close{position:absolute;top:.8rem;right:.8rem;width:36px;height:36px;border:2px solid var(--text-light);border-radius:50%;background:var(--panel);font-weight:800}

/* STATUS BADGE PULSE */
.status-badge{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .8rem;border-radius:999px;font-size:.8rem;font-weight:700;background:var(--panel-2);border:1px solid var(--border)}
.status-badge .dot{width:8px;height:8px;border-radius:50%;background:var(--bull);animation:pulse 1.8s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){.status-badge .dot{animation:none}}

/* SEARCH */
.faq-search{width:100%;padding:1rem 1.2rem;border:2px solid var(--text-light);border-radius:var(--radius-sm);font-size:1rem;background:var(--panel)}
.faq-item[hidden]{display:none}

/* TEXT REVEAL */
.text-reveal .word{display:inline-block;opacity:0;transform:translateY(8px);transition:opacity .4s ease,transform .4s ease}
.js-ready .text-reveal.is-visible .word{opacity:1;transform:none}
.text-reveal:not(.is-visible) .word{}
html:not(.js-ready) .text-reveal .word{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.text-reveal .word{opacity:1!important;transform:none!important}}

/* READ MORE TRUNCATE */
.truncate-body{max-height:5.5em;overflow:hidden;transition:max-height .3s ease}
.truncate-body.open{max-height:1000px}
.read-more-btn{background:none;border:0;color:var(--system);font-weight:700;padding:.4rem 0;margin-top:.4rem}

/* PRINT */
@media print{.site-header,.site-footer,#sticky-cta,#back-to-top,.cta-band,.nav-cta{display:none!important}body{background:#fff}}
.print-toggle{margin-bottom:1rem}