/* Strategy shop: product cards, rails, aisles, picks tray, finder quiz (frontend/js/shop.js). */

/* ---------- product card ---------- */
.sh-card {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
    overflow: hidden; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sh-card:hover, .sh-card:focus-visible { transform: translateY(-3px); border-color: var(--border-glow); box-shadow: var(--shadow-glass); outline: none; }
.sh-card.is-match { border-color: rgba(16, 185, 129, .55); box-shadow: 0 0 0 1px rgba(16, 185, 129, .25); }

/* Thumbnails stay in the LogicFlux blues; each market gets its own shade */
.sh-thumb {
    position: relative; height: 128px; padding: 14px; color: #fff; overflow: hidden;
    background: linear-gradient(135deg, #0b1a3a 0%, #1e40af 60%, #2563eb 100%);
}
.sh-g-metal { background: linear-gradient(135deg, #0b1a3a 0%, #1d4ed8 58%, #3b82f6 100%); }
.sh-s-xagusd { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #475f9c 100%); }
.sh-g-index { background: linear-gradient(135deg, #070d1f 0%, #1e3a8a 55%, #1d4ed8 100%); }
.sh-g-fx { background: linear-gradient(135deg, #0b1a3a 0%, #1565c0 58%, #0ea5e9 100%); }
.sh-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }

.sh-thumb-main { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; margin-top: 26px; }
.sh-thumb .sh-mark { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.38); }
.sh-thumb-main .sh-tf { align-self: flex-start; margin-top: 2px; }
.sh-sym { display: flex; flex-direction: column; font-size: 18px; font-weight: 800; letter-spacing: -.2px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sh-sym small { font-size: 11.5px; font-weight: 600; letter-spacing: 0; opacity: .8; }
.sh-tf { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.2); }
.sh-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 54px; }
.sh-spark-line { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sh-spark-area { fill: rgba(255,255,255,.12); stroke: none; }

.sh-rank {
    position: absolute; z-index: 2; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .2px;
    padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.32); backdrop-filter: blur(4px);
    display: inline-flex; align-items: center; gap: 5px;
}
.sh-rank .lf-i { width: 12px; height: 12px; }
.sh-rank-match { background: rgba(16, 185, 129, .85); }
.sh-thumb-acts { position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; gap: 6px; }
.sh-ico {
    width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(4px); transition: background .15s, transform .15s;
}
.sh-ico:hover { background: rgba(255,255,255,.34); transform: scale(1.06); }
.sh-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-ico.is-on svg { fill: currentColor; }

.sh-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 14px; flex: 1; }
.sh-family { font-size: 15.5px; font-weight: 750; color: var(--text-main); line-height: 1.25; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sh-family .badge { font-size: 10px; }
.sh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* Trading concept tags (Price Action, Market Structure...): outlined, quieter than the condition tag */
.sh-tag.sh-concept { background: transparent; border: 1px solid rgba(37,99,235,.35); color: var(--color-accent, #2563eb); }
.sh-tag {
    font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
    color: var(--text-muted); background: rgba(148, 163, 184, .12);
    display: inline-flex; align-items: center; gap: 4px;
}
.sh-tag .lf-i { width: 12px; height: 12px; }
.sh-c-trending { color: #0ea5e9; background: rgba(14, 165, 233, .12); }
.sh-c-ranging { color: #a855f7; background: rgba(168, 85, 247, .12); }
.sh-c-breakout { color: #f97316; background: rgba(249, 115, 22, .12); }
.sh-r-calm { color: var(--color-success); background: rgba(16, 185, 129, .12); }
.sh-r-balanced { color: var(--color-warning); background: rgba(245, 158, 11, .12); }
.sh-r-bold { color: var(--color-danger); background: rgba(239, 68, 68, .1); }

.sh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 0 2px; border-top: 1px solid var(--border-glass); }
.sh-stats div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sh-stats b { font-size: 15px; font-weight: 800; color: var(--text-main); font-variant-numeric: tabular-nums; }
.sh-stats b.sh-up { color: var(--color-success); }
.sh-stats small { font-size: 10.5px; color: var(--text-dim); text-transform: lowercase; }
.sh-live { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--color-success); }
.sh-live-quiet { color: var(--text-muted); font-weight: 500; }
.sh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: sh-pulse 2.2s infinite; }
@keyframes sh-pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); } 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.sh-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; }
.sh-like {
    display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer; padding: 4px 2px;
    color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 600;
}
.sh-like svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; transition: transform .2s; }
.sh-like:hover { color: #f43f5e; }
.sh-like.is-on { color: #f43f5e; }
.sh-like.is-on svg { fill: currentColor; animation: sh-beat .35s ease; }
@keyframes sh-beat { 50% { transform: scale(1.3); } }
.sh-price { margin-left: auto; font-size: 17px; font-weight: 800; color: var(--text-main); }
.sh-price small { font-size: 11.5px; font-weight: 500; color: var(--text-muted); margin-left: 1px; }
.sh-add {
    display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 7px 14px; cursor: pointer;
    font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--color-accent);
    background: var(--color-accent); color: #fff; transition: background .15s, color .15s, transform .15s;
}
.sh-add:hover { transform: translateY(-1px); filter: brightness(1.08); }
.sh-add svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sh-add.is-on { background: transparent; color: var(--color-success); border-color: var(--color-success); }
.sh-foot .btn { white-space: nowrap; }

/* ---------- rails and aisles ---------- */
.sh-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sh-head .section-title, .sh-head .section-desc { text-align: left; margin-left: 0; margin-right: 0; }
.sh-head .section-desc { margin-bottom: 0; }
.sh-finder-btn {
    display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 18px; cursor: pointer;
    font: inherit; font-weight: 700; font-size: 14px; color: var(--text-main);
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, linear-gradient(120deg, #10b981, #3b82f6, #8b5cf6) border-box;
    border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s;
}
.sh-finder-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.sh-finder-btn .lf-i { color: var(--color-accent); width: 17px; height: 17px; }
.sh-chip .lf-i { width: 14px; height: 14px; }
.sh-shelf-head h2 { display: flex; align-items: center; gap: 8px; }
.sh-shelf-head h2 .lf-i { color: var(--color-accent); width: 19px; height: 19px; }

.sh-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 14px; }
.sh-tabs::-webkit-scrollbar { display: none; }
.sh-chip {
    flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-muted);
    background: transparent; border: 1px solid var(--border-glass); transition: all .15s;
}
.sh-chip:hover { color: var(--text-main); border-color: var(--border-glow); }
.sh-chip.active, .sh-chip[aria-selected="true"] { color: #fff; background: var(--color-accent); border-color: var(--color-accent); }
.sh-chip small { font-size: 11px; opacity: .8; }

.sh-rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(204px, calc((100% - 64px) / 5)); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin;
}
.sh-rail > .sh-card { scroll-snap-align: start; }
.sh-rail-empty { color: var(--text-muted); padding: 24px 0; }
.sh-more { display: flex; justify-content: center; margin-top: 18px; }
.sh-more a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px;
    border-radius: 999px; font-size: 15px; font-weight: 700; color: #fff; text-decoration: none;
    background: var(--color-accent); box-shadow: 0 10px 24px -8px rgba(37,99,235,.6); transition: transform .15s, box-shadow .15s;
}
.sh-more a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(37,99,235,.7); }
@media (max-width: 640px) { .sh-more a { width: 100%; } }

.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.sh-shelf { margin: 8px 0 28px; }
.sh-shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sh-shelf-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; margin: 0; color: var(--text-main); }
.sh-shelf-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }

