/* ============================================================
   Coindaily - Radar (watchlist + cross-signal alerts)
   Sample-data prototype. Dark terminal aesthetic, AUD-native.
   ============================================================ */

/* ---------- hero ---------- */
.rd-hero { border-bottom: 1px solid var(--hairline); padding: 22px 0 24px; }
.rd-hero .crumb { margin-bottom: 16px; }
.rd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rd-eyebrow { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.rd-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; display: flex; align-items: center; gap: 12px; }
.rd-model { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #C99A4B; background: rgba(201,154,75,.12); border: 1px solid rgba(201,154,75,.32); border-radius: 5px; padding: 3px 8px; vertical-align: middle; cursor: help; }
.rd-sub { font-size: 13.5px; line-height: 1.55; color: var(--tx-mid); max-width: 620px; margin-top: 12px; }
.rd-connect { font-size: 12.5px; line-height: 1.5; color: var(--tx-dim); margin-top: 10px; max-width: 640px; }
.rd-connect b { color: var(--tx-hi); font-weight: 600; }
.rd-connect a { color: var(--amber); text-decoration: none; }
.rd-connect a:hover { text-decoration: underline; }
.rd-head-actions { display: flex; gap: 10px; flex: none; }

.rd-main { padding: 24px 0 60px; }

/* ---------- coin picker ---------- */
.rd-picker { background: var(--panel); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px; margin-bottom: 22px; }
.rd-picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.rd-x { background: none; border: none; color: var(--tx-dim); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.rd-x:hover { color: var(--tx-hi); }
.rd-picker-search { width: 100%; background: var(--panel-2); border: 1px solid var(--hairline); border-radius: 8px; padding: 10px 12px; color: var(--tx-hi); font-family: var(--sans); font-size: 13px; outline: none; }
.rd-picker-search:focus { border-color: rgba(201,154,75,.4); }
.rd-picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 7px; margin-top: 12px; max-height: 230px; overflow-y: auto; }
.rd-picker-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--hairline); background: var(--panel-2); cursor: pointer; transition: .12s; }
.rd-picker-item:hover { border-color: rgba(201,154,75,.4); }
.rd-picker-item.added { opacity: .42; cursor: default; }
.rd-picker-item img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.rd-picker-item .s { font-weight: 600; color: var(--tx-hi); font-size: 13px; }
.rd-picker-item .n { font-size: 10.5px; color: var(--tx-dim); }
.rd-picker-empty { color: var(--tx-dim); font-size: 12px; padding: 14px; text-align: center; grid-column: 1/-1; }

/* ---------- regime strip ---------- */
.rd-regime-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 11px; flex-wrap: wrap; }
.rd-kicker { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--tx-dim); }
.rd-regime-note { font-size: 11.5px; color: var(--tx-dim); }
.rd-regime { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 32px; }
.rd-reg { display: flex; flex-direction: column; gap: 5px; padding: 13px 15px; background: var(--panel); border: 1px solid var(--hairline); border-radius: 12px; text-decoration: none; transition: .14s; position: relative; overflow: hidden; }
.rd-reg::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rc, var(--tx-dim)); opacity: .8; }
.rd-reg:hover { border-color: rgba(201,154,75,.3); transform: translateY(-1px); }
.rd-reg-l { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--tx-dim); }
.rd-reg-v { font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--tx-hi); line-height: 1; }
.rd-reg-s { font-size: 11px; color: var(--rc, var(--tx-mid)); font-weight: 600; }

/* ---------- section head ---------- */
.rd-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.rd-section-head h2 { font-size: 17px; font-weight: 700; }
.rd-count { font-family: var(--mono); font-size: 11.5px; color: var(--tx-dim); }

/* ---------- watchlist table ---------- */
.rd-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 14px; background: var(--panel); scrollbar-width: thin; }
.rd-table { width: 100%; border-collapse: collapse; min-width: 1000px; }
.rd-table thead th { text-align: right; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-dim); padding: 12px 14px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.rd-table thead th.rd-asset-h { text-align: left; }
.rd-table thead th.rd-act-h { text-align: center; }
.rd-th-sub { color: var(--tx-faint); font-weight: 500; margin-left: 4px; }
.rd-table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--hairline-2); text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--tx); vertical-align: middle; white-space: nowrap; }
.rd-table tbody tr:last-child td { border-bottom: none; }
.rd-table tbody tr:hover { background: rgba(255,255,255,0.018); }

