.qs-market-native-hidden {
  display: none !important;
}

.qs-market-host-flat {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.qsm-wrap {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.85rem;
}


.qsm-top {
  display: grid;
  gap: 0.68rem;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: radial-gradient(130% 130% at 100% 0%, rgba(14, 165, 233, 0.24), transparent 52%),
    linear-gradient(165deg, rgba(7, 18, 37, 0.96), rgba(8, 27, 54, 0.9));
  padding: 0.92rem;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.5);
}

.qsm-top-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.qsm-top-title {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  line-height: 1.02;
}

.qsm-top-sub {
  margin: 0.24rem 0 0;
  color: #bfdbfe;
  font-size: 0.85rem;
}

.qsm-status {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.2rem 0.52rem;
  background: rgba(2, 6, 23, 0.34);
}

.qsm-status-dot {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: #fb7185;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.18);
}

.qsm-status.online .qsm-status-dot {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.crypto-list-section {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(4, 13, 27, 0.72);
  color: #dbe9ff;
  padding: 0.84rem;
}

.crypto-list-section .tabs-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.crypto-list-section .tab {
  appearance: none;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #dbe9ff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.crypto-list-section .tab:hover {
  border-color: rgba(125, 211, 252, 0.5);
}

.crypto-list-section .tab.active {
  border-color: rgba(56, 189, 248, 0.85);
  background: #0284c7;
  color: #f8fbff;
}

.crypto-list-section .header-tab-container {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
  gap: 0.5rem;
  padding: 0 0.1rem;
  margin-bottom: 0.6rem;
}

.crypto-list-section .header-tab {
  color: rgba(167, 189, 218, 0.92);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crypto-list-section .header-price {
  text-align: center;
}

.crypto-list-section .header-change {
  text-align: right;
}

.crypto-list-section .crypto-list-flat {
  display: grid;
  gap: 0.55rem;
}

.crypto-list-section .crypto-flat-item {
  width: 100%;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(7, 18, 37, 0.92), rgba(8, 27, 54, 0.88));
  color: #d9e9ff;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0.66rem 0.74rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.crypto-list-section .crypto-flat-item:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.68);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.42);
}

.crypto-list-section .crypto-flat-item:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.85);
  outline-offset: 2px;
}

.crypto-list-section .crypto-flat-info {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.5rem;
}

.crypto-list-section .crypto-image {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.crypto-list-section .crypto-symbol {
  color: #f8fbff;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.crypto-list-section .crypto-name {
  color: rgba(167, 189, 218, 0.95);
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crypto-list-section .price-main {
  color: #f8fbff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: center;
}

.crypto-list-section .change-pill {
  justify-self: end;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.3rem 0.56rem;
  white-space: nowrap;
}

.crypto-list-section .change-pill.positive {
  color: #86efac;
  background: rgba(22, 163, 74, 0.22);
}

.crypto-list-section .change-pill.negative {
  color: #fecdd3;
  background: rgba(190, 24, 93, 0.22);
}

.qsm-kpi-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qsm-kpi-card {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(3, 12, 27, 0.58);
  padding: 0.65rem 0.72rem;
  min-height: 76px;
}

.qsm-kpi-label {
  margin: 0;
  color: #9fb2cf;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qsm-kpi-value {
  margin: 0.28rem 0 0;
  color: #f8fbff;
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  line-height: 1;
  font-weight: 800;
}

.qsm-kpi-value.up {
  color: #86efac;
}

.qsm-kpi-value.down {
  color: #fda4af;
}

.qsm-list {
  display: grid;
  gap: 0.64rem;
}

.qsm-card {
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(5, 14, 28, 0.94), rgba(8, 24, 47, 0.9));
  color: #dbeafe;
  padding: 0.82rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.qsm-card:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.62);
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.42);
}

.qsm-card.open {
  border-color: rgba(103, 232, 249, 0.8);
  box-shadow: 0 16px 30px rgba(8, 145, 178, 0.22);
}