/* finder banner (homepage and shop) */
.sh-banner {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 16px 20px;
    border-radius: var(--radius-lg); border: 1px dashed var(--border-glow); background: rgba(59,130,246,.05);
}
.sh-banner-ico { font-size: 28px; }
.sh-banner div { flex: 1 1 240px; }
.sh-banner b { display: block; color: var(--text-main); font-size: 15px; }
.sh-banner span { color: var(--text-muted); font-size: 13.5px; }

/* ---------- toast, share menu ---------- */
.sh-toast {
    position: fixed; left: 50%; bottom: 88px; z-index: 10060; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
    background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-glow); border-radius: 12px;
    padding: 11px 16px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-glass); transition: all .22s ease;
    max-width: calc(100vw - 32px);
}
.sh-toast.show { opacity: 1; transform: translate(-50%, 0); }
.sh-share-menu {
    position: fixed; z-index: 10070; min-width: 180px; padding: 6px; border-radius: 12px;
    background: var(--bg-surface); border: 1px solid var(--border-glass); box-shadow: var(--shadow-glass);
}
.sh-share-menu a, .sh-share-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: none;
    font: inherit; font-size: 14px; color: var(--text-main); text-decoration: none; cursor: pointer;
}
.sh-share-menu a:hover, .sh-share-menu button:hover { background: rgba(37,99,235,.08); }
.sh-share-menu .lf-i { width: 17px; height: 17px; color: var(--color-accent); }