/* asset cell */
.rd-asset { text-align: left !important; }
.rd-asset-cell { display: flex; align-items: center; gap: 10px; }
.rd-asset-cell img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.rd-asset-cell .s { font-weight: 700; color: var(--tx-hi); font-family: var(--sans); font-size: 13px; }
.rd-asset-cell .n { font-size: 10.5px; color: var(--tx-dim); font-family: var(--sans); }
a.rd-asset-link { text-decoration: none; color: inherit; display: inline-flex; }
a.rd-asset-link:hover .s { color: var(--amber); }

/* your position (portfolio tie-in) */
.rd-pos-v { color: var(--tx-hi); font-weight: 600; }
.rd-pos-q { display: block; font-size: 10.5px; color: var(--tx-dim); margin-top: 2px; }
.rd-pos-add { font-family: var(--sans); font-size: 11px; color: var(--tx-dim); text-decoration: none; border: 1px dashed var(--hairline); border-radius: 6px; padding: 3px 8px; transition: .12s; }
.rd-pos-add:hover { color: var(--amber); border-color: rgba(201,154,75,.4); }
.rd-held { font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .06em; color: #5f9277; background: rgba(79,158,124,.13); border: 1px solid rgba(79,158,124,.32); border-radius: 4px; padding: 1px 5px; margin-left: 7px; vertical-align: middle; }
.rd-pf-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 30px; border: 1px solid var(--hairline); border-radius: 8px; color: var(--tx-dim); transition: .12s; }
.rd-pf-link:hover { color: #5f9277; border-color: rgba(79,158,124,.4); }
.rd-pf-link svg { width: 15px; height: 15px; }

/* price + change */
.rd-px { color: var(--tx-hi); font-weight: 600; }
.rd-sub-chg { display: block; font-size: 11px; margin-top: 2px; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--tx-dim); }

/* sparkline */
.rd-spark { display: inline-block; vertical-align: middle; }

/* funding */
.rd-fund { font-weight: 600; }
.rd-badge-x { display: inline-block; font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 4px; padding: 1px 5px; margin-left: 5px; vertical-align: middle; }
.rd-badge-x.hot { color: var(--down); background: rgba(190,94,108,.13); }
.rd-badge-x.neg { color: var(--up); background: rgba(79,158,124,.13); }

/* open interest */
.rd-oi-v { color: var(--tx-hi); font-weight: 600; }
.rd-oi-d { display: block; font-size: 11px; margin-top: 2px; }

/* long/short bar */
.rd-ls { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 96px; }
.rd-ls-bar { width: 96px; height: 6px; border-radius: 3px; overflow: hidden; display: flex; background: var(--down); }
.rd-ls-long { height: 100%; background: var(--up); }
.rd-ls-lab { font-size: 10.5px; color: var(--tx-mid); }
.rd-ls-lab b { color: var(--up); } .rd-ls-lab i { color: var(--down); font-style: normal; }

