/* ─────────── NETWORK COLORS & ICONS ──────────── */
:root {
  --ethereum: #627eea;
  --bitcoin: #f7931a;
  --polygon: #8247e5;
  --base: #0052ff;
  --bnb: #f3ba2f;
  --solana: #14f195;
  --arbitrum: #28a0f0;
  --optimism: #ff0420;
  --avalanche: #e84142;
  --fantom: #1969ff;
}

/* ─────────── NETWORK PICKER MODAL ─────────── */
.network-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.network-picker-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: all;
}

.network-picker {
  background: linear-gradient(135deg, rgba(24, 24, 32, 0.95), rgba(18, 18, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  max-width: 480px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform: scale(0.92) translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.network-picker-overlay:not(.hidden) .network-picker {
  transform: none;
  opacity: 1;
}

.network-picker-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.network-picker-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--txt);
}

.network-picker-close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 10;
  line-height: 1;
  padding: 0;
}

.network-picker-close:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--txt);
  transform: translateY(-1px);
  box-shadow: none;
}

.network-search {
  position: relative;
}

.network-search input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: var(--txt);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.network-search input:focus {
  outline: none;
  border-color: var(--focus);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.network-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.network-search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.network-picker-body {
  padding: 0.5rem;
  max-height: calc(85vh - 180px);
  overflow-y: auto;
}

/* Custom scrollbar */
.network-picker-body::-webkit-scrollbar {
  width: 8px;
}

.network-picker-body::-webkit-scrollbar-track {
  background: transparent;
}

.network-picker-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.network-picker-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.network-category {
  margin-bottom: 1.5rem;
}

.network-category-title {
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.network-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.network-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.network-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.network-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.network-info {
  flex: 1;
  min-width: 0;
}

.network-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 0.15rem;
}

.network-symbol {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
}

.network-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.network-badge.testnet {
  background: rgba(168, 85, 247, 0.15);
  color: #A855F7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.network-badge.popular {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* ─────────── MARKETS SECTION ─────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin: 0;
  overflow: visible;
  padding: 0;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.markets-pro-controls {
  display: flex;
  flex-direction: column;
  gap: 0.54rem;
  margin-bottom: 0.95rem;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.markets-pro-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.markets-combo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.44rem;
}

.markets-combo-grid.markets-combo-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.markets-search-shell {
  display: flex;
  align-items: center;
  gap: 0.44rem;
  min-height: 42px;
  padding: 0 0.72rem;
  border-radius: 15px;
  border: 1px solid rgba(112, 118, 136, 0.45);
  background: #1b1b21;
  color: rgba(245, 247, 255, 0.82);
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
}

.markets-search-shell:focus-within {
  border-color: rgba(143, 151, 176, 0.85);
  background: #1e1f26;
}

.markets-search-shell svg {
  width: 15px;
  height: 15px;
  opacity: 0.64;
  flex: 0 0 auto;
}

.markets-search-shell input {
  width: 100%;
  min-width: 0;
  background: transparent !important;
  border: 0 !important;
  color: #f7f9ff;
  outline: none !important;
  font-size: 0.85rem;
  font-weight: 540;
  padding: 0 !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.markets-search-shell input::placeholder {
  color: rgba(191, 202, 236, 0.66);
}

.markets-search-clear {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(183, 196, 255, 0.21);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(222, 231, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
  min-width: 24px;
}

.markets-search-clear svg {
  width: 12px;
  height: 12px;
}

.markets-search-clear:hover:not(:disabled) {
  border-color: rgba(197, 209, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
}

.markets-native-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.markets-combo {
  position: relative;
  min-width: 0;
}

.markets-pro-trigger {
  width: 100%;
  flex: 0 0 auto !important;
  min-width: 0;
  min-height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(109, 116, 134, 0.52);
  background: #1f2026;
  color: #f3f5ff;
  padding: 0 0.68rem;
  font-size: 0.8rem;
  font-weight: 640;
  letter-spacing: 0.01em;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.markets-trigger-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 214, 255, 0.84);
  flex: 0 0 auto;
}

.markets-trigger-icon svg {
  width: 14px;
  height: 14px;
}

.markets-pro-trigger-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  letter-spacing: 0;
}

.markets-trigger-caret {
  width: 12px;
  height: 12px;
  opacity: 0.82;
  transition: transform 0.15s ease;
}

.markets-pro-trigger[aria-expanded="true"] .markets-trigger-caret {
  transform: rotate(180deg);
}

.markets-pro-trigger:focus,
.markets-pro-trigger:hover:not(:disabled),
.markets-pro-trigger[aria-expanded="true"] {
  outline: none;
  border-color: rgba(150, 160, 186, 0.76);
  background: #242633;
  transform: translateY(-0.5px);
}

.markets-search-feedback {
  margin-top: 0;
  font-size: 0.74rem;
  color: rgba(199, 211, 246, 0.78);
  padding: 0 0.2rem;
  min-height: 1.16rem;
}

.markets-nav-grid {
  display: none;
}

.markets-nav-group {
  border-radius: 13px;
  border: 1px solid rgba(159, 174, 242, 0.17);
  background: linear-gradient(180deg, rgba(15, 19, 31, 0.86), rgba(12, 15, 25, 0.9));
  padding: 0.45rem;
}

.markets-nav-title {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(182, 196, 236, 0.78);
  margin: 0 0 0.32rem;
  padding: 0 0.2rem;
}

.markets-pro-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 46;
  border-radius: 12px;
  border: 1px solid rgba(123, 133, 158, 0.46);
  background: #1b1d27;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  max-height: min(260px, 56vh);
  overflow-y: auto;
}

.markets-pro-option {
  width: 100%;
  flex: 0 0 auto !important;
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid rgba(188, 198, 255, 0.1);
  border-radius: 0;
  background: transparent;
  color: rgba(236, 243, 255, 0.88);
  padding: 0.5rem 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.62rem;
  font-size: 0.8rem;
  font-weight: 560;
  text-align: left;
}

.markets-pro-option-main {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
}

.markets-pro-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.markets-pro-option-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(205, 217, 255, 0.7);
  flex: 0 0 auto;
}

.markets-pro-option-icon svg {
  width: 15px;
  height: 15px;
}

.markets-pro-option:last-child {
  border-bottom: 0;
}

.markets-pro-option:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  color: #f8fbff;
}