/* ---------- picks tray button ---------- */
.sh-tray-btn {
    position: relative; width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; padding: 0; cursor: pointer;
    border-radius: 10px; border: 1px solid var(--border-glass); background: var(--bg-surface); color: var(--color-accent);
}
.sh-tray-btn:hover { border-color: var(--border-glow); }
.sh-tray-btn[hidden] { display: none; }
.sh-tray-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.sh-tray-btn b {
    position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center;
    border-radius: 999px; background: var(--color-accent); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1;
    box-shadow: 0 0 0 2px var(--bg-surface);
}
.sh-tray-float { position: fixed; left: 16px; bottom: 16px; z-index: 9990; width: 50px; height: 50px; border-radius: 50%;
    border: 0; color: #fff; background: var(--color-accent); box-shadow: 0 10px 24px -6px rgba(37,99,235,.6); }
.sh-tray-float:hover { filter: brightness(1.08); }
.sh-tray-float svg { width: 22px; height: 22px; }
.sh-tray-float b { background: #fff; color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent); }
.sh-tray-btn.pop { animation: sh-pop .45s ease; }
@keyframes sh-pop { 40% { transform: scale(1.12); } }

/* ---------- sheets: picks drawer, finder ---------- */
html.sh-lock { overflow: hidden; }
.sh-sheet-wrap { position: fixed; inset: 0; z-index: 10040; visibility: hidden; }
.sh-sheet-wrap.open { visibility: visible; }
.sh-sheet-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.55); opacity: 0; transition: opacity .2s; }
.sh-sheet-wrap.open .sh-sheet-backdrop { opacity: 1; }
.sh-sheet {
    position: absolute; top: 50%; left: 50%; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto;
    transform: translate(-50%, -46%); opacity: 0; transition: all .22s ease;
    background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-glass); border-radius: 20px; box-shadow: var(--shadow-glass);
}
.sh-sheet-wrap.open .sh-sheet { transform: translate(-50%, -50%); opacity: 1; }
.sh-drawer .sh-sheet { top: 0; bottom: 0; left: auto; right: 0; width: min(420px, 100vw); max-height: none; border-radius: 20px 0 0 20px; transform: translateX(100%); }
.sh-drawer.open .sh-sheet { transform: none; }
.sh-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; position: sticky; top: 0; background: var(--bg-surface); z-index: 1; }
.sh-sheet-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.sh-sheet-x { border: 0; background: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 6px; border-radius: 8px; }
.sh-sheet-x:hover { background: rgba(148,163,184,.12); color: var(--text-main); }
.sh-sheet-body { padding: 8px 20px 22px; }

.sh-picks { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sh-picks li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-glass); }
.sh-pick-mark { font-size: 11px; }
.sh-pick-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sh-pick-name b { font-size: 14px; }
.sh-pick-name small { font-size: 12px; color: var(--text-muted); }
.sh-pick-x { border: 0; background: none; color: var(--text-dim); cursor: pointer; padding: 6px; border-radius: 8px; }
.sh-pick-x:hover { color: var(--color-danger); background: rgba(239,68,68,.08); }
.sh-fit { padding: 14px; border-radius: 14px; background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.25); margin-bottom: 14px; }
.sh-fit-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text-muted); }
.sh-fit-head b { font-size: 16px; color: var(--color-success); }
.sh-meter { height: 8px; border-radius: 999px; background: rgba(148,163,184,.2); margin: 10px 0 6px; overflow: hidden; }
.sh-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10b981, #3b82f6); transition: width .4s ease; }
.sh-fit-note { font-size: 12.5px; color: var(--text-muted); margin: 0 0 12px; }
.sh-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sh-tier { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border-glass); font-size: 13px; opacity: .7; }
.sh-tier small { font-size: 11px; color: var(--text-muted); }
.sh-tier span { font-weight: 800; margin-top: 4px; }
.sh-tier.is-fit { opacity: 1; border-color: var(--color-success); background: var(--bg-card); }
.sh-small { font-size: 12px; color: var(--text-dim); margin: 12px 0 0; text-align: center; }
.sh-empty { text-align: center; padding: 30px 6px; color: var(--text-muted); }
.sh-empty-ico { font-size: 40px; margin-bottom: 8px; color: var(--color-accent); }
.sh-empty .btn .lf-i { margin-right: 6px; }

