/* ============================================================
   Coindaily - indicator pages (Bitcoin Dominance, etc.)
   Complements styles.css.
   ============================================================ */

.ind-colors { --btc: #C99A4B; --eth: #5E86C8; --oth: #74808F; }

.page-hero { padding: 18px 0 22px; border-bottom: 1px solid var(--hairline); }

/* indicator tabs */
.ind-tabs { display: flex; gap: 24px; flex-wrap: nowrap; overflow-x: auto; margin: 4px 0 20px; border-bottom: 1px solid var(--hairline); scrollbar-width: none; -ms-overflow-style: none; }
.ind-tabs::-webkit-scrollbar { display: none; }
.ind-tabs a { flex: none; padding: 0 1px 11px; font-size: 13px; color: var(--tx-mid); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .12s, border-color .12s; }
.ind-tabs a:hover { color: var(--tx-hi); }
.ind-tabs a.active { color: var(--amber); border-bottom-color: var(--amber); font-weight: 600; }
.ind-tabs a .soon { font-size: 8.5px; color: var(--tx-faint); margin-left: 6px; text-transform: uppercase; letter-spacing: .08em; vertical-align: middle; }

.ph-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph-title h1 { font-size: 26px; font-weight: 700; color: var(--tx-hi); letter-spacing: -0.025em; }
.ph-title .meth { margin-left: auto; font-size: 12.5px; color: var(--amber); }
.ph-desc { font-size: 13.5px; line-height: 1.65; color: var(--tx-mid); max-width: 760px; margin-top: 12px; }

/* top cards */
.dom-top { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.dom-card-h { padding: 14px 18px; border-bottom: 1px solid var(--hairline); font-size: 13px; font-weight: 600; color: var(--tx-hi); display: flex; align-items: center; gap: 9px; }
.dom-card-h .right { margin-left: auto; }

/* breakdown */
.dom-rows { display: flex; gap: 8px; padding: 18px; }
.dom-cell { flex: 1; }
.dom-cell .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: middle; }
.dom-cell .lab { font-size: 11.5px; color: var(--tx-dim); }
.dom-cell .v { font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--tx-hi); letter-spacing: -0.02em; margin-top: 6px; }
.dom-cell .d { font-family: var(--mono); font-size: 11.5px; margin-top: 4px; }
.dom-stack { height: 8px; border-radius: 5px; overflow: hidden; display: flex; margin: 2px 18px 18px; }
.dom-stack i { display: block; height: 100%; }

/* historical table */
.hist-table { width: 100%; border-collapse: collapse; }
.hist-table th { text-align: right; font-size: 10px; color: var(--tx-dim); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; padding: 12px 18px 10px; }
.hist-table th:first-child { text-align: left; }
.hist-table td { padding: 11px 18px; border-top: 1px solid var(--hairline-2); text-align: right; font-family: var(--mono); font-size: 13px; color: var(--tx-hi); }
.hist-table td:first-child { text-align: left; color: var(--tx-mid); font-family: var(--sans); }
.hist-table .pillv { display: inline-flex; align-items: center; gap: 6px; }
.hist-table .pillv .dot { width: 7px; height: 7px; border-radius: 50%; }

/* chart */
.dom-legend { display: flex; align-items: center; gap: 18px; }
.dom-legend .lg { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--tx-mid); }
.dom-legend .lg .dot { width: 9px; height: 9px; border-radius: 50%; }
.dom-legend .lg b { font-family: var(--mono); color: var(--tx-hi); font-weight: 600; }
.dchart-wrap { position: relative; padding: 16px 16px 8px; }
.dchart-svg { width: 100%; height: 340px; display: block; }
.dchart-ylab { position: absolute; right: 16px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--tx); background: var(--panel); padding: 0 4px; transform: translateY(-50%); pointer-events: none; }
.dchart-xlab { position: absolute; bottom: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--tx); transform: translateX(-50%); }
.dchart-tag { position: absolute; right: 16px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; transform: translateY(-50%); pointer-events: none; }
.dchart-meta { display: flex; justify-content: space-between; padding: 10px 18px 14px; font-family: var(--mono); font-size: 11px; color: var(--tx-dim); border-top: 1px solid var(--hairline-2); }