/* liquidity magnet */
.rd-magnet { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.rd-magnet .dir { font-size: 11px; }
.rd-magnet .dist { color: var(--tx-hi); font-weight: 600; }
.rd-magnet .size { color: var(--tx-dim); font-size: 11px; }

/* signal chip */
.rd-signal { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .03em; border-radius: 20px; padding: 4px 10px 4px 9px; border: 1px solid var(--sg, var(--hairline)); color: var(--sg, var(--tx-mid)); background: color-mix(in srgb, var(--sg, #8a8f98) 12%, transparent); }
.rd-signal::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sg, var(--tx-dim)); }

/* alert + remove cell buttons */
.rd-bell, .rd-rm { background: none; border: 1px solid var(--hairline); border-radius: 8px; cursor: pointer; color: var(--tx-dim); width: 32px; height: 30px; display: inline-flex; align-items: center; justify-content: center; transition: .12s; position: relative; }
.rd-bell:hover { color: var(--amber); border-color: rgba(201,154,75,.4); }
.rd-bell.has { color: var(--amber); border-color: rgba(201,154,75,.4); }
.rd-bell svg, .rd-rm svg { width: 15px; height: 15px; }
.rd-bell .cnt { position: absolute; top: -6px; right: -6px; background: var(--amber); color: #12131A; font-family: var(--mono); font-size: 9px; font-weight: 700; border-radius: 9px; min-width: 15px; height: 15px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.rd-rm:hover { color: var(--down); border-color: rgba(190,94,108,.4); }
.rd-cell-acts { text-align: center !important; }

/* empty state */
.rd-empty { text-align: center; padding: 44px 20px; border: 1px dashed var(--hairline); border-radius: 14px; }
.rd-empty p { color: var(--tx-dim); margin-bottom: 14px; }

/* ---------- alerts ---------- */
.rd-alert-form { background: var(--panel); border: 1px solid rgba(201,154,75,.28); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.rd-af-grid { display: grid; grid-template-columns: 1.1fr 1.6fr .9fr auto; gap: 12px; align-items: end; }
.rd-af-field label { display: block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--tx-dim); margin-bottom: 6px; }
.rd-select, .rd-input { width: 100%; background: var(--panel-2); border: 1px solid var(--hairline); border-radius: 8px; padding: 9px 11px; color: var(--tx-hi); font-family: var(--sans); font-size: 12.5px; outline: none; }
.rd-input.num { font-family: var(--mono); }
.rd-select:focus, .rd-input:focus { border-color: rgba(201,154,75,.4); }
.rd-af-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.rd-af-preview { font-size: 12px; color: var(--tx-mid); }
.rd-af-preview b { color: var(--tx-hi); }

.rd-alerts { display: flex; flex-direction: column; gap: 9px; }
.rd-alert { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: var(--panel); border: 1px solid var(--hairline); border-radius: 12px; }
.rd-alert.triggered { border-color: rgba(201,154,75,.4); background: linear-gradient(90deg, rgba(201,154,75,.06), transparent 60%); }
.rd-alert img { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.rd-alert-body { flex: 1; min-width: 0; }
.rd-alert-cond { font-size: 13px; color: var(--tx-hi); font-weight: 500; }
.rd-alert-cond b { color: var(--amber); }
.rd-origin { font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5f9277; background: rgba(79,158,124,.12); border: 1px solid rgba(79,158,124,.3); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; }
.rd-af-shared { color: #5f9277; font-size: 11px; }
.rd-alert-meta { font-size: 11px; color: var(--tx-dim); margin-top: 2px; font-family: var(--mono); }
.rd-status { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 20px; padding: 4px 10px; flex: none; }
.rd-status.watching { color: var(--tx-mid); border: 1px solid var(--hairline); }
.rd-status.triggered { color: #C99A4B; background: rgba(201,154,75,.14); border: 1px solid rgba(201,154,75,.3); }
.rd-alert-del { background: none; border: none; color: var(--tx-dim); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; flex: none; }
.rd-alert-del:hover { color: var(--down); }
.rd-alerts-empty { color: var(--tx-dim); font-size: 12.5px; padding: 22px; text-align: center; border: 1px dashed var(--hairline); border-radius: 12px; }

.rd-disclaimer { font-size: 11px; line-height: 1.55; color: var(--tx-dim); margin-top: 26px; max-width: 760px; }
.rd-disclaimer a { color: var(--amber); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .rd-regime { grid-template-columns: repeat(2, 1fr); }
  .rd-af-grid { grid-template-columns: 1fr 1fr; }
  .rd-head h1 { font-size: 28px; }
}
@media (max-width: 520px) {
  .rd-regime { grid-template-columns: 1fr; }
  .rd-af-grid { grid-template-columns: 1fr; }
  .rd-head-actions { width: 100%; }
  .rd-head-actions .btn { flex: 1; }
}