/* finder */
.sh-steps { display: flex; gap: 6px; margin: 6px 0 14px; }
.sh-steps span { flex: 1; height: 5px; border-radius: 999px; background: rgba(148,163,184,.22); }
.sh-steps span.done { background: var(--color-success); }
.sh-steps span.now { background: var(--color-accent); }
.sh-q-count { font-size: 12px; color: var(--text-dim); margin: 0; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.sh-q { font-size: 21px; font-weight: 800; margin: 4px 0 4px; letter-spacing: -.3px; }
.sh-q-hint { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
.sh-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.sh-answer {
    display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 14px; cursor: pointer;
    font: inherit; color: var(--text-main); background: var(--bg-card); border: 1px solid var(--border-glass); transition: all .15s;
}
.sh-answer:hover, .sh-answer:focus-visible { border-color: var(--color-accent); transform: translateY(-1px); outline: none; box-shadow: var(--shadow-glow); }
.sh-answer-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px;
    color: var(--color-accent); background: rgba(37,99,235,.08); }
.sh-answer-ico .lf-i { width: 20px; height: 20px; }

.sh-answer b { display: block; font-size: 14.5px; }
.sh-answer small { font-size: 12px; color: var(--text-muted); }
.sh-back { margin-top: 14px; border: 0; background: none; color: var(--text-muted); cursor: pointer; font: inherit; font-size: 13.5px; padding: 6px 4px; }
.sh-back:hover { color: var(--text-main); }
.sh-thinking { text-align: center; padding: 36px 0; color: var(--text-muted); }
.sh-thinking span { display: inline-block; width: 9px; height: 9px; margin: 0 3px; border-radius: 50%; background: var(--color-accent); animation: sh-bounce 1s infinite; }
.sh-thinking span:nth-child(2) { animation-delay: .15s; }
.sh-thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes sh-bounce { 40% { transform: translateY(-7px); opacity: .6; } }
.sh-result-head { display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; }
.sh-badge-ok { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--color-success); background: rgba(16,185,129,.12); }
.sh-badge-ok .lf-i { width: 24px; height: 24px; }
.sh-result-main > b { display: inline-flex; align-items: center; gap: 8px; }
.sh-result-head h4 { margin: 0; font-size: 19px; font-weight: 800; }
.sh-result-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }
.sh-results { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sh-result { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-glass); background: var(--bg-card); }
.sh-result-n { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--color-accent); color: #fff; font-weight: 800; font-size: 13px; }
.sh-result-main { flex: 1; min-width: 0; }
.sh-result-main > b { font-size: 15px; }
.sh-result-main ul { margin: 6px 0 8px; padding-left: 18px; font-size: 12.5px; color: var(--text-muted); }
.sh-result-acts { display: flex; gap: 8px; }
.sh-result-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.sh-result-foot .sh-back { margin-top: 0; }

@media (max-width: 640px) {
    .sh-rail { grid-auto-columns: 72%; gap: 10px; }
    .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sh-tiers { grid-template-columns: 1fr 1fr 1fr; }
    .sh-sheet { width: 100vw; max-height: 88vh; top: auto; bottom: 0; left: 0; border-radius: 20px 20px 0 0; transform: translateY(100%); }
    .sh-sheet-wrap.open .sh-sheet { transform: none; }
    .sh-drawer .sh-sheet { width: 100vw; top: auto; border-radius: 20px 20px 0 0; max-height: 88vh; transform: translateY(100%); }
    .sh-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .sh-card, .sh-sheet, .sh-toast, .sh-meter span { transition: none; }
    .sh-dot, .sh-like.is-on svg, .sh-tray-btn.pop, .sh-thinking span { animation: none; }
}

/* ---------- compact cards: many strategies stay a short page ---------- */
.sh-thumb { height: 100px; padding: 10px 12px; }
.sh-thumb-main { margin-top: 30px; gap: 8px; }
.sh-thumb .sh-mark { width: 30px; height: 30px; font-size: 10.5px; }
.sh-sym { font-size: 15px; }
.sh-sym small { font-size: 10.5px; }
.sh-tf { font-size: 10.5px; padding: 1px 6px; }
.sh-rank { top: 8px; left: 8px; font-size: 10px; padding: 2px 7px; }
.sh-thumb-acts { top: 7px; right: 7px; gap: 4px; }
.sh-ico { width: 27px; height: 27px; }
html .sh-card .sh-ico, html .sh-grid .sh-add { min-width: 0; min-height: 0; }
.sh-ico svg { width: 13px; height: 13px; }
.sh-spark { height: 38px; }
.sh-body { padding: 10px 12px 12px; gap: 8px; }
.sh-family { font-size: 14px; }
.sh-tag { font-size: 10.5px; padding: 2px 7px; }
.sh-stats { padding-top: 8px; gap: 4px; }
.sh-stats b { font-size: 13.5px; }
.sh-stats small { font-size: 10px; }
.sh-live { font-size: 11px; }
.sh-price { font-size: 15px; }
.sh-like svg { width: 17px; height: 17px; }
.sh-add { padding: 6px 11px; font-size: 12.5px; }
.sh-catalog-more { display: flex; justify-content: center; margin: 18px 0 8px; }

