/* Numbers (prices, %, volumes) use Manrope with tabular figures: digits
   line up in columns like a monospace font, and 0 is a plain 0 (IBM Plex
   Mono, used before, draws a dot inside it). */
:root { --cd-num-font: "Manrope", system-ui, sans-serif; }
body { font-variant-numeric: tabular-nums; }
/* All-coins Dashboard and Watchlist (markets.js). Uses the app's theme
   variables, so dark/light/midnight themes all apply. */
.cd-dash {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.cd-dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cd-dash-head h2 {
  margin: 0;
  font-size: 22px;
}
.cd-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}
/* Key coin cards */
.cd-key-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  min-width: 0;
}
/* Coin avatar */
.cd-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.4px;
  overflow: hidden;
}
/* Up / down colours */
.cd-up { color: var(--green); }
.cd-down { color: var(--red); }
.cd-flat { color: var(--muted); }
/* Market mood */
.cd-breadth-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-soft);
}
.cd-breadth-bar span:first-child { background: var(--green); }
.cd-breadth-bar span:last-child { background: var(--red); }
/* Movers */
.cd-mover-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cd-mover-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.cd-mover-list li:first-child { border-top: 0; }
.cd-mover-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 700;
}
.cd-mover-name span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-mover-right {
  text-align: right;
  font-family: var(--cd-num-font);
  font-size: 12.5px;
  line-height: 1.3;
}
/* Tables */
.cd-table-card { padding: 12px 14px; min-width: 0; }
.cd-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.cd-table-head h3 { margin: 0; font-size: 15px; }
.cd-table-head h3 .cd-meta { font-size: 12px; }
.cd-search {
  flex: 1 1 220px;
  max-width: 320px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
}
.cd-table-wrap { overflow-x: auto; }
.cd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.cd-table th {
  padding: 8px 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.cd-table th[data-sort] { cursor: pointer; user-select: none; }
.cd-table th[data-sort].is-sorted { color: var(--text); }
.cd-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cd-table .cd-num {
  text-align: right;
  font-family: var(--cd-num-font);
  white-space: nowrap;
}
.cd-table th.cd-num { font-family: inherit; }
.cd-coin-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.cd-coin-cell strong { display: block; }
.cd-coin-cell small { color: var(--muted); font-size: 11px; }
.cd-sub {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.cd-col-star { width: 30px; }
.cd-star {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  padding: 2px;
  cursor: pointer;
}
.cd-star.is-on { color: var(--yellow); }
.cd-show-more {
  display: block;
  margin: 10px auto 2px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cd-empty {
  margin: 14px 0 6px;
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
}
@media (max-width: 640px) {
.cd-col-wide { display: none; }
.cd-search { max-width: none; }
}
/* ---------- Paper trading (paper.js) ---------- */
.cd-key-card[data-base],
.cd-mover-list li[data-base],
.cd-table tbody tr[data-base] { cursor: pointer; }
.cd-table tbody tr[data-base]:hover td { background: var(--surface-soft); }
.cd-ghost-btn {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.cd-funds-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.cd-fund {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  min-width: 0;
}
.cd-fund span { color: var(--muted); font-size: 12px; font-weight: 700; }
.cd-fund strong { font-family: var(--cd-num-font); font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-fund small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-fund strong.cd-up { color: var(--green); }
.cd-fund strong.cd-down { color: var(--red); }
.cd-hold-list, .cd-order-list { display: flex; flex-direction: column; }
.cd-hold-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 4px;
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cd-hold-row:first-child { border-top: 0; }
.cd-hold-row small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-hold-row .cd-coin-cell > span { min-width: 0; }
.cd-hold-mid { font-family: var(--cd-num-font); font-size: 12.5px; min-width: 0; }
.cd-hold-pnl { font-family: var(--cd-num-font); font-weight: 700; text-align: right; }
.cd-hold-pnl small { text-align: right; }
.cd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cd-pill.is-active { color: var(--text); border-color: var(--border-strong); background: var(--surface-elevated); }
.cd-order-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-top: 1px solid var(--border);
}
.cd-order-row:first-child { border-top: 0; }
.cd-order-side { font-weight: 800; font-size: 12.5px; }
.cd-order-main { min-width: 0; }
.cd-order-main strong { display: block; }
.cd-order-main small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-order-status { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); }
.cd-order-status.is-open { color: var(--yellow); }
.cd-order-status.is-filled { color: var(--green); }
.cd-order-cancel { padding: 5px 10px; font-size: 12px; }
/* Order ticket */
.cd-ticket-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 4, 12, 0.7);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.cd-ticket-overlay[hidden] { display: none; }
.cd-ticket {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.cd-ticket-head { display: flex; align-items: center; justify-content: space-between; }
.cd-ticket-head strong { font-size: 17px; }
.cd-ticket-close { border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.cd-ticket-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.cd-ticket-price strong { font-family: var(--cd-num-font); font-size: 22px; }
.cd-ticket-price .cd-meta { margin: 0; }
.cd-field { display: flex; flex-direction: column; gap: 5px; }
.cd-field[hidden] { display: none; }
.cd-field span { color: var(--muted); font-size: 12px; font-weight: 700; }
.cd-field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-family: var(--cd-num-font);
  font-size: 15px;
}
.cd-ticket-summary { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface-soft); font-size: 13px; }
.cd-ticket-summary div { display: flex; justify-content: space-between; gap: 10px; }
.cd-ticket-summary span { color: var(--muted); }
.cd-ticket-summary strong { font-family: var(--cd-num-font); text-align: right; }
.cd-ticket-error { margin: 0; color: var(--red); font-size: 13px; font-weight: 600; }
.cd-ticket-error[hidden] { display: none; }
.cd-submit { padding: 13px; border: 0; border-radius: 12px; font: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer; }
.cd-submit.is-buy { background: var(--green); color: #052e1a; }
.cd-submit.is-sell { background: var(--red); color: #3b0a0a; }
.cd-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 9100;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.cd-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) {
.cd-funds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cd-hold-row { grid-template-columns: minmax(0, 1fr) auto; }
.cd-hold-mid { display: none; }
.cd-order-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
.cd-order-row .cd-order-cancel { grid-column: 2 / -1; justify-self: start; }
.cd-ticket-overlay { align-items: flex-end; padding: 0; }
.cd-ticket { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; }
}
/* ---------- Coin Detail / Scanner / Heatmap (coin-tools.js) ---------- */
.cd-ticket-head-actions { display: inline-flex; align-items: center; gap: 8px; }
.cd-coin-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.cd-coin-price-row strong { font-family: var(--cd-num-font); font-size: 26px; }
.cd-coin-price-row .cd-meta { margin: 0; font-size: 14px; }
.cd-coin-price-row span:last-child { font-weight: 700; }
.cd-coin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-coin-actions .cd-submit { width: 100%; }
#cdCoinTitle { margin: 0; }
.cd-coin-cell h2 + .cd-meta { margin-top: 0; }
.cd-heat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 6px;
}
.cd-heat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 72px;
  padding: 8px 4px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  text-align: center;
}
.cd-heat-tile strong { font-size: 13.5px; letter-spacing: 0.2px; }
.cd-heat-tile span { font-family: var(--cd-num-font); font-size: 12px; opacity: 0.95; }
.cd-heat-tile.is-big { grid-column: span 2; min-height: 96px; }
.cd-heat-tile.is-big strong { font-size: 16px; }
@media (max-width: 760px) {
.cd-heat-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.cd-dash-head .cd-search { flex-basis: 100%; }
.cd-dash-head:has(.cd-search) { flex-wrap: wrap; }
#cdHeatSize { width: 100%; }
}
/* ---------- Price alerts (alerts.js) ---------- */
.cd-alert-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.cd-alert-form select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.cd-alert-form .cd-submit { padding: 11px 16px; }
#cdCoinAlert { align-self: flex-start; }
@media (max-width: 760px) {
.cd-alert-form { grid-template-columns: 1fr 1fr; }
.cd-alert-form .cd-submit,
  .cd-alert-form .cd-field:nth-child(3) { grid-column: 1 / -1; }
}
/* ---------- CryptoDock Pro (pro.js) ---------- */
/* Pinned to the far right of the header. */
.cd-upgrade-btn {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  z-index: 61;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: #facc15;
  color: #713f12;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.35);
}
.cd-upgrade-btn[hidden] { display: none; }
/* ---------- Coin sheet (coin-sheet.js) ---------- */
.cd-sheet { max-width: 460px; gap: 14px; }
.cd-sheet-handle { display: none; width: 40px; height: 4px; border-radius: 999px; background: var(--border); align-self: center; margin-bottom: -4px; }
.cd-sheet-badge { margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.4px; vertical-align: middle; }
.cd-sheet .cd-coin-cell small { display: block; }
.cd-sheet-price-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cd-sheet-price-row strong#cdSheetPrice { display: block; font-family: var(--cd-num-font); font-size: 24px; }
.cd-sheet-price-row #cdSheetChange { font-weight: 700; margin-right: 8px; }
.cd-sheet-price-row .cd-meta { margin: 0; }
.cd-sheet-vol { display: flex; flex-direction: column; align-items: flex-end; }
.cd-sheet-vol span { color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: 0.4px; }
.cd-sheet-vol strong { font-family: var(--cd-num-font); }
.cd-sheet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cd-sheet-actions .cd-pill { padding: 8px 6px; text-align: center; color: var(--text); }
.cd-sheet-actions .cd-pill.is-active { color: var(--yellow); }
.cd-sheet-section { display: flex; flex-direction: column; gap: 8px; }
.cd-sheet-section-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 800; letter-spacing: 0.4px; }
.cd-sheet-section-head .cd-meta { margin: 0; font-size: 10.5px; }
.cd-depth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-depth-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 700; padding: 0 4px 4px; }
.cd-depth-row { position: relative; display: flex; justify-content: space-between; gap: 6px; padding: 4px; font-family: var(--cd-num-font); font-size: 12px; overflow: hidden; }
.cd-depth-row i { position: absolute; top: 1px; bottom: 1px; right: 0; border-radius: 3px; opacity: 0.16; }
.cd-depth-row span { position: relative; }
.cd-depth-bid i { background: var(--green); }
.cd-depth-ask i { background: var(--red); left: 0; right: auto; }
.cd-depth-bid span:first-of-type { color: var(--green); }
.cd-depth-ask span:first-of-type { color: var(--red); }
.cd-range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-family: var(--cd-num-font); font-size: 12px; }
.cd-range-bar { position: relative; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--yellow), var(--green)); opacity: 0.85; }
.cd-range-bar i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 2px solid var(--surface); transform: translate(-50%, -50%); }
.cd-sheet-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cd-sheet-stats div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-soft); }
.cd-sheet-stats span { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.cd-sheet-stats strong { font-family: var(--cd-num-font); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-sheet-footer { position: sticky; bottom: -18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 -18px -18px; padding: 12px 18px 18px; background: var(--surface); border-top: 1px solid var(--border); }
#cdWatchTabs .cd-pill { padding: 7px 18px; }
@media (max-width: 760px) {
.cd-sheet { max-width: none; }
.cd-sheet-handle { display: block; }
}
/* ---------- Scanner bar ---------- */
.cd-scan-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cd-scan-bar .cd-meta { margin: 0; }
.cd-scan-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cd-scan-toggle input { accent-color: var(--green); }
#cdScanFilters .cd-pill span { opacity: 0.75; font-weight: 600; }
/* ---------- Phone: sidebar becomes a bottom bar, like the Indian market app ---------- */
@media (max-width: 760px) {
#btcModeRoot .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 55;
    height: auto;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.35);
  }
#btcModeRoot .sidebar .nav {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 4px;
  }
#btcModeRoot .sidebar .nav::-webkit-scrollbar { display: none; }
#btcModeRoot .nav-button {
    width: auto;
    min-width: max-content;
    margin: 0;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
  }
#btcModeRoot .nav-button.active {
    color: #24123f;
    background: linear-gradient(135deg, #8b5cf6, #c4b5fd);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  }
#btcModeRoot .nav-button.active .nav-icon { color: #24123f; }
/* Room for the bottom bar so it never covers the last row. */
#btcModeRoot .content { padding-bottom: 92px; }
.cd-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 720px) {
.cd-upgrade-btn { right: 14px; padding: 6px 12px; font-size: 12px; }
}
/* In the app the ☰ settings button sits at the bottom-right, over the
   bottom bar (as in the Indian market app) — leave room for it. */
