/**
 * CryptoPriceList — modern theme overlay
 */

:root {
  --cpl-bg: #f0f4fc;
  --cpl-bg-elevated: #ffffff;
  --cpl-bg-glass: rgba(255, 255, 255, 0.85);
  --cpl-border: rgba(15, 23, 42, 0.08);
  --cpl-text: #0f172a;
  --cpl-text-muted: #64748b;
  --cpl-accent: #6366f1;
  --cpl-accent-2: #06b6d4;
  --cpl-accent-glow: rgba(99, 102, 241, 0.35);
  --cpl-success: #10b981;
  --cpl-danger: #ef4444;
  --cpl-radius: 14px;
  --cpl-radius-lg: 20px;
  --cpl-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --cpl-shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.1);
  --cpl-font: 'DM Sans', 'Roboto', -apple-system, sans-serif;
  --cpl-mono: 'JetBrains Mono', ui-monospace, monospace;
}

body.cpl-theme.cpl-dark,
body.cpl-theme.dark-mode {
  --cpl-bg: #060912;
  --cpl-bg-elevated: #0f1424;
  --cpl-bg-glass: rgba(12, 18, 34, 0.88);
  --cpl-header-bg: linear-gradient(180deg, #121a2e 0%, #0c101c 100%);
  --cpl-nav-bg: linear-gradient(180deg, #141c2e 0%, #0a0e17 100%);
  --cpl-nav-surface: rgba(255, 255, 255, 0.04);
  --cpl-search-inner: rgba(8, 12, 24, 0.9);
  --cpl-border: rgba(148, 163, 184, 0.12);
  --cpl-text: #f1f5f9;
  --cpl-text-muted: #94a3b8;
  --cpl-accent: #22d3ee;
  --cpl-accent-2: #a78bfa;
  --cpl-accent-glow: rgba(34, 211, 238, 0.2);
  --cpl-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --cpl-shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
}

body.cpl-theme:not(.cpl-dark):not(.dark-mode) {
  --cpl-header-bg: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  --cpl-nav-bg: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  --cpl-nav-surface: rgba(255, 255, 255, 0.65);
  --cpl-search-inner: rgba(255, 255, 255, 0.95);
}

body.cpl-theme {
  font-family: var(--cpl-font) !important;
  background: var(--cpl-bg) !important;
  color: var(--cpl-text);
  min-height: 100vh;
}

body.cpl-theme::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6, 182, 212, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

body.cpl-theme.cpl-dark::before,
body.cpl-theme.dark-mode::before {
  background:
    radial-gradient(ellipse 90% 60% at 50% -30%, rgba(99, 102, 241, 0.2), transparent),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(6, 182, 212, 0.12), transparent),
    radial-gradient(ellipse 40% 40% at 100% 80%, rgba(139, 92, 246, 0.1), transparent);
}

body.cpl-theme > .cw,
body.cpl-theme > .content,
body.cpl-theme .footer {
  position: relative;
  z-index: 1;
}

/* —— Header shell (topbar + nav) —— */
body.cpl-theme > .cw:first-of-type {
  border-bottom: none !important;
}

body.cpl-theme .cpl-topbar-strip {
  background: var(--cpl-header-bg);
  position: relative;
  padding: 8px 0 10px;
}

body.cpl-theme .cpl-topbar-strip::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 211, 238, 0.5) 20%,
    rgba(167, 139, 250, 0.6) 50%,
    rgba(34, 211, 238, 0.5) 80%,
    transparent 100%
  );
  opacity: 0.85;
}

body.cpl-theme #topbar {
  line-height: 1.4;
  margin: 0 !important;
  font-size: 12px;
}

body.cpl-theme .cpl-topbar-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

body.cpl-theme .cpl-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin: 2px 4px 2px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--cpl-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--cpl-border);
  border-radius: 999px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

body.cpl-theme:not(.cpl-dark):not(.dark-mode) .cpl-stat-pill {
  background: rgba(255, 255, 255, 0.75);
}

body.cpl-theme .cpl-stat-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.12);
}

body.cpl-theme .cpl-stat-pill strong {
  color: var(--cpl-text);
  font-family: var(--cpl-mono);
  font-weight: 600;
  font-size: 11px;
}

body.cpl-theme .cpl-stat-pill a {
  color: inherit;
  text-decoration: none;
}

body.cpl-theme .cpl-stat-coins {
  border-color: rgba(34, 211, 238, 0.25);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0.03));
}

