/* Bitcoin tile */
.tile-bitcoin .tile-header h2 { color: #f7931a; }
.tile-bitcoin .tile-header { cursor: pointer; user-select: none; transition: background 0.15s; }
.tile-bitcoin .tile-header:hover { background: var(--surface2); }

/* Detail section (three-state toggle) */
.bitcoin-detail { display: none; }
.bitcoin-detail.open { display: block; }

/* Tabs */
.btc-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.btc-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.btc-tab:hover { color: var(--text); }
.btc-tab.active {
  color: #f7931a;
  border-bottom-color: #f7931a;
}

/* Overview card */
.btc-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
  font-size: 0.72rem;
  line-height: 1.5;
}
.btc-ov-label { color: var(--text-dim); }
.btc-ov-value { text-align: right; font-weight: 600; }
.btc-ov-price {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

/* Data cards */
.btc-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
}
.btc-card-title {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Stat grid */
.btc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}
.btc-stat { font-size: 0.72rem; }
.btc-stat-label { color: var(--text-dim); font-size: 0.65rem; }
.btc-stat-value { font-weight: 600; }

/* Bar chart for mining pools / distribution */
.btc-bar-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
}
.btc-bar-label {
  min-width: 80px;
  color: var(--text-dim);
  text-align: right;
  flex-shrink: 0;
}
.btc-bar-track {
  flex: 1;
  height: 14px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  display: block;
}
.btc-bar-fill {
  display: block;
  height: 100%;
  background: #f7931a;
  border-radius: 4px;
  transition: width 0.3s;
}
.btc-bar-pct {
  min-width: 36px;
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Fear & Greed color coding */
.btc-fg-extreme-fear { color: #ea3943; }
.btc-fg-fear { color: #ea8c00; }
.btc-fg-neutral { color: var(--text-dim); }
.btc-fg-greed { color: #16c784; }
.btc-fg-extreme-greed { color: #16c784; font-weight: 700; }

/* Currency table */
.btc-fiat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
}
.btc-fiat-table th {
  text-align: left;
  color: var(--text-dim);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
  border-bottom: 1px solid var(--border);
}
.btc-fiat-table td {
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid var(--border);
}
.btc-fiat-table tr:last-child td { border-bottom: none; }
.btc-fiat-table .btc-fiat-hyper { background: rgba(234, 57, 67, 0.08); }

/* Positive/negative colors */
.btc-up { color: #16c784; }
.btc-down { color: #ea3943; }

/* Reserves table */
.btc-reserves-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
}
.btc-reserves-table th {
  text-align: left;
  color: var(--text-dim);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
  border-bottom: 1px solid var(--border);
}
.btc-reserves-table td {
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid var(--border);
}
.btc-reserves-table tr:last-child td { border-bottom: none; }

/* Supply bar */
.btc-supply-bar {
  height: 18px;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  margin: 0.3rem 0;
}
.btc-supply-fill {
  height: 100%;
  background: linear-gradient(90deg, #f7931a, #fbbf24);
  border-radius: 6px;
}

/* Distribution stacked bar */
.btc-dist-bar {
  display: flex;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.btc-dist-seg {
  height: 100%;
  transition: width 0.3s;
  min-width: 2px;
}
.btc-dist-seg:first-child { border-radius: 6px 0 0 6px; }
.btc-dist-seg:last-child { border-radius: 0 6px 6px 0; }
.btc-dist-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  font-size: 0.62rem;
  color: var(--text-dim);
}
.btc-dist-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.btc-dist-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Signal indicator */
.btc-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 600;
}
.btc-signal-bullish { background: rgba(22, 199, 132, 0.15); color: #16c784; }
.btc-signal-bearish { background: rgba(234, 57, 67, 0.15); color: #ea3943; }
.btc-signal-neutral { background: var(--surface); color: var(--text-dim); }

/* ETF date range row */
.btc-date-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.btc-date-row input[type="date"] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.2rem 0.4rem;
  font-size: 0.65rem;
  font-family: inherit;
}
.btc-date-row input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

/* Loading state */
.btc-loading {
  text-align: center;
  color: var(--text-dim);
  padding: 1rem;
  font-size: 0.72rem;
}