/* FAQ */
.faq { margin-top: 8px; }
.faq details { border: 1px solid var(--hairline); border-radius: var(--r); margin-bottom: 10px; background: var(--panel); overflow: hidden; }
.faq summary { padding: 15px 18px; font-size: 14px; font-weight: 600; color: var(--tx-hi); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tx-mid); font-family: var(--mono); font-size: 17px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--amber); }
.faq .faq-body { padding: 0 18px 16px; font-size: 13px; line-height: 1.7; color: var(--tx-mid); }
.faq .faq-body p + p { margin-top: 10px; }

/* range tabs */
.idx-tabs { display: flex; gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); overflow: hidden; }
.idx-tabs button { padding: 4px 11px; font-family: var(--mono); font-size: 11px; color: var(--tx-dim); background: var(--panel); transition: .12s; }
.idx-tabs button.active { color: var(--amber); }
.idx-tabs button:hover { color: var(--tx); }

/* ---------- gauge (Fear & Greed) ---------- */
.gauge-card { display: flex; align-items: center; gap: 30px; padding: 24px; flex-wrap: wrap; }
.gauge-card svg { width: 210px; height: auto; flex-shrink: 0; }
.gauge-read .num { font-family: var(--mono); font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.gauge-read .cls { font-size: 15px; color: var(--tx-mid); margin-top: 6px; font-weight: 600; }
.gauge-read .upd { font-size: 11px; color: var(--tx-dim); margin-top: 14px; font-family: var(--mono); }

.zones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.zone { padding: 13px 15px; background: var(--panel); }
.zone .b { height: 4px; border-radius: 2px; margin-bottom: 10px; }
.zone .r { font-family: var(--mono); font-size: 12px; color: var(--tx-hi); font-weight: 600; }
.zone .n { font-size: 11px; color: var(--tx-mid); margin-top: 3px; }

/* ---------- altcoin season ---------- */
.as-read .num { font-family: var(--mono); font-size: 48px; font-weight: 700; color: var(--tx-hi); line-height: 1; letter-spacing: -0.02em; }
.as-read .num small { font-size: 18px; color: var(--tx-dim); font-weight: 500; }
.as-read .cls { font-size: 14px; margin-top: 6px; font-weight: 600; }
.as-bar { height: 9px; border-radius: 5px; margin: 24px 0 9px; background: linear-gradient(90deg, var(--amber), var(--amber-dim) 25%, #3a4150 50%, #4a6a9a 75%, #5E86C8); position: relative; }
.as-bar i { position: absolute; top: -4px; width: 3px; height: 17px; background: #fff; border-radius: 2px; box-shadow: 0 0 6px rgba(0,0,0,.6); }
.as-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--tx-dim); }

.op-table { width: 100%; border-collapse: collapse; }
.op-table thead th { text-align: right; font-size: 10px; color: var(--tx-dim); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; padding: 11px 14px; border-bottom: 1px solid var(--hairline); }
.op-table th:nth-child(1), .op-table th:nth-child(2), .op-table td:nth-child(1), .op-table td:nth-child(2) { text-align: left; }
.op-table td { padding: 11px 14px; border-bottom: 1px solid var(--hairline-2); text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--tx); }
.op-table tbody tr:last-child td { border-bottom: none; }
.op-table tbody tr:hover { background: rgba(255,255,255,.018); }
.op-asset { display: flex; align-items: center; gap: 10px; }
.op-asset img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #16171b; }
.op-asset .s { font-family: var(--sans); font-weight: 600; color: var(--tx-hi); }
.op-asset .n { font-family: var(--sans); font-size: 10.5px; color: var(--tx-dim); }
.beat { display: inline-block; font-family: var(--mono); font-size: 10px; padding: 2px 7px; border-radius: 5px; }
.beat.yes { color: var(--up); background: var(--up-bg); }
.beat.no { color: var(--tx-dim); border: 1px solid var(--hairline); }

.sec-title { font-size: 19px; font-weight: 700; color: var(--tx-hi); letter-spacing: -0.02em; margin: 30px 0 16px; display: flex; align-items: center; gap: 10px; }

@media (max-width: 880px) {
  .dom-top { grid-template-columns: 1fr; }
  .dom-rows { flex-wrap: wrap; }
}

/* ============================================================
   Shared indicator readout: gauge hero + zone explainer.
   Used across all /indicators/ pages for a consistent,
   easy-to-interpret "signal at a glance" + plain-English guide.
   Per-page config: --gauge-grad on .ig-gauge-bar, --zc per card.
   ============================================================ */
.ig-hero { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 22px 24px 18px; margin: 22px 0 18px; }
.ig-verdict { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.ig-num { font-family: var(--mono); font-size: 54px; font-weight: 700; line-height: .95; letter-spacing: -0.03em; flex: none; }
.ig-zone-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ig-zone { font-size: 19px; font-weight: 700; }
.ig-signal { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-radius: 20px; padding: 3px 11px 3px 9px; border: 1px solid var(--sig, #4F9E7C); color: var(--sig, #4F9E7C); background: color-mix(in srgb, var(--sig, #4F9E7C) 13%, transparent); white-space: nowrap; }
.ig-signal::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sig, #4F9E7C); flex: none; }
.ig-mean { font-size: 12.5px; line-height: 1.5; color: var(--tx-mid); margin-top: 6px; max-width: 600px; }
.ig-gauge { margin-bottom: 19px; }
.ig-gauge-bar { position: relative; height: 9px; border-radius: 5px; background: var(--gauge-grad, linear-gradient(90deg, #4F9E7C, #C99A4B 50%, #BE5E6C)); }
.ig-marker { position: absolute; top: 50%; width: 4px; height: 19px; background: #fff; border-radius: 2px; transform: translate(-50%,-50%); box-shadow: 0 0 0 2px rgba(10,13,18,.75); transition: left .5s ease; z-index: 2; }
.ig-tick { position: absolute; top: 15px; transform: translateX(-50%); font-family: var(--mono); font-size: 8.5px; color: var(--tx-faint); white-space: nowrap; }
.ig-tick::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 5px; background: rgba(255,255,255,.22); margin-bottom: 2px; }
.ig-scale { display: flex; justify-content: space-between; margin-top: 26px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; }
.ig-scale span:nth-child(1) { color: #5f9277; } .ig-scale span:nth-child(2) { color: var(--amber); } .ig-scale span:nth-child(3) { color: #ad6670; }
.ig-substats { display: flex; gap: 28px; padding-top: 16px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.ig-substats > span { display: flex; flex-direction: column; gap: 5px; }
.ig-substats i { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-dim); font-style: normal; }
.ig-substats b { font-family: var(--mono); font-size: 16px; color: var(--tx-hi); font-weight: 600; }
/* explainer */
.ig-explain { font-size: 13.5px; line-height: 1.6; color: var(--tx-mid); max-width: 800px; margin: 0 0 16px; }
.ig-explain b { color: var(--tx-hi); }
.ig-zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.ig-zone-card { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 15px 17px; transition: .15s; }
.ig-zone-card .zc-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--tx-hi); margin-bottom: 9px; }
.ig-zone-card .zc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--zc, var(--tx-dim)); }
.ig-zone-card .zc-th { margin-left: auto; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .02em; color: var(--tx-dim); border: 1px solid var(--hairline); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.ig-zone-card .zc-now { display: none; font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0B0E14; background: var(--zc); border-radius: 4px; padding: 2px 6px; }
.ig-zone-card p { font-size: 12px; line-height: 1.55; color: var(--tx-mid); margin: 0; }
.ig-zone-card.active { background: var(--panel-2); border-color: color-mix(in srgb, var(--zc) 45%, transparent); box-shadow: inset 3px 0 0 var(--zc); }
.ig-zone-card.active .zc-now { display: inline-flex; }
.ig-usenote { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.55; color: var(--tx-dim); max-width: 820px; margin: 0 0 8px; }
.ig-usenote svg { flex: none; margin-top: 2px; color: var(--tx-faint); }
@media (max-width: 760px) { .ig-zones { grid-template-columns: 1fr; } .ig-verdict { gap: 15px; } .ig-num { font-size: 44px; } }

/* ============================================================
   Altcoin Season - loading skeleton (body.as-loading) + the
   real index-history chart shimmer until the data lands.
   ============================================================ */
@keyframes as-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.as-sk { display: inline-block; vertical-align: middle; width: 64px; height: 12px; border-radius: 4px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: as-shimmer 1.3s ease-in-out infinite; }
.as-sk-row td { padding: 12px 14px; }
body.as-loading #as-num, body.as-loading #as-cls, body.as-loading #as-mean,
body.as-loading #as-beat, body.as-loading #as-btc30, body.as-loading #rd-status {
  color: transparent !important; border-radius: 5px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: as-shimmer 1.3s ease-in-out infinite; }
/* hide the season gauge marker while loading - never reveal a modelled position */
body.as-loading #alt-marker { visibility: hidden; }
.as-chart-sk { position: relative; }
.as-chart-sk::after { content: ""; position: absolute; inset: 12px 34px 24px 30px; border-radius: 8px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: as-shimmer 1.3s ease-in-out infinite; pointer-events: none; }

/* Bitcoin Dominance loading skeleton (reuses the as-shimmer keyframe) */
.dm-sk { display: inline-block; vertical-align: middle; width: 60px; height: 12px; border-radius: 4px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: as-shimmer 1.3s ease-in-out infinite; }
.dm-sk-row td { padding: 12px 14px; }
body.dm-loading #dom-num, body.dm-loading #dom-verdict, body.dm-loading #dom-read,
body.dm-loading #dom-btc, body.dm-loading #dom-eth, body.dm-loading #dom-oth,
body.dm-loading #dom-btc-d, body.dm-loading #dom-eth-d, body.dm-loading #dom-oth-d,
body.dm-loading #dom-sub-eth, body.dm-loading #dom-sub-oth, body.dm-loading #dom-sub-chg,
body.dm-loading #lg-btc, body.dm-loading #lg-eth, body.dm-loading #lg-oth {
  color: transparent !important; border-radius: 5px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: as-shimmer 1.3s ease-in-out infinite; }
/* hide the gauge marker dot + the stack bars while loading - never reveal a modelled position/proportion */
body.dm-loading #dom-marker { visibility: hidden; }
body.dm-loading .dom-stack i { width: 0 !important; }
.dm-chart-sk { position: relative; }
.dm-chart-sk::after { content: ""; position: absolute; inset: 12px 34px 24px 30px; border-radius: 8px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: as-shimmer 1.3s ease-in-out infinite; pointer-events: none; }

/* ============================================================
   Fear & Greed - loading skeleton (body.fg-loading). Shimmer
   every data value + the gauge dial, hero gauge marker and the
   history chart until live data from alternative.me lands.
   Reuses the as-shimmer keyframe.
   ============================================================ */
.fg-sk { display: inline-block; vertical-align: middle; width: 60px; height: 12px; border-radius: 4px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: as-shimmer 1.3s ease-in-out infinite; }
.fg-sk-row td { padding: 11px 18px; }
body.fg-loading #fg-num, body.fg-loading #fg-cls, body.fg-loading #fg-signal, body.fg-loading #fg-mean,
body.fg-loading #fg-yest, body.fg-loading #fg-week, body.fg-loading #fg-avg,
body.fg-loading #fg-gnum, body.fg-loading #fg-gcls, body.fg-loading #fg-upd {
  color: transparent !important; border-radius: 5px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: as-shimmer 1.3s ease-in-out infinite; }
/* the signal pill also carries a border/dot - neutralise them while shimmering */
body.fg-loading #fg-signal { border-color: transparent !important; }
body.fg-loading #fg-signal::before { visibility: hidden; }
/* hide the hero gauge-bar marker - never reveal a modelled position */
body.fg-loading #fg-marker { visibility: hidden; }
/* gauge dial: hide the drawn svg, shimmer the box */
body.fg-loading #fg-gauge { position: relative; min-width: 210px; min-height: 116px; border-radius: 8px; overflow: hidden; }
body.fg-loading #fg-gauge svg { opacity: 0; }
body.fg-loading #fg-gauge::after { content: ""; position: absolute; inset: 0; border-radius: 8px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: as-shimmer 1.3s ease-in-out infinite; pointer-events: none; }
/* history chart: hide the drawn svg, shimmer the wrap */
body.fg-loading #fg-wrap { position: relative; }
body.fg-loading #fg-svg { opacity: 0; }
body.fg-loading #fg-wrap::after { content: ""; position: absolute; inset: 12px 34px 24px 30px; border-radius: 8px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: as-shimmer 1.3s ease-in-out infinite; pointer-events: none; }