body.cpl-theme .cpl-stat-exchanges {
  border-color: rgba(167, 139, 250, 0.25);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(167, 139, 250, 0.03));
}

body.cpl-theme .cpl-stat-vol {
  border-color: rgba(59, 130, 246, 0.25);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
}

body.cpl-theme .cpl-stat-btc strong { color: #f59e0b !important; }
body.cpl-theme .cpl-stat-eth strong { color: #818cf8 !important; }

body.cpl-theme .cpl-stat-mcap.cpl-stat-up {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), transparent);
}

body.cpl-theme .cpl-stat-mcap.cpl-stat-down {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), transparent);
}

body.cpl-theme .cpl-stat-mcap.cpl-stat-up strong,
body.cpl-theme .cpl-stat-pill.cpl-stat-up strong { color: var(--cpl-success) !important; }

body.cpl-theme .cpl-stat-mcap.cpl-stat-down strong,
body.cpl-theme .cpl-stat-pill.cpl-stat-down strong { color: var(--cpl-danger) !important; }

/* Auth + theme toggle */
body.cpl-theme .cpl-auth-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

body.cpl-theme .cpl-auth-link {
  color: var(--cpl-text-muted) !important;
  font-weight: 500;
  text-decoration: none !important;
}

body.cpl-theme .cpl-auth-link:hover {
  color: var(--cpl-accent) !important;
}

body.cpl-theme .cpl-auth-btn {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #0c101c !important;
  text-decoration: none !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #a78bfa);
  box-shadow: 0 2px 12px rgba(34, 211, 238, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

body.cpl-theme .cpl-auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.45);
  color: #0c101c !important;
}

body.cpl-theme .df-mode {
  color: var(--cpl-text-muted) !important;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--cpl-border);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

body.cpl-theme .df-mode:hover {
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}

/* —— Navbar strip (logo + menu + search) —— */
body.cpl-theme .cpl-nav-strip.cw {
  border-bottom: none !important;
  background: var(--cpl-nav-bg) !important;
  position: relative;
}

body.cpl-theme .cpl-nav-strip.cw::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 102, 241, 0.25) 25%,
    rgba(34, 211, 238, 0.35) 50%,
    rgba(167, 139, 250, 0.25) 75%,
    transparent
  );
}

body.cpl-theme .cpl-navbar.navbar-header {
  background: transparent !important;
  background-color: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 64px;
  padding: 10px 0 !important;
}

body.cpl-theme.cpl-dark .cpl-navbar.navbar-header,
body.cpl-theme.dark-mode .cpl-navbar.navbar-header {
  background: transparent !important;
  background-color: transparent !important;
}

/* Logo */
body.cpl-theme .cpl-logo-wrap {
  display: flex;
  align-items: center;
  padding: 6px 20px 6px 8px !important;
  margin-right: 8px !important;
  border-radius: 14px;
  background: var(--cpl-nav-surface);
  border: 1px solid var(--cpl-border);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.cpl-theme.cpl-dark .cpl-logo-wrap,
body.cpl-theme.dark-mode .cpl-logo-wrap {
  border-color: rgba(34, 211, 238, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.cpl-theme .cpl-logo-wrap:hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.12);
}

body.cpl-theme .cpl-logo-link {
  display: flex;
  align-items: center;
}

body.cpl-theme .cpl-logo-wrap img {
  height: 36px !important;
  width: auto !important;
  max-width: 180px;
  object-fit: contain;
}

body.cpl-theme .navbar-menu .nav-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--cpl-text-muted) !important;
  border-radius: 10px;
  padding: 8px 16px !important;
  transition: color 0.2s, background 0.2s;
}

body.cpl-theme .navbar-menu .nav-link:hover {
  color: var(--cpl-accent) !important;
  background: rgba(34, 211, 238, 0.1);
}

body.cpl-theme .navbar-right {
  padding: 0 !important;
}

/* Search — unified pill (overrides DashForge split input+button) */
body.cpl-theme .cpl-search.search-form {
  display: flex !important;
  align-items: center !important;
  position: relative;
  width: 100%;
  max-width: 300px;
  min-width: 200px;
  margin: 0 12px 0 0;
  padding: 3px;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(34, 211, 238, 0.4), rgba(167, 139, 250, 0.45)) !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
  transition: box-shadow 0.25s, transform 0.2s;
}