.markets-pro-option.active {
  background: linear-gradient(130deg, rgba(107, 123, 174, 0.34), rgba(70, 84, 123, 0.24));
  color: #fbfdff;
  font-weight: 640;
}

.markets-pro-option.active .markets-pro-option-icon {
  color: rgba(241, 246, 255, 0.96);
}

.markets-pro-check {
  width: 16px;
  height: 16px;
  opacity: 0;
}

.markets-pro-check svg {
  width: 16px;
  height: 16px;
}

.markets-pro-option.active .markets-pro-check {
  opacity: 1;
}

.markets-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.market-stat-pill {
  border-radius: 11px;
  border: 1px solid rgba(170, 184, 248, 0.14);
  background: linear-gradient(180deg, rgba(18, 22, 36, 0.72), rgba(13, 16, 27, 0.8));
  padding: 0.56rem 0.62rem;
  font-size: 0.76rem;
  color: rgba(234, 241, 255, 0.83);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-focus-controls {
  display: none;
}

.market-focus-controls::-webkit-scrollbar {
  display: none;
}

.market-category-slot {
  display: none;
}

.market-category-slot .market-category-bar {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
}

.market-focus-btn {
  flex: 1 1 calc(50% - 0.2rem) !important;
  border: 1px solid rgba(171, 186, 253, 0.17);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(229, 237, 255, 0.76);
  border-radius: 10px;
  min-height: 34px;
  padding: 0.34rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.market-focus-btn:hover:not(:disabled) {
  transform: translateY(-0.5px);
  border-color: rgba(188, 202, 255, 0.55);
  color: #f1f6ff;
  background: rgba(255, 255, 255, 0.11);
}

.market-focus-btn.active {
  color: #fcfdff;
  border-color: rgba(175, 159, 255, 0.92);
  background: linear-gradient(140deg, rgba(124, 98, 255, 0.75), rgba(76, 119, 255, 0.62));
  box-shadow: 0 8px 16px rgba(56, 73, 173, 0.36), 0 0 0 1px rgba(231, 237, 255, 0.12) inset;
}

.market-focus-btn.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(239, 244, 255, 0.95);
}

.market-movers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.mover-card {
  border-radius: 14px;
  border: 1px solid rgba(171, 186, 252, 0.18);
  background: linear-gradient(180deg, rgba(20, 24, 39, 0.92), rgba(14, 18, 30, 0.95));
  color: #f5f8ff;
  text-align: left;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mover-card:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(191, 205, 255, 0.35);
  background: linear-gradient(180deg, rgba(24, 29, 46, 0.96), rgba(16, 21, 35, 0.98));
}

.mover-meta,
.mover-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: 0;
}

.mover-label {
  color: rgba(203, 214, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 600;
}

.mover-symbol,
.mover-price {
  color: #f8fbff;
  font-size: 0.86rem;
  font-weight: 700;
}

.mover-change {
  font-size: 0.79rem;
  font-weight: 650;
}

.mover-change.positive {
  color: #34D399;
}

.mover-change.negative {
  color: #F87171;
}

#markets .filter-btn {
  display: none !important;
}

#markets .filter-btn:hover:not(:disabled) {
  display: none !important;
}

#markets .filter-btn.active {
  display: none !important;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem;
  margin-top: 0.8rem;
}

@media (min-width: 981px) {
  .market-focus-btn {
    flex: 0 0 auto !important;
    min-width: 96px;
  }

  #markets .filter-btn {
    flex: 0 0 auto;
    min-width: 104px;
  }
}

@media (max-width: 768px) {
  .markets-grid {
    grid-template-columns: 1fr;
  }

  #markets .filter-btn {
    min-height: 33px;
    padding: 0.4rem 0.62rem;
    font-size: 0.76rem;
    border-radius: 10px;
  }
}