.qsm-card--skeleton {
  pointer-events: none;
  cursor: default;
}

.qsm-card--skeleton .qsm-symbol,
.qsm-card--skeleton .qsm-name,
.qsm-card--skeleton .qsm-label,
.qsm-card--skeleton .qsm-value {
  color: transparent !important;
  border-radius: 6px;
  background: rgba(51, 65, 85, 0.86);
}

.qsm-details-btn,
[data-market-toggle] {
  display: none !important;
}

.qsm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.52rem;
}

.qsm-symbol {
  margin: 0;
  color: #c7ddfb;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.qsm-name {
  margin: 0;
  color: #eff7ff;
  font-size: 0.88rem;
  text-transform: uppercase;
  text-align: right;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qsm-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.qsm-label {
  margin: 0;
  color: rgba(159, 178, 207, 0.95);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qsm-value {
  margin: 0.16rem 0 0;
  color: #f8fbff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
}

.mobile-market-detail-panel.qsm-details {
  margin-top: 0.72rem;
  padding-top: 0.64rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.qsm-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.qsm-change {
  font-size: 0.78rem;
  font-weight: 700;
}

.qsm-change.up {
  color: #86efac;
}

.qsm-change.down {
  color: #fda4af;
}

.qsm-volume {
  color: #7dd3fc;
  font-size: 0.74rem;
  font-weight: 700;
}

.qsm-actions,
.mobile-market-detail-actions {
  margin-top: 0.56rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.46rem;
}

.market-action,
.qsm-action {
  appearance: none;
  border-radius: 999px;
  border: 1px solid transparent;
  min-height: 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.market-action:hover,
.qsm-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.market-action.up,
.qsm-action.up {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(21, 128, 61, 0.3);
  color: #86efac;
}

.market-action.down,
.qsm-action.down {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(190, 24, 93, 0.3);
  color: #fda4af;
}

.qsm-empty {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(4, 13, 27, 0.64);
  color: #cbd5e1;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.95rem;
}

.qsm-shimmer-list {
  display: grid;
  gap: 0.55rem;
}

.qsm-shimmer-item {
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(7, 18, 37, 0.92), rgba(8, 27, 54, 0.88));
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0.66rem 0.74rem;
}

.qsm-shimmer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qsm-shimmer-circle,
.qsm-shimmer-line {
  position: relative;
  overflow: hidden;
  display: block;
  background: rgba(51, 65, 85, 0.65);
}

.qsm-shimmer-circle::after,
.qsm-shimmer-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 40%,
    rgba(255, 255, 255, 0) 80%
  );
  animation: qsmShimmer 1.25s ease-in-out infinite;
}

.qsm-shimmer-circle {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.qsm-shimmer-line {
  height: 0.72rem;
  border-radius: 6px;
}

.qsm-shimmer-line--lg {
  width: 68%;
}

.qsm-shimmer-line--md {
  width: 72%;
  justify-self: center;
}

.qsm-shimmer-line--sm {
  width: 58%;
  justify-self: end;
}

@keyframes qsmShimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (min-width: 780px) {
  .qsm-wrap {
    gap: 0.8rem;
  }

  .qsm-top {
    padding: 1.08rem;
  }

  .qsm-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .qsm-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .qsm-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .qsm-top {
    border-radius: 16px;
    padding: 0.8rem;
  }

  .qsm-kpi-grid {
    gap: 0.45rem;
  }

  .qsm-kpi-card {
    border-radius: 12px;
    padding: 0.56rem;
    min-height: 70px;
  }

  .qsm-card {
    border-radius: 14px;
    padding: 0.7rem;
  }

  .qsm-value {
    font-size: 0.9rem;
  }

  .qsm-volume,
  .qsm-change {
    font-size: 0.7rem;
  }

  .crypto-list-section {
    border-radius: 14px;
    padding: 0.72rem;
  }

  .crypto-list-section .header-tab,
  .crypto-list-section .tab {
    font-size: 0.73rem;
  }

  .crypto-list-section .crypto-flat-item {
    padding: 0.6rem 0.64rem;
  }
}

@media (max-width: 420px) {
  .crypto-list-section .header-tab-container,
  .crypto-list-section .crypto-flat-item {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 0.9fr);
    gap: 0.4rem;
  }

  .crypto-list-section .crypto-symbol {
    font-size: 0.86rem;
  }

  .crypto-list-section .crypto-name {
    font-size: 0.73rem;
  }

  .crypto-list-section .price-main {
    font-size: 0.84rem;
  }

  .crypto-list-section .change-pill {
    font-size: 0.68rem;
    padding: 0.26rem 0.44rem;
  }
}

:root {
  --alpha-deep: #071714;
  --alpha-panel: #0b221d;
  --alpha-panel-2: #123128;
  --alpha-text: #f8fafc;
  --alpha-soft: rgba(248, 250, 252, 0.72);
  --alpha-line: rgba(212, 160, 23, 0.24);
  --alpha-line-strong: rgba(212, 160, 23, 0.38);
  --alpha-green: #1f9d66;
  --alpha-gold: #d4a017;
}

.qsm-top {
  border-color: var(--alpha-line) !important;
  background:
    radial-gradient(130% 130% at 100% 0%, rgba(212, 160, 23, 0.22), transparent 52%),
    linear-gradient(135deg, rgba(7, 39, 58, 0.96), rgba(31, 157, 102, 0.88) 42%, rgba(212, 160, 23, 0.92)) !important;
  box-shadow: 0 22px 40px rgba(2, 8, 23, 0.42) !important;
}

.qsm-top-title,
.crypto-list-section .crypto-symbol,
.crypto-list-section .price-main,
.qsm-kpi-value,
.qsm-value,
.qsm-symbol {
  color: var(--alpha-text) !important;
}

.qsm-top-sub,
.qsm-status,
.crypto-list-section .header-tab,
.crypto-list-section .crypto-name,
.qsm-kpi-label,
.qsm-label,
.qsm-name,
.qsm-volume {
  color: var(--alpha-soft) !important;
}

.qsm-status {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(7, 23, 20, 0.3) !important;
}

.crypto-list-section,
.qsm-kpi-card,
.qsm-card,
.mobile-market-detail-panel.qsm-details {
  border-color: var(--alpha-line) !important;
  background:
    linear-gradient(180deg, rgba(7, 23, 20, 0.94), rgba(12, 38, 33, 0.94)) !important;
  box-shadow: 0 16px 32px rgba(2, 8, 23, 0.28) !important;
}

.crypto-list-section .tab {
  border-color: rgba(212, 160, 23, 0.22) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--alpha-text) !important;
}