body.cpl-theme .cpl-search.search-form:focus-within {
  box-shadow: 0 4px 28px rgba(34, 211, 238, 0.28);
  transform: translateY(-1px);
}

body.cpl-theme .cpl-search .form-control {
  flex: 1 1 auto;
  width: 100% !important;
  min-height: 40px;
  padding: 8px 48px 8px 18px !important;
  border: none !important;
  border-radius: 999px !important;
  border-right-width: 0 !important;
  background: var(--cpl-search-inner) !important;
  color: var(--cpl-text) !important;
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

body.cpl-theme .cpl-search .form-control::placeholder {
  color: var(--cpl-text-muted);
  opacity: 0.85;
}

body.cpl-theme .cpl-search .form-control:focus,
body.cpl-theme .cpl-search .form-control:active {
  outline: none !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  border: none !important;
}

body.cpl-theme .cpl-search .cpl-search-btn,
body.cpl-theme .cpl-search button.btn {
  position: absolute !important;
  right: 5px !important;
  top: 50% !important;
  transform: translateY(-50%);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  border-left-width: 0 !important;
  background: linear-gradient(135deg, #6366f1, #22d3ee) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

body.cpl-theme .cpl-search .cpl-search-btn:hover,
body.cpl-theme .cpl-search button.btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.5);
  color: #fff !important;
}

body.cpl-theme .cpl-search .cpl-search-btn svg,
body.cpl-theme .cpl-search button.btn svg {
  stroke: #fff !important;
  width: 16px !important;
  height: 16px !important;
}

body.cpl-theme .search-mobile {
  color: var(--cpl-accent) !important;
  padding: 8px;
  border-radius: 12px;
  background: var(--cpl-nav-surface);
  border: 1px solid var(--cpl-border);
}

body.cpl-theme .burger-menu {
  color: var(--cpl-accent) !important;
  background: var(--cpl-nav-surface);
  border-radius: 10px;
  padding: 8px !important;
  border: 1px solid var(--cpl-border);
}

/* —— Search typeahead / autocomplete —— */
body.cpl-theme .cpl-search .twitter-typeahead {
  position: relative !important;
  flex: 1 1 auto;
  width: 100% !important;
  display: block !important;
}

body.cpl-theme .cpl-search .tt-hint,
body.cpl-theme .cpl-search .tt-input {
  width: 100% !important;
}

body.cpl-theme .cpl-search .tt-menu,
body.cpl-theme .navbar-search .tt-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  width: min(380px, calc(100vw - 32px)) !important;
  min-width: 300px;
  margin: 0 !important;
  padding: 8px !important;
  background: var(--cpl-bg-elevated) !important;
  border: 1px solid var(--cpl-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--cpl-shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.08) !important;
  z-index: 1050;
  overflow: hidden;
}

body.cpl-theme .tt-menu .tt-dataset {
  background: transparent !important;
  color: var(--cpl-text) !important;
}

body.cpl-theme .cpl-tt-section {
  padding: 10px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cpl-accent);
  border-bottom: 1px solid var(--cpl-border);
  margin-bottom: 4px;
}

body.cpl-theme .tt-dataset + .tt-dataset .cpl-tt-section {
  margin-top: 8px;
  padding-top: 14px;
}

body.cpl-theme .tt-suggestion {
  padding: 0 !important;
  margin: 2px 0;
  border-radius: 12px;
  overflow: hidden;
}

body.cpl-theme .tt-suggestion .cpl-tt-item,
body.cpl-theme .cpl-tt-mobile-item .cpl-tt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: background 0.15s, transform 0.15s;
}

body.cpl-theme .cpl-tt-icon {
  flex-shrink: 0;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: var(--cpl-bg);
}

body.cpl-theme .cpl-tt-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

body.cpl-theme .cpl-tt-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--cpl-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.cpl-theme .cpl-tt-symbol {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--cpl-mono);
  color: var(--cpl-text-muted);
  text-transform: uppercase;
}

body.cpl-theme .cpl-tt-rank {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--cpl-mono);
  color: var(--cpl-text-muted);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--cpl-border);
}

body.cpl-theme .tt-suggestion:hover,
body.cpl-theme .tt-suggestion.tt-cursor,
body.cpl-theme .tt-suggestion:focus {
  background: transparent !important;
  color: inherit !important;
}

body.cpl-theme .tt-suggestion:hover .cpl-tt-item,
body.cpl-theme .tt-suggestion.tt-cursor .cpl-tt-item {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.12)) !important;
  color: var(--cpl-text) !important;
}