/* Phones: two cards per row; only what helps choose stays on the card */
@media (max-width: 640px) {
    .sh-grid .sh-thumb { height: 86px; padding: 8px 10px; }
    .sh-grid .sh-thumb-main { margin-top: 30px; gap: 6px; }
    .sh-grid .sh-ico { width: 26px; height: 26px; }
    .sh-grid .sh-thumb-acts { top: 6px; right: 6px; }
    .sh-grid .sh-rank { display: none; }
    .sh-grid .sh-thumb .sh-mark { width: 26px; height: 26px; font-size: 9.5px; }
    .sh-grid .sh-sym { font-size: 13px; }
    .sh-grid .sh-sym small { display: none; }
    .sh-grid .sh-tf { font-size: 9.5px; align-self: center; margin-top: 0; }
    .sh-grid .sh-body { padding: 8px 10px 10px; gap: 6px; }
    .sh-grid .sh-family { font-size: 13px; }
    .sh-grid .sh-tag:nth-child(n+2), .sh-grid .sh-live { display: none; }
    .sh-grid .sh-stats { grid-template-columns: 1fr 1fr; }
    .sh-grid .sh-stats div:nth-child(3) { display: none; }
    .sh-grid .sh-stats b { font-size: 13px; }
    .sh-grid .sh-foot { gap: 6px; }
    .sh-grid .sh-like span { display: none; }
    .sh-grid .sh-price { font-size: 13.5px; }
    .sh-grid .sh-add { width: 30px; height: 30px; padding: 0; justify-content: center; }
    .sh-grid .sh-add span { display: none; }
    .sh-grid .sh-foot .btn { padding: 5px 8px; font-size: 11px; }
    /* Phones: 'In your plan' becomes a green tick circle, like 'Added' */
    .sh-grid .sh-foot .lf-acc-included { width: 30px; height: 30px; min-width: 0; min-height: 0; padding: 0; border-radius: 50%; justify-content: center; flex: none; }
    .sh-grid .sh-foot .lf-acc-included span { display: none; }
}

/* 'In your plan' on a card: tick and words on one line, never wider than the card */
.sh-card .sh-foot .lf-acc-included.btn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; max-width: 100%;
    color: var(--color-success) !important; border-color: var(--color-success) !important; background: transparent; }
.sh-card .sh-foot .lf-acc-included svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Current form, against the strategy's own backtest (shop.form_note) */
.sh-form { margin-top: 6px; font-size: 11.5px; line-height: 1.4; color: var(--text-muted); }
.sh-form-hot { color: var(--color-success, #059669); }
.sh-form-cold { color: #b45309; }
@media (max-width: 640px) { .sh-grid .sh-form { display: none; } }

/* Picks tray: the subscriber's own plan, with its free slots */
.sh-myplan { border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.06); }
.sh-myplan .sh-addplan { margin-top: 8px; }

/* Parts of the detail page the admin has switched off (strategies.html sets these on the overlay) */
.dv-off-backtest #dperf-tab-backtest, .dv-off-backtest #dperf-backtest,
.dv-off-live_feed #dperf-tab-forward, .dv-off-live_feed #dperf-forward,
.dv-off-backtest.dv-off-live_feed .perf-tabs,
.dv-off-equity_curve #d-equity-title, .dv-off-equity_curve #detailChartWrapper,
.dv-off-open_positions #activePositionsSection, .dv-off-monthly #monthlySection,
.dv-off-price_chart #candleChartSection, .dv-off-form #d-form, .dv-off-alerts .dispatch-row,
.dv-off-performance #d-tab-performance, .dv-off-features #d-tab-features, .dv-off-trade_history #d-tab-trades,
.dv-off-likes #d-like-btn { display: none !important; }

/* Light theme: lighter card bands (owner, 4 Nov: the tops looked too dark on the light skin) */
html[data-theme="light"] .sh-g-metal { background: linear-gradient(135deg, #2f6df0 0%, #3b82f6 55%, #60a5fa 100%); }
html[data-theme="light"] .sh-s-xagusd { background: linear-gradient(135deg, #4b67a8 0%, #6380c2 55%, #8ba2d6 100%); }
html[data-theme="light"] .sh-g-index { background: linear-gradient(135deg, #2b52c9 0%, #3b6ff0 55%, #5b8df7 100%); }
html[data-theme="light"] .sh-g-fx { background: linear-gradient(135deg, #1f78e0 0%, #0ea5e9 58%, #38bdf8 100%); }
html[data-theme="light"] .sh-thumb::after { background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .26), transparent 60%); }
