.dm-auto-sell-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(71, 161, 255, 0.34);
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 202, 255, 0.10),
      transparent 42%
    ),
    var(
      --card-bg,
      rgba(7, 18, 44, 0.96)
    );
}

.dm-auto-sell-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(83, 216, 255, 0.82),
      rgba(88, 113, 255, 0.68),
      transparent
    );
  content: "";
}

.dm-auto-sell-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dm-auto-sell-kicker {
  margin-bottom: 5px;
  color: #53d8ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dm-auto-sell-title {
  color: #ffffff;
}

.dm-auto-sell-live {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(83, 240, 167, 0.25);
  border-radius: 999px;
  background: rgba(16, 79, 58, 0.22);
  color: #6ff2b4;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dm-auto-sell-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #53f0a7;
  box-shadow:
    0 0 11px rgba(83, 240, 167, 0.78);
}

.dm-auto-sell-summary-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 2fr)
    repeat(3, minmax(120px, 1fr));
  gap: 11px;
  margin-bottom: 14px;
}

.dm-auto-sell-summary,
.dm-auto-sell-latest,
.dm-auto-sell-detail {
  border: 1px solid rgba(91, 137, 218, 0.18);
  background: rgba(4, 14, 38, 0.67);
}

.dm-auto-sell-summary {
  min-width: 0;
  padding: 14px;
  border-radius: 13px;
}

.dm-auto-sell-label {
  margin-bottom: 7px;
  color: rgba(167, 186, 229, 0.78);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.dm-auto-sell-metric {
  color: #ffffff;
  font-size: 1.14rem;
  font-weight: 900;
  line-height: 1.3;
}

.dm-auto-sell-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #ffd36a;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
}

.dm-auto-sell-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 999px;
  background: #ffd36a;
  box-shadow:
    0 0 10px rgba(255, 211, 106, 0.6);
}

.dm-auto-sell-status.is-active {
  color: #65efad;
}

.dm-auto-sell-status.is-active
.dm-auto-sell-status-dot {
  background: #53f0a7;
  box-shadow:
    0 0 10px rgba(83, 240, 167, 0.7);
}

.dm-auto-sell-status.is-error {
  color: #ff9191;
}

.dm-auto-sell-status.is-error
.dm-auto-sell-status-dot {
  background: #ff7373;
  box-shadow:
    0 0 10px rgba(255, 115, 115, 0.7);
}

.dm-auto-sell-latest {
  padding: 15px;
  border-radius: 14px;
}

.dm-auto-sell-latest-title {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 900;
}

.dm-auto-sell-latest-message {
  margin-top: 4px;
  margin-bottom: 13px;
  color: rgba(174, 195, 236, 0.80);
  font-size: 0.80rem;
  font-weight: 650;
}

.dm-auto-sell-detail-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dm-auto-sell-detail {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
}

.dm-auto-sell-market,
.dm-auto-sell-reason {
  grid-column: span 2;
}

.dm-auto-sell-value {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.35;
}

.dm-auto-sell-positive {
  color: #53f0a7;
}

.dm-auto-sell-updated {
  margin-top: 10px;
  color: rgba(135, 158, 207, 0.64);
  font-size: 0.66rem;
  font-weight: 700;
  text-align: right;
}

@media (max-width: 1050px) {
  .dm-auto-sell-summary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .dm-auto-sell-status-summary {
    grid-column: span 2;
  }

  .dm-auto-sell-detail-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .dm-auto-sell-header {
    align-items: center;
  }

  .dm-auto-sell-summary-grid,
  .dm-auto-sell-detail-grid {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .dm-auto-sell-status-summary,
  .dm-auto-sell-market,
  .dm-auto-sell-reason {
    grid-column: auto;
  }

  .dm-auto-sell-summary {
    min-height: auto;
  }

  .dm-auto-sell-live {
    padding: 6px 8px;
    font-size: 0.58rem;
  }

  .dm-auto-sell-updated {
    text-align: left;
  }
}
