/* filter chip tooltips handled via JS in compare.js */


/* ── STAR BURST ANIMATION ────────────────────────── */
@keyframes starBurst {
  0%   { transform: scale(1);    }
  30%  { transform: scale(1.5);  }
  50%  { transform: scale(0.9);  }
  70%  { transform: scale(1.25); }
  100% { transform: scale(1);    }
}

@keyframes starRipple {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
  100% { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
}

.ex-star-btn.burst i,
.coin-star-btn.burst i,
.mover-star-btn.burst i {
  animation: starBurst 0.4s cubic-bezier(0.36,0.07,0.19,0.97);
}

.ex-star-btn.burst,
.ex-star-card.burst,
.coin-star-btn.burst,
.mover-star-btn.burst {
  animation: starRipple 0.5s ease-out;
}


/* ── EXCHANGE STAR BUTTON ─────────────────────────── */
.ex-star-btn {
  border: none;
  background: transparent;
  color: #CBD5E1;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
  vertical-align: middle;
}

.ex-star-btn:hover  { color: #F59E0B; }
.ex-star-btn.starred { color: #F59E0B; }

/* card view — positioned top-right */
/* card star — flex item inside cmp-card-header, flush right */
.ex-star-card {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid #E2E8F0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 13px;
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  margin-left: auto;
}

.ex-star-card:hover {
  border-color: #FDE68A;
  background: #FFFBEB;
  color: #F59E0B;
}

.ex-star-card.starred {
  border-color: #FDE68A;
  background: #FFFBEB;
  color: #F59E0B;
}

/* list view — give action column flex layout */
.clt-td-action {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

/* =====================================================
   COMPARE.CSS
   ===================================================== */
* { box-sizing: border-box; }

.hidden { display: none !important; }

/* ── PAGE ── */
.cmp-page {
  padding: 32px 40px 140px;
  background: #F8FAFC;
  min-height: 100vh;
}

/* ── PAGE HEADER ── */
.cmp-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.cmp-page-title {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 5px;
  font-family: 'Syne', sans-serif;
}

.cmp-page-sub {
  font-size: 13.5px;
  color: #94a3b8;
  font-weight: 500;
}

.cmp-compare-now-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.cmp-compare-now-btn:hover { background: #1e293b; transform: translateY(-1px); }

.cmp-sel-count {
  background: #3975EA;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}

/* ── TOOLBAR ── */
.cmp-toolbar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(57,117,234,0.05);
  overflow: hidden;
}

.cmp-toolbar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}

.cmp-search-wrap { position: relative; flex: 1; }

.cmp-search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.cmp-search-input:focus {
  border-color: #3975EA;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(57,117,234,0.08);
}

.cmp-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
}

.cmp-add-wrap { position: relative; flex-shrink: 0; }

.cmp-add-select {
  padding: 10px 16px 10px 34px;
  border: 1.5px solid #3975EA;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #3975EA;
  background: #eff6ff;
  outline: none;
  cursor: pointer;
  appearance: none;
  min-width: 180px;
  font-family: 'DM Sans', sans-serif;
}

.cmp-add-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #3975EA;
  font-size: 11px;
  pointer-events: none;
}

/* Filter row */
.cmp-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #fafbfc;
  flex-wrap: wrap;
}

.cmp-filter-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cmp-filter-label i { color: #3975EA; }

.cmp-filter-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.cmp-filter-chips { display: flex; gap: 7px; flex-wrap: wrap; }

.cmp-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s;
  user-select: none;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.cmp-chip input { display: none; }

.cmp-chip:hover { border-color: #bfdbfe; color: #1e40af; background: #f0f7ff; }

.cmp-chip.active {
  background: #eff6ff;
  border-color: #3975EA;
  color: #3975EA;
}

.cmp-filter-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  color: #3975EA;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cmp-filter-clear {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.cmp-filter-clear:hover { color: #dc2626; }

/* ── CARD GRID ── */
.cmp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ── CARD ── */
.cmp-card {
  background: #fff;
  border: 1.5px solid #e8edf5;
  border-radius: 20px;
  padding: 20px;
  position: relative;
  transition: all 0.22s ease;
  box-shadow: 0 2px 6px rgba(57,117,234,0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cmp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3975EA, #7c3aed);
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.cmp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(57,117,234,0.1);
  border-color: #bfdbfe;
}

.cmp-card:hover::before { opacity: 1; }

.cmp-card.selected {
  border-color: #3975EA;
  box-shadow: 0 0 0 3px rgba(57,117,234,0.12), 0 8px 24px rgba(57,117,234,0.1);
}

.cmp-card.selected::before { opacity: 1; }

/* Select button */
.cmp-sel-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 1;
}

.cmp-sel-btn:hover { border-color: #3975EA; color: #3975EA; background: #eff6ff; }
.cmp-sel-btn.selected { background: #3975EA; border-color: #3975EA; color: #fff; }

/* Card header */
.cmp-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmp-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cmp-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.cmp-logo-fb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  color: #3975EA;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmp-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  font-family: 'Syne', sans-serif;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.cmp-card-name:hover {
  color: #2563EB;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cmp-card-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.cmp-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.cmp-tag.inr { background: #fef3c7; color: #b45309; }
.cmp-tag.spot { background: #dbeafe; color: #3975EA; }
.cmp-tag.fno { background: #ede9fe; color: #6d28d9; }
.cmp-tag.p2p { background: #d1fae5; color: #065f46; }

/* Stat grid */
.cmp-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

/* USP boxes span full width so the 5th item doesn't look orphaned */
.cmp-stat-box:nth-child(4),
.cmp-stat-box:nth-child(5) {
  grid-column: 1 / -1;
}

.cmp-stat-box {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cmp-stat-lbl {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cmp-stat-val {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.usp-text {
  font-size: 11.5px !important;
  font-weight: 700;
  color: #2563eb !important;
  line-height: 1.3;
}

/* Card meta */
.cmp-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  gap: 8px;
}

.cmp-card-meta i { color: #cbd5e1; margin-right: 4px; }

/* View button */
.cmp-view-btn {
  width: 100%;
  padding: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
  margin-top: auto;
  font-family: 'DM Sans', sans-serif;
}

.cmp-view-btn:hover { background: #eff6ff; border-color: #bfdbfe; color: #3975EA; }
.cmp-view-btn i { font-size: 11px; transition: transform 0.15s; }
.cmp-view-btn:hover i { transform: translateX(3px); }

/* Empty state */
.cmp-empty {
  text-align: center;
  padding: 80px 20px;
  color: #94a3b8;
}

.cmp-empty i { font-size: 36px; margin-bottom: 14px; display: block; }
.cmp-empty p { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.cmp-empty button {
  padding: 9px 20px;
  background: #3975EA;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ── COMPARE TABLE ── */
.cmp-table-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cmp-table-title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
  font-family: 'Syne', sans-serif;
}

.cmp-table-hint {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cmp-table-hint i { color: #3975EA; }

.cmp-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}

.cmp-back-btn:hover { background: #f8fafc; border-color: #cbd5e1; }

.cmp-table-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: auto;
  box-shadow: 0 4px 20px rgba(57,117,234,0.06);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

/* Sticky header */
.cmp-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 2px 8px rgba(57,117,234,0.06);
}

.cmp-table thead th.feat-col-hdr {
  background: #f8fafc;
  z-index: 11;
}

.cmp-table .feat-col,
.cmp-table .feat-group {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #f8fafc;
}

.cmp-table .feat-group {
  background: #f1f5f9;
}

.cmp-table thead th.feat-col-hdr {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 20;
}

.cmp-table .feat-col {
  background: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  padding: 13px 18px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
  width: 170px;
  min-width: 140px;
}

.cmp-table .feat-group {
  background: #f1f5f9;
  font-size: 10px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.cmp-table td {
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  border-bottom: 1px solid #f8fafc;
  border-right: 1px solid #f8fafc;
  vertical-align: middle;
  transition: background 0.15s;
}

.cmp-table td:last-child { border-right: none; }
.cmp-table tr:last-child td { border-bottom: none; }

.cmp-table th {
  padding: 0;
  border-right: 1px solid #e8edf5;
  border-bottom: 2px solid #e2e8f0;
  background: #fff;
}

.cmp-table th:last-child { border-right: none; }

.cmp-ex-header {
  padding: 20px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cmp-th-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cmp-th-logo { width: 32px; height: 32px; object-fit: contain; }

.cmp-th-logo-fb {
  font-size: 18px;
  font-weight: 900;
  color: #3975EA;
}

.cmp-th-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.cmp-th-remove {
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
  background: none;
  border: none;
  padding: 0;
}

.cmp-th-remove:hover { color: #dc2626; }

/* Winner cell */
.cmp-table td.winner {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 800;
  position: relative;
}

.cmp-table td.winner::after {
  content: '★';
  position: absolute;
  top: 5px;
  right: 7px;
  font-size: 9px;
  color: #16a34a;
  opacity: 0.5;
}

.tbl-yes { color: #16a34a; font-size: 16px; }
.tbl-no  { color: #e2e8f0; font-size: 16px; }

.cmp-table .feat-col-hdr {
  background: #f8fafc;
  width: 170px;
  border-right: 1px solid #e8edf5;
}

/* ── FLOATING BAR ── */
.cmp-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  border-radius: 18px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(57,117,234,0.25);
  z-index: 500;
  min-width: 520px;
  animation: barSlideUp 0.3s cubic-bezier(0.16,1,0.3,1);
}

@keyframes barSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cmp-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.cmp-bar-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

.cmp-bar-chips {
  display: flex;
  gap: 7px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.cmp-bar-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 5px 10px;
  flex-shrink: 0;
}

.cmp-bar-chip-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cmp-bar-chip-logo img { width: 16px; height: 16px; object-fit: contain; }

.cmp-bar-chip-logo-fb {
  font-size: 10px;
  font-weight: 800;
  color: #3975EA;
}

.cmp-bar-chip-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.cmp-bar-chip-x {
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  font-size: 11px;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}

.cmp-bar-chip-x:hover { color: #f87171; }

.cmp-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cmp-bar-clear {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.cmp-bar-clear:hover { color: #f87171; }

.cmp-bar-go {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #3975EA;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}

.cmp-bar-go:hover { background: #2d62d4; transform: translateY(-1px); }
.cmp-bar-go:disabled { background: #334155; cursor: not-allowed; }

/* ── DETAIL MODAL ── */
.cmp-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,16,30,0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.cmp-modal-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(57,117,234,0.2);
  animation: modalPop 0.25s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  flex-direction: column;
}

@keyframes modalPop {
  from { opacity:0; transform:scale(0.96) translateY(10px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

.cmp-modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.cmp-modal-hdr-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cmp-modal-logo-ring {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cmp-modal-logo-ring img { width: 44px; height: 44px; object-fit: contain; }

.cmp-modal-logo-fb {
  font-size: 24px;
  font-weight: 900;
  color: #3975EA;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmp-modal-name {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 7px;
  font-family: 'Syne', sans-serif;
}

.cmp-modal-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.cmp-modal-hdr-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cmp-open-acc-wrap {
  position: relative;
  display: inline-flex;
}

.cmp-open-acc-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #3975EA;
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.cmp-open-acc-btn:hover { background: #2d62d4; transform: translateY(-1px); }

/* Affiliate disclosure tooltip */
.cmp-affiliate-tip {
  position: fixed;
  width: 260px;
  background: #0F172A;
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(4px);
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  bottom: auto;
  right: auto;
}

.cmp-affiliate-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  border: 6px solid transparent;
  border-top-color: #0F172A;
}

.cmp-affiliate-tip strong {
  display: block;
  color: #F59E0B;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* affiliate tip shown via JS in compare.js */

.cmp-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.cmp-modal-close:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }

/* Dark stats strip — kept dark for contrast */
.cmp-modal-stats-strip {
  display: flex;
  align-items: center;
  background: #0f172a;
  padding: 14px 22px;
  gap: 0;
  overflow-x: auto;
  flex-shrink: 0;
}

.cmp-mss-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.cmp-mss-label {
  font-size: 9.5px;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.cmp-mss-val {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.cmp-mss-div {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  margin: 0 18px;
  flex-shrink: 0;
}

/* USP Banner — sits between stats strip and tabs */
.cmp-usp-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 22px;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cmp-usp-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
}

.cmp-usp-item i {
  font-size: 11px;
  color: #3b82f6;
}

.cmp-usp-sep {
  color: #93c5fd;
  font-size: 18px;
  line-height: 1;
}

/* Tabs */
.cmp-modal-tabs {
  display: flex;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  flex-shrink: 0;
  overflow-x: auto;
}

.cmp-modal-tab {
  flex: 1;
  padding: 14px 10px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  font-family: 'DM Sans', sans-serif;
}

.cmp-modal-tab i { font-size: 12px; }
.cmp-modal-tab:hover { color: #334155; background: #f8fafc; }
.cmp-modal-tab.active { color: #3975EA; border-bottom-color: #3975EA; background: #fafcff; }

/* Modal body */
.cmp-modal-body { padding: 20px 22px; }

.cmp-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cmp-info-block {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 16px 18px;
}

.cmp-info-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cmp-info-title i { color: #3975EA; }

.cmp-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.cmp-info-row:last-child { border-bottom: none; }
.cmp-info-row span { color: #64748b; font-weight: 500; }
.cmp-info-row strong { color: #0f172a; font-weight: 700; }

/* About tab */
.cmp-about-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.cmp-about-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  padding: 4px;
  background: #f8fafc;
  flex-shrink: 0;
}

.cmp-about-name {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
  font-family: 'Syne', sans-serif;
}

.cmp-about-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.cmp-about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cmp-about-meta-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmp-about-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cmp-about-val {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

/* Disclaimer */
.cmp-modal-disclaimer {
  padding: 12px 22px 16px;
  font-size: 11.5px;
  color: #92400e;
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border-radius: 0 0 20px 20px;
}

.cmp-modal-disclaimer i { color: #f59e0b; font-size: 13px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .cmp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp-info-grid { grid-template-columns: 1fr; }
  .cmp-feat-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .cmp-page { padding: 16px 0 140px; }
  .cmp-page-header { padding: 16px 16px 0; }
  .cmp-toolbar     { padding: 12px 16px; }
  .cmp-toolbar-top { flex-direction: column; gap: 10px; }
  .cmp-add-select  { min-width: 100%; }
  .cmp-filter-chips { flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
  .cmp-grid { grid-template-columns: 1fr; padding: 0 16px; }

  .cmp-table-topbar {
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }

  .cmp-back-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .cmp-table-wrap {
    border-radius: 16px;
    margin: 0 16px;
    overflow: hidden;
  }

  .cmp-table .feat-col {
    font-size: 11px;
    padding: 11px 12px;
    width: 110px;
    min-width: 100px;
  }

  .cmp-table .feat-group {
    font-size: 9.5px;
    padding: 7px 12px;
  }

  .cmp-table td {
    font-size: 12.5px;
    padding: 11px 10px;
    text-align: center;
  }

  .cmp-ex-header {
    padding: 14px 10px;
    gap: 6px;
  }

  .cmp-th-logo-wrap {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .cmp-th-logo-wrap img { width: 24px; height: 24px; }

  .cmp-th-name {
    font-size: 12px;
    font-weight: 700;
  }

  .cmp-th-remove {
    font-size: 11px;
    padding: 3px 8px;
  }

  .cmp-table td.winner::after {
    width: 14px;
    height: 14px;
    font-size: 7px;
    top: 4px;
    right: 4px;
  }

  .cmp-table {
    min-width: unset;
    width: 100%;
    table-layout: fixed;
  }

  .cmp-table colgroup col:first-child { width: 110px; }

  .cmp-table-wrap.has-many {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cmp-table-wrap.has-many .cmp-table {
    min-width: 560px;
  }

  .cmp-bar {
    left: 12px !important;
    right: 12px !important;
    bottom: 16px !important;
    transform: none !important;
    min-width: unset !important;
    width: auto !important;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    animation: cmpBarMobile 0.3s cubic-bezier(0.16,1,0.3,1);
  }

  @keyframes cmpBarMobile {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .cmp-bar-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .cmp-bar-label {
    font-size: 11px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.45);
  }

  .cmp-bar-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
    flex: 1;
  }
  .cmp-bar-chips::-webkit-scrollbar { display: none; }

  .cmp-bar-right {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
  }

  .cmp-bar-clear {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    white-space: nowrap;
  }

  .cmp-bar-go {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 10px;
    padding: 10px 16px;
  }

  .cmp-modal { padding: 0; align-items: flex-end; }

  .cmp-modal-box {
    border-radius: 24px 24px 0 0;
    max-height: 93vh;
    position: relative;
    animation: cmpSheet 0.3s cubic-bezier(0.32,0.72,0,1);
  }

  @keyframes cmpSheet {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  .cmp-modal-box::before {
    content: '';
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 4px;
    background: rgba(0,0,0,0.12);
    border-radius: 2px;
    z-index: 10;
  }

  .cmp-modal-hdr {
    border-radius: 24px 24px 0 0;
    padding: 24px 16px 14px;
    gap: 10px;
  }

  .cmp-open-acc-btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    font-size: 14px;
    border-radius: 12px;
  }

  .cmp-modal-stats-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 12px 16px;
    gap: 0;
    background: #0f172a;
  }
  .cmp-modal-stats-strip::-webkit-scrollbar { display: none; }

  .cmp-mss-item {
    flex-shrink: 0;
    padding: 0 14px;
  }
  .cmp-mss-item:first-child { padding-left: 0; }
  .cmp-mss-label { font-size: 9px; white-space: nowrap; }
  .cmp-mss-val   { font-size: 13px; white-space: nowrap; margin-top: 3px; }

  .cmp-mss-div {
    flex-shrink: 0;
    width: 1px;
    background: rgba(255,255,255,0.1);
    align-self: center;
    height: 26px;
  }

  .cmp-modal-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
    gap: 0;
    border-bottom: 2px solid #f1f5f9;
  }
  .cmp-modal-tabs::-webkit-scrollbar { display: none; }

  .cmp-modal-tab {
    flex-shrink: 0;
    padding: 12px 14px;
    font-size: 13px;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
  }

  .cmp-modal-tab.active {
    color: #3975EA;
    border-bottom-color: #3975EA;
  }

  .cmp-modal-body    { padding: 16px; }
  .cmp-info-grid     { grid-template-columns: 1fr; }
  .cmp-about-meta    { grid-template-columns: 1fr 1fr; }

  .cmp-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 480px) {
  .cmp-table .feat-col { width: 95px; min-width: 90px; font-size: 10.5px; padding: 10px; }
  .cmp-table td        { font-size: 12px; padding: 10px 8px; }
  .cmp-ex-header       { padding: 12px 8px; }
  .cmp-th-name         { font-size: 11.5px; }
  .cmp-th-logo-wrap    { width: 32px; height: 32px; }
  .cmp-modal-tab       { font-size: 12.5px; padding: 11px 12px; }
  .cmp-mss-val         { font-size: 12.5px; }
  .cmp-mss-item        { padding: 0 10px; }
}


/* =====================================================
   COMPARE.CSS ADDON — List view + View toggle
   Append this to the bottom of your compare.css
   ===================================================== */

/* ── Header right wrapper (toggle + compare now btn) ── */
.cmp-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   VIEW TOGGLE  (List / Cards buttons)
══════════════════════════════════════ */
.cmp-view-toggle {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.cmp-view-btn-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cmp-view-btn-toggle:hover {
  color: #1e293b;
  background: #e2e8f0;
}

.cmp-view-btn-toggle.active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.cmp-view-btn-toggle i { font-size: 14px; }

/* ══════════════════════════════════════
   LIST VIEW TABLE
══════════════════════════════════════ */
.cmp-list-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.cmp-list-table thead tr {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.cmp-list-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.cmp-list-table thead th.clt-th-action { text-align: right; }

/* ── List row ── */
.cmp-list-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.cmp-list-row:last-child { border-bottom: none; }
.cmp-list-row:hover      { background: #f8fafc; }

.cmp-list-row.selected {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.cmp-list-row td {
  padding: 13px 16px;
  vertical-align: middle;
  font-size: 14px;
  color: #1e293b;
}

/* ── Identity cell: [+btn] [logo] [name + founded] ── */
.clt-td-name { min-width: 200px; }

.clt-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* + Add to compare button — right next to logo */
/* Hard reset — card CSS positions .cmp-sel-btn absolutely.
   .clt-sel-btn is intentionally a separate class. */
.clt-sel-btn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  font-size: 12px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.clt-sel-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.clt-sel-btn.selected {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* Logo circle */
.clt-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clt-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.clt-logo-fb {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 10px;
}

/* Name + founded */
.clt-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.clt-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.clt-name:hover {
  color: #2563EB;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.clt-founded {
  font-size: 11px;
  color: #94a3b8;
}

/* Mobile-only fee · liquidity line — hidden on desktop */
.clt-mobile-meta {
  display: none;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  align-items: center;
  gap: 4px;
}

.clt-mm-sep { color: #cbd5e1; }

.clt-mm-liq { color: #2563eb; font-weight: 600; }

/* ── Tags cell ── */
.clt-td-tags { min-width: 120px; }

/* ── Fee / Leverage cells ── */
.clt-td-fee,
.clt-td-lev {
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

/* ── Liquidity badge ── */
.usp-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: #eff6ff;
  color: #2563eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* ── Actions cell — View button only ── */
.clt-td-action {
  text-align: right;
  white-space: nowrap;
}

.clt-detail-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clt-detail-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

/* ══════════════════════════════════════
   MOBILE  <= 640px
   Keep:  Exchange col (+ btn + logo + name) + View btn
   Hide:  Type, Spot Fee, Leverage, Liquidity columns
   Show:  fee · liq inline under the name
══════════════════════════════════════ */
@media (max-width: 640px) {

  .clt-th-tags, .clt-td-tags,
  .clt-th-fee,  .clt-td-fee,
  .clt-th-lev,  .clt-td-lev,
  .clt-th-liq,  .clt-td-liq {
    display: none;
  }

  .clt-mobile-meta {
    display: flex;
  }

  .cmp-list-row td {
    padding: 11px 12px;
  }

  /* View button: icon only */
  .clt-btn-text {
    display: none;
  }

  .clt-detail-btn {
    padding: 8px 10px;
    min-width: 36px;
    justify-content: center;
  }

  /* Toggle: icon only */
  .cmp-view-btn-toggle span { display: none; }
  .cmp-view-btn-toggle      { padding: 6px 10px; }

  /* Page header stacks vertically */
  .cmp-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cmp-header-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ══════════════════════════════════════
   TABLET  641px – 900px
   Hide Leverage column only
══════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 900px) {
  .clt-th-lev,
  .clt-td-lev {
    display: none;
  }
}
/* ══════════════════════════════════════
   MOBILE  ≤ 640px — full responsive fix
══════════════════════════════════════ */
@media (max-width: 640px) {
  .cmp-page { padding: 12px 16px 100px; }

  /* Header stacks vertically */
  .cmp-page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cmp-header-right { width: 100%; display: flex; justify-content: space-between; }

  /* Toolbar stacks */
  .cmp-toolbar { gap: 10px; }
  .cmp-toolbar-top { flex-direction: column; gap: 8px; }
  .cmp-search-wrap,
  .cmp-add-wrap { width: 100%; box-sizing: border-box; }
  .cmp-search-input,
  .cmp-add-select { width: 100%; box-sizing: border-box; }

  /* Filter chips wrap */
  .cmp-toolbar-filters { flex-wrap: wrap; gap: 6px; }

  /* Card grid — 1 column */
  .cmp-grid { grid-template-columns: 1fr; gap: 12px; }

  /* List table — hide fee & leverage on mobile */
  .clt-th-fee, .clt-td-fee,
  .clt-th-lev, .clt-td-lev { display: none; }

  /* Floating bar */
  .cmp-bar { flex-direction: column; gap: 10px; padding: 14px 16px;
             bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .cmp-bar-right { width: 100%; display: flex; justify-content: space-between; }

  /* Modal — full bottom sheet */
  .cmp-modal { align-items: flex-end; padding: 0; }
  .cmp-modal-box { border-radius: 20px 20px 0 0; max-height: 90vh; width: 100%; }
  .cmp-modal-stats-strip { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cmp-modal-tabs { overflow-x: auto; gap: 4px; padding: 0 16px; }
  .cmp-modal-tab { white-space: nowrap; padding: 8px 12px; font-size: 12px; }

  /* Compare table scrollable */
  .cmp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Compare now button full width */
  .cmp-compare-now-btn { width: 100%; justify-content: center; }
}

/* ── Card view: star + plus side by side (override absolute positioning) ── */
.cmp-card-header .cmp-sel-btn {
  position: static;
  top: auto;
  right: auto;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* =====================================================
   COMPARE PAGE — DARK MODE
   ===================================================== */
body.dark .cmp-page            { background: transparent; }
body.dark .cmp-page-title      { color: #F1F5F9; }
body.dark .cmp-page-sub        { color: #64748B; }

body.dark .cmp-view-btn-toggle {
    background: #1E293B; border-color: #334155; color: #94A3B8;
}
body.dark .cmp-view-btn-toggle.active {
    background: #1E3A5F; color: #3B82F6; border-color: #2563EB;
}

body.dark .cmp-toolbar         { background: #1E293B; border-color: #334155; }
body.dark .cmp-search-wrap     { background: #0F172A; border-color: #334155; }
body.dark .cmp-search-icon     { color: #64748B; }
body.dark .cmp-search-input    { background: transparent; color: #F1F5F9; }
body.dark .cmp-search-input::placeholder { color: #475569; }
body.dark .cmp-add-wrap        { background: #0F172A; border-color: #334155; }
body.dark .cmp-add-select      { background: #0F172A; color: #F1F5F9; border-color: #334155; }
body.dark .cmp-filter-label    { color: #64748B; }
body.dark .cmp-filter-divider  { background: #334155; }
body.dark .cmp-chip            { background: #0F172A; border-color: #334155; color: #94A3B8; }
body.dark .cmp-chip.active     { background: #1E3A5F; color: #3B82F6; border-color: #2563EB; }

/* Exchange list rows */
body.dark .cmp-list-row        { background: #1E293B; border-color: #334155; }
body.dark .cmp-list-row:hover  { background: #273549; }
body.dark .cmp-ex-name         { color: #F1F5F9; }
body.dark .cmp-ex-meta         { color: #64748B; }
body.dark .cmp-tag             { background: #0F172A; border-color: #334155; color: #94A3B8; }
body.dark .cmp-tag.active      { background: #1E3A5F; color: #3B82F6; border-color: #2563EB; }
body.dark .cmp-sel-btn         { background: #0F172A; border-color: #334155; color: #94A3B8; }
body.dark .cmp-sel-btn.selected { background: #1E3A5F; color: #3B82F6; border-color: #2563EB; }

/* Exchange cards */
body.dark .cmp-card            { background: #1E293B; border-color: #334155; }
body.dark .cmp-card:hover      { background: #273549; }
body.dark .cmp-card-name       { color: #F1F5F9; }
body.dark .cmp-card-name:hover { color: #60A5FA; }

body.dark .clt-name            { color: #F1F5F9; }
body.dark .clt-name:hover      { color: #60A5FA; }

/* Compare bar */
body.dark .cmp-bar             { background: #1E293B; border-color: #334155;
                                  box-shadow: 0 -4px 20px rgba(0,0,0,0.4); }
body.dark .cmp-bar-label       { color: #94A3B8; }
body.dark .cmp-sel-pill        { background: #0F172A; border-color: #334155; color: #F1F5F9; }
body.dark .cmp-sel-pill-remove { color: #64748B; }
body.dark .cmp-sel-pill-remove:hover { color: #F87171; }

/* Compare modal */
body.dark .cmp-modal-box       { background: #1E293B; border-color: #334155; }
body.dark .cmp-modal-title     { color: #F1F5F9; }
body.dark .cmp-modal-close     { color: #94A3B8; }
body.dark .cmp-modal-close:hover { color: #F1F5F9; background: #334155; }
body.dark .cmp-modal-stats-strip { background: #0F172A; border-color: #334155; }
body.dark .cmp-mstat-label     { color: #64748B; }
body.dark .cmp-mstat-value     { color: #F1F5F9; }
body.dark .cmp-modal-tabs      { border-bottom-color: #334155; }
body.dark .cmp-modal-tab       { color: #94A3B8; }
body.dark .cmp-modal-tab.active { color: #3B82F6; border-bottom-color: #3B82F6; }

/* Compare table */
body.dark .cmp-table-wrap      { background: #1E293B; border-color: #334155; }
body.dark .clt-head-row        { background: #0F172A; border-bottom-color: #334155; }
body.dark .clt-th-feat         { color: #64748B; border-right-color: #334155; border-bottom-color: #334155; }
body.dark .clt-th-ex           { color: #F1F5F9; border-color: #334155; }
body.dark .clt-row             { border-bottom-color: #334155; }
body.dark .clt-row:hover       { background: #273549; }
body.dark .clt-td-feat         { color: #94A3B8; background: #1E293B;
                                   border-right-color: #334155; border-bottom-color: #334155; }
body.dark .clt-td-val          { color: #F1F5F9; border-color: #334155; }

/* Compare now button slide-in */
.cmp-compare-now-btn {
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
                opacity   0.2s ease,
                box-shadow 0.2s ease;
}
.cmp-compare-now-btn:not(.hidden) {
    animation: slideInBtn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes slideInBtn {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