.crypto-list-section .tab:hover,
.crypto-list-section .crypto-flat-item:hover,
.qsm-card:hover,
.market-action:hover,
.qsm-action:hover {
  border-color: var(--alpha-line-strong) !important;
}

.crypto-list-section .tab.active,
.qsm-details-btn,
.market-action.up,
.qsm-action.up {
  background: linear-gradient(90deg, var(--alpha-green), var(--alpha-gold)) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: var(--alpha-text) !important;
}

.crypto-list-section .crypto-flat-item,
.qsm-card {
  border-color: rgba(212, 160, 23, 0.18) !important;
  background:
    linear-gradient(145deg, rgba(8, 28, 24, 0.96), rgba(14, 43, 36, 0.92)) !important;
}

.crypto-list-section .crypto-flat-item:focus-visible {
  outline-color: rgba(31, 157, 102, 0.95) !important;
}

.crypto-list-section .change-pill.positive,
.qsm-change.up {
  color: #9bf4cb !important;
  background: rgba(31, 157, 102, 0.2) !important;
}

.crypto-list-section .change-pill.negative,
.qsm-change.down {
  color: #ffd0c8 !important;
  background: rgba(185, 55, 73, 0.2) !important;
}

.market-action.down,
.qsm-action.down {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(212, 160, 23, 0.22) !important;
  color: var(--alpha-text) !important;
}