@media (max-width: 760px) {
html.capacitor-app #btcModeRoot .sidebar .nav { padding-right: 52px; }
}
/* ================= Home dashboard (pro look) ================= */
.cd-home { gap: 10px; }
.cd-avatar { position: relative; overflow: hidden; }
.cd-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cd-avatar.has-logo { background: transparent !important; color: transparent; border-radius: 50%; }
.cd-ticker-card,
.cd-panel,
.cd-feature,
.cd-mover-panel {
  border: 1px solid color-mix(in srgb, var(--border-strong, #8b5cf6) 45%, transparent);
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #1e1b4b), var(--surface));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
/* Ticker */
.cd-ticker-card { display: flex; align-items: center; gap: 4px; padding: 8px 6px 8px 10px; }
.cd-ticker {
  flex: 1; min-width: 0; overflow: hidden;
  /* soft fade at both edges instead of a hard cut while items slide */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.cd-ticker-track { display: flex; width: max-content; animation: cdTickerSlide 30s linear infinite; }
.cd-ticker:hover .cd-ticker-track, .cd-ticker:active .cd-ticker-track { animation-play-state: paused; }
@keyframes cdTickerSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
.cd-ticker { overflow-x: auto; }
.cd-ticker-track { animation: none; }
}
.cd-tick { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; flex-shrink: 0; }
.cd-tick .cd-avatar { width: 26px; height: 26px; }
.cd-tick-text { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.cd-tick-text strong { font-size: 12.5px; }
.cd-tick-text span { font-family: var(--cd-num-font); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cd-tick-text em { font-style: normal; font-weight: 700; margin-left: 4px; }
.cd-ticker-more { flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
/* Hero */
.cd-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 132px;
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background:
    radial-gradient(120% 140% at 100% 100%, rgba(16, 185, 129, 0.22), transparent 55%),
    radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, 0.35), transparent 60%),
    linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.cd-hero h2 { margin: 0 0 6px; color: #ffffff; font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.cd-hero p { margin: 0 0 14px; color: #c7d2fe; font-size: 13px; }
.cd-hero-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #ffffff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45); }
.cd-hero-btn span { font-size: 18px; line-height: 1; }
.cd-hero-art { width: 46%; max-width: 230px; height: auto; flex-shrink: 0; }
/* BTC / ETH */
.cd-feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-feature { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 8px; min-width: 0; cursor: pointer; }
.cd-feature-top { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.cd-feature-top .cd-avatar { width: 30px; height: 30px; }
.cd-feature-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.cd-feature-price { font-family: var(--cd-num-font); font-size: 20px; font-weight: 800; }
.cd-feature-pct { font-weight: 800; font-size: 14px; }
.cd-feature-sub { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-family: var(--cd-num-font); font-size: 12px; }
.cd-spark { width: 100%; height: 44px; margin-top: 4px; }
/* Movers */
.cd-mover-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-mover-panel { padding: 12px; min-width: 0; }
.cd-mover-panel.is-up { border-color: rgba(52, 211, 153, 0.45); background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), var(--surface) 70%); }
.cd-mover-panel.is-down { border-color: rgba(248, 113, 113, 0.45); background: linear-gradient(180deg, rgba(239, 68, 68, 0.16), var(--surface) 70%); }
.cd-mover-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cd-mover-head h3 { margin: 0; font-size: 15px; }
.cd-mover-head small { color: var(--muted); font-size: 11px; }
.cd-mover-icon { font-size: 20px; font-weight: 800; }
.is-up .cd-mover-icon, .is-up .cd-mover-head small { color: var(--green); }
.is-down .cd-mover-icon, .is-down .cd-mover-head small { color: var(--red); }
.cd-view-all { margin-left: auto; padding: 0; border: 0; background: none; color: var(--text-soft, #c4b5fd); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.is-down .cd-view-all { color: #fca5a5; }
.cd-mover-panel .cd-mover-list li { padding: 7px 0; border-top-color: color-mix(in srgb, var(--border) 70%, transparent); cursor: pointer; }
.cd-mover-panel .cd-mover-name .cd-avatar { width: 26px; height: 26px; }
/* Panels */
.cd-panel { padding: 12px 14px; }
.cd-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cd-panel-head h3 { margin: 0; font-size: 15.5px; }
.cd-panel-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #ffffff; font-size: 15px; }
.cd-mini-coins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cd-mini-coin { display: flex; flex-direction: column; gap: 3px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); cursor: pointer; min-width: 0; }
.cd-mini-top { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.cd-mini-top .cd-avatar { width: 22px; height: 22px; font-size: 8px; }
.cd-mini-price { font-family: var(--cd-num-font); font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-mini-pct { font-family: var(--cd-num-font); font-size: 12px; font-weight: 700; }
.cd-home-meta { margin: 10px 0 0; font-size: 11.5px; }
.cd-mood .cd-panel-head { margin-bottom: 10px; }
.cd-mood-text { margin-left: auto; font-size: 12.5px; font-weight: 800; }
.cd-mood .cd-breadth-bar { height: 10px; }
@media (max-width: 520px) {
.cd-hero { min-height: 120px; padding: 16px 14px; }
.cd-hero h2 { font-size: 21px; }
.cd-hero p { font-size: 12px; }
.cd-hero-btn { padding: 9px 16px; font-size: 13px; }
.cd-feature-price { font-size: 17px; }
.cd-mover-panel { padding: 10px; }
.cd-mover-head h3 { font-size: 13.5px; }
.cd-mover-panel .cd-mover-list li { font-size: 12px; }
.cd-mover-panel .cd-mover-name { gap: 6px; }
.cd-mover-panel .cd-mover-right { font-size: 11px; }
.cd-mini-coins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ================= Phone tab bar (tabbar.js) ================= */
.cd-tabbar { display: none; }
@media (max-width: 760px) {
/* The tab bar replaces the scrolling sidebar on phones. */
#btcModeRoot .sidebar { display: none; }
html.capacitor-app #topSettingsMenuButton { display: none !important; }
.cd-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 56;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid color-mix(in srgb, var(--border-strong, #8b5cf6) 40%, transparent);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.35);
  }
.cd-tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 2px 5px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }
.cd-tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cd-tabbar button.is-active { color: #ffffff; background: linear-gradient(180deg, rgba(139, 92, 246, 0.45), rgba(99, 102, 241, 0.2)); }
.cd-tabbar button.is-active svg { stroke: #c4b5fd; }
#btcModeRoot .content { padding-bottom: 86px; }
.cd-toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
.cd-more { gap: 12px; }
.cd-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cd-more-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: center; }
.cd-more-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(99, 102, 241, 0.2)); color: #c4b5fd; }
.cd-more-icon svg { width: 17px; height: 17px; }
/* The ticker's long row must scroll inside its card, not widen the page. */
#btcModeRoot .content,
#btcModeRoot .dashboard,
.tab-panel,
.cd-home,
.cd-ticker-card { min-width: 0; max-width: 100%; }
.cd-ticker-card { overflow: hidden; }
@media (max-width: 520px) {
.cd-mover-head h3 { white-space: nowrap; font-size: 13.5px; }
.cd-mover-head small { display: none; }
.cd-mover-head { gap: 6px; }
.cd-mover-icon { font-size: 16px; }
.cd-view-all { font-size: 11px; }
.cd-hero h2 { font-size: 20px; }
.cd-hero-art { width: 40%; }
}
@media (max-width: 420px) {
.cd-mover-head h3 { font-size: 12.5px; }
.cd-view-all { font-size: 10.5px; }
.cd-mover-icon { font-size: 14px; }
}
/* ================= Sheet motion (sheet-motion.js) ================= */
.cd-ticket-overlay {
  background: rgba(5, 4, 12, calc(0.72 * var(--cd-sheet-dim, 1)));
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cd-ticket-overlay > .cd-ticket {
  transform: translate3d(0, 0, 0);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cd-ticket-overlay.cd-off {
  background: rgba(5, 4, 12, 0);
  pointer-events: none;
}
.cd-ticket-overlay.cd-off > .cd-ticket {
  transform: translate3d(0, 24px, 0) scale(0.98);
  opacity: 0;
}
.cd-ticket-overlay.cd-closing {
  pointer-events: none;
}
.cd-ticket-overlay.cd-closing > .cd-ticket {
  transition-duration: 0.24s;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
@media (max-width: 760px) {
  /* Phones: Zerodha-style GPU spring slide up from bottom edge */
  .cd-ticket-overlay.cd-off > .cd-ticket {
    transform: translate3d(0, 100%, 0);
    opacity: 1;
  }
  .cd-ticket-overlay > .cd-ticket {
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
  .cd-ticket-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5, 4, 12, calc(0.76 * var(--cd-sheet-dim, 1)));
  }
  .cd-ticket-overlay.cd-off {
    background: rgba(5, 4, 12, 0);
  }
  .cd-ticket-overlay .cd-sheet-handle {
    display: block;
    width: 48px;
    height: 5px;
    margin: -6px auto 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.28);
    cursor: grab;
  }
}
/* Short page notes at the bottom of a page (instead of a long line under
   the title). */
.cd-page-notes {
  margin: 4px 2px 0;
  padding: 10px 14px 10px 30px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.cd-page-notes li::marker { color: var(--purple, #a78bfa); }
/* Phones: coin tables use the full width — ☆ sits at the left edge, the
   coin right after it, and the 24h column gets room (it was clipped with
   larger system font sizes). */
@media (max-width: 520px) {
.cd-table-card { margin-left: -6px; margin-right: -6px; padding: 10px 4px; }
.cd-table-card .cd-table-head,
  .cd-table-card .cd-scan-bar,
  .cd-table-card > .cd-empty { padding-left: 8px; padding-right: 8px; }
.cd-table th, .cd-table td { padding-left: 3px; padding-right: 3px; }
.cd-table th.cd-col-star, .cd-table td:first-child { width: 22px; padding-left: 2px; padding-right: 0; }
.cd-star { padding: 0; font-size: 16px; }
.cd-table .cd-coin-cell { gap: 7px; }
.cd-table .cd-avatar { width: 26px; height: 26px; }
.cd-table .cd-num { font-size: 12.5px; }
.cd-table th:last-child, .cd-table td:last-child { padding-right: 6px; }
}
/* Momentum pill (like the Indian market's MOMENTUM column). */
.cd-mom-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.cd-mom-pill b { font-weight: 800; }
.cd-mom-pill.is-bull { color: var(--green); background: rgba(22, 199, 132, 0.13); border-color: rgba(22, 199, 132, 0.35); }
.cd-mom-pill.is-bear { color: var(--red); background: rgba(234, 57, 67, 0.12); border-color: rgba(234, 57, 67, 0.35); }
.cd-mom-pill.is-neutral { color: var(--muted); background: var(--surface-soft); border-color: var(--border); }
.cd-mom-chg { display: none; }
.cd-mom-summary { display: flex; justify-content: space-between; gap: 6px; margin: 2px 0 8px; }
.cd-mom-summary:empty { display: none; }
/* Phones: the 24h % moves under the pill to save a column. */
@media (max-width: 520px) {
.cd-table .cd-col-chg { display: none; }
.cd-mom-chg { display: block; margin-top: 3px; font-size: 11.5px; }
.cd-table .cd-mom-pill { font-size: 10px; padding: 2px 6px; gap: 3px; }
.cd-table-card .cd-mom-summary { padding: 0 8px; }
}
/* Watchlist tables: $ price only (no ₹ line). On phones the 24h % sits
   under the price instead of under the momentum pill. */
.cd-price-chg { display: none; }
.cd-sub.cd-price-chg.cd-up { color: var(--green); }
.cd-sub.cd-price-chg.cd-down { color: var(--red); }
.cd-watch-table .cd-inr { display: none; }
@media (max-width: 520px) {
.cd-watch-table .cd-price-chg { display: block; font-size: 12px; margin-top: 2px; }
.cd-watch-table .cd-mom-chg { display: none; }
}
/* Momentum pill, the Indian market's look: a filled pill with the label
   and the score in a ring on its right; the row gets a matching accent
   line on its left edge. The summary chips above keep the light style. */
:is(.cd-table, .cd-stats-tags) .cd-mom-pill {
  justify-content: space-between;
  box-sizing: border-box;
  width: 98px;
  height: 26px;
  padding: 0 2px 0 0;
  gap: 0;
  border-width: 1px;
}
:is(.cd-table, .cd-stats-tags) .cd-mom-txt {
  flex: 1 1 auto;
  text-align: center;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
:is(.cd-table, .cd-stats-tags) .cd-mom-bubble {
  box-sizing: border-box;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1524;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
:is(.cd-table, .cd-stats-tags) .cd-mom-pill.is-bull { background: linear-gradient(90deg, #047857, #065f46); border-color: rgba(16, 185, 129, 0.55); color: #ecfdf5; }
:is(.cd-table, .cd-stats-tags) .cd-mom-pill.is-bull .cd-mom-bubble { color: #d1fae5; border: 2px solid #10b981; }
:is(.cd-table, .cd-stats-tags) .cd-mom-pill.is-neutral { background: linear-gradient(90deg, #334863, #243449); border-color: rgba(100, 130, 170, 0.55); color: #e2e8f0; }
:is(.cd-table, .cd-stats-tags) .cd-mom-pill.is-neutral .cd-mom-bubble { color: #cbd5e1; border: 2px solid #64748b; }
:is(.cd-table, .cd-stats-tags) .cd-mom-pill.is-bear { background: linear-gradient(90deg, #b91c1c, #7f1d1d); border-color: rgba(239, 68, 68, 0.55); color: #fef2f2; }
:is(.cd-table, .cd-stats-tags) .cd-mom-pill.is-bear .cd-mom-bubble { color: #fecaca; border: 2px solid #ef4444; }
.cd-table tr.cd-row-bull td:first-child { box-shadow: inset 3px 0 0 #10b981; }
.cd-table tr.cd-row-bear td:first-child { box-shadow: inset 3px 0 0 #ef4444; }
.cd-table tr.cd-row-neutral td:first-child { box-shadow: inset 3px 0 0 #64748b; }
@media (max-width: 520px) {
.cd-table .cd-mom-pill { width: 92px; height: 26px; padding: 0 2px 0 0; gap: 0; }
.cd-table .cd-mom-txt { font-size: 9px; }
.cd-table th.cd-col-star, .cd-table td:first-child { padding-left: 5px; }
}
/* Phones: tighter bottom of every page — the notes, the disclaimer and the
   tab bar sit closer together (the gaps added up to ~80px of empty space). */
@media (max-width: 760px) {
#btcModeRoot .content { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
#btcModeRoot main.dashboard { padding-bottom: 8px; row-gap: 10px; }
#btcModeRoot .cd-page-notes { margin-top: -4px; padding: 7px 10px; }
#btcModeRoot .disclaimer-card { padding: 8px 10px; }
}
/* Page notes and the disclaimer: one line each. fit-line.js shrinks the
   font until the line fits (down to 8.5px); text that still doesn't fit
   (a long AI disclaimer) wraps instead of being cut. */
#btcModeRoot .cd-page-notes {
  list-style: none;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  line-height: 1.5;
}
#btcModeRoot .cd-page-notes li { display: inline; }
#btcModeRoot .cd-page-notes li + li::before { content: " · "; color: var(--purple, #a78bfa); font-weight: 800; }
#btcModeRoot .disclaimer-card { white-space: nowrap; overflow: hidden; line-height: 1.5; }
#btcModeRoot .disclaimer-card p { display: inline; font-size: 12px; }
#btcModeRoot .disclaimer-card .tv-attribution { margin: 0 0 0 4px; }
#btcModeRoot .cd-page-notes.is-wrapped,
#btcModeRoot .disclaimer-card.is-wrapped { white-space: normal; }
/* Watchlist 1–10: a row of list tabs that scrolls sideways, and a track of
   lists you swipe through (native scroll-snap, so it follows the finger
   and settles on one list at a time). */
#cdWatchTabs.cd-wl-tabs {
  position: relative;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
#cdWatchTabs.cd-wl-tabs::-webkit-scrollbar { display: none; }
#cdWatchTabs.cd-wl-tabs .cd-pill { flex: 0 0 auto; white-space: nowrap; padding: 7px 16px; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.cd-wl-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cd-wl-track::-webkit-scrollbar { display: none; }
.cd-wl-track[hidden] { display: none; }
.cd-wl-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.cd-wl-slide .cd-table-wrap { overflow-x: visible; }
/* Coin stats sheet (coin-stats.js) — what a Scanner row opens. */
.cd-stats-price { display: block; font-family: var(--cd-num-font); font-size: 24px; }
#cdStatsChange { font-weight: 700; margin-right: 8px; }
.cd-stats-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cd-stats-tags .cd-meta { margin: 0; font-size: 11px; font-weight: 700; }
.cd-stats-sheet .cd-sheet-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cd-stats-sheet .cd-sheet-stats div { padding: 7px 8px; }
.cd-stats-sheet .cd-sheet-stats span { font-size: 10.5px; }
.cd-stats-sheet .cd-sheet-stats strong { font-size: 12.5px; }
.cd-perf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cd-perf > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-soft); font-size: 11.5px; }
.cd-perf b { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; }
.cd-perf b span { font-family: var(--cd-num-font); }
.cd-perf em { color: var(--muted); font-style: normal; font-weight: 700; }
.cd-perf i { font-style: normal; font-family: var(--cd-num-font); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-stats-note { margin: -4px 0 0; text-align: center; font-size: 11px; }
@media (max-width: 380px) {
.cd-stats-sheet .cd-sheet-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Coin stats opens as a card: centred, rounded on every side, compact, and
   everything on it fits without scrolling (coin-stats.js scales the card
   down a little on short screens or with large system fonts). */
#cdStats { align-items: center; padding: 12px; }
#cdStats > .cd-stats-sheet {
  max-width: 440px;
  max-height: none;
  overflow: visible;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--border-strong, #8b5cf6) 45%, var(--border));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(139, 92, 246, 0.08);
}
#cdStats .cd-sheet-handle { display: none; }
#cdStats .cd-ticket-head strong { font-size: 16px; }
#cdStats .cd-stats-price { font-size: 21px; }
#cdStats .cd-sheet-section { gap: 6px; }
#cdStats .cd-sheet-section-head { font-size: 10.5px; }
#cdStats .cd-range { font-size: 11px; gap: 8px; }
#cdStats .cd-sheet-stats { gap: 5px; }
#cdStats .cd-sheet-stats div { padding: 5px 7px; border-radius: 8px; gap: 1px; }
#cdStats .cd-sheet-stats span { font-size: 10px; }
#cdStats .cd-sheet-stats strong { font-size: 12px; }
#cdStats .cd-perf { gap: 5px; }
#cdStats .cd-perf > div { padding: 6px 8px; border-radius: 8px; font-size: 10.5px; gap: 1px 6px; }
#cdStats .cd-perf b { font-size: 11.5px; }
#cdStats .cd-sheet-actions { gap: 6px; }
#cdStats .cd-sheet-actions .cd-pill { padding: 7px 4px; font-size: 12.5px; }
#cdStats .cd-stats-note { margin: -2px 0 0; font-size: 10px; }
@media (max-width: 760px) {
/* A card pops in (not a sheet sliding up from the bottom edge). */
#cdStats.cd-off > .cd-ticket { transform: translateY(18px) scale(0.94); opacity: 0; }
}
@media (max-width: 380px) {
#cdStats .cd-sheet-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ================= Crypto News (news.js) ================= */
.cd-news-page .cd-dash-head { align-items: flex-start; }
.cd-news-page .cd-dash-head .cd-meta { margin: 2px 0 0; font-size: 12px; }
.cd-news-lang .cd-pill { min-width: 92px; text-align: center; }
.cd-news-coins { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.cd-news-coins::-webkit-scrollbar { display: none; }
.cd-news-coins:empty { display: none; }
.cd-news-coins .cd-pill { flex: 0 0 auto; padding: 5px 12px; font-size: 12px; }
.cd-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cd-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.cd-news-card:hover { border-color: var(--border-strong, #8b5cf6); }
.cd-news-card:active { transform: scale(0.995); }
.cd-news-card.is-lead { grid-column: 1 / -1; }
.cd-news-main { display: flex; gap: 12px; padding: 12px; color: inherit; text-decoration: none; min-width: 0; flex: 1; }
.cd-news-card.is-lead .cd-news-main { flex-direction: column; padding: 0 0 4px; gap: 0; }
.cd-news-card.is-lead .cd-news-body { padding: 12px 14px 0; }
.cd-news-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.cd-news-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.cd-news-fav { width: 16px; height: 16px; border-radius: 4px; background: #fff; }
.cd-news-src { color: var(--text-soft, #c4b5fd); }
.cd-news-dot { opacity: 0.6; }
.cd-news-tag { padding: 1px 6px; border-radius: 6px; background: var(--surface-soft); color: var(--yellow, #fbbf24); font-size: 10px; font-weight: 800; letter-spacing: 0.3px; }
.cd-news-title {
  margin: 0;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cd-news-card.is-lead .cd-news-title { font-size: 19px; -webkit-line-clamp: 4; }
.cd-news-sum {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cd-news-card.is-lead .cd-news-sum { -webkit-line-clamp: 3; font-size: 13.5px; }
.cd-news-list.is-hindi .cd-news-title { font-family: "Manrope", "Noto Sans Devanagari", system-ui, sans-serif; line-height: 1.5; }
.cd-news-img {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #312e81, #0f172a 60%, #134e4a);
  align-self: flex-start;
}
.cd-news-img.is-big { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.cd-news-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd-news-noimg { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.85); font-family: "Sora", system-ui, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.cd-news-img.is-big .cd-news-noimg { font-size: 42px; }
.cd-news-img.is-empty .cd-news-noimg { display: flex; }
.cd-news-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 12px 12px; }
.cd-news-card.is-lead .cd-news-actions { padding: 8px 14px 14px; }
.cd-news-actions a, .cd-news-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.cd-news-actions .cd-news-hi { border-color: rgba(251, 191, 36, 0.45); color: #fde68a; }
.cd-news-actions .cd-news-share { margin-left: auto; color: var(--muted); }
.cd-news-card.is-skeleton .cd-news-body i { display: block; height: 12px; border-radius: 6px; background: var(--surface-soft); animation: cdNewsPulse 1.2s ease-in-out infinite; }
.cd-news-card.is-skeleton .cd-news-body i:nth-child(1) { width: 40%; }
.cd-news-card.is-skeleton .cd-news-body i:nth-child(2) { width: 95%; height: 16px; }
.cd-news-card.is-skeleton .cd-news-body i:nth-child(3) { width: 75%; }
.cd-news-card.is-skeleton .cd-news-img { animation: cdNewsPulse 1.2s ease-in-out infinite; }
.cd-news-card.is-skeleton .cd-news-main { padding: 12px; }
@keyframes cdNewsPulse { 50% { opacity: 0.5; } }
@media (max-width: 760px) {
.cd-news-list { grid-template-columns: 1fr; gap: 10px; }
.cd-news-img { flex-basis: 96px; width: 96px; height: 72px; }
.cd-news-title { font-size: 14px; }
.cd-news-card.is-lead .cd-news-title { font-size: 17px; }
.cd-news-sum { display: none; }
.cd-news-card.is-lead .cd-news-sum { display: -webkit-box; }
}
/* ================= Welcome / sign-in screen (welcome.js) ================= */
html.cd-welcome-open, html.cd-welcome-open body { overflow: hidden; }
.cd-welcome {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(34, 211, 238, 0.22), transparent 60%),
    #07060f;
}
.cd-welcome[hidden] { display: none; }
/* The sign-in screen is always dark, whatever theme the app is set to: the
   Light theme's dark text colours would be unreadable on its dark card. */
.cd-welcome { --text: #f8fafc; --muted: #a1a1b5; --border: #2a2540; color-scheme: dark; }
.cd-welcome-card {
  width: 100%;
  max-width: 420px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px 18px;
  border-radius: 22px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(17, 14, 32, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  color: var(--text, #f8fafc);
  animation: cdWelcomeIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes cdWelcomeIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.cd-welcome-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cd-welcome-logo { width: 64px; height: 64px; border-radius: 16px; filter: drop-shadow(0 6px 18px rgba(34, 211, 238, 0.35)); }
.cd-welcome-head h2 { margin: 2px 0 0; font-family: "Sora", system-ui, sans-serif; font-size: 23px; font-weight: 800; }
.cd-welcome-badge { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.1); color: #fde68a; font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; }
.cd-welcome-tagline { margin: 0; color: var(--muted, #a1a1b5); font-size: 14px; font-weight: 600; }
.cd-welcome-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cd-welcome-features li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); }
.cd-welcome-features li > span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(139, 92, 246, 0.18); font-size: 17px; }
.cd-welcome-features strong { display: block; font-size: 13.5px; }
.cd-welcome-features small { color: var(--muted, #a1a1b5); font-size: 12px; }
.cd-welcome-actions { display: flex; flex-direction: column; gap: 10px; }
.cd-welcome-actions button { font: inherit; cursor: pointer; }
.cd-welcome-google, .cd-welcome-email-toggle, .cd-welcome-primary, .cd-welcome-secondary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 16px; border-radius: 14px; font-size: 15px; font-weight: 800;
}
.cd-welcome-google { border: 0; background: #ffffff; color: #1f2937; }
.cd-welcome-email-toggle { border: 1px solid rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.12); color: #e9d5ff; }
.cd-welcome-email-toggle[hidden], .cd-welcome-form[hidden] { display: none; }
.cd-welcome-form { display: flex; flex-direction: column; gap: 10px; }
.cd-welcome-form input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border, #2a2540); background: rgba(255, 255, 255, 0.05);
  color: var(--text, #f8fafc); font: inherit; font-size: 15px; box-sizing: border-box;
}
.cd-welcome-form input:focus { outline: none; border-color: #8b5cf6; }
.cd-welcome-pass { position: relative; }
.cd-welcome-pass input { padding-right: 46px; }
.cd-welcome-pass button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 17px; opacity: 0.75; }
.cd-welcome-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-welcome-primary { border: 0; background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff; }
.cd-welcome-secondary { border: 1px solid var(--border, #2a2540); background: rgba(255, 255, 255, 0.05); color: var(--text, #f8fafc); }
.cd-welcome-status { min-height: 18px; margin: 0; text-align: center; font-size: 13px; color: #a7f3d0; }
.cd-welcome-status.is-error { color: #fca5a5; }
.cd-welcome-status:empty { display: none; }
.cd-welcome-foot { margin: 0; text-align: center; color: var(--muted, #a1a1b5); font-size: 11.5px; line-height: 1.6; }
.cd-welcome-foot a { color: #c4b5fd; }
/* ================= CryptoDock Pro cards (gate, trial, plans) ================= */
.cdp-card {
  position: relative;
  max-width: 420px;
  align-items: stretch;
  text-align: center;
  gap: 12px;
  padding: 22px 18px 16px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background:
    radial-gradient(420px 180px at 50% -40px, rgba(250, 204, 21, 0.14), transparent 70%),
    linear-gradient(180deg, #17132c 0%, #100d1f 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.cdp-crown {
  width: 58px; height: 58px; margin: 0 auto -2px;
  display: grid; place-items: center; border-radius: 18px; font-size: 28px;
  background: linear-gradient(145deg, #fde68a, #f59e0b);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.cdp-crown--sm { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; margin: 0; flex: 0 0 40px; }
.cdp-badge {
  align-self: center; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.7px;
  color: #fde68a; background: rgba(250, 204, 21, 0.1); border: 1px solid rgba(250, 204, 21, 0.35);
}
.cdp-badge--green { color: #6ee7b7; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.4); }
.cdp-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }
.cdp-title { margin: 0; font-family: "Sora", system-ui, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.2px; }
.cdp-text { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.cdp-extra { display: flex; flex-direction: column; gap: 10px; }
.cdp-extra[hidden] { display: none; }
.cdp-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cdp-feats span {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px; font-weight: 700; text-align: left;
}
.cdp-feats i { font-style: normal; font-size: 15px; }
.cdp-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cdp-prices > div, .cdp-prices > button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 10px 4px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
}
.cdp-prices > button { font: inherit; color: var(--text); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease; }
.cdp-prices > button:active { transform: scale(0.97); }
.cdp-prices b { font-family: var(--cd-num-font); font-size: 18px; font-weight: 800; }
.cdp-prices small { color: var(--muted); font-size: 11px; }
.cdp-prices .cdp-up { font-size: 9.5px; font-weight: 800; letter-spacing: 0.5px; }
.cdp-prices .is-sel { border: 1.5px solid #22c55e; background: rgba(34, 197, 94, 0.1); }
.cdp-prices .is-sel b, .cdp-prices .is-sel .cdp-up { color: #4ade80; }
.cdp-paper-note { margin: -2px 0 0; padding: 7px 10px; border-radius: 10px; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); color: #fcd34d; font-size: 12px; font-weight: 700; text-align: center; }
.cdp-prices em {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 1px 7px; border-radius: 6px; background: #16a34a; color: #fff; font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: 0.4px;
}
.cdp-primary {
  min-height: 50px; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 55%, #3b82f6 100%);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}
.cdp-primary:disabled { opacity: 0.6; cursor: wait; }
.cdp-primary--green { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); box-shadow: 0 10px 24px rgba(22, 163, 74, 0.3); }
.cdp-ghost { min-height: 40px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: -4px; }
.cdp-trust { margin: 0; color: var(--muted); font-size: 11.5px; }
.cdp-matrix { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); text-align: left; }
.cdp-matrix-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 11px; font-weight: 800; letter-spacing: 0.5px; }
.cdp-matrix-head em { font-style: normal; padding: 2px 8px; border-radius: 6px; background: rgba(56, 189, 248, 0.12); color: #7dd3fc; font-size: 10.5px; }
.cdp-note { display: flex; gap: 6px; margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.cdp-note span { color: #34d399; font-weight: 800; }
/* Plans */
.cdp-plans { text-align: left; }
.cdp-plans-head { display: flex; align-items: center; gap: 12px; }
.cdp-plans-head > div:nth-child(2) { flex: 1; min-width: 0; }
.cdp-sub { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.cdp-status { margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.2); color: #bae6fd; font-size: 12.5px; }
.cdp-status:empty { display: none; }
.cdp-plan-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.cdp-plan {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03);
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.cdp-plan input { position: absolute; opacity: 0; pointer-events: none; }
.cdp-radio { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); box-sizing: border-box; }
.cdp-plan:has(input:checked) { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.12); }
.cdp-plan:has(input:checked) .cdp-radio { border-color: #8b5cf6; background: radial-gradient(circle, #a78bfa 0 40%, transparent 45%); }
.cdp-plan-name { flex: 1; min-width: 0; }
.cdp-plan-name strong { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; }
.cdp-plan-name em { font-style: normal; padding: 1px 6px; border-radius: 5px; background: rgba(34, 197, 94, 0.15); color: #4ade80; font-size: 10px; font-weight: 800; }
.cdp-plan-name small { color: var(--muted); font-size: 12px; }
.cdp-plan-price { text-align: right; }
.cdp-plan-price b { display: block; font-family: var(--cd-num-font); font-size: 19px; font-weight: 800; }
.cdp-plan-price small { color: var(--muted); font-size: 11px; }
.cdp-plan.is-best .cdp-plan-price b { color: #c4b5fd; }
.cdp-ribbon { position: absolute; top: -9px; right: 12px; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: 0.4px; }
.cdp-included { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.12); }
.cdp-included p { margin: 0 0 6px; color: var(--muted); font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; }
.cdp-included ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.cdp-included li { font-size: 12.5px; font-weight: 600; }
.cdp-included li::before { content: "✓ "; color: #34d399; font-weight: 800; }
.cdp-pay-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.cdp-chips { display: inline-flex; gap: 4px; }
.cdp-chips i { font-style: normal; padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.12); font-size: 10.5px; }
.cdp-plans .cdp-trust { text-align: center; margin-top: -4px; }
@media (max-width: 760px) {
.cdp-card { border-bottom: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
/* ================= RRG page (rrg.js) ================= */
.cd-rrg-page .cd-dash-head { align-items: flex-start; }
.cd-rrg-page .cd-dash-head .cd-meta { margin: 2px 0 0; font-size: 12.5px; }
.cd-rrg-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); color: #4ade80; font-size: 11px; font-weight: 800; letter-spacing: 0.6px; }
.cd-rrg-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); animation: cdRrgPulse 1.6s ease-in-out infinite; }
.cd-rrg-live.is-replay { border-color: rgba(167, 139, 250, 0.45); background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }
.cd-rrg-live.is-replay i { background: #a78bfa; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
@keyframes cdRrgPulse { 50% { opacity: 0.35; } }
.cd-rrg-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.cd-rrg-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cd-rrg-search { position: relative; flex: 1 1 260px; min-width: 0; }
.cd-rrg-search input {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 14px 0 38px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1b5' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center;
  color: var(--text); font: inherit; font-size: 14px;
}
.cd-rrg-search input:focus { outline: none; border-color: #8b5cf6; }
.cd-rrg-suggest { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 14px; border: 1px solid var(--border); background: #14112a; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.cd-rrg-suggest[hidden] { display: none; }
.cd-rrg-suggest button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cd-rrg-suggest button:hover { background: var(--surface-soft); }
.cd-rrg-suggest span { flex: 1; font-weight: 800; }
.cd-rrg-suggest small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.cd-rrg-suggest em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #a78bfa; }
.cd-rrg-suggest .cd-meta { margin: 8px; }
.cd-rrg-tfs { display: inline-flex; gap: 6px; }
.cd-rrg-tfs .cd-pill { min-width: 52px; text-align: center; font-weight: 800; }
.cd-rrg-stage { position: relative; width: 100%; min-height: 360px; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 50% 50%, #120f24 0%, #0b0a16 100%); border: 1px solid rgba(255, 255, 255, 0.06); }
.cd-rrg-stage canvas { display: block; max-height: none; touch-action: manipulation; }
.cd-rrg-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 8px 14px; border-radius: 10px; background: rgba(10, 9, 20, 0.85); color: var(--muted); font-size: 13px; text-align: center; max-width: 80%; }
.cd-rrg-status[hidden] { display: none; }
.cd-rrg-tip { position: absolute; z-index: 5; min-width: 170px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(17, 14, 32, 0.96); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); font-size: 12px; pointer-events: none; }
.cd-rrg-tip[hidden] { display: none; }
.cd-rrg-tip strong { font-size: 15px; margin-right: 8px; }
.cd-rrg-tip div { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.cd-rrg-tip small { color: var(--muted); }
.cd-rrg-tip b { font-family: var(--cd-num-font); }
.cd-rrg-player { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cd-rrg-play {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff; font-size: 16px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}
.cd-rrg-play.is-playing { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3); }
#cdRrgScrub { flex: 1 1 180px; min-width: 120px; accent-color: #8b5cf6; height: 28px; }
.cd-rrg-when { min-width: 120px; color: var(--muted); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cd-rrg-speeds { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--border); }
.cd-rrg-speeds button { min-width: 42px; padding: 6px 8px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.cd-rrg-speeds button.is-active { background: rgba(139, 92, 246, 0.25); color: #fff; }
.cd-rrg-reset { padding: 4px 12px; border-radius: 999px; border: 1px dashed rgba(167, 139, 250, 0.6); background: none; color: #c4b5fd; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.cd-rrg-quads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cd-rrg-quad { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid; min-width: 0; }
.cd-rrg-quad span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; }
.cd-rrg-quad b { font-size: 22px; font-family: var(--cd-num-font); }
.cd-rrg-quad small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-rrg-quad.is-leading { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.07); color: #4ade80; }
.cd-rrg-quad.is-weakening { border-color: rgba(234, 179, 8, 0.35); background: rgba(234, 179, 8, 0.07); color: #facc15; }
.cd-rrg-quad.is-lagging { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.07); color: #f87171; }
.cd-rrg-quad.is-improving { border-color: rgba(59, 130, 246, 0.35); background: rgba(59, 130, 246, 0.07); color: #60a5fa; }
.cd-rrg-q { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.4px; }
.cd-rrg-q.is-leading { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.cd-rrg-q.is-weakening { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.cd-rrg-q.is-lagging { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.cd-rrg-q.is-improving { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.cd-rrg-table td:first-child { white-space: nowrap; }
.cd-rrg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.cd-rrg-table tbody tr { cursor: pointer; }
.cd-rrg-table tbody tr.is-hl td { background: rgba(139, 92, 246, 0.12); }
.cd-rrg-tip .cd-rrg-q { vertical-align: middle; }
@media (max-width: 760px) {
.cd-rrg-card { padding: 10px; margin-left: -6px; margin-right: -6px; }
.cd-rrg-toolbar { gap: 8px; }
.cd-rrg-search { flex-basis: 100%; }
.cd-rrg-tfs { width: 100%; }
.cd-rrg-tfs .cd-pill { flex: 1; }
.cd-rrg-quads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cd-rrg-player { gap: 8px; }
#cdRrgScrub { flex-basis: calc(100% - 58px); order: 1; }
.cd-rrg-play { order: 0; }
.cd-rrg-when { order: 2; flex: 1; min-width: 0; }
.cd-rrg-speeds { order: 3; }
.cd-rrg-table th:nth-child(4), .cd-rrg-table td:nth-child(4),
  .cd-rrg-table th:nth-child(5), .cd-rrg-table td:nth-child(5) { display: none; }
.cd-rrg-table .cd-rrg-q { font-size: 9px; padding: 2px 5px; }
.cd-rrg-eye { width: 34px; }
.cd-rrg-eye.is-on i { transform: translateX(12px); }
}
/* RRG coin list: show / hide switch and remove (replaces the chip row) */
.cd-rrg-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cd-rrg-list-head h3 { margin: 0; font-size: 15px; }
.cd-rrg-reset[hidden] { display: none; }
.cd-rrg-act { width: 1%; white-space: nowrap; text-align: right; }
.cd-rrg-eye { position: relative; width: 38px; height: 22px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12); cursor: pointer; vertical-align: middle; }
.cd-rrg-eye i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #9ca3af; transition: transform 0.15s ease, background 0.15s ease; }
.cd-rrg-eye.is-on { background: rgba(139, 92, 246, 0.55); }
.cd-rrg-eye.is-on i { transform: translateX(16px); background: #fff; }
.cd-rrg-del { margin-left: 6px; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 50%; background: none; color: var(--muted); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; vertical-align: middle; }
.cd-rrg-table tbody tr.is-off td:not(.cd-rrg-act) { opacity: 0.4; }
/* RRG list head: "↺ Top 20" and the Select all switch on the right */
.cd-rrg-head-acts { display: flex; align-items: center; gap: 8px; }
.cd-rrg-all { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cd-rrg-all .cd-rrg-eye { display: inline-block; flex: none; pointer-events: none; }
/* Coin sheet / stats card: "★ In Watchlist" stays on one line */
.cd-sheet-actions .cd-pill { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 3px; padding-right: 3px; font-size: clamp(11px, 3.1vw, 13.5px); }
#cdStats .cd-sheet-actions .cd-pill { padding-left: 3px; padding-right: 3px; font-size: clamp(10.5px, 2.9vw, 12.5px); }
.cd-rrg-list-head { flex-wrap: wrap; row-gap: 8px; }
.cd-rrg-list-head h3 { white-space: nowrap; }
.cd-rrg-head-acts { margin-left: auto; }
.cd-rrg-head-acts .cd-rrg-reset { white-space: nowrap; }
/* Watchlist notes: one card, two points, each kept on one line
   (fit-line.js shrinks the font until both fit) */
#btcModeRoot .cd-page-notes.cd-notes-list { list-style: disc; white-space: nowrap; overflow: hidden; text-align: left; padding: 8px 12px 8px 28px; line-height: 1.75; font-size: 12.5px; }
#btcModeRoot .cd-page-notes.cd-notes-list.is-wrapped { white-space: normal; }
#btcModeRoot .cd-page-notes.cd-notes-list b { color: var(--purple, #a78bfa); font-weight: 800; }
#btcModeRoot .cd-page-notes.cd-notes-list li { display: list-item; }
#btcModeRoot .cd-page-notes.cd-notes-list li + li::before { content: none; }
@media (max-width: 760px) {
#btcModeRoot .cd-page-notes.cd-notes-list { padding: 7px 6px 7px 19px; }
}
/* ---------- Coin Detail (no chart: search, quick coins, cards) ---------- */
.cd-cdet { gap: 12px; }
.cd-cdet-search { position: relative; }
.cd-cdet-search input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.cd-cdet-search input:focus { outline: none; border-color: #8b5cf6; }
.cd-cdet-search .cd-avatar { width: 26px; height: 26px; font-size: 9px; flex: none; }
.cd-cdet-quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cd-cdet-quick::-webkit-scrollbar { display: none; }
.cd-cdet-quick .cd-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 12px 5px 5px; font-weight: 800; }
.cd-cdet-quick .cd-avatar { width: 22px; height: 22px; font-size: 8px; }
.cd-cdet .cd-dash-head { margin-top: 2px; }
.cd-cdet-tv { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(139, 92, 246, 0.55); background: linear-gradient(135deg, rgba(139, 92, 246, 0.32), rgba(34, 211, 238, 0.14)); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.cd-cdet-tv b { display: block; font-size: 15.5px; }
.cd-cdet-tv small { display: block; color: var(--text-soft, #c4b5fd); font-size: 11px; font-weight: 600; }
.cd-cdet-tv-ico { font-size: 24px; }
.cd-cdet-tv-go { margin-left: auto; font-size: 18px; font-weight: 800; }
.cd-cdet-card { padding: 13px 14px; }
.cd-cdet-card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 12px; letter-spacing: 0.8px; color: var(--text-soft, #c4b5fd); }
.cd-cdet-card h3 span { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0; text-align: right; }
.cd-cdet-perf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cd-cdet-perf div { padding: 10px 6px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--border); text-align: center; }
.cd-cdet-perf div.is-up { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.25); }
.cd-cdet-perf div.is-down { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.25); }
.cd-cdet-perf span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.cd-cdet-perf b { font-family: var(--cd-num-font); font-size: 17px; }
.cd-cdet-mom { display: flex; align-items: center; gap: 14px; }
.cd-cdet-gauge { width: 150px; flex: none; }
.cd-cdet-mom ul { margin: 8px 0 0; padding-left: 16px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.cd-cdet-bar-row { display: flex; align-items: center; gap: 10px; font-family: var(--cd-num-font); font-size: 12.5px; }
.cd-cdet-bar { position: relative; flex: 1; height: 8px; border-radius: 9px; background: linear-gradient(90deg, #f87171, #fbbf24 55%, #34d399); }
.cd-cdet-bar i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 3px solid var(--bg, #0c0a14); box-shadow: 0 0 0 1px #fff; }
.cd-cdet-range .cd-meta { margin: 8px 0 0; font-size: 11.5px; }
.cd-cdet-rrg { display: flex; align-items: center; gap: 14px; }
.cd-cdet-rrg p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cd-cdet-rrg strong { display: block; margin-bottom: 2px; font-size: 16px; }
.cd-cdet-rrg strong.is-leading { color: #22c55e; }
.cd-cdet-rrg strong.is-weakening { color: #eab308; }
.cd-cdet-rrg strong.is-lagging { color: #ef4444; }
.cd-cdet-rrg strong.is-improving { color: #60a5fa; }
.cd-cdet-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 64px; height: 64px; flex: none; }
.cd-cdet-quad div { border-radius: 6px; opacity: 0.3; }
.cd-cdet-quad .is-leading { background: #22c55e; }
.cd-cdet-quad .is-weakening { background: #eab308; }
.cd-cdet-quad .is-lagging { background: #ef4444; }
.cd-cdet-quad .is-improving { background: #3b82f6; }
.cd-cdet-quad .is-on { opacity: 1; outline: 2px solid #fff; }
.cd-cdet-link { margin-top: 6px; padding: 0; border: 0; background: none; color: #a78bfa; font: inherit; font-weight: 800; cursor: pointer; }
.cd-cdet-hold { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cd-cdet-hold div { padding: 9px 11px; border-radius: 12px; background: var(--surface-soft); }
.cd-cdet-hold span { display: block; color: var(--muted); font-size: 11px; }
.cd-cdet-hold b { font-family: var(--cd-num-font); font-size: 14.5px; }
#cdCoinPaper > .cd-meta { margin: 0; }
.cd-cdet-trades { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 12px; }
.cd-cdet-trades th { padding: 5px 2px; border-bottom: 1px solid var(--border); color: var(--muted); font-weight: 600; text-align: left; }
.cd-cdet-trades td { padding: 7px 2px; border-bottom: 1px solid rgba(38, 33, 56, 0.6); font-family: var(--cd-num-font); }
.cd-cdet-trades .cd-num { text-align: right; }
.cd-cdet-side { padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; }
.cd-cdet-side.is-buy { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.cd-cdet-side.is-sell { background: rgba(248, 113, 113, 0.15); color: var(--red); }
.cd-cdet .cd-coin-price-row span:last-child { font-weight: 600; }
/* Coin Detail: smaller BUY / SELL */
.cd-cdet .cd-coin-actions { max-width: 380px; gap: 8px; }
.cd-cdet .cd-coin-actions .cd-submit { padding: 9px; font-size: 14px; border-radius: 10px; }
/* Coin Detail: price ranges, market stats, alert + watchlist row */
.cd-cdet-range .cd-cdet-bar-row + .cd-cdet-bar-row { margin-top: 12px; }
.cd-cdet-bar-row em { width: 30px; flex: none; color: var(--text-soft, #c4b5fd); font-style: normal; font-weight: 800; font-size: 11.5px; }
.cd-cdet-bar-row > span { min-width: 74px; }
.cd-cdet-bar-row > span:last-child { text-align: right; }
.cd-cdet-bar.is-empty { background: var(--border); }
.cd-cdet-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cd-cdet-stats div { padding: 9px 11px; border-radius: 12px; background: var(--surface-soft); min-width: 0; }
.cd-cdet-stats span { display: block; color: var(--muted); font-size: 11px; }
.cd-cdet-stats b { display: block; font-family: var(--cd-num-font); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-cdet-stats small { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.cd-cdet-more { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-cdet-more .cd-ghost-btn.is-active { color: var(--yellow); border-color: rgba(251, 191, 36, 0.45); }
@media (max-width: 420px) {
.cd-cdet-stats { grid-template-columns: 1fr 1fr; }
.cd-cdet-bar-row { gap: 7px; font-size: 11.5px; }
.cd-cdet-bar-row > span { min-width: 64px; }
}
.cd-cdet-more #cdCoinStar { margin-left: auto; }
.cdp-feats span:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
/* Heatmap head: Top 50 / 100 / 200 stay in one row beside the title */
.cd-dash-head:has(#cdHeatSize) { align-items: center; }
#cdHeatSize { flex-wrap: nowrap; gap: 6px; }
@media (max-width: 760px) {
#cdHeatSize { width: auto; }
#cdHeatSize .cd-pill { padding: 5px 10px; font-size: 12.5px; white-space: nowrap; }
}
@media (max-width: 400px) {
[data-panel="heatmap"] .cd-dash-head h2 { font-size: 19px; }
#cdHeatSize { gap: 5px; }
#cdHeatSize .cd-pill { padding: 5px 8px; font-size: 12px; }
}
/* Heatmap legend (like the Indian market): strong green → weak red */
.cd-heat-legend { display: flex; align-items: center; gap: 8px; margin: -4px 0 2px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.cd-heat-legend-bar { width: 150px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #16a34a, #22c55e 30%, #475569 50%, #ef4444 70%, #dc2626); }
/* Heatmap tiles: names never spill outside the tile */
.cd-heat-tile { min-width: 0; padding-left: 4px; padding-right: 4px; }
.cd-heat-tile strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-heat-tile.is-long strong { font-size: 12px; letter-spacing: 0; }
.cd-heat-tile.is-xlong strong { font-size: 10.5px; letter-spacing: 0; }
/* The one Live marker: just above the header's bottom border, far right, no pill;
   its dot pulses so it's clear prices are streaming. */
.topbar #topMarketStatus.market-status-badge {
  position: absolute; top: auto; bottom: 5px; right: 18px; z-index: 2;
  transform: none;
  padding: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; background: none;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; gap: 7px;
}
.topbar #topMarketStatus .market-status-dot { width: 7px; height: 7px; }
.topbar #topMarketStatus.status-live .market-status-dot { animation: cdLivePulse 1.4s ease-in-out infinite; }
@keyframes cdLivePulse {
  0% { transform: scale(0.75); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.75); }
  60% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.75); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@media (prefers-reduced-motion: reduce) {
.topbar #topMarketStatus .market-status-dot { animation: none; }
}
.cd-rrg-live[hidden] { display: none; }
/* Ticker: the line between coins softly fades lighter and darker */
.cd-tick::after {
  content: ""; position: absolute; right: 0; top: 12%; bottom: 12%; width: 1.5px; border-radius: 2px;
  background: linear-gradient(180deg, transparent, #a78bfa 30%, #a78bfa 70%, transparent);
  animation: cdTickLine 2.4s ease-in-out infinite;
}
@keyframes cdTickLine { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) {
.cd-tick::after { animation: none; opacity: 0.4; }
}
/* Pro status card (Upgrade / Settings → My plan), like the Indian market's */
.cdp-status-card { text-align: left; }
.cdp-state { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid; }
.cdp-state.is-ok { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.4); }
.cdp-state.is-new { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.45); }
.cdp-state.is-off { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.4); }
.cdp-state.is-info { background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.35); }
.cdp-state-top { display: flex; align-items: center; gap: 12px; }
.cdp-state-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, 0.08); font-size: 20px; }
.cdp-state-top strong { display: block; font-size: 15.5px; }
.cdp-state.is-ok strong { color: #4ade80; }
.cdp-state.is-new strong { color: #c4b5fd; }
.cdp-state.is-off strong { color: #f87171; }
.cdp-state-top small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.cdp-state-dates { padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, 0.14); color: var(--text-soft, #c4b5fd); font-size: 12.5px; }
.cdp-state-dates[hidden] { display: none; }
.cdp-state-dates b { color: var(--text); }
.cdp-state-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.cdp-state-bar[hidden] { display: none; }
.cdp-state-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #4ade80); }
.cdp-feat-head { margin: 4px 0 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.6px; }
.cdp-feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cdp-feat-grid div { display: flex; flex-direction: column; gap: 2px; padding: 10px 11px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.cdp-feat-grid i { font-style: normal; font-size: 18px; }
.cdp-feat-grid b { font-size: 13px; }
.cdp-feat-grid small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.cdp-callout { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.25); color: #bae6fd; font-size: 12px; line-height: 1.45; }
.cdp-callout[hidden] { display: none; }
.cdp-status-card .cdp-ghost[hidden] { display: none; }
/* Settings → My plan row */
.cd-myplan-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 6px 0 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.1); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.cd-myplan-btn em { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.cd-myplan-btn em.is-on { background: rgba(16, 185, 129, 0.15); color: #4ade80; }
.cd-myplan-btn em.is-new { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; }
.cd-myplan-btn em.is-off { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.cdp-feat-grid div:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Pro card: days box and next price */
.cdp-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cdp-days[hidden] { display: none; }
.cdp-days div { padding: 10px 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }
.cdp-days span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.cdp-days b { display: block; margin-top: 2px; font-family: var(--cd-num-font); font-size: 22px; }
.cdp-days .is-left { border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.1); }
.cdp-days .is-left b { color: #4ade80; }
.cdp-days.is-none-left .is-left { border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.1); }
.cdp-days.is-none-left .is-left b { color: #f87171; }
.cdp-next { display: flex; flex-direction: column; gap: 8px; }
.cdp-next[hidden] { display: none; }
.cdp-next .cdp-feat-head { margin: 0; }
.cdp-next-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cdp-next-list button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; cursor: pointer; }
.cdp-next-list span { color: var(--muted); font-size: 11px; font-weight: 800; }
.cdp-next-list b { font-family: var(--cd-num-font); font-size: 18px; }
.cdp-next-list small { color: var(--muted); font-size: 10.5px; }
.cdp-next-list button.is-current { border-color: #a78bfa; background: rgba(139, 92, 246, 0.14); }
.cdp-next-list button.is-current::after { content: "YOUR PLAN"; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px; background: #7c3aed; color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: 0.4px; white-space: nowrap; }
.cdp-next-note { margin: 0; color: var(--muted); font-size: 11.5px; }
.cdp-next-note[hidden] { display: none; }
/* Upgrade in the sidebar and in More */
.sidebar .cd-nav-upgrade { color: #fcd34d; }
.sidebar .cd-nav-upgrade .nav-icon { font-size: 13px; }
.cd-more-tile.cd-more-upgrade { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.1); color: #fcd34d; }
/* ---------- Tools page (tools.js) ---------- */
.cd-tools { gap: 12px; }
.cd-tool-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.cd-tool-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 66px; padding: 10px 10px 9px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.cd-tool-tile i { font-style: normal; font-size: 19px; }
.cd-tool-tile em { position: absolute; top: 7px; right: 7px; padding: 1px 5px; border-radius: 6px; background: rgba(239, 68, 68, 0.18); color: #fca5a5; font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: 0.3px; }
.cd-tool-tile.is-active { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.16); }
.cd-tool-card { padding: 14px; scroll-margin-top: 90px; }
.cd-tool-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.cd-tool-card h3 i { font-style: normal; font-size: 20px; }
.cd-tool-card h3 em { padding: 1px 6px; border-radius: 6px; background: rgba(239, 68, 68, 0.18); color: #fca5a5; font-style: normal; font-size: 9.5px; font-weight: 800; }
.cd-tool-body { display: flex; flex-direction: column; gap: 10px; }
.cd-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.cd-tool-grid.is-3 { grid-template-columns: repeat(3, 1fr); }
.cd-tool-grid.is-row { grid-template-columns: 1fr 1fr auto; align-items: end; }
.cd-tool-in { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cd-tool-in span { color: var(--muted); font-size: 11px; font-weight: 700; }
.cd-tool-in input, .cd-tool-in select { width: 100%; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-soft); color: var(--text); font: inherit; font-family: var(--cd-num-font); font-size: 14px; }
.cd-tool-in input:focus, .cd-tool-in select:focus { outline: none; border-color: #8b5cf6; }
.cd-tool-del { width: 34px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.cd-tool-rows { display: flex; flex-direction: column; gap: 8px; }
.cd-tool-out { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-soft); color: var(--muted); font-size: 12.5px; }
.cd-tool-out:empty { display: none; }
.cd-tool-out span { color: var(--muted); font-size: 11.5px; }
.cd-tool-out b { color: var(--text); font-family: var(--cd-num-font); font-size: 17px; line-height: 1.35; }
.cd-tool-out small { color: var(--muted); font-size: 11.5px; }
.cd-tool-out.is-good { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.cd-tool-out.is-bad { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }
.cd-tool-out.is-warn { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); }
.cd-tool-note { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.cd-tool-split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; }
.cd-tool-split i { display: block; }
.cd-tool-legend { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.cd-tool-gauge { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #ef4444, #f59e0b 40%, #eab308 55%, #22c55e); }
.cd-tool-gauge i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 3px solid var(--bg, #0c0a14); }
.cd-tool-progress { height: 6px; margin-top: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.cd-tool-progress i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.cd-tool-stat { padding: 9px 10px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--border); }
.cd-tool-stat span { display: block; color: var(--muted); font-size: 10.5px; }
.cd-tool-stat b { font-family: var(--cd-num-font); font-size: 13.5px; }
.cd-tool-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cd-tool-table th { padding: 6px 4px; border-bottom: 1px solid var(--border); color: var(--muted); font-weight: 700; text-align: right; }
.cd-tool-table td { padding: 8px 4px; border-bottom: 1px solid rgba(38, 33, 56, 0.6); font-family: var(--cd-num-font); text-align: right; }
.cd-tool-table th:first-child, .cd-tool-table td:first-child { text-align: left; font-family: inherit; font-weight: 800; }
@media (max-width: 420px) {
.cd-tool-tiles { grid-template-columns: repeat(3, 1fr); }
.cd-tool-tile { min-height: 62px; padding: 8px; font-size: 11px; }
.cd-tool-grid { grid-template-columns: 1fr 1fr; }
}
/* Technical page: educational notice at the top */
.cd-tech-disclaimer { margin: 0 0 12px; padding: 11px 13px; border-radius: 12px; border: 1px solid rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.08); color: #bae6fd; font-size: 12.5px; line-height: 1.5; }
.cd-tech-disclaimer b { color: #e0f2fe; }
/* Technical page refreshes silently — no refresh button or status line. */
.btc-topbar,
#technicalRefreshStatus { display: none !important; }
/* Paper futures: positions */
.cd-pos-liq { color: #f59e0b; }
.cd-pos-card { background: #131a2a; border: 1px solid #1f293d; border-radius: 12px; padding: 14px; margin: 0 12px 12px; }
.cd-pos-card:first-child { margin-top: 4px; }
.cd-pos-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.cd-pos-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cd-pos-name strong { font-size: 16px; color: #fff; }
.cd-pos-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.cd-pos-tag.is-long { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.cd-pos-tag.is-short { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.cd-pos-close { background: #252d3d; border: 1px solid #374151; color: #fff; border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; }
.cd-pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; margin-bottom: 10px; }
.cd-pos-grid span { color: #8b949e; }
.cd-pos-grid strong { color: #e6edf3; }
.cd-pos-grid strong.cd-pos-liq { color: #f59e0b; }
.cd-pos-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid #1f293d; padding-top: 8px; }
.cd-pos-foot span { color: #8b949e; font-size: 12px; }
.cd-pos-foot b { font-size: 14px; font-weight: 700; }
.cd-pos-foot b.is-up { color: #10b981; }
.cd-pos-foot b.is-down { color: #ef4444; }

/* Orders page: trade history cards (entry, exit, P&L per position) */
.cd-order-list.is-trades { padding-top: 12px; }
.cd-order-main small + small { margin-top: 1px; }
.cd-trade-status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: #252d3d; color: #c9d1d9; }
.cd-trade-status.is-running { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.cd-trade-status.is-liq { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.cd-trade-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.cd-trade-legs > div { background: #0f1522; border: 1px solid #1f293d; border-radius: 8px; padding: 8px 10px; min-width: 0; }
.cd-trade-legs span { display: block; color: #8b949e; font-size: 11px; margin-bottom: 2px; }
.cd-trade-legs strong { display: block; color: #fff; font-size: 14px; }
.cd-trade-legs small { display: block; color: #8b949e; font-size: 11px; margin-top: 2px; }

/* Dashboard: Forex and Commodity rows */
.cd-panel-note { margin-left: auto; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.cd-mini-coins.cd-mini-coins-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cd-mini-coins.cd-mini-coins-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cd-mini-flag { font-size: 17px; line-height: 1; }
.cd-mini-name { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ==========================================================================
   CryptoDock - Refined & Compact More Menu Buttons (Softer Palette & Tighter Sizing)
   ========================================================================== */

#cdMoreGrid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 9px !important;
  padding: 4px 2px 18px !important;
}

#cdMoreGrid .cd-more-tile {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 92px !important;
  padding: 10px 4px !important;
  border-radius: 15px !important;
  border: 1px solid var(--tile-border, rgba(255, 255, 255, 0.08)) !important;
  background: linear-gradient(155deg, var(--tile-bg-top, #141724) 0%, var(--tile-bg-bot, #0c0f18) 100%) !important;
  color: var(--tile-text, #e2e8f0) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1px !important;
  text-align: center !important;
  box-shadow: 0 3px 10px var(--tile-shadow, rgba(0, 0, 0, 0.25)), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: transform 0.12s ease, filter 0.12s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}

#cdMoreGrid .cd-more-tile:active {
  transform: scale(0.96) !important;
  filter: brightness(1.08) !important;
}

#cdMoreGrid .cd-more-tile .cd-more-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  margin-bottom: 6px !important;
  background: linear-gradient(135deg, var(--ico-top, #2563eb), var(--ico-bot, #1d4ed8)) !important;
  color: var(--ico-col, #ffffff) !important;
  box-shadow: 0 2px 8px var(--ico-glow, rgba(0, 0, 0, 0.3)), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  font-size: 16px !important;
}

#cdMoreGrid .cd-more-tile .cd-more-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2px !important;
}

/* 1. UPGRADE (Subtle Gold) */
.cd-more-tile[data-more-upgrade="1"],
#cdMoreGrid .cd-more-tile:nth-child(1) {
  --tile-border: rgba(245, 158, 11, 0.28);
  --tile-bg-top: #211910;
  --tile-bg-bot: #120e09;
  --tile-text: #fef3c7;
  --tile-shadow: rgba(245, 158, 11, 0.1);
  --ico-top: #d97706;
  --ico-bot: #92400e;
  --ico-col: #fffbeb;
  --ico-glow: rgba(217, 119, 6, 0.25);
}

/* 2. ORDERS (Soft Cyan) */
.cd-more-tile[data-more="orders"],
#cdMoreGrid .cd-more-tile:nth-child(2) {
  --tile-border: rgba(6, 182, 212, 0.26);
  --tile-bg-top: #0c1c24;
  --tile-bg-bot: #071015;
  --tile-text: #cffafe;
  --tile-shadow: rgba(6, 182, 212, 0.1);
  --ico-top: #0891b2;
  --ico-bot: #0e7490;
  --ico-col: #ecfeff;
  --ico-glow: rgba(8, 145, 178, 0.25);
}

/* 3. COIN DETAIL (Soft Royal Blue) */
.cd-more-tile[data-more="coin"],
#cdMoreGrid .cd-more-tile:nth-child(3) {
  --tile-border: rgba(59, 130, 246, 0.26);
  --tile-bg-top: #0f182f;
  --tile-bg-bot: #090e1c;
  --tile-text: #dbeafe;
  --tile-shadow: rgba(59, 130, 246, 0.1);
  --ico-top: #2563eb;
  --ico-bot: #1d4ed8;
  --ico-col: #eff6ff;
  --ico-glow: rgba(37, 99, 235, 0.25);
}

/* 4. HEATMAP (Soft Emerald) */
.cd-more-tile[data-more="heatmap"],
#cdMoreGrid .cd-more-tile:nth-child(4) {
  --tile-border: rgba(16, 185, 129, 0.26);
  --tile-bg-top: #0b2019;
  --tile-bg-bot: #06130e;
  --tile-text: #d1fae5;
  --tile-shadow: rgba(16, 185, 129, 0.1);
  --ico-top: #059669;
  --ico-bot: #047857;
  --ico-col: #ecfdf5;
  --ico-glow: rgba(5, 150, 105, 0.25);
}

/* 5. ALERTS (Soft Rose) */
.cd-more-tile[data-more="alerts"],
#cdMoreGrid .cd-more-tile:nth-child(5) {
  --tile-border: rgba(244, 63, 94, 0.26);
  --tile-bg-top: #231117;
  --tile-bg-bot: #14080d;
  --tile-text: #ffe4e6;
  --tile-shadow: rgba(244, 63, 94, 0.1);
  --ico-top: #e11d48;
  --ico-bot: #be123c;
  --ico-col: #fff1f2;
  --ico-glow: rgba(225, 29, 72, 0.25);
}

/* 6. TECHNICAL SOON (Soft Violet) */
.cd-more-tile[data-more="technical"],
#cdMoreGrid .cd-more-tile:nth-child(6) {
  --tile-border: rgba(139, 92, 246, 0.26);
  --tile-bg-top: #1b122e;
  --tile-bg-bot: #100a1c;
  --tile-text: #ede9fe;
  --tile-shadow: rgba(139, 92, 246, 0.1);
  --ico-top: #7c3aed;
  --ico-bot: #6d28d9;
  --ico-col: #f5f3ff;
  --ico-glow: rgba(124, 58, 237, 0.25);
}

/* 7. RRG (Soft Magenta) */
.cd-more-tile[data-more="rrg"],
#cdMoreGrid .cd-more-tile:nth-child(7) {
  --tile-border: rgba(217, 70, 239, 0.26);
  --tile-bg-top: #220f24;
  --tile-bg-bot: #140815;
  --tile-text: #fae8ff;
  --tile-shadow: rgba(217, 70, 239, 0.1);
  --ico-top: #c026d3;
  --ico-bot: #a21caf;
  --ico-col: #fdf4ff;
  --ico-glow: rgba(192, 38, 211, 0.25);
}

/* 8. NEWS (Soft Teal) */
.cd-more-tile[data-more="news"],
#cdMoreGrid .cd-more-tile:nth-child(8) {
  --tile-border: rgba(20, 184, 166, 0.26);
  --tile-bg-top: #0b1f1e;
  --tile-bg-bot: #061312;
  --tile-text: #ccfbf1;
  --tile-shadow: rgba(20, 184, 166, 0.1);
  --ico-top: #0d9488;
  --ico-bot: #0f766e;
  --ico-col: #f0fdfa;
  --ico-glow: rgba(13, 148, 136, 0.25);
}

/* 9. TOOLS (Soft Warm Amber) */
.cd-more-tile[data-more="tools"],
#cdMoreGrid .cd-more-tile:nth-child(9) {
  --tile-border: rgba(249, 115, 22, 0.26);
  --tile-bg-top: #221409;
  --tile-bg-bot: #130a04;
  --tile-text: #ffedd5;
  --tile-shadow: rgba(249, 115, 22, 0.1);
  --ico-top: #ea580c;
  --ico-bot: #c2410c;
  --ico-col: #fff7ed;
  --ico-glow: rgba(234, 88, 12, 0.25);
}

/* 10. SETTINGS (Soft Slate Indigo) */
.cd-more-tile[data-more-settings="1"],
#cdMoreGrid .cd-more-tile:nth-child(10) {
  --tile-border: rgba(99, 102, 241, 0.26);
  --tile-bg-top: #11152a;
  --tile-bg-bot: #090c19;
  --tile-text: #e0e7ff;
  --tile-shadow: rgba(99, 102, 241, 0.1);
  --ico-top: #4f46e5;
  --ico-bot: #3730a3;
  --ico-col: #eef2ff;
  --ico-glow: rgba(79, 70, 229, 0.25);
}

/* ================= Home Quick Shortcuts Dock ================= */
.cd-shortcuts-dock {
  margin: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(23, 20, 38, 0.75) 0%, rgba(14, 12, 24, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}
.cd-shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cd-shortcuts-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}
.cd-shortcuts-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  letter-spacing: 0.04em;
}
.cd-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cd-shortcut-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px 8px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 64px;
}
.cd-shortcut-btn:active {
  transform: scale(0.96);
}
.cd-shortcut-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  margin-bottom: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cd-shortcut-main {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.cd-shortcut-btn.is-futures {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14) 0%, rgba(30, 20, 10, 0.5) 100%);
  border-color: rgba(245, 158, 11, 0.45);
}
.cd-shortcut-btn.is-futures .cd-shortcut-tag {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}
.cd-shortcut-btn.is-heatmap {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14) 0%, rgba(10, 30, 22, 0.5) 100%);
  border-color: rgba(16, 185, 129, 0.45);
}
.cd-shortcut-btn.is-heatmap .cd-shortcut-tag {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
}
.cd-shortcut-btn.is-scanner {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.14) 0%, rgba(10, 25, 40, 0.5) 100%);
  border-color: rgba(56, 189, 248, 0.45);
}
.cd-shortcut-btn.is-scanner .cd-shortcut-tag {
  background: rgba(56, 189, 248, 0.22);
  color: #38bdf8;
}
.cd-shortcut-btn.is-alerts {
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.14) 0%, rgba(28, 16, 42, 0.5) 100%);
  border-color: rgba(168, 85, 247, 0.45);
}
.cd-shortcut-btn.is-alerts .cd-shortcut-tag {
  background: rgba(168, 85, 247, 0.22);
  color: #c084fc;
}

/* ================= Crypto Market Mood & Sentiment Card ================= */
.cd-sentiment-card {
  margin: 0;
  padding: 16px;
  background: linear-gradient(135deg, rgba(26, 21, 46, 0.85) 0%, rgba(17, 14, 30, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
/* Top colorful line removed */
.cd-sentiment-card::before {
  display: none !important;
  content: none !important;
}
.cd-sentiment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cd-sentiment-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cd-sentiment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}
.cd-sentiment-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.cd-sentiment-live-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  letter-spacing: 0.04em;
}
.cd-sentiment-body {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cd-sentiment-score-col {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 90px;
}
.cd-sentiment-score {
  font-family: var(--cd-num-font, "Sora", sans-serif);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  color: #10b981;
}
.cd-sentiment-label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cd-sentiment-label.is-extreme-bull { color: #10b981; }
.cd-sentiment-label.is-bull { color: #34d399; }
.cd-sentiment-label.is-neutral { color: #f59e0b; }
.cd-sentiment-label.is-bear { color: #f87171; }
.cd-sentiment-label.is-extreme-bear { color: #ef4444; }

.cd-sentiment-meter-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cd-sentiment-meter-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cd-sentiment-meter-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #ef4444 0%, #eab308 50%, #10b981 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.cd-sentiment-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
}
.cd-sentiment-meter-labels .is-fear { color: #ef4444; }
.cd-sentiment-meter-labels .is-neutral { color: #94a3b8; }
.cd-sentiment-meter-labels .is-greed { color: #10b981; }

.cd-sentiment-footer {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.cd-sentiment-desc {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}
.cd-breadth-summary {
  font-size: 11.5px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .cd-shortcuts-grid {
    gap: 6px;
  }
  .cd-shortcut-btn {
    padding: 8px 2px 7px;
    min-height: 58px;
  }
  .cd-shortcut-main {
    font-size: 10.5px;
  }
  .cd-shortcut-tag {
    font-size: 8px;
    padding: 2px 4px;
  }
  .cd-sentiment-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cd-sentiment-meter-col {
    width: 100%;
  }
}


/* ==========================================================================
   Comprehensive Light Theme Overrides (markets.css)
   ========================================================================== */

/* 1. Home Quick Shortcuts Dock & Buttons */
body[data-theme="light"] .cd-shortcuts-dock {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}
body[data-theme="light"] .cd-shortcuts-title {
  color: #64748b !important;
}
body[data-theme="light"] .cd-shortcut-main {
  color: #0f172a !important;
}
body[data-theme="light"] .cd-shortcut-btn.is-futures {
  background: #fffbeb !important;
  border-color: #fde68a !important;
}
body[data-theme="light"] .cd-shortcut-btn.is-futures .cd-shortcut-tag {
  background: #fef3c7 !important;
  color: #b45309 !important;
}
body[data-theme="light"] .cd-shortcut-btn.is-heatmap {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}
body[data-theme="light"] .cd-shortcut-btn.is-heatmap .cd-shortcut-tag {
  background: #d1fae5 !important;
  color: #047857 !important;
}
body[data-theme="light"] .cd-shortcut-btn.is-scanner {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
}
body[data-theme="light"] .cd-shortcut-btn.is-scanner .cd-shortcut-tag {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}
body[data-theme="light"] .cd-shortcut-btn.is-alerts {
  background: #faf5ff !important;
  border-color: #e9d5ff !important;
}
body[data-theme="light"] .cd-shortcut-btn.is-alerts .cd-shortcut-tag {
  background: #f3e8ff !important;
  color: #7e22ce !important;
}

/* 2. Home Crypto Market Mood Card */
body[data-theme="light"] .cd-sentiment-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
body[data-theme="light"] .cd-sentiment-header h3 {
  color: #0f172a !important;
}
body[data-theme="light"] .cd-sentiment-bar-track {
  background: #e2e8f0 !important;
}
body[data-theme="light"] .cd-sentiment-scale-col,
body[data-theme="light"] .cd-sentiment-scale {
  color: #64748b !important;
}
body[data-theme="light"] .cd-sentiment-stats {
  color: #475569 !important;
}
body[data-theme="light"] .cd-sentiment-coin-counts {
  color: #475569 !important;
}
body[data-theme="light"] .cd-sentiment-live-badge {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}

/* 3. More Menu Grid - Vibrant Pastel Cards in Light Theme */
body[data-theme="light"] #cdMoreGrid .cd-more-tile {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}
body[data-theme="light"] .cd-more-tile[data-more-upgrade="1"],
body[data-theme="light"] #cdMoreGrid .cd-more-tile:nth-child(1) {
  --tile-border: #fde68a !important;
  --tile-bg-top: #fffbeb !important;
  --tile-bg-bot: #fef3c7 !important;
  --tile-text: #92400e !important;
  --tile-shadow: rgba(245, 158, 11, 0.08) !important;
  --ico-glow: rgba(217, 119, 6, 0.15) !important;
}
body[data-theme="light"] .cd-more-tile[data-more="orders"],
body[data-theme="light"] #cdMoreGrid .cd-more-tile:nth-child(2) {
  --tile-border: #a5f3fc !important;
  --tile-bg-top: #ecfeff !important;
  --tile-bg-bot: #cffafe !important;
  --tile-text: #0e7490 !important;
  --tile-shadow: rgba(6, 182, 212, 0.08) !important;
  --ico-glow: rgba(8, 145, 178, 0.15) !important;
}
body[data-theme="light"] .cd-more-tile[data-more="coin"],
body[data-theme="light"] #cdMoreGrid .cd-more-tile:nth-child(3) {
  --tile-border: #bfdbfe !important;
  --tile-bg-top: #eff6ff !important;
  --tile-bg-bot: #dbeafe !important;
  --tile-text: #1d4ed8 !important;
  --tile-shadow: rgba(59, 130, 246, 0.08) !important;
  --ico-glow: rgba(37, 99, 235, 0.15) !important;
}
body[data-theme="light"] .cd-more-tile[data-more="heatmap"],
body[data-theme="light"] #cdMoreGrid .cd-more-tile:nth-child(4) {
  --tile-border: #a7f3d0 !important;
  --tile-bg-top: #f0fdf4 !important;
  --tile-bg-bot: #dcfce7 !important;
  --tile-text: #047857 !important;
  --tile-shadow: rgba(16, 185, 129, 0.08) !important;
  --ico-glow: rgba(5, 150, 105, 0.15) !important;
}
body[data-theme="light"] .cd-more-tile[data-more="alerts"],
body[data-theme="light"] #cdMoreGrid .cd-more-tile:nth-child(5) {
  --tile-border: #fecdd3 !important;
  --tile-bg-top: #fff1f2 !important;
  --tile-bg-bot: #ffe4e6 !important;
  --tile-text: #be123c !important;
  --tile-shadow: rgba(244, 63, 94, 0.08) !important;
  --ico-glow: rgba(225, 29, 72, 0.15) !important;
}
body[data-theme="light"] .cd-more-tile[data-more="technical"],
body[data-theme="light"] #cdMoreGrid .cd-more-tile:nth-child(6) {
  --tile-border: #ddd6fe !important;
  --tile-bg-top: #f5f3ff !important;
  --tile-bg-bot: #ede9fe !important;
  --tile-text: #6d28d9 !important;
  --tile-shadow: rgba(139, 92, 246, 0.08) !important;
  --ico-glow: rgba(124, 58, 237, 0.15) !important;
}
body[data-theme="light"] .cd-more-tile[data-more="rrg"],
body[data-theme="light"] #cdMoreGrid .cd-more-tile:nth-child(7) {
  --tile-border: #f5d0fe !important;
  --tile-bg-top: #fdf4ff !important;
  --tile-bg-bot: #fae8ff !important;
  --tile-text: #a21caf !important;
  --tile-shadow: rgba(217, 70, 239, 0.08) !important;
  --ico-glow: rgba(192, 38, 211, 0.15) !important;
}
body[data-theme="light"] .cd-more-tile[data-more="news"],
body[data-theme="light"] #cdMoreGrid .cd-more-tile:nth-child(8) {
  --tile-border: #99f6e4 !important;
  --tile-bg-top: #f0fdfa !important;
  --tile-bg-bot: #ccfbf1 !important;
  --tile-text: #0f766e !important;
  --tile-shadow: rgba(20, 184, 166, 0.08) !important;
  --ico-glow: rgba(13, 148, 136, 0.15) !important;
}
body[data-theme="light"] .cd-more-tile[data-more="tools"],
body[data-theme="light"] #cdMoreGrid .cd-more-tile:nth-child(9) {
  --tile-border: #fed7aa !important;
  --tile-bg-top: #fff7ed !important;
  --tile-bg-bot: #ffedd5 !important;
  --tile-text: #c2410c !important;
  --tile-shadow: rgba(249, 115, 22, 0.08) !important;
  --ico-glow: rgba(234, 88, 12, 0.15) !important;
}
body[data-theme="light"] .cd-more-tile[data-more-settings="1"],
body[data-theme="light"] #cdMoreGrid .cd-more-tile:nth-child(10) {
  --tile-border: #c7d2fe !important;
  --tile-bg-top: #eef2ff !important;
  --tile-bg-bot: #e0e7ff !important;
  --tile-text: #3730a3 !important;
  --tile-shadow: rgba(99, 102, 241, 0.08) !important;
  --ico-glow: rgba(79, 70, 229, 0.15) !important;
}

/* 4. Positions Tab Cards & Elements */
body[data-theme="light"] .cd-pos-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
body[data-theme="light"] .cd-pos-name strong {
  color: #0f172a !important;
}
body[data-theme="light"] .cd-pos-grid strong {
  color: #0f172a !important;
}
body[data-theme="light"] .cd-pos-grid span {
  color: #64748b !important;
}
body[data-theme="light"] .cd-pos-close {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}
body[data-theme="light"] .cd-pos-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
body[data-theme="light"] .cd-pos-foot {
  border-top-color: #e2e8f0 !important;
}
body[data-theme="light"] .cd-pos-foot span {
  color: #64748b !important;
}

/* 5. Order Ticket (Futures Trade Dialog) */
body[data-theme="light"] #cdTicket .cd-ticket {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12) !important;
}
body[data-theme="light"] #cdTicketTitle {
  color: #0f172a !important;
}
body[data-theme="light"] #cdTicketPrice {
  color: #0f172a !important;
}
body[data-theme="light"] .cd-side-btn {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  color: #475569 !important;
}
body[data-theme="light"] .cd-select-ctrl {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
body[data-theme="light"] .cd-type-pills {
  background: #f1f5f9 !important;
}
body[data-theme="light"] .cd-type-pill {
  color: #64748b !important;
}
body[data-theme="light"] .cd-type-pill.is-active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}
body[data-theme="light"] .cd-input-with-unit input {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
body[data-theme="light"] .cd-pct-buttons button {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}
body[data-theme="light"] .cd-ticket-summary {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
body[data-theme="light"] .cd-summary-row {
  color: #64748b !important;
}
body[data-theme="light"] .cd-summary-row strong {
  color: #0f172a !important;
}
body[data-theme="light"] .cd-ctrl-group label,
body[data-theme="light"] .cd-input-label {
  color: #64748b !important;
}
body[data-theme="light"] .cd-ticket-overlay .cd-sheet-handle {
  background: #cbd5e1 !important;
}

/* 6. Coin Sheet & Stats Modal */
body[data-theme="light"] .cd-sheet {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}
body[data-theme="light"] #cdSheetPrice {
  color: #0f172a !important;
}
body[data-theme="light"] .cd-sheet-stats div {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
body[data-theme="light"] .cd-sheet-stats span {
  color: #64748b !important;
}
body[data-theme="light"] .cd-sheet-stats strong {
  color: #0f172a !important;
}
body[data-theme="light"] .cd-sheet-actions .cd-pill {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}
body[data-theme="light"] .cd-sheet-actions .cd-pill.is-active {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}
body[data-theme="light"] .cd-sheet-handle {
  background: #cbd5e1 !important;
}


/* Market Mood Track & Light Elements V2 */
/* Mood Bar track: dark mode visibility */
.cd-sentiment-meter-bar {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
/* Mood Bar track: light mode visibility so entire 0-100 line is visible */
body[data-theme="light"] .cd-sentiment-meter-bar {
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}
body[data-theme="light"] .cd-sentiment-meter-labels .is-neutral {
  color: #475569 !important;
}

/* Home Hero Banner Light Theme */
body[data-theme="light"] .cd-hero {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e0e7ff 100%) !important;
  border: 1px solid #c7d2fe !important;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.08) !important;
}
body[data-theme="light"] .cd-hero h2 {
  color: #1e1b4b !important;
}
body[data-theme="light"] .cd-hero p {
  color: #4338ca !important;
}

/* TradingView / Educational Disclaimer Card */
body[data-theme="light"] .disclaimer-card {
  background: #fefce8 !important;
  border: 1px solid #fef08a !important;
}
body[data-theme="light"] .disclaimer-card p,
body[data-theme="light"] .disclaimer-card span,
body[data-theme="light"] .disclaimer-card .tv-attribution {
  color: #92400e !important;
}
body[data-theme="light"] .disclaimer-card a {
  color: #0284c7 !important;
  text-decoration: underline !important;
}

/* Arrow in front of BULLISH / BEARISH at 70+ / 30-: follows what the price is doing right now */
.cd-mom-arrow {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  margin-right: -1px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
}
.cd-mom-arrow.is-up { color: #86efac; }
.cd-mom-arrow.is-down { color: #fca5a5; }
.cd-mom-pill.is-neutral .cd-mom-arrow.is-up { color: #4ade80; }
.cd-mom-pill.is-neutral .cd-mom-arrow.is-down { color: #f87171; }
body[data-theme="light"] .cd-table .cd-mom-pill.is-bull .cd-mom-arrow.is-down,
body[data-theme="light"] .cd-table .cd-mom-pill.is-bear .cd-mom-arrow.is-up { text-shadow: none; }


/* ============================================================
   Unified Soft Card Background Tints (Dark & Daylight Themes)
   ============================================================ */

/* --- DARK THEME TINTS --- */
.cd-ticker-card,
body:not([data-theme="light"]) .cd-ticker-card {
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.65) 0%, rgba(15, 23, 42, 0.82) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

.cd-shortcuts-dock,
body:not([data-theme="light"]) .cd-shortcuts-dock {
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.65) 0%, rgba(15, 23, 42, 0.82) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

.cd-sentiment-card,
body:not([data-theme="light"]) .cd-sentiment-card {
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.65) 0%, rgba(15, 23, 42, 0.82) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

.cd-feature,
body:not([data-theme="light"]) .cd-feature {
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.82) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

.cd-panel,
body:not([data-theme="light"]) .cd-panel {
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.82) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

/* Gainers (Soft Green) & Losers (Soft Red) in Dark Theme */
.cd-mover-panel.is-up,
body:not([data-theme="light"]) .cd-mover-panel.is-up {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.18) 0%, rgba(15, 23, 42, 0.85) 75%) !important;
  border: 1.5px solid #10b981 !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.22), 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

.cd-mover-panel.is-down,
body:not([data-theme="light"]) .cd-mover-panel.is-down {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.18) 0%, rgba(15, 23, 42, 0.85) 75%) !important;
  border: 1.5px solid #ef4444 !important;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.22), 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

/* Mini coins inside panel (Dark) */
body:not([data-theme="light"]) .cd-mini-coin {
  background: rgba(30, 27, 75, 0.5) !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
}
body:not([data-theme="light"]) .cd-mini-coin.is-up {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16) 0%, rgba(20, 17, 34, 0.85) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}
body:not([data-theme="light"]) .cd-mini-coin.is-down {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.16) 0%, rgba(20, 17, 34, 0.85) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

/* --- DAY LIGHT (LIGHT THEME) SOFT TINTS --- */
body[data-theme="light"] .cd-hero {
  background: radial-gradient(120% 140% at 100% 100%, rgba(16, 185, 129, 0.12), transparent 55%),
              radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, 0.18), transparent 60%),
              linear-gradient(135deg, #ede9fe 0%, #f5f3ff 50%, #e0e7ff 100%) !important;
  border: 1px solid #c7d2fe !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.1) !important;
}
body[data-theme="light"] .cd-hero h2 { color: #1e1b4b !important; }
body[data-theme="light"] .cd-hero p { color: #4338ca !important; }

body[data-theme="light"] .cd-ticker-card {
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%) !important;
  border: 1px solid #c7d2fe !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08) !important;
}

body[data-theme="light"] .cd-shortcuts-dock {
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%) !important;
  border: 1px solid #c7d2fe !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08) !important;
}
body[data-theme="light"] .cd-shortcuts-dock .cd-shortcut-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #cbd5e1 !important;
}

body[data-theme="light"] .cd-sentiment-card {
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%) !important;
  border: 1px solid #e9d5ff !important;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.08) !important;
}

body[data-theme="light"] .cd-feature {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%) !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08) !important;
}

/* Gainers (Soft Green) & Losers (Soft Red) in Light Theme */
body[data-theme="light"] .cd-mover-panel.is-up {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 75%) !important;
  border: 1.5px solid #10b981 !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.18) !important;
}

body[data-theme="light"] .cd-mover-panel.is-down {
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 75%) !important;
  border: 1.5px solid #ef4444 !important;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.18) !important;
}

body[data-theme="light"] .cd-panel {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08) !important;
}

/* Mini coins inside panel (Light) */
body[data-theme="light"] .cd-mini-coin {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
body[data-theme="light"] .cd-mini-coin.is-up {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%) !important;
  border: 1px solid #bbf7d0 !important;
}
body[data-theme="light"] .cd-mini-coin.is-down {
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%) !important;
  border: 1px solid #fecaca !important;
}


/* ===== GAINERS & LOSERS SUBTLE BORDER TINT ===== */
.top-gainers-card,
[data-card="gainers"],
.gainers-card,
#topGainersCard {
    border: 1px solid rgba(34, 197, 94, 0.28) !important;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.05) !important;
}

.top-losers-card,
[data-card="losers"],
.losers-card,
#topLosersCard {
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.05) !important;
}

[data-theme="light"] .top-gainers-card,
[data-theme="light"] [data-card="gainers"],
[data-theme="light"] .gainers-card,
[data-theme="light"] #topGainersCard {
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.08) !important;
}

[data-theme="light"] .top-losers-card,
[data-theme="light"] [data-card="losers"],
[data-theme="light"] .losers-card,
[data-theme="light"] #topLosersCard {
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.08) !important;
}

/* Softer Gainers/Losers borders: keep existing green/red card backgrounds */
.cd-mover-panel.is-up {
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  box-shadow: none !important;
}
.cd-mover-panel.is-down {
  border: 1px solid rgba(239, 68, 68, 0.22) !important;
  box-shadow: none !important;
}
body[data-theme="light"] .cd-mover-panel.is-up {
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  box-shadow: none !important;
}
body[data-theme="light"] .cd-mover-panel.is-down {
  border: 1px solid rgba(239, 68, 68, 0.22) !important;
  box-shadow: none !important;
}

/* Restore a soft green/red shadow while keeping the border thin */
.cd-mover-panel.is-up {
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.08) !important;
}
.cd-mover-panel.is-down {
  border: 1px solid rgba(239, 68, 68, 0.22) !important;
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.08) !important;
}


/* ===== DAY LIGHT THEME: RESTORE FULL CARD DEPTH & SHADOWS ===== */
body[data-theme="light"] .cd-ticker-card,
body[data-theme="light"] .cd-hero,
body[data-theme="light"] .cd-shortcuts-dock,
body[data-theme="light"] .cd-sentiment-card,
body[data-theme="light"] .cd-feature,
body[data-theme="light"] .cd-mover-panel,
body[data-theme="light"] .cd-panel,
body[data-theme="light"] .card,
body[data-theme="light"] .cd-table-card,
body[data-theme="light"] .cd-pos-card,
body[data-theme="light"] .cd-set-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

/* Individual coin boxes inside Forex, Commodity, Crypto Market */
body[data-theme="light"] .cd-mini-coin {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

/* Gainers (Soft Green) & Losers (Soft Red) with matching subtle shadows */
body[data-theme="light"] .cd-mover-panel.is-up {
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}
body[data-theme="light"] .cd-mover-panel.is-down {
  border: 1px solid rgba(239, 68, 68, 0.28) !important;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

/* Orders > Trades: Entry / Exit boxes in the light theme (they stayed near-black) */
body[data-theme="light"] .cd-trade-legs > div {
  background: #f1f5f9;
  border: 1px solid #dbe3ee;
  box-shadow: none;
}
body[data-theme="light"] .cd-trade-legs > div:first-child { background: #eef4ff; border-color: #cfdcf5; }
body[data-theme="light"] .cd-trade-legs span { color: #64748b; }
body[data-theme="light"] .cd-trade-legs strong { color: #0f172a; }
body[data-theme="light"] .cd-trade-legs small { color: #64748b; }
body[data-theme="light"] .cd-trade-status { background: #e8edf5; color: #475569; }
body[data-theme="light"] .cd-trade-status.is-running { background: #dbeafe; color: #1d4ed8; }
body[data-theme="light"] .cd-trade-status.is-liq { background: #fee2e2; color: #b91c1c; }
body[data-theme="light"] .cd-pos-grid span,
body[data-theme="light"] .cd-pos-foot span { color: #64748b; }
body[data-theme="light"] .cd-pos-grid strong { color: #0f172a; }
body[data-theme="light"] .cd-pos-grid strong.cd-pos-liq { color: #b45309; }
body[data-theme="light"] .cd-pos-foot { border-top-color: #e2e8f0; }
body[data-theme="light"] .cd-pos-foot b.is-up { color: #059669; }
body[data-theme="light"] .cd-pos-foot b.is-down { color: #dc2626; }
/* Midnight keeps a dark box, but in its own indigo instead of near-black */
body[data-theme="midnight"] .cd-trade-legs > div { background: #0a1030; border-color: rgba(99, 102, 241, 0.28); }


/* ================= Margin mode (Cross / Isolated) ================= */
.cd-dash-head { gap: 10px; }
.cd-mm-open {
  display: inline-flex; align-items: center; gap: 4px; margin-left: auto; align-self: center;
  padding: 6px 10px 6px 12px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--text); background: var(--surface-soft); border: 1px solid var(--border); cursor: pointer;
}
.cd-mm-open svg { opacity: 0.8; }
.cd-mm-inline { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--cd-accent, #38bdf8); cursor: pointer; }
.cd-pos-mode {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; white-space: nowrap;
  background: rgba(148, 163, 184, 0.16); color: #94a3b8;
}
.cd-mm { max-height: 92vh; overflow-y: auto; }
.cd-mm-summary { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); margin: 4px 0 14px; }
.cd-mm-summary > div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 14px; }
.cd-mm-summary > div + div { border-top: 1px solid var(--border); }
.cd-mm-summary span { color: var(--muted); }
.cd-mm-title { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.cd-mm-card {
  display: block; width: 100%; text-align: left; margin: 0 0 10px; padding: 14px; border-radius: 12px; cursor: pointer;
  font: inherit; color: var(--text); background: var(--surface-soft); border: 1.5px solid var(--border);
}
.cd-mm-card.is-selected { border-color: var(--cd-accent, #38bdf8); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12); }
.cd-mm-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.cd-mm-head strong { font-size: 17px; }
.cd-mm-current { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; color: var(--cd-accent, #38bdf8); border: 1px solid currentColor; }
.cd-mm-radio { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); box-sizing: border-box; position: relative; }
.cd-mm-card.is-selected .cd-mm-radio { border-color: var(--cd-accent, #38bdf8); background: var(--cd-accent, #38bdf8); }
.cd-mm-card.is-selected .cd-mm-radio::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cd-mm-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cd-mm-card li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.35; }
.cd-mm-card li::before { content: "✓"; position: absolute; left: 2px; top: 0; font-weight: 800; color: #10b981; }
.cd-mm-card li.is-warn::before { content: "!"; color: #f59e0b; left: 6px; }
.cd-mm-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: #b45309; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); }
.cd-mm-dismiss { width: 100%; padding: 12px; border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; color: var(--cd-accent, #38bdf8); background: transparent; border: 1.5px solid var(--cd-accent, #38bdf8); }
body[data-theme="light"] .cd-pos-mode { background: #e2e8f0; color: #475569; }
body[data-theme="light"] .cd-mm-card { background: #f8fafc; }
body[data-theme="light"] .cd-mm-summary { background: #f8fafc; }
body[data-theme="light"] .cd-mm-open { background: #eef2f7; }

/* Owner card: new-vs-old momentum check */
.cd-mom-check { margin: 10px 0 0; font-size: 0.7rem; line-height: 1.45; color: #94a3b8; }
body[data-theme="light"] .cd-mom-check { color: #64748b; }

/* ================= Home extras (home.js) and the Positions "My Account" card ================= */
.cd-hx .cd-panel-head { margin-bottom: 8px; }
.cd-hx-mood { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.cd-hx-dial { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font: 800 20px var(--cd-num-font, monospace); border: 5px solid var(--muted); background: var(--surface-soft); }
.cd-hx-dial.is-up { border-color: var(--green, #10b981); }
.cd-hx-dial.is-down { border-color: var(--red, #ef4444); }
.cd-hx-mood strong { display: block; font-size: 15px; }
.cd-hx-mood strong.is-up { color: var(--green, #10b981); }
.cd-hx-mood strong.is-down { color: var(--red, #ef4444); }
.cd-hx-mood span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cd-hx-empty { padding: 6px 0; line-height: 1.45; }
.cd-hx-newsrow { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.cd-hx-newsrow:first-child { border-top: 0; padding-top: 0; }
.cd-hx-newstext b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.35; }
.cd-hx-newstext small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.cd-hx-thumb { position: relative; width: 72px; height: 54px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #312e81, #0f172a 60%, #134e4a); align-self: center; }
.cd-hx-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd-hx-alert { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 13px; }
.cd-hx-alert:first-child { border-top: 0; padding-top: 0; }
.cd-hx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cd-hx-stats > p { grid-column: 1 / -1; margin: 0; }
.cd-hx-stat { background: var(--surface-soft); border-radius: 12px; padding: 10px; min-width: 0; }
.cd-hx-stat b { display: block; font: 700 16px var(--cd-num-font, monospace); }
.cd-hx-stat span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); line-height: 1.3; }

.cd-acct-card { padding: 14px; margin-bottom: 12px; }
.cd-acct-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.cd-acct-r { text-align: right; }
.cd-acct-lbl { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cd-acct-big { display: block; font: 700 24px var(--cd-num-font, monospace); line-height: 1.15; }
.cd-acct-spark { width: 100%; height: 44px; display: block; margin: 10px 0 8px; }
.cd-acct-spark .is-up { stroke: var(--green, #10b981); fill: none; }
.cd-acct-spark circle.is-up { fill: var(--green, #10b981); stroke: none; }
.cd-acct-spark .is-down { stroke: var(--red, #ef4444); fill: none; }
.cd-acct-spark circle.is-down { fill: var(--red, #ef4444); stroke: none; }
.cd-acct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-acct-chip { font-weight: 700; font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); border: 0; }
.cd-acct-btn { cursor: pointer; color: var(--text); font-family: inherit; }

/* Top setups today: swipeable cards with a score ring */
.cd-hx-cards { list-style: none; margin: 0; padding: 2px 0 4px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cd-hx-cards::-webkit-scrollbar { display: none; }
.cd-hx-cards .cd-hx-empty { flex: 1 1 auto; }
.cd-hx-card { flex: 0 0 136px; scroll-snap-align: start; border-radius: 16px; padding: 12px; cursor: pointer; text-align: center; border: 1px solid color-mix(in srgb, var(--green, #10b981) 28%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, #8b5cf6 9%, var(--surface-soft)), color-mix(in srgb, var(--green, #10b981) 9%, var(--surface-soft))); }
.cd-hx-card.is-down { border-color: color-mix(in srgb, var(--red, #ef4444) 28%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, #8b5cf6 9%, var(--surface-soft)), color-mix(in srgb, var(--red, #ef4444) 9%, var(--surface-soft))); }
.cd-hx-card-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cd-hx-ring { --c: var(--green, #10b981); width: 56px; height: 56px; border-radius: 50%; margin: 10px auto 8px; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--s) * 1%), color-mix(in srgb, var(--muted) 25%, transparent) 0); }
.cd-hx-card.is-down .cd-hx-ring { --c: var(--red, #ef4444); }
.cd-hx-ring i { font-style: normal; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface, #fff); font: 800 17px var(--cd-num-font, system-ui); }
.cd-hx-card-price { font-weight: 700; font-size: 14px; }
.cd-hx-card-chg { font-size: 11px; margin-top: 2px; }
.cd-hx-arrow { font-style: normal; font-size: 11px; margin-right: 4px; vertical-align: 1px; }
.cd-hx-arrow.is-up { color: var(--green, #10b981); }
.cd-hx-arrow.is-down { color: var(--red, #ef4444); }

/* Home card logos: line icon on a soft tint of its own colour */
.cd-ico { width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto;
  background: color-mix(in srgb, var(--ic) 18%, transparent) !important;
  color: color-mix(in srgb, var(--ic) 78%, #ffffff) !important; }
.cd-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
body[data-theme="light"] .cd-ico { background: color-mix(in srgb, var(--ic) 13%, #ffffff) !important; color: var(--ic) !important; }

#cdStats .cd-stats-trade { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 0; padding: 0; border-top: 0; background: none; }
#cdStats .cd-stats-trade .cd-submit { padding: 10px; font-size: 14px; }

/* Long / Short mood card */
.cd-fx-pills { margin-left: auto; }
.cd-fx-pills .cd-pill { padding: 4px 12px; font-size: 12px; }
.cd-fx-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--surface-soft); }
.cd-fx-bar i { display: block; height: 100%; }
.cd-fx-bar .is-long { background: var(--green, #10b981); }
.cd-fx-bar .is-short { background: var(--red, #ef4444); }
.cd-fx-split { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; font-weight: 800; }
.cd-fx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cd-fx-stats div { padding: 9px 6px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--border); text-align: center; }
.cd-fx-stats span { display: block; font-size: 11px; color: var(--muted); }
.cd-fx-stats b { display: block; margin-top: 2px; font-size: 13.5px; }
.cd-fx-note { margin: 10px 0 0; font-size: 11px; line-height: 1.45; }
/* Ticket: optional stop-loss and target */
.cd-sltp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-sltp-row .cd-input-group { margin-bottom: 6px; min-width: 0; }
.cd-level-hint { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; line-height: 1.4; }
.cd-level-hint[hidden] { display: none; }
/* Ticket: on a short screen the sheet scrolls and the swipe button stays whole at the bottom */
.cd-ticket > * { flex-shrink: 0; }
.cd-ticket > #cdTicketSubmit { position: sticky; bottom: 0; z-index: 3; min-height: 52px; box-shadow: 0 0 0 12px var(--surface); }
.cd-ticket-error { scroll-margin-block: 24px 120px; }



/* ==================== SMART MTF CONFLUENCE ==================== */
#cdSmartMtf {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
#cdSmartMtf .cd-dash {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}
#cdSmartMtf .cd-fr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
#cdSmartMtf .cd-smartmtf-title {
  flex: 1 1 auto;
  min-width: 0;
}
#cdSmartMtf .cd-smartmtf-title strong {
  font-size: 19px;
  line-height: 1.2;
}
#cdSmartMtf .cd-smartmtf-title small {
  display: block;
  font-size: 9px;
  letter-spacing: .06em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted, #94a3b8);
}
#cdSmartMtf .cd-smartmtf-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
}
#cdSmartMtf #cdSmartMtfTgTest.cd-pill {
  font-size: 11px;
  padding: 5px 9px;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--surface-soft, #171325);
  border: 1px solid var(--border, rgba(139, 92, 246, 0.3));
  color: var(--text, #ede9fe);
}
#cdSmartMtf .cd-fr-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 4px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#cdSmartMtf .cd-fr-bar::-webkit-scrollbar { display: none; }
#cdSmartMtf .cd-pills {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
  flex-wrap: nowrap;
}
#cdSmartMtf .cd-pills .cd-pill {
  font-size: 11px;
  padding: 5px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
#cdSmartMtf .cd-fr-meta {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  margin: 4px 0 8px;
}
#cdSmartMtf .cd-fr-summary {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-soft, #171325);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  margin-bottom: 10px;
}
#cdSmartMtf .cd-fr-summary.is-bullish {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), var(--surface-soft, #171325));
}
#cdSmartMtf .cd-fr-summary.is-bearish {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08), var(--surface-soft, #171325));
}
#cdSmartMtf .cd-fr-summary.is-neutral {
  border-color: rgba(148, 163, 184, 0.25);
}
#cdSmartMtf .cd-fr-summary b {
  display: block;
  font-size: 12.5px;
  margin-bottom: 2px;
}
#cdSmartMtf .cd-fr-summary small {
  display: block;
  font-size: 10px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.35;
}
#cdSmartMtf .cd-focus-results {
  display: grid;
  gap: 10px;
  width: 100%;
}
#cdSmartMtf .cd-fr-card {
  --c: var(--green, #10b981);
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--surface-soft)), var(--surface-soft));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 12%, transparent);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
#cdSmartMtf .cd-fr-card.is-bear {
  --c: var(--red, #ef4444);
}
#cdSmartMtf .cd-fr-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
}
#cdSmartMtf .cd-fr-id strong {
  font-size: 15px;
}
#cdSmartMtf .cd-fr-id small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--text-muted, #94a3b8);
}
#cdSmartMtf .cd-fr-px {
  text-align: right;
}
#cdSmartMtf .cd-fr-px b {
  font-size: 13px;
  display: block;
}
#cdSmartMtf .cd-fr-px small {
  font-size: 10px;
}
#cdSmartMtf .cd-fr-star {
  background: none;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted, #94a3b8);
  padding: 4px;
}
#cdSmartMtf .cd-fr-star.is-active {
  color: #fbbf24;
}
#cdSmartMtf .cd-fr-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
#cdSmartMtf .cd-fr-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--c) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  color: var(--text, #fff);
}
#cdSmartMtf .cd-fr-tag {
  font-size: 8.5px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 99px;
  background: var(--surface, #1e1b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-muted, #94a3b8);
}
#cdSmartMtf .cd-fr-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}
#cdSmartMtf .cd-fr-levels > div {
  padding: 5px 2px;
  border-radius: 8px;
  background: var(--surface, #1e1b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  text-align: center;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
#cdSmartMtf .cd-fr-levels span {
  display: block;
  font-size: 7.5px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#cdSmartMtf .cd-fr-levels b {
  display: block;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
#cdSmartMtf .cd-fr-levels em {
  display: block;
  font-size: 8px;
  font-style: normal;
  line-height: 1.15;
}
#cdSmartMtf .cd-fr-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
#cdSmartMtf .cd-fr-step {
  position: relative;
  padding: 4px;
  border-radius: 8px;
  background: var(--surface, #1e1b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  font-size: 8.5px;
}
#cdSmartMtf .cd-fr-step b {
  display: block;
  font-size: 8.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}
#cdSmartMtf .cd-fr-step i {
  position: absolute;
  top: 3px;
  right: 4px;
  font-style: normal;
  font-size: 9px;
}
#cdSmartMtf .cd-fr-step.is-ok i {
  color: var(--c);
}
#cdSmartMtf .cd-fr-step small {
  display: block;
  font-size: 7.5px;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
#cdSmartMtf .cd-fr-ema {
  font-size: 9px;
  line-height: 1.35;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  word-break: break-word;
}
#cdSmartMtf .cd-fr-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
#cdSmartMtf .cd-fr-ticket {
  padding: 8px;
  border: 0;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
#cdSmartMtf .cd-fr-ticket.is-buy {
  background: linear-gradient(180deg, #34d399, #10b981);
  color: #052e1a;
}
#cdSmartMtf .cd-fr-ticket.is-sell {
  background: linear-gradient(180deg, #f87171, #ef4444);
  color: #3b0a0a;
}
#cdSmartMtf .cd-fr-analysis {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--surface, #1e1b2e);
  color: var(--text, #fff);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
#cdSmartMtf .cd-fr-note {
  font-size: 9.5px;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  line-height: 1.4;
  margin-top: 8px;
}
#cdSmartMtf .cd-focus-empty {
  text-align: center;
  padding: 30px 16px;
  border-radius: 14px;
  background: var(--surface-soft, #171325);
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.1));
}
#cdSmartMtf .cd-focus-empty strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
#cdSmartMtf .cd-focus-empty p {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
  margin: 0;
}

/* Smart MTF loading state & skeleton cards */
#cdSmartMtf .cd-smartmtf-state-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: 14px;
  background: var(--surface-soft, #171325);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  margin-bottom: 12px;
  box-sizing: border-box;
}
#cdSmartMtf .cd-smartmtf-state-card.cd-smartmtf-error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}
#cdSmartMtf .cd-smartmtf-icon {
  font-size: 24px;
  margin-bottom: 6px;
}
#cdSmartMtf .cd-smartmtf-state-card strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 5px;
  color: var(--text, #fff);
}
#cdSmartMtf .cd-smartmtf-state-card p {
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.45;
  margin: 0;
}
#cdSmartMtf .cd-smartmtf-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 6px auto;
  border: 3px solid rgba(148, 163, 184, 0.2);
  border-top-color: var(--primary, #38bdf8);
  border-radius: 50%;
  animation: cdSmartMtfSpin 0.8s linear infinite;
}
@keyframes cdSmartMtfSpin {
  to { transform: rotate(360deg); }
}
#cdSmartMtf .cd-fr-card.is-skeleton {
  min-height: 110px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-soft, #171325);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  animation: cdNewsPulse 1.4s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
#cdSmartMtf .cd-skel-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
#cdSmartMtf .cd-skel-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
#cdSmartMtf .cd-skel-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
#cdSmartMtf .cd-skel-w60 {
  display: block;
  width: 50%;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}
#cdSmartMtf .cd-skel-w40 {
  display: block;
  width: 30%;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
}
#cdSmartMtf .cd-skel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
#cdSmartMtf .cd-skel-grid span {
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

/* Smart MTF Circular Refresh Button & Spinning Animation */
.cd-fr-iconbtn,
#cdSmartMtfRefresh {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-muted, #94a3b8) !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: all 0.2s ease !important;
}

.cd-fr-iconbtn:hover,
#cdSmartMtfRefresh:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

.cd-fr-iconbtn:active,
#cdSmartMtfRefresh:active {
  transform: scale(0.92) !important;
}

.cd-fr-iconbtn.is-spinning,
#cdSmartMtfRefresh.is-spinning {
  pointer-events: none !important;
  opacity: 0.95 !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  background: rgba(56, 189, 248, 0.12) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3) !important;
}

.cd-fr-iconbtn svg,
#cdSmartMtfRefresh svg,
.cd-fr-spin {
  display: block !important;
  transform-origin: center center !important;
  transform-box: fill-box !important;
}

.cd-fr-iconbtn.is-spinning svg,
.cd-fr-iconbtn.is-spinning .cd-fr-spin,
#cdSmartMtfRefresh.is-spinning svg,
#cdSmartMtfRefresh.is-spinning .cd-fr-spin {
  animation: cdSmartMtfSpin 0.75s linear infinite !important;
  transform-origin: center center !important;
  transform-box: fill-box !important;
  color: #38bdf8 !important;
}

/* ==========================================================================
   Accuracy Pattern Scanner Styles
   ========================================================================== */
.cd-accuracy-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.cd-badge-pattern {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
}
.cd-badge-vol {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
}
.cd-badge-subtle {
  font-size: 10px;
  color: var(--text-muted, #94a3b8);
}
.cd-badge-timeframe {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  margin-left: 4px;
}
.cd-accuracy-status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.cd-accuracy-summary {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.cd-accuracy-summary p {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}
.cd-accuracy-summary strong {
  color: var(--text, #fff);
}

/* ==========================================================================
   Accuracy Pattern Confluence Card Styles (CryptoDock Native)
   ========================================================================== */
#cdAccuracy .cd-focus-results {
  display: grid;
  gap: 12px;
  width: 100%;
}
#cdAccuracy .cd-fr-card {
  --c: var(--green, #10b981);
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--surface-soft, #171325)), var(--surface-soft, #171325));
  border: 1px solid color-mix(in srgb, var(--c) 42%, transparent);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--c) 12%, transparent);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
#cdAccuracy .cd-fr-card.is-bear {
  --c: var(--red, #ef4444);
}
#cdAccuracy .cd-fr-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
}
#cdAccuracy .cd-fr-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface, #1e1b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  font-size: 14px;
  font-weight: 700;
}
#cdAccuracy .cd-fr-id strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
#cdAccuracy .cd-fr-id strong span {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  font-weight: 400;
}
#cdAccuracy .cd-fr-id small {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--text-muted, #94a3b8);
}
#cdAccuracy .cd-fr-px {
  text-align: right;
}
#cdAccuracy .cd-fr-px b {
  font-size: 14px;
  display: block;
  color: #fff;
}
#cdAccuracy .cd-fr-px small {
  font-size: 10px;
  font-weight: 700;
  display: block;
  margin-top: 2px;
}
#cdAccuracy .cd-fr-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
#cdAccuracy .cd-fr-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--c) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#cdAccuracy .cd-fr-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--surface, #1e1b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-muted, #94a3b8);
}
#cdAccuracy .cd-fr-tag.cd-tag-purple {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #c084fc !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
}
#cdAccuracy .cd-fr-tag.cd-tag-amber {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}
#cdAccuracy .cd-fr-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}
#cdAccuracy .cd-fr-levels > div {
  padding: 6px 3px;
  border-radius: 8px;
  background: var(--surface, #1e1b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  text-align: center;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
#cdAccuracy .cd-fr-levels span {
  display: block;
  font-size: 7.5px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
#cdAccuracy .cd-fr-levels b {
  display: block;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  color: #fff;
}
#cdAccuracy .cd-fr-levels em {
  display: block;
  font-size: 8px;
  font-style: normal;
  margin-top: 1px;
}
#cdAccuracy .cd-fr-summary {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface, #1e1b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}
#cdAccuracy .cd-fr-summary p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}
#cdAccuracy .cd-fr-summary strong {
  color: #fff;
}
#cdAccuracy .cd-fr-summary em {
  color: #38bdf8;
  font-style: normal;
}
#cdAccuracy .cd-fr-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}
#cdAccuracy .cd-fr-ticket {
  padding: 9px;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#cdAccuracy .cd-fr-ticket.is-buy {
  background: linear-gradient(180deg, #34d399, #10b981);
  color: #052e1a;
}
#cdAccuracy .cd-fr-ticket.is-sell {
  background: linear-gradient(180deg, #f87171, #ef4444);
  color: #3b0a0a;
}
#cdAccuracy .cd-fr-analysis {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--surface, #1e1b2e);
  color: var(--text, #fff);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
#cdAccuracy .cd-fr-note {
  font-size: 9.5px;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  line-height: 1.4;
  margin-top: 10px;
}
#cdAccuracy .cd-focus-empty {
  text-align: center;
  padding: 30px 16px;
  border-radius: 14px;
  background: var(--surface-soft, #171325);
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.1));
}
#cdAccuracy .cd-focus-empty strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #fff;
}
#cdAccuracy .cd-focus-empty p {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

/* Accuracy Header Controls Layout */
#cdAccuracy .cd-accuracy-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 6px;
}
#cdAccuracy .cd-accuracy-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
#cdAccuracy #cdAccuracyRefresh {
  margin-left: auto !important;
}


/* ==========================================================================
   Trader Setups (Gautam Jha & Booming Bulls) Card Styles (CryptoDock Native)
   ========================================================================== */
#cdTraderSetups .cd-focus-results {
  display: grid;
  gap: 12px;
  width: 100%;
}
#cdTraderSetups .cd-fr-card {
  --c: var(--green, #10b981);
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--surface-soft, #171325)), var(--surface-soft, #171325));
  border: 1px solid color-mix(in srgb, var(--c) 42%, transparent);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--c) 12%, transparent);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
#cdTraderSetups .cd-fr-card.is-bear {
  --c: var(--red, #ef4444);
}
#cdTraderSetups .cd-fr-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
}
#cdTraderSetups .cd-fr-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface, #1e1b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  font-size: 14px;
  font-weight: 700;
}
#cdTraderSetups .cd-fr-id strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
#cdTraderSetups .cd-fr-id strong span {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  font-weight: 400;
}
#cdTraderSetups .cd-fr-id small {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--text-muted, #94a3b8);
}
#cdTraderSetups .cd-fr-px {
  text-align: right;
}
#cdTraderSetups .cd-fr-px b {
  font-size: 14px;
  display: block;
  color: #fff;
}
#cdTraderSetups .cd-fr-px small {
  font-size: 10px;
  font-weight: 700;
  display: block;
  margin-top: 2px;
}
#cdTraderSetups .cd-fr-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
#cdTraderSetups .cd-fr-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--c) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#cdTraderSetups .cd-fr-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--surface, #1e1b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  color: var(--text-muted, #94a3b8);
}
#cdTraderSetups .cd-fr-tag.cd-tag-purple {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #c084fc !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
}
#cdTraderSetups .cd-fr-tag.cd-tag-amber {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}
#cdTraderSetups .cd-fr-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}
#cdTraderSetups .cd-fr-levels > div {
  padding: 6px 3px;
  border-radius: 8px;
  background: var(--surface, #1e1b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  text-align: center;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
#cdTraderSetups .cd-fr-levels span {
  display: block;
  font-size: 7.5px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
#cdTraderSetups .cd-fr-levels b {
  display: block;
  font-size: clamp(9.5px, 2.6vw, 11.5px);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  color: var(--text, #fff);
}
#cdTraderSetups .cd-fr-levels em {
  display: block;
  font-size: 8px;
  font-style: normal;
  margin-top: 1px;
}
#cdTraderSetups .cd-fr-summary {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface, #1e1b2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}
#cdTraderSetups .cd-fr-summary p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}
#cdTraderSetups .cd-fr-summary strong {
  color: var(--text, #fff);
}
#cdTraderSetups .cd-fr-summary em {
  color: #38bdf8;
  font-style: normal;
}
#cdTraderSetups .cd-fr-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}
#cdTraderSetups .cd-fr-ticket {
  padding: 9px;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#cdTraderSetups .cd-fr-ticket.is-buy {
  background: linear-gradient(180deg, #34d399, #10b981);
  color: #052e1a;
}
#cdTraderSetups .cd-fr-ticket.is-sell {
  background: linear-gradient(180deg, #f87171, #ef4444);
  color: #3b0a0a;
}
#cdTraderSetups .cd-fr-analysis {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  background: var(--surface, #1e1b2e);
  color: var(--text, #fff);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
#cdTraderSetups .cd-fr-note {
  font-size: 9.5px;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  line-height: 1.4;
  margin-top: 10px;
}
#cdTraderSetups .cd-focus-empty {
  text-align: center;
  padding: 30px 16px;
  border-radius: 14px;
  background: var(--surface-soft, #171325);
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.1));
}
#cdTraderSetups .cd-focus-empty strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #fff;
}
#cdTraderSetups .cd-focus-empty p {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

/* Accuracy Header Controls Layout */
#cdTraderSetups .cd-accuracy-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 6px;
}
#cdTraderSetups .cd-accuracy-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
#cdTraderSetups #cdTraderSetupsRefresh {
  margin-left: auto !important;
}
