/* Top 10 Altcoins Analysis: page-specific pieces on top of the ai-analysis / top-models / debit-cards stack */
.section-title { justify-content: center; text-align: center; }
.section-desc { margin-left: auto; margin-right: auto; text-align: center; max-width: 1100px; }
.card-chips { justify-content: center; }
.chip-sep { margin-left: 0; }
.up { color: #26e6a4; }
.down { color: #e66767; }
.flat { color: #ffbe3d; }
:root[data-theme="light"] .up { color: #047857; }
:root[data-theme="light"] .down { color: #dc2626; }
:root[data-theme="light"] .flat { color: #b45309; }

/* Coin logo */
.c-logo { width: 34px; height: 34px; border-radius: 50%; flex: none; background: rgba(var(--fg), 0.06); object-fit: cover; }
.c-logo.sm { width: 22px; height: 22px; }
.c-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; cursor: help; }
.c-name b { color: var(--ink); font-weight: 700; font-size: 1.02rem; }
.c-name small { display: block; color: var(--text-muted); font-size: 0.76rem; line-height: 1.3; }
.c-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ATH board */
.alt-head, .alt-row { display: grid; grid-template-columns: 40px minmax(190px, 1.4fr) repeat(2, minmax(0, 0.9fr)) minmax(180px, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 14px; align-items: center; text-align: center; }
.alt-head { padding: 0 8px 12px; border-bottom: 1px solid var(--card-border); font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); }
.alt-head .sort-btn { justify-self: center; white-space: nowrap; }
.alt-row { padding: 14px 8px; border-bottom: 1px solid rgba(var(--fg), 0.05); font-variant-numeric: tabular-nums; }
.alt-row:hover { background: rgba(var(--fg), 0.025); }
.alt-row .rk { color: var(--text-muted); font-weight: 700; }
.alt-row .c-name { justify-self: center; text-align: left; }
.cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cell .v { font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.cell small { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.dd-bar { position: relative; width: 100%; height: 10px; border-radius: 5px; background: rgba(var(--fg), 0.07); overflow: hidden; }
.dd-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; width: 0; transition: width 0.9s cubic-bezier(.2, .9, .3, 1); }
.dd-bar .btc-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #f7931a; box-shadow: 0 0 6px rgba(247, 147, 26, 0.7); }
.btc-ref { margin-top: 14px; text-align: center; font-size: 0.85rem; color: var(--text-dim); }
.btc-ref b { color: var(--ink); }

/* Heat table vs BTC */
.heat { display: grid; gap: 0; overflow-x: auto; }
.h-row { display: grid; grid-template-columns: minmax(170px, 1.3fr) repeat(6, minmax(86px, 1fr)) minmax(120px, 1fr); gap: 8px; align-items: center; padding: 9px 6px; border-bottom: 1px solid rgba(var(--fg), 0.05); text-align: center; font-variant-numeric: tabular-nums; min-width: 1000px; }
.h-row.h-head { font-size: 0.7rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--card-border); }
.h-row.h-head span small { display: block; letter-spacing: 0; text-transform: none; color: var(--text-muted); font-size: 0.7rem; }
.h-row.h-btc { background: rgba(247, 147, 26, 0.05); }
.h-row .c-name { justify-self: start; text-align: left; }
.h-cell { border-radius: 8px; padding: 6px 4px; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.h-cell small { display: block; font-weight: 400; font-size: 0.68rem; color: var(--text-dim); }
.h-cell.na { color: var(--text-muted); font-weight: 400; }
.heat-legend b { color: var(--text-main); margin-right: 4px; }
.heat-legend { justify-content: center; margin-top: 14px; margin-bottom: 0; text-align: center; }

/* Volatility bars */
.vol-bars { display: flex; flex-direction: column; gap: 4px; }
.v-row { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) repeat(3, 92px); gap: 14px; align-items: center; padding: 9px 6px; border-bottom: 1px solid rgba(var(--fg), 0.05); text-align: center; }
.v-row.v-head { font-size: 0.7rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--card-border); }
.v-row .c-name { justify-self: start; text-align: left; }
.v-track { position: relative; display: flex; flex-direction: column; gap: 4px; }
.v-bar { position: relative; height: 14px; display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.v-fill { height: 100%; width: 0; border-radius: 4px; transition: width 0.9s cubic-bezier(.2, .9, .3, 1); }
.v-fill.y1 { background: linear-gradient(90deg, #fbbf24, #f7931a); }
.v-fill.all { background: rgba(160, 160, 160, 0.45); }
.v-btc { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed #f7931a; opacity: 0.85; pointer-events: none; }
.lg-line { display: inline-block; width: 0; height: 12px; border-left: 2px dashed #f7931a; }
.v-num { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.v-num small { display: block; font-weight: 400; font-size: 0.68rem; color: var(--text-muted); }

/* Profiles */
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 16px; }
.prof { background: var(--surface); border: 1px solid var(--card-border); border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.prof-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.prof-head .c-logo { width: 46px; height: 46px; }
.prof-head .p-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.prof-head .p-sub { font-size: 0.82rem; color: var(--text-dim); }
.prof .b-plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.score { border: 1px solid var(--card-border); border-radius: 10px; padding: 6px 2px; }
.score b { display: block; font-size: 1.1rem; color: var(--ink); }
.score small { display: block; font-size: 0.62rem; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); }
.score .dots { display: flex; justify-content: center; gap: 3px; margin-top: 3px; }
.score .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--fg), 0.12); }
.score .dots i.on { background: var(--primary); }
.p-block h4 { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; text-align: center; font-weight: 600; }
.p-block ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.p-block li { font-size: 0.86rem; line-height: 1.5; color: var(--text-main); text-align: left; padding-left: 16px; position: relative; }
.p-block li::before { content: ''; position: absolute; left: 3px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.p-block li.bad::before { background: #e66767; }
.p-block li.mid::before { background: #ffaa00; }
.p-block li.good::before { background: #26e6a4; }
.p-block li .d { color: var(--accent); font-weight: 600; font-size: 0.78rem; margin-right: 6px; white-space: nowrap; }
.p-block li a.src { color: var(--text-muted); font-size: 0.75rem; margin-left: 4px; text-decoration: none; }
.p-block li a.src:hover { color: var(--accent); }
.p-block p { font-size: 0.86rem; line-height: 1.55; color: var(--text-main); text-align: left; }

/* Usage bars */
.use-bars { display: flex; flex-direction: column; gap: 4px; }
.u-row { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) minmax(220px, 320px); gap: 14px; align-items: center; height: auto; padding: 9px 6px; border-bottom: 1px solid rgba(var(--fg), 0.05); }
.u-row .c-name { justify-self: start; text-align: left; }
.u-bar { position: relative; height: 16px; display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.u-fill { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--c, #00ccff), rgba(0, 204, 255, 0.35)); transition: width 0.9s cubic-bezier(.2, .9, .3, 1); min-width: 2px; }
.u-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; line-height: 1.35; }
.u-na { color: var(--text-muted); font-size: 0.8rem; font-weight: 400; }

/* Events */
.verdicts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.vd { min-width: 180px; text-align: center; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 12px 16px; }
.vd b { display: block; font-size: 1.9rem; color: var(--ink); line-height: 1.1; }
.vd span { font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.vd.sold b, .vd.down b { color: #e66767; }
.vd.up b { color: #26e6a4; }
.vd.priced b, .vd.flat b { color: #ffbe3d; }
.ev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 16px; margin-top: 14px; }
.ev-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 18px; padding: 18px 20px; }
.ev-card .prof-head { margin-bottom: 10px; }
.ev-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) repeat(3, 72px); gap: 6px 10px; align-items: center; padding: 10px 2px; border-top: 1px solid rgba(var(--fg), 0.05); font-variant-numeric: tabular-nums; }
.ev-row.ev-hd { border-top: none; font-size: 0.64rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); text-align: center; padding-bottom: 4px; }
.ev-d { color: var(--accent); font-weight: 600; font-size: 0.78rem; text-align: center; white-space: nowrap; }
.ev-d small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.66rem; }
.ev-w { min-width: 0; }
.ev-w b { color: var(--ink); font-weight: 600; font-size: 0.9rem; }
.ev-w b a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(var(--fg), 0.35); }
.ev-w b a:hover { color: var(--accent); }
.ev-w p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.45; margin-top: 2px; text-align: left; }
.ev-w .tag { margin-top: 5px; display: inline-block; margin-right: 4px; }
.ev-m { text-align: center; font-weight: 700; font-size: 0.86rem; }
.ev-m small { display: block; font-weight: 400; font-size: 0.66rem; color: var(--text-muted); }
.ev-m.na { color: var(--text-muted); font-weight: 400; }
.tag.v-sold, .tag.v-down { border-color: rgba(230, 103, 103, 0.5); color: #e66767; }
.tag.v-up { border-color: rgba(38, 230, 164, 0.4); color: #26e6a4; }
.tag.v-priced, .tag.v-flat { border-color: rgba(255, 170, 0, 0.45); color: #ffaa00; }
.method { margin-top: 18px; }
.method .promo-title { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); }
.method .promo-row { display: block; padding: 8px 6px; border-bottom: 1px solid rgba(var(--fg), 0.04); font-size: 0.9rem; }
.method .promo-row.fine { color: var(--text-dim); font-size: 0.8rem; text-align: center; }

/* Takeaways / FAQ */
.take { text-align: center; }
.take-kicker { justify-content: center; }
.faq-item { background: var(--surface); border: 1px solid rgba(0, 204, 255, .18); border-radius: 12px; margin-bottom: 14px; padding: 20px 24px; }
.faq-question { background: none; border: none; color: var(--accent); font-size: 1.08em; font-family: 'Figtree', sans-serif; font-weight: 600; cursor: pointer; width: 100%; text-align: center; padding: 0; }
.faq-answer { display: none; color: var(--ink); font-size: 1em; margin-top: 10px; line-height: 1.65; }

:root[data-theme="light"] .prof, :root[data-theme="light"] .ev-card { box-shadow: 0 1px 3px rgba(20, 24, 40, 0.06); }
:root[data-theme="light"] .tag.v-sold, :root[data-theme="light"] .tag.v-down { border-color: rgba(220, 38, 38, 0.45); color: #dc2626; }
:root[data-theme="light"] .tag.v-up { border-color: rgba(4, 120, 87, 0.4); color: #047857; }
:root[data-theme="light"] .tag.v-priced, :root[data-theme="light"] .tag.v-flat { border-color: rgba(180, 83, 9, 0.45); color: #b45309; }

@media (max-width: 1100px) {
    .alt-head, .alt-row { grid-template-columns: 30px minmax(150px, 1.3fr) repeat(5, minmax(0, 1fr)); gap: 8px; }
    .ev-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .alt-head { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
    .alt-head > span { display: none; }
    .alt-row { grid-template-columns: 26px repeat(3, minmax(0, 1fr)); row-gap: 10px; }
    .alt-row .c-name { grid-column: 2 / -1; justify-self: start; }
    .alt-row .dd-cell { grid-column: 2 / -1; }
    .v-row { grid-template-columns: 1fr 1fr 1fr; }
    .v-row .c-name, .v-row .v-track { grid-column: 1 / -1; }
    .v-row.v-head { display: none; }
    .u-row { grid-template-columns: minmax(0, 1fr); }
    .u-row > *, .u-bar > * { min-width: 0; }
    .alt-row .cell small { white-space: normal; text-align: center; }
    .profiles { grid-template-columns: 1fr; }
    .ev-row { grid-template-columns: 80px minmax(0, 1fr) repeat(3, 56px); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .dd-bar span, .v-fill, .u-fill { transition: none !important; }
}