body.cpl-theme .tt-suggestion:hover .cpl-tt-rank,
body.cpl-theme .tt-suggestion.tt-cursor .cpl-tt-rank {
  color: var(--cpl-accent);
  border-color: rgba(34, 211, 238, 0.35);
}

body.cpl-theme .tt-suggestion strong {
  font-weight: 700;
  color: var(--cpl-accent);
}

/* Mobile search overlay */
body.cpl-theme .navbar-search-body .cpl-tt-section {
  margin-top: 12px;
}

body.cpl-theme .cpl-tt-mobile-list {
  padding: 0;
}

body.cpl-theme .cpl-tt-mobile-item {
  margin-bottom: 4px;
}

body.cpl-theme .cpl-tt-mobile-item .cpl-tt-item {
  width: 100%;
}

body.cpl-theme .navbar-search-body .cpl-tt-icon {
  margin-right: 0;
}

/* —— Page title (exchanges, etc.) —— */
body.cpl-theme .cpl-page-head {
  margin-bottom: 28px;
  padding: 24px 28px 24px 32px;
  background: var(--cpl-bg-elevated);
  border: 1px solid var(--cpl-border);
  border-radius: var(--cpl-radius-lg);
  box-shadow: var(--cpl-shadow);
  position: relative;
  overflow: hidden;
}

body.cpl-theme .cpl-page-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #22d3ee, #a78bfa);
}

body.cpl-theme .cpl-page-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #a5b4fc 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.cpl-theme:not(.cpl-dark):not(.dark-mode) .cpl-page-title {
  background: linear-gradient(135deg, #0f172a 0%, #6366f1 50%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body.cpl-theme .cpl-page-sub {
  font-size: 14px;
  color: var(--cpl-text-muted);
  line-height: 1.55;
}

body.cpl-theme .cpl-page-sub .cpl-mcap-change.up { color: var(--cpl-success); font-weight: 600; }
body.cpl-theme .cpl-page-sub .cpl-mcap-change.down { color: var(--cpl-danger); font-weight: 600; }

body.cpl-theme .btn-primary {
  background: linear-gradient(135deg, var(--cpl-accent), #8b5cf6) !important;
  border: none !important;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--cpl-accent-glow);
}

/* —— Hero —— */
body.cpl-theme .cpl-hero {
  margin-bottom: 28px;
  padding: 28px 32px;
  background: var(--cpl-bg-elevated);
  border: 1px solid var(--cpl-border);
  border-radius: var(--cpl-radius-lg);
  box-shadow: var(--cpl-shadow-lg);
  position: relative;
  overflow: hidden;
}

body.cpl-theme .cpl-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg, transparent, rgba(99, 102, 241, 0.06), transparent);
  transform: rotate(-12deg);
  pointer-events: none;
}

body.cpl-theme .cpl-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--cpl-text) 0%, var(--cpl-accent) 50%, var(--cpl-accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.cpl-theme.cpl-dark .cpl-hero h1,
body.cpl-theme.dark-mode .cpl-hero h1 {
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 40%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body.cpl-theme .cpl-hero-sub {
  font-size: 15px;
  color: var(--cpl-text-muted);
  line-height: 1.6;
  max-width: 720px;
}

body.cpl-theme .cpl-hero-sub .cpl-mcap-change.up { color: var(--cpl-success); font-weight: 600; }
body.cpl-theme .cpl-hero-sub .cpl-mcap-change.down { color: var(--cpl-danger); font-weight: 600; }

/* —— LIVE badge —— */
body.cpl-theme .live_badge {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

body.cpl-theme .live_badge.live {
  animation: cpl-pulse 2s ease-in-out infinite;
}

@keyframes cpl-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 28px rgba(16, 185, 129, 0.8); }
}

/* —— Top movers —— */
body.cpl-theme .card.top-movers {
  border: 1px solid var(--cpl-border) !important;
  border-radius: var(--cpl-radius-lg) !important;
  background: var(--cpl-bg-elevated) !important;
  box-shadow: var(--cpl-shadow) !important;
  overflow: hidden;
}

body.cpl-theme .card.top-movers .card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--cpl-border) !important;
  padding: 16px 20px !important;
}

body.cpl-theme .card.top-movers .card-header h6 {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cpl-text-muted);
}

body.cpl-theme .card.top-movers .crypto {
  padding: 20px !important;
  transition: background 0.2s;
}

