/* CandleStan v0.61 — chart typography contract.
   Canvas text does not inherit normal DOM typography, but registering the
   local variable font here lets Chart.js request the exact same Persian face. */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn[wght].woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* CandleStan Market Pulse v2 — v0.51 */
.candlestan-market-pulse-v2 {
    background: #fff;
}

.cmp-page {
    --cmp-navy: #061f4a;
    --cmp-navy-2: #0a356d;
    --cmp-text: #071d42;
    --cmp-muted: #7d8799;
    --cmp-line: #e3e9f0;
    --cmp-surface: #f7f9fc;
    --cmp-green: #0b9f88;
    --cmp-green-soft: #e8f8f4;
    --cmp-red: #c84667;
    --cmp-red-soft: #fcecf1;
    --cmp-gold: #dfa519;
    --cmp-purple: #7a56cf;
    --cmp-blue: #386fd4;
    direction: rtl;
    color: var(--cmp-text);
    overflow: hidden;
}

.cmp-page *, .cmp-page *::before, .cmp-page *::after { box-sizing: border-box; }
.cmp-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.cmp-section { padding: 82px 0; }

.cmp-hero {
    position: relative;
    padding: 76px 0 68px;
    background:
        radial-gradient(circle at 92% 12%, rgba(22, 205, 190, .13), transparent 34%),
        radial-gradient(circle at 15% 75%, rgba(72, 112, 210, .09), transparent 32%),
        linear-gradient(135deg, #fbfeff 0%, #f5fbfc 47%, #f4f7fd 100%);
    border-bottom: 1px solid #eef2f6;
}

.cmp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .34;
    background-image: linear-gradient(rgba(8,36,79,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(8,36,79,.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

.cmp-hero__grid { position: relative; display: grid; grid-template-columns: 1.35fr .72fr; gap: 70px; align-items: center; }
.cmp-hero__copy { max-width: 720px; margin-right: auto; }
.cmp-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 850; letter-spacing: .08em; color: #006f77; }
.cmp-kicker i { width: 9px; height: 9px; border-radius: 50%; background: #16cbbb; box-shadow: 0 0 0 7px rgba(22,203,187,.11); }
.cmp-kicker--plain { color: #079987; }
.cmp-kicker--light { color: #61e5d7; }
.cmp-hero h1 { margin: 18px 0 16px; font-size: clamp(54px, 6vw, 88px); line-height: 1.02; letter-spacing: -.04em; color: var(--cmp-navy); }
.cmp-hero__copy > p { max-width: 690px; margin: 0; color: #64708a; font-size: 18px; line-height: 2; }
.cmp-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cmp-hero__chips span { padding: 9px 14px; border: 1px solid #dfe6ee; background: rgba(255,255,255,.72); border-radius: 999px; font-size: 13px; font-weight: 750; color: #4b5870; }

.cmp-radar { position: relative; padding: 28px; border: 1px solid #dce7ec; border-radius: 28px; background: rgba(255,255,255,.86); box-shadow: 0 22px 60px rgba(9,39,79,.08); overflow: hidden; }
.cmp-radar::after { content:""; position:absolute; width:190px; height:190px; left:-70px; bottom:-80px; border-radius:50%; border:28px solid rgba(23,201,184,.06); }
.cmp-radar__head { position: relative; z-index: 1; display:flex; align-items:center; justify-content:space-between; gap:18px; padding-bottom:20px; border-bottom:1px solid var(--cmp-line); }
.cmp-radar__head span, .cmp-radar__stats span, .cmp-radar__foot span { display:block; color:#9099aa; font-size:12px; margin-bottom:6px; }
.cmp-radar__head strong { display:block; font-size:23px; color:var(--cmp-text); }
.cmp-radar__head i { width:17px; height:17px; border-radius:50%; background:#17cbb8; box-shadow:0 0 0 8px rgba(23,203,184,.12); }
.cmp-radar__stats { position: relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:18px 0; }
.cmp-radar__stats > div { padding:15px 16px; border-radius:16px; background:#f7f9fc; border:1px solid #edf1f5; }
.cmp-radar__stats strong { font-size:16px; }
.cmp-radar__mover { position:relative; z-index:1; padding:18px; border-radius:18px; background:var(--cmp-navy-2); color:#fff; }
.cmp-radar__mover > span { display:block; font-size:11px; color:#a9c6e3; margin-bottom:9px; }
.cmp-radar__mover > div { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.cmp-radar__mover strong { font-size:16px; }
.cmp-radar__mover b { font-size:18px; direction:ltr; unicode-bidi:isolate; }
.cmp-radar__mover.cmp-direction--negative b { color:#ff8eac; }
.cmp-radar__mover.cmp-direction--positive b { color:#5ce3d0; }
.cmp-radar__mover.cmp-direction--neutral b { color:#cbd6e5; }
.cmp-radar__foot { position:relative; z-index:1; display:flex; justify-content:space-between; align-items:end; gap:12px; padding-top:18px; }
.cmp-radar__foot strong { font-size:13px; }

.cmp-section-heading { display:flex; justify-content:space-between; align-items:end; gap:42px; margin-bottom:30px; }
.cmp-section-heading h2 { margin:7px 0 0; font-size:clamp(32px, 4vw, 50px); line-height:1.2; color:var(--cmp-navy); }
.cmp-section-heading > p { max-width:520px; margin:0; color:#8a94a6; line-height:1.9; font-size:14px; }

.cmp-board-section { background:#fff; }
.cmp-discovery { padding:18px; border:1px solid var(--cmp-line); border-radius:24px; background:#fff; box-shadow:0 15px 45px rgba(12,40,77,.05); margin-bottom:26px; }
.cmp-search { display:block; }
.cmp-search span { display:block; font-size:12px; color:#7f899c; margin:0 8px 8px 0; font-weight:700; }
.cmp-search input { width:100%; height:54px; padding:0 18px; border:1px solid #dfe6ee; border-radius:16px; background:#fafbfd; color:var(--cmp-text); font:inherit; outline:none; transition:.2s ease; }
.cmp-search input:focus { border-color:#39c9bb; box-shadow:0 0 0 4px rgba(34,196,180,.10); background:#fff; }
.cmp-filters { display:flex; gap:9px; flex-wrap:wrap; margin-top:14px; }
.cmp-filters button { appearance:none; border:1px solid #dfe6ee; background:#fff; border-radius:999px; padding:9px 13px; color:#536078; font:inherit; font-size:12px; font-weight:800; cursor:pointer; transition:.18s ease; }
.cmp-filters button span { display:inline-flex; min-width:22px; height:22px; align-items:center; justify-content:center; margin-right:6px; border-radius:50%; background:#f0f3f7; }
.cmp-filters button.is-active, .cmp-filters button:hover { border-color:#a9e7df; background:#ebfaf7; color:#087f74; }
.cmp-board-meta { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:15px; padding-top:14px; border-top:1px solid #edf1f4; font-size:12px; color:#7d8798; }
.cmp-board-meta > span { display:flex; align-items:center; gap:7px; }
.cmp-board-meta i { width:7px; height:7px; border-radius:50%; background:#17cbb8; }
.cmp-board-meta > div { display:flex; gap:7px; flex-wrap:wrap; }
.cmp-market-stat { padding:6px 10px; border-radius:999px; background:#f4f6f9; color:#667187; }
.cmp-market-stat--positive { background:var(--cmp-green-soft); color:#087f70; }
.cmp-market-stat--negative { background:var(--cmp-red-soft); color:#a72e50; }

.cmp-asset-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; }
.cmp-asset-card { --accent:#16bda9; position:relative; min-width:0; color:inherit; text-decoration:none; padding:22px; border:1px solid #e0e6ed; border-radius:23px; background:#fff; box-shadow:0 12px 34px rgba(13,39,73,.055); overflow:hidden; transition:.2s ease; }
.cmp-asset-card::before { content:""; position:absolute; right:0; left:0; top:0; height:4px; background:var(--accent); }
.cmp-asset-card:hover { transform:translateY(-3px); box-shadow:0 17px 42px rgba(13,39,73,.08); }
.cmp-asset-card--crypto { --accent:#18bda9; }
.cmp-asset-card--stock { --accent:#3d72d5; }
.cmp-asset-card--gold { --accent:#dca51d; }
.cmp-asset-card--fx { --accent:#815cd1; }
.cmp-asset-card__head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.cmp-asset-card__identity { display:flex; gap:10px; align-items:center; min-width:0; }
.cmp-asset-card__icon { display:inline-flex; flex:0 0 auto; width:46px; height:46px; border-radius:15px; align-items:center; justify-content:center; background:#f0f9f8; color:var(--accent); font-size:18px; font-weight:900; }
.cmp-asset-card__identity h3 { margin:0 0 4px; font-size:17px; color:var(--cmp-text); }
.cmp-asset-card__identity span { color:#929cad; font-size:11px; font-weight:750; }
.cmp-group-pill { flex:0 0 auto; padding:6px 9px; border-radius:999px; background:#f5f7fa; color:#7c8698; font-size:10px; font-weight:750; }
.cmp-asset-card__price { margin-top:27px; }
.cmp-asset-card__price small { display:block; color:#9aa3b1; font-size:11px; margin-bottom:7px; }
.cmp-asset-card__price strong { display:block; font-size:25px; line-height:1.35; color:#071b3f; font-feature-settings:"pnum" 1, "tnum" 0; letter-spacing:0; }
.cmp-asset-card__change { display:inline-flex; margin-top:11px; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:900; unicode-bidi:isolate; }
.cmp-direction--positive { color:#078a78; }
.cmp-direction--negative { color:#b43054; }
.cmp-direction--neutral { color:#8993a5; }
.cmp-asset-card__change.cmp-direction--positive { background:var(--cmp-green-soft); }
.cmp-asset-card__change.cmp-direction--negative { background:var(--cmp-red-soft); }
.cmp-asset-card__change.cmp-direction--neutral { background:#f2f4f7; }
.cmp-asset-card__meta { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:22px; padding-top:14px; border-top:1px solid #edf0f4; color:#929baa; font-size:10px; }
.cmp-state { padding:6px 9px; border-radius:999px; font-weight:800; }
.cmp-state--live, .cmp-state--fresh { background:#e8f8f4; color:#0b8a79; }
.cmp-state--closed { background:#fff4df; color:#986813; }
.cmp-state--stale { background:#fff0e8; color:#a9562d; }
.cmp-state--unavailable { background:#f1f3f6; color:#808999; }
.cmp-empty { margin-top:18px; padding:28px; border:1px dashed #d8e0e9; border-radius:22px; text-align:center; background:#fafbfd; }
.cmp-empty strong, .cmp-empty span { display:block; }
.cmp-empty span { margin-top:7px; color:#8a94a5; }
.cmp-empty button { margin-top:14px; border:0; border-radius:12px; padding:10px 16px; background:var(--cmp-navy); color:#fff; font:inherit; cursor:pointer; }

.cmp-chart-section { background:linear-gradient(180deg,#f8fafc 0,#fff 100%); }
.cmp-chart-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.cmp-chart-card { --accent:#18bda9; padding:24px; border:1px solid #e1e7ee; border-radius:25px; background:#fff; box-shadow:0 14px 38px rgba(11,38,75,.055); min-width:0; }
.cmp-chart-card--crypto { --accent:#18bda9; }
.cmp-chart-card--stock { --accent:#3d72d5; }
.cmp-chart-card--gold { --accent:#dca51d; }
.cmp-chart-card--fx { --accent:#815cd1; }
.cmp-chart-card__head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.cmp-chart-card__identity { display:flex; align-items:center; gap:11px; min-width:0; }
.cmp-chart-card__identity h3 { margin:0 0 4px; font-size:19px; }
.cmp-chart-card__identity span { color:#929cab; font-size:11px; }
.cmp-chart-card__quote { text-align:left; min-width:130px; }
.cmp-chart-card__quote strong { display:block; font-size:18px; color:var(--cmp-text); font-feature-settings:"pnum" 1, "tnum" 0; }
.cmp-chart-card__quote span { display:block; margin-top:4px; font-size:12px; font-weight:900; unicode-bidi:isolate; }
.cmp-chart-range { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:7px; margin:22px 0 12px; }
.cmp-chart-range button { min-width:0; height:39px; padding:0 6px; border:1px solid #e0e5ec; border-radius:12px; background:#f7f8fb; color:#586378; font-weight:850; white-space:nowrap; cursor:pointer; transition:.18s ease; }
.cmp-chart-range button:hover:not(:disabled) { border-color:#b7c8dc; background:#fff; }
.cmp-chart-range button.is-active { background:var(--cmp-navy-2); border-color:var(--cmp-navy-2); color:#fff; box-shadow:0 8px 18px rgba(10,53,109,.15); }
.cmp-chart-range button:disabled { opacity:.38; cursor:not-allowed; }
.cmp-chart-box { position:relative; height:270px; direction:ltr; }
.cmp-chart-box canvas { width:100% !important; height:100% !important; }
.cmp-chart-empty { display:none; position:absolute; inset:0; align-items:center; justify-content:center; text-align:center; padding:20px; color:#8b95a6; background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(248,250,252,.96)); border-radius:16px; font-size:13px; line-height:1.8; direction:rtl; }
.cmp-chart-box.is-empty .cmp-chart-empty { display:flex; }
.cmp-chart-box.is-empty canvas { opacity:0; pointer-events:none; }

.cmp-principles { padding-top:30px; padding-bottom:90px; }
.cmp-principles__panel { padding:42px; border-radius:30px; background:linear-gradient(135deg,#071f49,#083f73 65%,#0b5d7e); color:#fff; box-shadow:0 22px 55px rgba(5,32,73,.16); }
.cmp-principles__panel header { display:grid; grid-template-columns:.9fr 1.1fr; gap:50px; align-items:end; }
.cmp-principles__panel h2 { margin:8px 0 0; font-size:36px; line-height:1.4; }
.cmp-principles__panel header p { margin:0; color:#c2d2e5; line-height:2; }
.cmp-principles__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:32px; }
.cmp-principles__grid article { padding:20px; border:1px solid rgba(255,255,255,.11); border-radius:18px; background:rgba(255,255,255,.055); }
.cmp-principles__grid article > span { display:block; color:#63e7da; font-weight:900; font-size:12px; margin-bottom:13px; }
.cmp-principles__grid strong { display:block; font-size:16px; margin-bottom:8px; }
.cmp-principles__grid p { margin:0; color:#afc4dc; line-height:1.85; font-size:12px; }
.cmp-principles__cta { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-top:28px; padding-top:24px; border-top:1px solid rgba(255,255,255,.13); }
.cmp-principles__cta strong, .cmp-principles__cta span { display:block; }
.cmp-principles__cta span { margin-top:5px; color:#afc5dc; font-size:12px; }
.cmp-principles__cta a { flex:0 0 auto; color:#071f49; background:#fff; padding:12px 18px; border-radius:13px; text-decoration:none; font-weight:850; }

@media (max-width: 980px) {
    .cmp-hero__grid { grid-template-columns:1fr; gap:34px; }
    .cmp-hero__copy { max-width:none; }
    .cmp-radar { max-width:650px; width:100%; }
    .cmp-asset-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .cmp-chart-grid { grid-template-columns:1fr; }
    .cmp-principles__panel header { grid-template-columns:1fr; gap:18px; }
}

@media (max-width: 680px) {
    .cmp-shell { width:min(100% - 28px, 1180px); }
    .cmp-section { padding:58px 0; }
    .cmp-hero { padding:42px 0 48px; }
    .cmp-hero h1 { font-size:48px; }
    .cmp-hero__copy > p { font-size:15px; line-height:1.95; }
    .cmp-radar { padding:22px; border-radius:24px; }
    .cmp-radar__stats { grid-template-columns:1fr 1fr; }
    .cmp-radar__head strong { font-size:20px; }
    .cmp-section-heading { display:block; margin-bottom:22px; }
    .cmp-section-heading > p { margin-top:10px; font-size:13px; }
    .cmp-section-heading h2 { font-size:34px; }
    .cmp-board-meta { display:block; }
    .cmp-board-meta > div { margin-top:10px; }
    .cmp-asset-grid { grid-template-columns:1fr; gap:12px; }
    .cmp-asset-card { padding:20px; }
    .cmp-asset-card__price { margin-top:20px; }
    .cmp-asset-card__price strong { font-size:25px; }
    .cmp-chart-card { padding:18px; border-radius:22px; }
    .cmp-chart-card__head { display:block; }
    .cmp-chart-card__quote { text-align:right; margin-top:14px; min-width:0; }
    .cmp-chart-range { grid-template-columns:repeat(7,minmax(58px,1fr)); gap:6px; overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:none; padding-bottom:2px; }
    .cmp-chart-range::-webkit-scrollbar { display:none; }
    .cmp-chart-range button { height:42px; }
    .cmp-chart-box { height:245px; }
    .cmp-principles__panel { padding:28px 22px; border-radius:25px; }
    .cmp-principles__panel h2 { font-size:29px; }
    .cmp-principles__grid { grid-template-columns:1fr; }
    .cmp-principles__cta { display:block; }
    .cmp-principles__cta a { display:inline-flex; margin-top:18px; }
}

@media (max-width: 420px) {
    .cmp-shell { width:calc(100% - 22px); }
    .cmp-hero h1 { font-size:42px; }
    .cmp-hero__chips { gap:7px; }
    .cmp-hero__chips span { padding:8px 10px; font-size:11px; }
    .cmp-radar__stats { gap:8px; }
    .cmp-radar__stats > div { padding:13px 12px; }
    .cmp-radar__mover > div { align-items:flex-end; }
    .cmp-filters { display:grid; grid-template-columns:1fr 1fr; }
    .cmp-filters button { width:100%; }
    .cmp-asset-card__head { gap:8px; }
    .cmp-group-pill { display:none; }
    .cmp-chart-range button { font-size:12px; }
}

/* v0.54 — Market Board visual grouping + asset identity */
.cmp-asset-directory {
    display: grid;
    gap: 34px;
}

.cmp-asset-group {
    min-width: 0;
}

.cmp-asset-group[hidden] {
    display: none !important;
}

.cmp-asset-group__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin: 0 4px 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f5;
}

.cmp-asset-group__head > div > span {
    display: block;
    margin-bottom: 3px;
    color: #0b9f88;
    font-size: 10px;
    font-weight: 850;
}

.cmp-asset-group__head h3 {
    margin: 0;
    color: var(--cmp-navy);
    font-size: 21px;
    line-height: 1.35;
}

.cmp-asset-group__head p {
    max-width: 510px;
    margin: 0;
    color: #919aaa;
    font-size: 12px;
    line-height: 1.8;
}

.cmp-asset-directory.is-filtered .cmp-asset-group__head {
    display: none;
}

.cmp-asset-directory.is-filtered {
    gap: 0;
}

.cmp-asset-card__icon {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(8, 35, 76, .06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 7px 18px rgba(8,35,76,.06);
}

.cmp-asset-card--crypto .cmp-asset-card__icon {
    background: linear-gradient(145deg, #e3fbf7 0%, #f2fffc 100%);
    color: #08a88f;
}

.cmp-asset-card--stock .cmp-asset-card__icon {
    background: linear-gradient(145deg, #e9f1ff 0%, #f6f9ff 100%);
    color: #386fd4;
}

.cmp-asset-card--gold .cmp-asset-card__icon {
    background: linear-gradient(145deg, #fff3cc 0%, #fffaf0 100%);
    color: #b87900;
}

.cmp-asset-card--fx .cmp-asset-card__icon {
    background: linear-gradient(145deg, #f0eaff 0%, #fbf9ff 100%);
    color: #7251c7;
}

.cmp-icon-glyph {
    position: relative;
    z-index: 2;
    font-size: 21px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.03em;
}

.cmp-asset-card__icon--crypto::after,
.cmp-asset-card__icon--currency::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .12;
}

.cmp-icon-stock {
    position: relative;
    width: 27px;
    height: 25px;
}

.cmp-icon-stock i {
    position: absolute;
    bottom: 3px;
    width: 4px;
    border-radius: 4px 4px 1px 1px;
    background: currentColor;
    opacity: .32;
}

.cmp-icon-stock i:nth-child(1) { right: 2px; height: 8px; }
.cmp-icon-stock i:nth-child(2) { right: 10px; height: 13px; }
.cmp-icon-stock i:nth-child(3) { right: 18px; height: 19px; }

.cmp-icon-stock b {
    position: absolute;
    left: 1px;
    top: 3px;
    width: 20px;
    height: 11px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: skewY(-27deg) rotate(-7deg);
    border-radius: 0 5px 0 0;
}

.cmp-icon-stock b::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -3px;
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(18deg);
}

.cmp-icon-bullion {
    position: relative;
    width: 30px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmp-icon-bullion i {
    position: absolute;
    inset: 4px 1px 2px;
    clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
    border: 1px solid rgba(146, 93, 0, .28);
    background: linear-gradient(145deg, #ffd85f, #e7a917 58%, #fff0a5);
    box-shadow: inset 0 2px 4px rgba(255,255,255,.55);
}

.cmp-icon-bullion b {
    position: relative;
    z-index: 2;
    margin-top: 5px;
    color: #754b00;
    font-size: 9px;
    font-weight: 950;
}

.cmp-icon-weight {
    position: relative;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmp-icon-weight::before {
    content: "";
    position: absolute;
    top: 2px;
    width: 9px;
    height: 7px;
    border: 2px solid #b87900;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.cmp-icon-weight i {
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 2px;
    height: 19px;
    clip-path: polygon(19% 0, 81% 0, 100% 100%, 0 100%);
    background: linear-gradient(145deg, #ffd867, #e9ad1d 63%, #fff2ad);
    border-radius: 3px;
}

.cmp-icon-weight b {
    position: relative;
    z-index: 2;
    margin-top: 7px;
    color: #704800;
    font-size: 8px;
    font-weight: 950;
}

.cmp-icon-coin {
    position: relative;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d59a12;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #fff5b8 0%, #ffd45f 30%, #e5a71a 72%, #bd7e05 100%);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.34), 0 2px 4px rgba(135,85,0,.18);
}

.cmp-icon-coin::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(126,78,0,.22);
    border-radius: 50%;
}

.cmp-icon-coin b {
    position: relative;
    z-index: 2;
    color: #704800;
    font-size: 9px;
    font-weight: 950;
}

@media (max-width: 680px) {
    .cmp-asset-directory { gap: 26px; }
    .cmp-asset-group__head { display: block; margin-bottom: 12px; }
    .cmp-asset-group__head p { margin-top: 5px; font-size: 11px; }
}


/* ==========================================================
 * CandleStan Market Pulse — v0.54.1
 * Radar contrast hardening. Direction colors belong to the
 * percentage only; the asset name stays high-contrast on navy.
 * ========================================================== */
.cmp-radar__mover.cmp-direction--positive,
.cmp-radar__mover.cmp-direction--negative,
.cmp-radar__mover.cmp-direction--neutral {
    color: #fff;
}

.cmp-radar__mover strong {
    color: #fff !important;
}

.cmp-radar__mover b {
    padding: 4px 8px;
    border-radius: 999px;
}

.cmp-radar__mover.cmp-direction--negative b {
    color: #ffd1dc;
    background: rgba(255, 126, 159, .12);
}

.cmp-radar__mover.cmp-direction--positive b {
    color: #8af3e3;
    background: rgba(92, 227, 208, .11);
}

.cmp-radar__mover.cmp-direction--neutral b {
    color: #e2e9f2;
    background: rgba(255, 255, 255, .07);
}

/* ==========================================================
 * CandleStan Market Pulse — v0.54.3
 * Full-width surface repair + desktop visual balance.
 * This block intentionally uses real CSS line breaks; v0.54.2's
 * generated Market Pulse suffix contained escaped \
 text and was ignored.
 * ========================================================== */

/* The dedicated Market Pulse is a product surface, not a normal article page.
   Remove any residual parent-theme width/padding constraints. */
body.candlestan-market-pulse-v2 .primary-site-content,
body.candlestan-market-pulse-v2 #primary-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.cmp-page {
    width: 100%;
    max-width: none;
}

/* Match the homepage's visual scale while keeping Market Pulse's own identity. */
.cmp-shell {
    width: min(1180px, calc(100% - 40px));
}

.cmp-hero {
    padding: 82px 0 68px;
}

.cmp-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    gap: 54px;
}

.cmp-radar {
    min-height: 390px;
    padding: 30px;
}

/* The two reference markets should read as a deliberate pair, not two items
   squeezed into the generic four-column market grid. */
.cmp-asset-group[data-cmp-asset-section="core"] .cmp-asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cmp-asset-group[data-cmp-asset-section="core"] .cmp-asset-card__identity h3 {
    white-space: nowrap;
}

/* Compact Data Standard composition: a real heading block + supporting copy,
   followed by tighter principles and CTA spacing. */
.cmp-principles__panel {
    padding: 32px 36px 30px;
}

.cmp-principles__panel header {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: center;
}

.cmp-principles__heading {
    min-width: 0;
}

.cmp-principles__panel h2 {
    margin: 7px 0 0;
    font-size: 32px;
    line-height: 1.42;
}

.cmp-principles__panel header > p {
    margin: 0;
    line-height: 1.9;
}

.cmp-principles__grid {
    margin-top: 24px;
}

.cmp-principles__grid article {
    padding: 17px 18px;
}

.cmp-principles__grid article > span {
    margin-bottom: 10px;
}

.cmp-principles__cta {
    margin-top: 18px;
    padding-top: 18px;
}

@media (max-width: 980px) {
    .cmp-hero__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .cmp-radar {
        min-height: 0;
        max-width: 650px;
        width: 100%;
    }

    .cmp-principles__panel header {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 680px) {
    .cmp-shell {
        width: min(100% - 28px, 1180px);
    }

    .cmp-asset-group[data-cmp-asset-section="core"] .cmp-asset-grid {
        grid-template-columns: 1fr;
    }

    .cmp-asset-group[data-cmp-asset-section="core"] .cmp-asset-card__identity h3 {
        white-space: normal;
    }

    .cmp-principles__panel {
        padding: 27px 22px;
    }

    .cmp-principles__panel h2 {
        font-size: 29px;
    }
}


/* ==========================================================
 * CandleStan Market Pulse — v0.54.4
 * Continuous page canvas + scalable core-market card sizing.
 * ========================================================== */

/* Homepage uses one continuous light canvas rather than a boxed hero.
   Give Market Pulse the same premium continuity while retaining its own
   decorative radial accents. */
body.candlestan-market-pulse-v2,
.candlestan-market-pulse-v2 {
    background: #fbfcfe;
}

.cmp-page {
    background:
        radial-gradient(circle at 88% 3%, rgba(11, 195, 176, .08), transparent 20%),
        linear-gradient(180deg, #fbfcfe 0, #f7f9fc 52%, #fff 100%);
}

.cmp-hero {
    background:
        radial-gradient(circle at 92% 12%, rgba(22, 205, 190, .13), transparent 34%),
        radial-gradient(circle at 15% 75%, rgba(72, 112, 210, .09), transparent 32%);
    border-bottom: 0;
}

/* Fade the subtle hero grid itself so its lower edge never reads as a box. */
.cmp-hero::before {
    opacity: .30;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
}

.cmp-board-section {
    background: transparent;
}

/* Keep core markets on the same compact scalable grid as the other assets.
   Today it contains BTC + TEDPIX; future reference assets can fill the row
   without forcing oversized 50/50 cards. */
.cmp-asset-group[data-cmp-asset-section="core"] .cmp-asset-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* TEDPIX has the longest core label. Preserve the precise Persian name on
   one line by tightening only that heading instead of enlarging every card. */
.cmp-asset-group[data-cmp-asset-section="core"] .cmp-asset-card--stock .cmp-asset-card__identity h3 {
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: -.015em;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .cmp-asset-group[data-cmp-asset-section="core"] .cmp-asset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cmp-asset-group[data-cmp-asset-section="core"] .cmp-asset-card--stock .cmp-asset-card__identity h3 {
        font-size: 16px;
    }
}

@media (max-width: 680px) {
    .cmp-asset-group[data-cmp-asset-section="core"] .cmp-asset-grid {
        grid-template-columns: 1fr;
    }

    .cmp-asset-group[data-cmp-asset-section="core"] .cmp-asset-card--stock .cmp-asset-card__identity h3 {
        font-size: 17px;
        white-space: normal;
    }
}


/* ==========================================================
 * CandleStan Market Pulse — v0.54.5
 * Final lower-left hero fade seam fix.
 * Keep the lavender accent, but make it reach full transparency
 * before the hero boundary so the page canvas stays continuous.
 * ========================================================== */
.cmp-hero {
    background:
        radial-gradient(circle at 92% 12%, rgba(22, 205, 190, .13), transparent 34%),
        radial-gradient(
            ellipse 42% 58% at 15% 42%,
            rgba(72, 112, 210, .09) 0%,
            rgba(72, 112, 210, .052) 38%,
            rgba(72, 112, 210, .018) 70%,
            transparent 100%
        );
}

/* =========================================================
   CandleStan v0.59.1 — Movement + Chart Integrity UI
   ========================================================= */
.cmp-asset-card__change {
    align-items:center;
    max-width:100%;
    direction:rtl;
    unicode-bidi:isolate;
    line-height:1.65;
    white-space:normal;
}

.cmp-asset-card__change.is-unavailable {
    font-weight:750;
}

.cmp-radar__mover b,
.cmp-chart-card__movement {
    direction:rtl;
    unicode-bidi:isolate;
}

.cmp-chart-card__movement {
    display:block;
    margin-top:4px;
    font-size:11px !important;
    line-height:1.65;
    font-weight:900;
    max-width:190px;
    margin-inline-start:auto;
}

@media (max-width: 680px) {
    .cmp-asset-card__change { font-size:11px; }
    .cmp-chart-card__movement { max-width:none; margin-inline-start:0; }
}

/* =========================================================
   CandleStan v0.59.2 — Movement clarity + radar polarity
   ========================================================= */
.cmp-asset-card__change {
    font-size: 13px;
    line-height: 1.6;
}

.cmp-asset-card__change-basis,
.cmp-chart-card__movement-basis {
    display: block;
    color: #99a3b2;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.55;
}

.cmp-asset-card__change-basis {
    margin-top: 5px;
}

.cmp-chart-card__movement {
    font-size: 12px !important;
}

.cmp-chart-card__movement-basis {
    margin-top: 3px;
    text-align: right;
}

.cmp-radar__movers {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
}

.cmp-radar__movers .cmp-radar__mover {
    padding: 14px 16px;
}

.cmp-radar__movers .cmp-radar__mover > span {
    margin-bottom: 7px;
}

.cmp-radar__movers .cmp-radar__mover strong {
    font-size: 14px;
}

.cmp-radar__movers .cmp-radar__mover b {
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}

@media (max-width: 680px) {
    .cmp-asset-card__change { font-size: 12px; }
    .cmp-asset-card__change-basis,
    .cmp-chart-card__movement-basis { font-size: 9.5px; }
    .cmp-radar__movers .cmp-radar__mover > div { align-items: flex-end; }
}


/* ==========================================================
 * CandleStan v0.59.3 — Semantic mover surfaces
 * Positive and negative summaries should read instantly even
 * before the user parses the signed number. Keep it subtle.
 * ========================================================== */
.cmp-radar__mover.cmp-direction--positive {
    border: 1px solid rgba(92, 227, 208, .22);
    background:
        radial-gradient(circle at 88% 12%, rgba(92, 227, 208, .12), transparent 38%),
        linear-gradient(135deg, rgba(10, 61, 79, .96), rgba(8, 38, 72, .96));
}

.cmp-radar__mover.cmp-direction--negative {
    border: 1px solid rgba(255, 126, 159, .26);
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 126, 159, .14), transparent 38%),
        linear-gradient(135deg, rgba(91, 30, 55, .96), rgba(8, 38, 72, .96));
}

.cmp-radar__mover.cmp-direction--negative > span {
    color: #efb4c3;
}

.cmp-radar__mover.cmp-direction--positive > span {
    color: #a8e6de;
}

.cmp-radar__mover.is-empty {
    filter: saturate(.72);
}


/* ==========================================================
 * CandleStan v0.59.4 — Context-rich movers + micro-motion
 * Current quote first, movement second, basis third. The badge
 * and arrow animate once on entry; no perpetual motion.
 * ========================================================== */
.cmp-radar__movers .cmp-radar__mover > .cmp-radar__mover-main {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    justify-items: start;
    gap: 5px;
    min-width: 0;
}

.cmp-radar__mover-identity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cmp-radar__mover-identity strong {
    font-size: 14px;
    line-height: 1.4;
}

.cmp-radar__mover-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    animation: cmpMoverBadgeIn .58s cubic-bezier(.2,.75,.25,1) both;
}

.cmp-radar__mover-price {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.4;
    unicode-bidi: isolate;
}

.cmp-radar__movers .cmp-radar__mover b.cmp-radar__mover-change {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 1px;
    font-size: 13px;
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
}

.cmp-radar__mover-change bdi,
.cmp-radar__mover-change i,
.cmp-radar__mover-arrow {
    display: inline-block;
    white-space: nowrap;
    unicode-bidi: isolate;
}

.cmp-radar__mover-change i {
    opacity: .42;
    font-style: normal;
    font-size: .88em;
}

.cmp-radar__mover-arrow {
    font-size: 1.05em;
    line-height: 1;
    animation: cmpMoverArrowUp .58s cubic-bezier(.2,.75,.25,1) both;
}

.cmp-radar__mover.cmp-direction--negative .cmp-radar__mover-arrow {
    animation-name: cmpMoverArrowDown;
}

.cmp-radar__mover-basis {
    color: #9fb7d0;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.45;
}

@keyframes cmpMoverBadgeIn {
    from { opacity: 0; transform: translateY(3px) scale(.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cmpMoverArrowUp {
    from { opacity: .15; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cmpMoverArrowDown {
    from { opacity: .15; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
    .cmp-radar__mover-price { font-size: 15.5px; }
    .cmp-radar__movers .cmp-radar__mover b.cmp-radar__mover-change { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .cmp-radar__mover-icon,
    .cmp-radar__mover-arrow {
        animation: none !important;
    }
}

/* ==========================================================
 * CandleStan v0.59.5 — Mover hierarchy + visible micro-motion
 * Identity sits on the right, current quote on the left; the
 * move and its basis use the full row below. Motion pulses twice
 * so it is noticeable, while normal asset cards animate on hover.
 * ========================================================== */
.cmp-radar__mover-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-width: 0;
    direction: rtl;
}

.cmp-radar__mover-head .cmp-radar__mover-identity {
    min-width: 0;
    justify-self: start;
}

.cmp-radar__mover-head .cmp-radar__mover-price {
    margin-inline-start: auto;
    text-align: left;
    white-space: nowrap;
}

.cmp-radar__movers .cmp-radar__mover > .cmp-radar__mover-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-items: stretch;
    gap: 5px;
}

.cmp-radar__movers .cmp-radar__mover b.cmp-radar__mover-change {
    justify-self: start;
    width: max-content;
    max-width: 100%;
    margin-top: 4px;
}

.cmp-radar__mover-basis {
    justify-self: start;
    margin-top: 1px;
}

.cmp-radar__mover-icon {
    animation: cmpMoverPulse .9s cubic-bezier(.2,.75,.25,1) .18s 2 both;
}

.cmp-radar__mover-arrow {
    animation: cmpMoverArrowPulseUp .9s cubic-bezier(.2,.75,.25,1) .18s 2 both;
}

.cmp-radar__mover.cmp-direction--negative .cmp-radar__mover-arrow {
    animation-name: cmpMoverArrowPulseDown;
}

@keyframes cmpMoverPulse {
    0%   { opacity: .72; transform: scale(.94); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    55%  { opacity: 1; transform: scale(1.06); box-shadow: 0 0 0 5px rgba(255,255,255,.055); }
    100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@keyframes cmpMoverArrowPulseUp {
    0%   { opacity: .35; transform: translateY(3px); }
    55%  { opacity: 1; transform: translateY(-2px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes cmpMoverArrowPulseDown {
    0%   { opacity: .35; transform: translateY(-3px); }
    55%  { opacity: 1; transform: translateY(2px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Regular board cards get an interaction cue, not constant animation. */
.cmp-asset-card__icon,
.cmp-asset-card__change {
    transition: transform .2s ease, box-shadow .2s ease;
}

.cmp-asset-card:hover .cmp-asset-card__icon,
.cmp-asset-card:focus-within .cmp-asset-card__icon {
    transform: translateY(-2px) scale(1.035);
}

.cmp-asset-card:hover .cmp-asset-card__change,
.cmp-asset-card:focus-within .cmp-asset-card__change {
    transform: translateY(-1px);
}

@media (max-width: 680px) {
    .cmp-radar__mover-head { gap: 9px; }
    .cmp-radar__mover-head .cmp-radar__mover-price { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .cmp-radar__mover-icon,
    .cmp-radar__mover-arrow,
    .cmp-asset-card__icon,
    .cmp-asset-card__change {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}


/* ==========================================================
 * CandleStan v0.59.6 — Empty mover state repair
 * Prevent the em dash from inheriting full-row/grid sizing.
 * ========================================================== */
.cmp-radar__movers .cmp-radar__mover > .cmp-radar__mover-main--empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 54px;
}

.cmp-radar__mover-main--empty strong {
    color: rgba(255,255,255,.88);
    font-size: 14px;
    line-height: 1.45;
}

.cmp-radar__movers .cmp-radar__mover .cmp-radar__mover-main--empty > b {
    display: inline-flex;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.48);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transform: none;
}

/* CandleStan v0.59.7 — Board summary integrity.
   Closed/unavailable markets are explicit so the visible status counts add up
   to the same universe as “بازار مطابق فیلتر”. */
.cmp-market-stat--closed {
    color: #98701e;
    background: rgba(211, 161, 55, .10);
    border-color: rgba(211, 161, 55, .18);
}

.cmp-market-stat--unavailable {
    color: #7a8798;
    background: rgba(142, 153, 170, .09);
    border-color: rgba(142, 153, 170, .16);
}

/* =========================================================
   CandleStan v0.59.20 — Movement Contract v2
   Comparison basis and quote recency are two separate facts.
   ========================================================= */
.cmp-asset-card__quote-time,
.cmp-chart-card__quote-time {
    display: block;
    color: #b0b7c3;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.5;
}

.cmp-asset-card__quote-time { margin-top: 1px; }
.cmp-chart-card__quote-time { margin-top: 1px; text-align: right; }

@media (max-width: 680px) {
    .cmp-asset-card__quote-time,
    .cmp-chart-card__quote-time { font-size: 9px; }
}


/* =========================================================
   CandleStan v0.61 — 1D closed-session continuity
   ========================================================= */
.cmp-chart-note {
    margin-top: 9px;
    min-height: 18px;
    color: #8a6a22;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.65;
    text-align: right;
    direction: rtl;
}

.cmp-chart-note[hidden] { display: none !important; }

@media (max-width: 680px) {
    .cmp-chart-note { font-size: 9.5px; }
}


/* =========================================================
   CandleStan v0.64.3 | TSE pair alignment
   Reserve identical header rhythm for TEDPIX and equal-weight.
   ========================================================= */
.cmp-asset-group[data-cmp-asset-section="stock"] .cmp-asset-grid {
    align-items: stretch;
}

.cmp-asset-group[data-cmp-asset-section="stock"] .cmp-asset-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cmp-asset-group[data-cmp-asset-section="stock"] .cmp-asset-card__head {
    min-height: 54px;
}

.cmp-asset-group[data-cmp-asset-section="stock"] .cmp-asset-card__identity > div {
    min-height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cmp-asset-group[data-cmp-asset-section="stock"] .cmp-asset-card__identity h3 {
    line-height: 1.4;
}

.cmp-asset-group[data-cmp-asset-section="stock"] .cmp-asset-card__price {
    margin-top: 23px;
}

.cmp-asset-group[data-cmp-asset-section="stock"] .cmp-asset-card__meta {
    margin-top: auto;
}

/* =========================================================
   CandleStan v0.64.8 — Market Pulse white shell final fix
   Make the left data-status shell visually match the homepage
   radar shell on desktop and ensure the override always parses.
   ========================================================= */
@media (min-width: 981px) {
    .cmp-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(500px, 530px);
        gap: 54px;
        align-items: center;
    }

    .cmp-radar {
        width: min(100%, 530px);
        max-width: 530px;
        min-height: 392px;
        padding: 28px;
    }
}

/* =========================================================
   CandleStan v0.70.1 | Pulse readability + chart identity
   ========================================================= */
.cmp-asset-card__identity h3 { font-size:19px; line-height:1.45; }
.cmp-asset-card__identity span { font-size:12px; }
.cmp-asset-card__price small { color:#78869a; font-size:12px; font-weight:650; }
.cmp-asset-card__price strong { font-size:27px; line-height:1.32; }
.cmp-asset-card__change-basis { color:#7d8a9e; font-size:11.5px; line-height:1.7; }
.cmp-asset-card__quote-time { color:#8995a6; font-size:11px; line-height:1.65; }
.cmp-asset-card__meta { color:#748196; font-size:11.5px; }

.cmp-chart-card {
    position:relative;
    overflow:hidden;
    border-color:color-mix(in srgb,var(--accent) 17%,#e1e7ee);
    background:
        radial-gradient(circle at 6% 4%,color-mix(in srgb,var(--accent) 8%,transparent),transparent 31%),
        linear-gradient(145deg,#fff,color-mix(in srgb,var(--accent) 2.6%,#fff));
}
.cmp-chart-card::before {
    content:"";
    position:absolute;
    top:0;
    inset-inline:0;
    height:4px;
    background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 35%,#fff));
}
.cmp-chart-card__identity h3 { font-size:21px; line-height:1.45; }
.cmp-chart-card__identity span { color:#78869a; font-size:12px; }
.cmp-chart-card__quote strong { font-size:21px; }
.cmp-chart-card__movement { font-size:13px !important; }
.cmp-chart-card__movement-basis { color:#7d8a9e; font-size:11.5px; }
.cmp-chart-card__quote-time { color:#8995a6; font-size:11px; }
.cmp-chart-range button { min-width:56px; font-size:11.5px; font-weight:850; }
.cmp-chart-empty { color:#748196; font-size:12px; line-height:1.8; }
.cmp-chart-note { color:#81631f; font-size:11.5px; }

@media (max-width:680px) {
    .cmp-asset-card__identity h3 { font-size:18px; }
    .cmp-asset-card__price strong { font-size:25px; }
    .cmp-asset-card__quote-time,.cmp-chart-card__quote-time { font-size:10.5px; }
    .cmp-chart-card__identity h3 { font-size:19px; }
    .cmp-chart-card__quote strong { font-size:19px; }
    .cmp-chart-range button { min-width:50px; font-size:10.5px; }
}



/* =========================================================
   CandleStan v0.70.2 | Radar mover bidi-safe alignment
   Keep identity on the physical right and quote centered in a
   dedicated physical-left lane, even when the quote is number-only.
   ========================================================= */
.cmp-radar__mover-head {
    display:grid;
    grid-template-columns:minmax(155px,.48fr) minmax(0,1fr);
    align-items:center;
    gap:18px;
    width:100%;
    min-width:0;
    direction:ltr;
}

.cmp-radar__mover-head .cmp-radar__mover-identity {
    grid-column:2;
    grid-row:1;
    justify-self:end;
    direction:rtl;
    text-align:right;
}

.cmp-radar__mover-head .cmp-radar__mover-identity strong {
    font-size:14.5px;
}

.cmp-radar__mover-head .cmp-radar__mover-price {
    grid-column:1;
    grid-row:1;
    justify-self:stretch;
    width:100%;
    margin:0;
    color:#fff;
    font-size:21px;
    line-height:1.35;
    font-weight:950;
    text-align:center;
    direction:ltr !important;
    unicode-bidi:isolate;
    font-variant-numeric:tabular-nums;
}

@media (max-width:680px) {
    .cmp-radar__mover-head {
        grid-template-columns:minmax(108px,.46fr) minmax(0,1fr);
        gap:10px;
    }
    .cmp-radar__mover-head .cmp-radar__mover-identity strong { font-size:13px; }
    .cmp-radar__mover-head .cmp-radar__mover-price { font-size:17.5px; }
}


/* =========================================================
   CandleStan v0.70.3 | Balanced radar mover composition
   Right lane = context + asset identity. Left lane = current
   quote + movement badge + Tehran-day basis. Both cards keep
   the exact same geometry regardless of number length.
   ========================================================= */
.cmp-radar__movers .cmp-radar__mover {
    padding:18px 20px;
}

.cmp-radar__mover-layout {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(180px,.92fr);
    grid-template-areas:"metric context";
    gap:22px;
    align-items:center;
    width:100%;
    min-width:0;
    direction:ltr;
}

.cmp-radar__mover-context {
    grid-area:context;
    min-width:0;
    direction:rtl;
    text-align:right;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:9px;
}

.cmp-radar__mover-title {
    display:block;
    width:100%;
    color:#a9c6e3;
    font-size:11px;
    font-weight:750;
    line-height:1.55;
}

.cmp-radar__mover-context .cmp-radar__mover-identity {
    width:100%;
    justify-content:flex-start;
}

.cmp-radar__mover-context .cmp-radar__mover-identity strong {
    font-size:15px;
    line-height:1.45;
}

.cmp-radar__mover-metric {
    grid-area:metric;
    min-width:0;
    direction:rtl;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    text-align:center;
}

.cmp-radar__mover-metric .cmp-radar__mover-price {
    width:100%;
    margin:0;
    color:#fff;
    font-size:22px;
    font-weight:950;
    line-height:1.25;
    text-align:center;
    direction:ltr !important;
    unicode-bidi:isolate;
    font-variant-numeric:tabular-nums;
}

.cmp-radar__movers .cmp-radar__mover-metric b.cmp-radar__mover-change {
    justify-self:auto;
    width:max-content;
    max-width:100%;
    margin:0;
    justify-content:center;
    text-align:center;
}

.cmp-radar__mover-metric .cmp-radar__mover-basis {
    margin:0;
    justify-self:auto;
    text-align:center;
}

@media (max-width:680px) {
    .cmp-radar__movers .cmp-radar__mover { padding:16px; }
    .cmp-radar__mover-layout {
        grid-template-columns:1fr;
        grid-template-areas:"context" "metric";
        gap:12px;
    }
    .cmp-radar__mover-context,
    .cmp-radar__mover-metric { align-items:stretch; }
    .cmp-radar__mover-metric .cmp-radar__mover-price { font-size:19px; }
    .cmp-radar__movers .cmp-radar__mover-metric b.cmp-radar__mover-change { align-self:flex-start; }
    .cmp-radar__mover-metric .cmp-radar__mover-basis { text-align:right; }
}

/* =========================================================
   CandleStan v0.70.4 | Radar stat balance + mover readability
   Compact stat cards use the full width: label on the right,
   value on the left. Mover asset names gain one readability step.
   ========================================================= */
.cmp-radar__stats > div {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    min-width:0;
    direction:rtl;
}

.cmp-radar__stats > div > span {
    margin:0;
    min-width:0;
    text-align:right;
    line-height:1.45;
}

.cmp-radar__stats > div > strong {
    flex:0 0 auto;
    margin:0;
    font-size:18px;
    font-weight:900;
    line-height:1.25;
    color:var(--cmp-text);
    direction:ltr;
    unicode-bidi:isolate;
    text-align:left;
    font-variant-numeric:tabular-nums;
}

.cmp-radar__mover-context .cmp-radar__mover-identity strong {
    font-size:17px;
    font-weight:900;
    line-height:1.42;
}

@media (max-width:680px) {
    .cmp-radar__stats > div { gap:9px; }
    .cmp-radar__stats > div > strong { font-size:16.5px; }
    .cmp-radar__mover-context .cmp-radar__mover-identity strong { font-size:16px; }
}


/* =========================================================
   CandleStan v0.65.8 | Mobile pulse rebalancing
   - Recompose positive/negative movers on phones
   - Tighten board cards without changing desktop
   - Use the empty left lane of chart cards more efficiently
   ========================================================= */
@media (max-width:680px) {
    .cmp-hero__copy > p,
    .cmp-section-heading > p,
    .cmp-asset-group__head p,
    .cmp-principles__panel header p,
    .cmp-principles__grid p {
        text-align: justify;
        text-align-last: right;
        text-justify: inter-word;
    }

    .cmp-radar__movers {
        gap: 10px;
    }

    .cmp-radar__movers .cmp-radar__mover {
        padding: 16px 15px;
    }

    .cmp-radar__mover-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title title"
            "identity price"
            "change change"
            "basis basis";
        gap: 10px 12px;
        align-items: center;
        direction: ltr;
    }

    .cmp-radar__mover-context,
    .cmp-radar__mover-metric {
        display: contents;
    }

    .cmp-radar__mover-title {
        grid-area: title;
        text-align: center;
        font-size: 11px;
    }

    .cmp-radar__mover-context .cmp-radar__mover-identity {
        grid-area: identity;
        width: 100%;
        justify-self: end;
        justify-content: flex-end;
        gap: 8px;
        text-align: right;
    }

    .cmp-radar__mover-context .cmp-radar__mover-identity strong {
        font-size: 15px;
    }

    .cmp-radar__mover-metric .cmp-radar__mover-price {
        grid-area: price;
        width: auto;
        justify-self: start;
        margin: 0;
        text-align: left;
        white-space: nowrap;
        font-size: 18px;
        line-height: 1.25;
    }

    .cmp-radar__movers .cmp-radar__mover-metric b.cmp-radar__mover-change {
        grid-area: change;
        justify-self: center;
        align-self: center;
        width: max-content;
        max-width: 100%;
        margin: 0;
        text-align: center;
        justify-content: center;
    }

    .cmp-radar__mover-metric .cmp-radar__mover-basis {
        grid-area: basis;
        margin: 0;
        text-align: center;
    }

    .cmp-asset-card {
        padding: 16px 16px 14px;
        border-radius: 22px;
    }

    .cmp-asset-card__head {
        margin-bottom: 4px;
    }

    .cmp-asset-card__identity h3 {
        font-size: 17px;
        line-height: 1.35;
    }

    .cmp-asset-card__identity span {
        font-size: 11px;
    }

    .cmp-asset-card__price {
        margin-top: 12px;
    }

    .cmp-asset-card__price small {
        font-size: 11px;
    }

    .cmp-asset-card__price strong {
        display: block;
        font-size: 22px;
        line-height: 1.3;
        text-align: right;
    }

    .cmp-asset-group[data-cmp-asset-section="stock"] .cmp-asset-card__price strong {
        direction: ltr;
        unicode-bidi: isolate;
        text-align: right;
    }

    .cmp-asset-card__change {
        margin-top: 9px;
        font-size: 12px;
    }

    .cmp-asset-card__change-basis,
    .cmp-asset-card__quote-time {
        display: block;
        text-align: right;
    }

    .cmp-asset-card__meta {
        margin-top: 14px;
        padding-top: 10px;
    }

    .cmp-chart-card {
        padding: 16px 16px 18px;
    }

    .cmp-chart-card__head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "quote identity";
        gap: 10px 12px;
        align-items: start;
        direction: ltr;
    }

    .cmp-chart-card__identity {
        grid-area: identity;
        justify-self: end;
        direction: rtl;
        text-align: right;
    }

    .cmp-chart-card__identity h3 {
        font-size: 18px;
    }

    .cmp-chart-card__quote {
        grid-area: quote;
        justify-self: start;
        min-width: 0;
        margin-top: 0;
        text-align: left;
    }

    .cmp-chart-card__quote strong {
        font-size: 18px;
        line-height: 1.3;
    }

    .cmp-chart-card__movement {
        max-width: none;
        margin-top: 3px;
        font-size: 12px !important;
    }

    .cmp-chart-card__movement-basis,
    .cmp-chart-card__quote-time {
        text-align: left;
    }

    .cmp-chart-range {
        margin: 16px 0 10px;
    }

    .cmp-chart-box {
        height: 220px;
    }
}

@media (max-width:420px) {
    .cmp-radar__mover-context .cmp-radar__mover-identity strong {
        font-size: 14px;
    }

    .cmp-radar__mover-metric .cmp-radar__mover-price {
        font-size: 16.5px;
    }

    .cmp-asset-card__price strong,
    .cmp-chart-card__quote strong {
        font-size: 20px;
    }
}


/* v0.84.0.3.1c Market Intelligence Overview */
.cmp-intelligence-overview {
    margin-top: 24px;
}
.cmp-intelligence-panel {
    border-radius: 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(10, 45, 90, .08);
    box-shadow: 0 12px 35px rgba(10, 45, 90, .06);
}
.cmp-intelligence-heading h2 {
    margin: 6px 0 18px;
}
.cmp-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.cmp-intelligence-grid div {
    padding: 16px;
    border-radius: 16px;
    background: rgba(10, 45, 90, .04);
}
.cmp-intelligence-grid strong {
    display: block;
    font-size: 24px;
}
.cmp-intelligence-grid span {
    font-size: 13px;
}
.cmp-intelligence-focus {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(10,45,90,.08);
}
@media (max-width: 700px) {
    .cmp-intelligence-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   CandleStan v0.84.0.3.2 — Market Intelligence Visual Upgrade
   Premium overview layer for Market Pulse.
   ========================================================= */
.cmp-intelligence-overview {
    position: relative;
    padding: 30px 0 18px;
    background: linear-gradient(180deg, rgba(248,250,252,0) 0%, rgba(248,250,252,.96) 100%);
}

.cmp-intelligence-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(210, 221, 233, .9);
    border-radius: 30px;
    background:
        radial-gradient(circle at 8% 18%, rgba(61,114,213,.08), transparent 34%),
        radial-gradient(circle at 92% 15%, rgba(22,203,187,.10), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fbfdff 52%, #f6fbfb 100%);
    box-shadow: 0 20px 58px rgba(10, 33, 70, .07);
}

.cmp-intelligence-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(8,36,79,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(8,36,79,.022) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: .28;
}

.cmp-intelligence-panel__head,
.cmp-intelligence-grid,
.cmp-intelligence-insight { position: relative; z-index: 1; }

.cmp-intelligence-panel__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    margin-bottom: 22px;
}

.cmp-intelligence-heading h2 {
    margin: 10px 0 10px;
    color: var(--cmp-navy);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
}

.cmp-intelligence-heading p {
    margin: 0;
    max-width: 660px;
    color: #718099;
    font-size: 14px;
    line-height: 1.95;
}

.cmp-intelligence-breadth {
    min-width: 168px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(8, 111, 116, .12);
    background: linear-gradient(135deg, rgba(10,53,109,.98), rgba(7,31,74,.98));
    color: #fff;
    box-shadow: 0 14px 34px rgba(8, 36, 79, .18);
}

.cmp-intelligence-breadth span,
.cmp-intelligence-breadth small {
    display: block;
}

.cmp-intelligence-breadth span {
    color: rgba(255,255,255,.68);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cmp-intelligence-breadth strong {
    display: block;
    font-size: 31px;
    line-height: 1.05;
    font-weight: 900;
}

.cmp-intelligence-breadth small {
    margin-top: 7px;
    color: #9fe8df;
    font-size: 12px;
    font-weight: 800;
}

.cmp-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.cmp-intel-stat {
    position: relative;
    min-width: 0;
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(220, 228, 238, .92);
    background: #fff;
    box-shadow: 0 10px 28px rgba(14, 41, 77, .05);
}

.cmp-intel-stat::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 4px;
    border-radius: 22px 22px 0 0;
    background: #dbe3ee;
}

.cmp-intel-stat__eyebrow,
.cmp-intel-stat small {
    display: block;
}

.cmp-intel-stat__eyebrow {
    color: #728095;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cmp-intel-stat strong {
    display: block;
    color: var(--cmp-navy);
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.08;
    font-weight: 900;
}

.cmp-intel-stat small {
    margin-top: 7px;
    color: #7f8ca0;
    font-size: 12px;
    font-weight: 750;
}

.cmp-intel-stat--positive { background: linear-gradient(180deg, #f9fffd 0%, #eefaf7 100%); }
.cmp-intel-stat--positive::before { background: linear-gradient(90deg, #19c6a7, #0d9f88); }
.cmp-intel-stat--positive strong { color: #0a7e6f; }

.cmp-intel-stat--negative { background: linear-gradient(180deg, #fffafb 0%, #fff0f4 100%); }
.cmp-intel-stat--negative::before { background: linear-gradient(90deg, #ff8ca6, #c84667); }
.cmp-intel-stat--negative strong { color: #aa2f51; }

.cmp-intel-stat--neutral { background: linear-gradient(180deg, #fcfdff 0%, #f3f6fa 100%); }
.cmp-intel-stat--neutral::before { background: linear-gradient(90deg, #97a6bb, #6f7f98); }
.cmp-intel-stat--neutral strong { color: #4f5f78; }

.cmp-intel-stat--closed { background: linear-gradient(180deg, #fffdf8 0%, #fff5e4 100%); }
.cmp-intel-stat--closed::before { background: linear-gradient(90deg, #f2c55f, #c8961c); }
.cmp-intel-stat--closed strong { color: #946513; }

.cmp-intelligence-insight {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 16px;
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(222, 228, 237, .95);
}

.cmp-intelligence-insight__text {
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(6,31,74,.98), rgba(10,53,109,.97));
    color: #fff;
    box-shadow: 0 16px 42px rgba(7, 31, 74, .17);
}

.cmp-intelligence-insight__label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #9fe8df;
    font-size: 11px;
    font-weight: 850;
}

.cmp-intelligence-insight__text strong {
    display: block;
    font-size: 20px;
    line-height: 1.5;
}

.cmp-intelligence-insight__text p {
    margin: 9px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    line-height: 1.95;
}

.cmp-intelligence-movers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cmp-intelligence-mover {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px 16px 14px;
    border-radius: 22px;
    border: 1px solid rgba(223, 229, 238, .96);
    background: #fff;
    box-shadow: 0 10px 28px rgba(12, 40, 77, .05);
}

.cmp-intelligence-mover__eyebrow {
    color: #6e7c91;
    font-size: 11px;
    font-weight: 850;
}

.cmp-intelligence-mover__main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.cmp-intelligence-mover__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 14px;
    font-style: normal;
    font-size: 15px;
    font-weight: 900;
}

.cmp-intelligence-mover__main strong,
.cmp-intelligence-mover__main small,
.cmp-intelligence-mover__value {
    display: block;
}

.cmp-intelligence-mover__main strong {
    color: var(--cmp-navy);
    font-size: 15px;
    line-height: 1.5;
}

.cmp-intelligence-mover__main small {
    margin-top: 3px;
    color: #7f8ca0;
    font-size: 11px;
    font-weight: 700;
}

.cmp-intelligence-mover__value {
    color: var(--cmp-navy);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
    unicode-bidi: isolate;
}

.cmp-intelligence-mover--positive {
    background: linear-gradient(180deg, #fbfffe 0%, #f1fbf8 100%);
}
.cmp-intelligence-mover--positive .cmp-intelligence-mover__icon {
    background: rgba(24, 189, 169, .12);
    color: #0d9f88;
}
.cmp-intelligence-mover--positive .cmp-intelligence-mover__value { color: #0b8a79; }

.cmp-intelligence-mover--negative {
    background: linear-gradient(180deg, #fffafb 0%, #fff2f5 100%);
}
.cmp-intelligence-mover--negative .cmp-intelligence-mover__icon {
    background: rgba(200, 70, 103, .10);
    color: #b53a5b;
}
.cmp-intelligence-mover--negative .cmp-intelligence-mover__value { color: #b53a5b; }

.cmp-intelligence-mover__empty {
    color: #7e8a9d;
    font-size: 12px;
    line-height: 1.9;
}

.cmp-intelligence-mover.is-empty {
    filter: saturate(.9);
}

.cmp-board-section {
    padding-top: 28px;
}

@media (max-width: 960px) {
    .cmp-intelligence-panel__head,
    .cmp-intelligence-insight {
        grid-template-columns: 1fr;
    }

    .cmp-intelligence-breadth {
        min-width: 0;
        max-width: 240px;
    }

    .cmp-intelligence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .cmp-intelligence-overview {
        padding: 18px 0 8px;
    }

    .cmp-intelligence-panel {
        padding: 18px;
        border-radius: 24px;
    }

    .cmp-intelligence-heading h2 {
        font-size: 28px;
    }

    .cmp-intelligence-heading p {
        font-size: 12.5px;
        line-height: 1.9;
    }

    .cmp-intelligence-breadth {
        max-width: none;
        border-radius: 18px;
    }

    .cmp-intelligence-breadth strong {
        font-size: 28px;
    }

    .cmp-intelligence-grid,
    .cmp-intelligence-movers {
        grid-template-columns: 1fr;
    }

    .cmp-intel-stat {
        padding: 15px 15px 14px;
        border-radius: 18px;
    }

    .cmp-intel-stat strong {
        font-size: 28px;
    }

    .cmp-intelligence-insight__text,
    .cmp-intelligence-mover {
        padding: 15px;
        border-radius: 18px;
    }

    .cmp-intelligence-insight__text strong {
        font-size: 17px;
    }

    .cmp-intelligence-mover__value {
        font-size: 20px;
    }
}


/* =========================================================
   CandleStan v0.84.0.3.3 — Market Sentiment Layer
   Adds sentiment nuance, breadth meter and share indicators.
   ========================================================= */
.cmp-intelligence-breadth__sentiment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #ffffff;
    font-style: normal;
    font-size: 11px;
    font-weight: 850;
}

.cmp-intelligence-breadth__meter {
    position: relative;
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    overflow: hidden;
}

.cmp-intelligence-breadth__meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #18c6a9 0%, #63f4c6 100%);
    box-shadow: 0 0 18px rgba(99,244,198,.32);
}

.cmp-intelligence-breadth__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 11px;
}

.cmp-intelligence-breadth__meta b,
.cmp-intelligence-breadth__meta small {
    display: block;
}

.cmp-intelligence-breadth__meta b {
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.cmp-intelligence-breadth__meta small {
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 700;
}

.cmp-intel-stat em {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(8, 36, 79, .05);
    color: #637289;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}

.cmp-intel-stat--positive em {
    background: rgba(13, 159, 136, .10);
    color: #0b8a79;
}

.cmp-intel-stat--negative em {
    background: rgba(181, 58, 91, .10);
    color: #b53a5b;
}

.cmp-intel-stat--neutral em {
    background: rgba(79, 95, 120, .10);
    color: #52637d;
}

.cmp-intel-stat--closed em {
    background: rgba(196, 150, 28, .12);
    color: #946513;
}

@media (max-width: 680px) {
    .cmp-intelligence-breadth__meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   CandleStan v0.84.0.3.4 — Market Intelligence Final Polish
   Final spacing, hierarchy and micro UI refinement.
   ========================================================= */
.cmp-intelligence-panel__head {
    align-items: center;
}

.cmp-intelligence-heading p {
    max-width: 620px;
}

.cmp-intelligence-breadth {
    min-width: 182px;
    padding: 18px 20px;
}

.cmp-intelligence-breadth strong {
    letter-spacing: -0.5px;
}

.cmp-intel-stat {
    padding-top: 20px;
}

.cmp-intel-stat small {
    opacity: .9;
}

.cmp-intel-stat em {
    margin-top: 8px;
}

.cmp-intelligence-insight__text {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cmp-intelligence-mover {
    align-content: center;
}

.cmp-intelligence-mover__value {
    margin-top: 2px;
}

@media (max-width: 960px) {
    .cmp-intelligence-panel__head {
        align-items: stretch;
    }
}


/* Candlestan v0.84.1 — AI Market Briefing Layer */
.cmp-ai-brief {
    margin-bottom: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(18, 73, 140, .12);
    background: linear-gradient(135deg, rgba(245,249,255,.96), rgba(255,255,255,.96));
}
.cmp-ai-brief__badge {
    display:inline-flex;
    margin-bottom:8px;
    padding:5px 10px;
    border-radius:999px;
    background:rgba(8,36,79,.08);
    color:#0b6f74;
    font-size:10px;
    font-weight:900;
}
.cmp-ai-brief strong {
    display:block;
    color:var(--cmp-navy);
    font-size:18px;
    margin-bottom:8px;
}
.cmp-ai-brief ul {
    margin:0;
    padding-right:18px;
    color:#6f7d92;
    font-size:13px;
    line-height:2;
}
\n\n/* =========================================================\n   CandleStan v0.85.4.1a — Market Pulse Registry Consistency\n   Stale data is a first-class non-directional market state.\n   ========================================================= */\n.cmp-market-stat--stale {\n    color: #6d4d9b;\n    background: rgba(126, 92, 175, .10);\n    border-color: rgba(126, 92, 175, .18);\n}\n\n.cmp-intelligence-grid {\n    grid-template-columns: repeat(5, minmax(0, 1fr));\n}\n\n.cmp-intel-stat--stale {\n    background: linear-gradient(180deg, #fcfaff 0%, #f5effd 100%);\n}\n.cmp-intel-stat--stale::before {\n    background: linear-gradient(90deg, #a887d6, #7754a7);\n}\n.cmp-intel-stat--stale strong {\n    color: #70509d;\n}\n.cmp-intel-stat--stale em {\n    background: rgba(112, 80, 157, .10);\n    color: #70509d;\n}\n\n@media (max-width: 1100px) {\n    .cmp-intelligence-grid {\n        grid-template-columns: repeat(3, minmax(0, 1fr));\n    }\n}\n\n@media (max-width: 680px) {\n    .cmp-intelligence-grid {\n        grid-template-columns: 1fr;\n    }\n}\n