.market-layout {
  --market-border: #d9e3f2;
  --market-surface: #ffffff;
  --market-soft: #f7faff;
  --market-text: #1f3558;
  --market-subtext: #546b8a;
  --market-accent: #2457f5;
}

.market-profile {
  border-color: var(--market-border);
  background: var(--market-surface);
}

.member-profile.has-dashboard-bg {
  background-image: none !important;
}

.member-profile.has-dashboard-bg .dealer-market-profile-head {
  position: relative;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background-image: linear-gradient(180deg, rgba(18, 35, 64, .34) 0%, rgba(18, 35, 64, .52) 100%), var(--member-dashboard-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.member-profile.has-dashboard-bg .dealer-market-profile-head .dealer-market-profile-text h1,
.member-profile.has-dashboard-bg .dealer-market-profile-head .dealer-market-profile-text p,
.member-profile.has-dashboard-bg .dealer-market-profile-head .dealer-market-profile-mini {
  color: #fff;
}

.member-profile.has-dashboard-bg .dealer-market-profile-head .dealer-market-chip,
.member-profile.has-dashboard-bg .dealer-market-profile-head .dealer-market-icon-link {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .92);
  color: #1c355a;
}

.market-profile-head,
.market-profile-main,
.market-profile-actions,
.market-tabs,
.market-exp-head,
.market-info-row,
.market-banner-actions,
.market-product-top,
.market-product-actions,
.market-head-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-profile-text h1,
.market-info-row strong {
  color: var(--market-text);
}

.market-profile-text p,
.market-product-desc,
.market-item-sub {
  color: var(--market-subtext);
}

.market-tabs {
  margin-top: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.market-tabs a {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--market-border);
  background: var(--market-surface);
  text-decoration: none;
  font-weight: 700;
  color: var(--market-text);
}

.market-tabs a.is-active {
  background: var(--market-accent);
  border-color: var(--market-accent);
  color: #fff;
}

.market-exp-card {
  padding: 30px;
  background: var(--market-surface);
}

.market-exp-track {
  height: 10px;
  background: #e7edf8;
  border: 1px solid var(--market-border);
  border-radius: 999px;
  margin: 8px 0;
  overflow: hidden;
}

.market-exp-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3d6fff 0%, #28b0ff 100%);
}

.market-profile-info {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.market-info-row {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--market-border);
  background: var(--market-soft);
  font-size: .86rem;
}

.market-banner-actions {
  padding:30px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.market-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--market-border);
  background: var(--market-soft);
  color: var(--market-text);
  font-size: .8rem;
  font-weight: 700;
}

.market-chip.is-link {
  text-decoration: none;
}

.market-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-product-card {
  border: 1px solid var(--market-border);
  border-radius: 12px;
  background: var(--market-surface);
  overflow: hidden;
}

.market-product-cover {
  aspect-ratio: 16 / 10;
  background: #eef3fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-product-body {
  padding: 10px;
}

.market-product-price {
  color: var(--market-accent);
  font-weight: 700;
}

.market-product-desc {
  margin: 6px 0 0;
  font-size: .9rem;
}

.market-panel {
  border: 1px solid var(--market-border);
  border-radius: 12px;
  background: var(--market-surface);
  padding: 12px;
}

.market-item-title {
  margin: 0 0 8px;
  color: var(--market-text);
  font-weight: 700;
}

.market-item-sub {
  margin: 0 0 8px;
  font-size: .9rem;
}

.market-estimate-box {
  margin-top: 10px;
  border: 1px solid var(--market-border);
  border-radius: 10px;
  background: var(--market-soft);
  padding: 10px;
}

.market-estimate-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.market-estimate-list li,
.market-history-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.market-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.market-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--market-border);
  border-radius: 10px;
  padding: 10px;
  background: var(--market-surface);
}

@media (max-width: 900px) {
  .market-product-grid,
  .market-profile-info {
    grid-template-columns: 1fr;
  }
}