.market-card {
  background: linear-gradient(165deg, rgba(19, 23, 37, 0.9), rgba(13, 16, 28, 0.95));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(171, 186, 252, 0.16);
  border-radius: 20px;
  padding: 1.1rem 1.05rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.market-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 168px;
  height: 168px;
  background: radial-gradient(circle, var(--market-color, rgba(79, 70, 229, 0.15)), transparent 70%);
  opacity: 0.36;
  transition: opacity 0.3s ease, transform 0.5s ease;
  filter: blur(14px);
}

.market-card:hover {
  transform: translateY(-2px);
  border-color: rgba(176, 197, 255, 0.43);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  background: linear-gradient(165deg, rgba(24, 29, 46, 0.95), rgba(15, 20, 33, 0.98));
}

.market-card:active {
  transform: translateY(-1px) scale(0.998);
}

.market-card:hover::before {
  opacity: 0.58;
  transform: scale(1.15);
}

.market-header {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 0.95rem;
  min-width: 0;
}

.market-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.market-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.network-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.market-info {
  flex: 1;
  min-width: 0;
}

.market-symbol {
  font-size: 1.03rem;
  font-weight: 720;
  color: var(--txt);
  margin-bottom: 0;
}

.market-symbol-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.market-network-chip {
  display: inline-flex;
  align-items: center;
  max-width: 110px;
  border-radius: 999px;
  border: 1px solid rgba(171, 186, 252, 0.32);
  padding: 0.13rem 0.48rem;
  font-size: 0.64rem;
  font-weight: 640;
  color: rgba(219, 227, 255, 0.8);
  background: rgba(124, 140, 225, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-name {
  margin-top: 0.17rem;
  font-size: 0.72rem;
  color: rgba(186, 197, 232, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-watch-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 247, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.market-watch-btn svg {
  width: 16px;
  height: 16px;
  fill: transparent;
  transition: fill 0.2s ease, transform 0.2s ease, stroke 0.2s ease;
}

.market-watch-btn.active {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.62);
  background: rgba(252, 211, 77, 0.19);
}

.market-watch-btn.active svg {
  fill: currentColor;
  stroke: rgba(26, 17, 0, 0.35);
}

.market-watch-btn:hover:not(:disabled) svg {
  transform: scale(1.06);
}

.market-watch-btn:hover:not(:disabled) {
  border-color: rgba(235, 242, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.market-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.52rem;
  color: rgba(211, 219, 245, 0.72);
  font-size: 0.77rem;
  font-weight: 600;
}

.market-cap,
.market-vol {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-price {
  font-size: clamp(1.5rem, 4.1vw, 2.08rem);
  font-weight: 740;
  color: var(--txt);
  margin-bottom: 0.58rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.market-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.market-change {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.market-change.positive {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.market-change.negative {
  background: rgba(248, 113, 113, 0.15);
  color: #F87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.market-change-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.market-change-icon {
  width: 13px;
  height: 13px;
}

.mover-trend-icon {
  width: 13px;
  height: 13px;
}

.mover-change {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.market-chart {
  flex: 1;
  min-width: 88px;
  display: flex;
  justify-content: flex-end;
}

.market-chart svg {
  width: min(170px, 100%);
  height: 34px;
}

.market-loading {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.market-error {
  color: var(--err);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* Pulse animation for live updates */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }

  50% {
    box-shadow: 0 0 20px 4px rgba(79, 70, 229, 0.3);
  }
}

.market-card.updating {
  animation: pulse-glow 2s ease-in-out;
}

.markets-pagination {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.markets-load-more {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 19, 33, 0.9);
  color: #eef3ff;
  min-height: 42px;
  padding: 0.52rem 1.25rem;
  font-weight: 650;
  font-size: 0.9rem;
}

.market-empty-state {
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(15, 17, 30, 0.7);
  padding: 1.2rem;
  text-align: center;
  color: rgba(231, 236, 255, 0.8);
}

.market-empty-state h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #f4f8ff;
}

.market-empty-state p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(207, 216, 245, 0.74);
}

.md-actions {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.md-action-btn {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(165, 179, 252, 0.28);
  background: linear-gradient(180deg, rgba(27, 33, 53, 0.94), rgba(18, 22, 37, 0.97));
  color: #f0f4ff;
  font-size: 0.82rem;
  font-weight: 640;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.md-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(179, 192, 255, 0.45);
  background: linear-gradient(180deg, rgba(32, 39, 60, 0.98), rgba(22, 28, 45, 1));
}

.md-action-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(200, 213, 255, 0.92);
}

.md-action-icon svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 980px) {
  .markets-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-movers {
    grid-template-columns: 1fr;
  }

  .market-network-chip {
    max-width: 88px;
    font-size: 0.6rem;
  }
}

@media (max-width: 560px) {
  .markets-pro-trigger,
  .markets-search-shell {
    min-height: 38px;
  }

  .markets-pro-trigger {
    font-size: 0.75rem;
    border-radius: 14px;
    padding: 0 0.56rem;
  }
}