body.cpl-theme .card.top-movers .crypto:hover {
  background: var(--cpl-accent-glow);
}

body.cpl-theme .card.top-movers h5 {
  font-family: var(--cpl-mono) !important;
  font-weight: 600 !important;
}

body.cpl-theme .crypto-icon {
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* —— Coin table —— */
body.cpl-theme .cpl-table-wrap {
  background: var(--cpl-bg-elevated);
  border: 1px solid var(--cpl-border);
  border-radius: var(--cpl-radius-lg);
  box-shadow: var(--cpl-shadow);
  overflow: hidden;
}

body.cpl-theme #table-coinlist {
  margin-bottom: 0 !important;
}

body.cpl-theme #table-coinlist thead th {
  background: var(--cpl-bg) !important;
  border-bottom: 1px solid var(--cpl-border) !important;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cpl-text-muted) !important;
  padding: 14px 12px !important;
  white-space: nowrap;
}

body.cpl-theme #table-coinlist tbody tr {
  border-bottom: 1px solid var(--cpl-border);
  transition: background 0.15s, transform 0.15s;
}

body.cpl-theme #table-coinlist tbody tr:hover {
  background: var(--cpl-accent-glow) !important;
}

body.cpl-theme #table-coinlist tbody td {
  padding: 14px 12px !important;
  vertical-align: middle !important;
  border-color: var(--cpl-border) !important;
  color: var(--cpl-text);
}

body.cpl-theme #table-coinlist .cc_price_bitcoin span,
body.cpl-theme #table-coinlist [class*="cc_price_"] span {
  font-family: var(--cpl-mono);
  font-weight: 500;
  font-size: 14px;
}

body.cpl-theme #table-coinlist .item-icon {
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.cpl-theme #table-coinlist td a {
  color: var(--cpl-text) !important;
  font-weight: 600;
  text-decoration: none !important;
}

body.cpl-theme #table-coinlist td a:hover {
  color: var(--cpl-accent) !important;
}

body.cpl-theme .text-success,
body.cpl-theme .text-success-anim { color: var(--cpl-success) !important; }
body.cpl-theme .text-danger,
body.cpl-theme .text-danger-anim { color: var(--cpl-danger) !important; }

body.cpl-theme tr.h-success { background: rgba(16, 185, 129, 0.08) !important; }
body.cpl-theme tr.h-danger { background: rgba(239, 68, 68, 0.08) !important; }

/* —— Pagination —— */
body.cpl-theme .pagination .page-link {
  border-radius: 10px !important;
  margin: 0 3px;
  border: 1px solid var(--cpl-border) !important;
  color: var(--cpl-text-muted);
  font-weight: 500;
}

body.cpl-theme .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--cpl-accent), #8b5cf6) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* —— Footer —— */
body.cpl-theme .footer {
  border-top: 1px solid var(--cpl-border);
  background: var(--cpl-bg-glass);
  backdrop-filter: blur(12px);
  margin-top: 48px;
  padding: 24px 0;
}

body.cpl-theme .footer .nav-link {
  color: var(--cpl-text-muted) !important;
  font-weight: 500;
}

body.cpl-theme .footer .nav-link:hover {
  color: var(--cpl-accent) !important;
}

/* —— Dark skin overrides —— */
body.cpl-theme.cpl-dark .content,
body.cpl-theme.dark-mode .content {
  background: transparent !important;
}

body.cpl-theme.cpl-dark .table,
body.cpl-theme.dark-mode .table {
  color: var(--cpl-text);
}

body.cpl-theme.cpl-dark .text-muted,
body.cpl-theme.dark-mode .text-muted,
body.cpl-theme.cpl-dark .tx-color-03,
body.cpl-theme.dark-mode .tx-color-03 {
  color: var(--cpl-text-muted) !important;
}

/* Coin detail & exchanges */
body.cpl-theme .card {
  border-radius: var(--cpl-radius) !important;
  border: 1px solid var(--cpl-border) !important;
  box-shadow: var(--cpl-shadow) !important;
}

body.cpl-theme .breadcrumb-style1 {
  background: transparent;
  padding: 0;
}

/* Mobile */
@media (max-width: 768px) {
  body.cpl-theme .cpl-hero {
    padding: 20px 18px;
  }
  body.cpl-theme .cpl-stat-pill {
    font-size: 11px;
    padding: 4px 10px;
  }
}
