/* Scoped authenticated account dashboard — staging first */
.mk-account-dashboard {
  --mk-acc-orange: #E6771E;
  --mk-acc-orange-soft: #FFF4EB;
  --mk-acc-navy: #1a2332;
  --mk-acc-muted: #5f6773;
  --mk-acc-border: #E5E7EB;
  --mk-acc-bg: #f3f4f6;
  --mk-acc-radius: 14px;
  --mk-acc-shadow: 0 1px 2px rgba(26, 35, 50, 0.06);
  background: var(--mk-acc-bg);
  padding: 20px 16px 40px;
  color: var(--mk-acc-navy);
}

.mk-account-dashboard__shell {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.mk-account-dashboard__shell:has(.mk-account-dashboard__sidebar--guest) {
  grid-template-columns: minmax(0, 1fr);
}

.mk-account-dashboard__sidebar--guest {
  display: none !important;
}

.mk-account-dashboard__content--auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(60vh, 520px);
  padding: 48px 24px;
  margin: 0 auto;
  width: 100%;
  max-width: 640px;
}

.mk-account-dashboard__auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.mk-account-dashboard__auth-title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--mk-acc-navy);
}

.mk-account-dashboard__auth-text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mk-acc-muted);
}

.mk-account-dashboard__auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.mk-account-dashboard__auth-actions .mk-account-dashboard__btn {
  min-width: 148px;
}

.mk-account-dashboard__main-wrap {
  min-width: 0;
}

.mk-account-dashboard__footer {
  grid-column: 1 / -1;
  margin-top: 8px;
  text-align: center;
  color: var(--mk-acc-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mk-account-dashboard__footer p {
  margin: 0 0 12px;
}

.mk-account-dashboard__sidebar {
  position: sticky;
  top: 96px;
}

.mk-account-dashboard__panel {
  background: #fff;
  border: 1px solid var(--mk-acc-border);
  border-radius: var(--mk-acc-radius);
  box-shadow: var(--mk-acc-shadow);
  padding: 16px;
}

.mk-account-dashboard__mobile-summary {
  display: none;
}

.mk-account-dashboard__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
}

.mk-account-dashboard__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 56px;
  background: #eef1f4;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.mk-account-dashboard__avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--mk-acc-orange);
  background: var(--mk-acc-orange-soft);
}

.mk-account-dashboard__identity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mk-account-dashboard__email {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.mk-account-dashboard__phone {
  font-size: 13px;
  color: var(--mk-acc-muted);
}

.mk-account-dashboard__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: #166534;
}

.mk-account-dashboard__balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--mk-acc-border);
  border-radius: 12px;
  background: #fafafa;
}

.mk-account-dashboard__balance-label {
  display: block;
  font-size: 12px;
  color: var(--mk-acc-muted);
  margin-bottom: 2px;
}

.mk-account-dashboard__balance-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--mk-acc-navy);
}

.mk-account-dashboard__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.mk-account-dashboard__nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border-left: 3px solid transparent;
  color: var(--mk-acc-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.mk-account-dashboard__nav-item i {
  font-size: 18px;
  color: var(--mk-acc-muted);
}

.mk-account-dashboard__nav-item:hover {
  background: #f9fafb;
}

.mk-account-dashboard__nav-item.is-active {
  background: var(--mk-acc-orange-soft);
  border-left-color: var(--mk-acc-orange);
  color: var(--mk-acc-orange);
}

.mk-account-dashboard__nav-item.is-active i {
  color: var(--mk-acc-orange);
}

.mk-account-dashboard__nav-item:focus-visible,
.mk-account-dashboard__btn:focus-visible,
.mk-account-dashboard__action:focus-visible,
.mk-account-dashboard__search-input:focus-visible,
.mk-account-dashboard__select:focus-visible,
.mk-account-dashboard__menu-toggle:focus-visible,
.mk-account-dashboard__more-toggle:focus-visible {
  outline: 2px solid var(--mk-acc-orange);
  outline-offset: 2px;
}

.mk-account-dashboard__promo {
  padding: 12px;
  border-radius: 12px;
  background: var(--mk-acc-orange-soft);
  border: 1px solid #f3d7bf;
}

.mk-account-dashboard__promo-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--mk-acc-orange);
  margin-bottom: 6px;
}

.mk-account-dashboard__promo-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.mk-account-dashboard__promo-text {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--mk-acc-muted);
  line-height: 1.45;
}

.mk-account-dashboard__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.mk-account-dashboard__btn--primary {
  background: var(--mk-acc-orange);
  color: #fff !important;
}

.mk-account-dashboard__btn--primary:hover {
  background: #cf6619;
  color: #fff !important;
}

.mk-account-dashboard__btn--outline {
  background: #fff;
  border-color: var(--mk-acc-orange);
  color: var(--mk-acc-orange) !important;
}

.mk-account-dashboard__btn--lg {
  min-height: 44px;
  padding: 10px 18px;
}

.mk-account-dashboard__guest {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.mk-account-dashboard__guest-text {
  margin: 0;
  font-size: 14px;
  color: var(--mk-acc-muted);
}

.mk-account-dashboard__content {
  background: #fff;
  border: 1px solid var(--mk-acc-border);
  border-radius: var(--mk-acc-radius);
  box-shadow: var(--mk-acc-shadow);
  padding: 22px;
  min-width: 0;
}

.mk-account-dashboard__page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.mk-account-dashboard__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mk-account-dashboard__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--mk-acc-navy);
}

.mk-account-dashboard__count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--mk-acc-orange-soft);
  color: var(--mk-acc-orange);
  font-size: 13px;
  font-weight: 700;
}

.mk-account-dashboard__subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--mk-acc-muted);
  line-height: 1.45;
}

.mk-account-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mk-account-dashboard__stat {
  border: 1px solid var(--mk-acc-border);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
}

.mk-account-dashboard__stat-icon {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.mk-account-dashboard__stat-icon--active { background: #ecfdf3; color: #166534; }
.mk-account-dashboard__stat-icon--pending { background: #fff7ed; color: #c2410c; }
.mk-account-dashboard__stat-icon--paused { background: #f3f4f6; color: #4b5563; }
.mk-account-dashboard__stat-icon--total { background: #eff6ff; color: #1d4ed8; }

.mk-account-dashboard__stat-label {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.45;
}

.mk-account-dashboard__stat-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.mk-account-dashboard__empty {
  border: 1px dashed var(--mk-acc-border);
  border-radius: 12px;
  min-height: 268px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  background: #fcfcfd;
}

.mk-account-dashboard__empty-art {
  margin-bottom: 12px;
}

.mk-account-dashboard__empty-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.mk-account-dashboard__empty-text {
  margin: 0 0 18px;
  max-width: 420px;
  color: var(--mk-acc-muted);
  font-size: 15px;
  line-height: 1.5;
}

.mk-account-dashboard__toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.mk-account-dashboard__search {
  flex: 1 1 240px;
}

.mk-account-dashboard__search-input,
.mk-account-dashboard__select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--mk-acc-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: var(--mk-acc-navy);
}

.mk-account-dashboard__filter {
  flex: 0 1 200px;
}

.mk-account-dashboard__listings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mk-account-dashboard__listing {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--mk-acc-border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.mk-account-dashboard__listing-media {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  aspect-ratio: 4 / 3;
}

.mk-account-dashboard__listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mk-account-dashboard__listing-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mk-account-dashboard__listing-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.mk-account-dashboard__listing-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.mk-account-dashboard__listing-title a {
  color: inherit;
  text-decoration: none;
}

.mk-account-dashboard__listing-title a:hover {
  color: var(--mk-acc-orange);
}

.mk-account-dashboard__listing-location {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--mk-acc-muted);
}

.mk-account-dashboard__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.mk-account-dashboard__status--active { background: #ecfdf3; color: #166534; }
.mk-account-dashboard__status--pending { background: #fff7ed; color: #c2410c; }
.mk-account-dashboard__status--paused { background: #f3f4f6; color: #4b5563; }
.mk-account-dashboard__status--error { background: #fef2f2; color: #b91c1c; }

.mk-account-dashboard__listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--mk-acc-muted);
}

.mk-account-dashboard__promo-state {
  color: var(--mk-acc-orange);
  font-weight: 600;
}

.mk-account-dashboard__listing-prices .fp_price {
  font-size: 18px;
  font-weight: 700;
  color: var(--mk-acc-navy);
  text-decoration: none;
}

.mk-account-dashboard__listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.mk-account-dashboard__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--mk-acc-border);
  background: #fff;
  color: var(--mk-acc-navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mk-account-dashboard__action--primary {
  background: var(--mk-acc-orange);
  border-color: var(--mk-acc-orange);
  color: #fff !important;
}

.mk-account-dashboard__more {
  position: relative;
  margin-left: auto;
}

.mk-account-dashboard__more-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--mk-acc-border);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.mk-account-dashboard__more-toggle::-webkit-details-marker {
  display: none;
}

.mk-account-dashboard__more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--mk-acc-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.12);
  padding: 6px;
}

.mk-account-dashboard__more-item {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  color: var(--mk-acc-navy);
}

.mk-account-dashboard__more-item:hover {
  background: #f9fafb;
}

.mk-account-dashboard__more-item--danger {
  color: #b91c1c;
}

.mk-account-dashboard__pagination {
  margin-top: 18px;
}

.mk-account-dashboard .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1199px) {
  .mk-account-dashboard__shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .mk-account-dashboard__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mk-account-dashboard__title {
    font-size: 28px;
  }
}

@media (max-width: 991px) {
  .mk-account-dashboard__shell {
    grid-template-columns: 1fr;
  }

  .mk-account-dashboard__sidebar {
    position: static;
  }

  .mk-account-dashboard__mobile-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }

  .mk-account-dashboard__panel {
    display: none;
    padding-top: 8px;
  }

  .mk-account-dashboard__panel.is-open {
    display: block;
  }

  .mk-account-dashboard__panel > .mk-account-dashboard__identity {
    display: none;
  }

  .mk-account-dashboard__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--mk-acc-border);
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: var(--mk-acc-navy);
    cursor: pointer;
  }

  .mk-account-dashboard__listing {
    grid-template-columns: 1fr;
  }

  .mk-account-dashboard__listing-media {
    max-width: 100%;
  }

  .mk-account-dashboard__more {
    margin-left: 0;
  }
}

@media (max-width: 575px) {
  .mk-account-dashboard {
    padding: 14px 12px 32px;
  }

  .mk-account-dashboard__content {
    padding: 16px;
  }

  .mk-account-dashboard__title {
    font-size: 24px;
  }

  .mk-account-dashboard__stat-value {
    font-size: 22px;
  }

  .mk-account-dashboard__page-head .mk-account-dashboard__btn {
    width: 100%;
  }
}

/* Temporary highlight after successful staging add */
.mk-account-dashboard__listing.is-highlighted {
  outline: 2px solid var(--mk-acc-orange);
  box-shadow: 0 0 0 4px rgba(230, 119, 30, 0.18), var(--mk-acc-shadow);
  transition: outline-color 0.4s ease, box-shadow 0.4s ease;
}

/* Favorites dashboard */
.mk-account-dashboard__content--favorites {
  min-height: 52vh;
}

.mk-account-dashboard__action--danger {
  color: #b42318;
  border-color: #f3c4c0;
  background: #fff7f6;
}

.mk-account-dashboard__action--danger:hover {
  background: #fee4e2;
  border-color: #f3c4c0;
  color: #912018;
}

.mk-account-dashboard__pagination {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

button.mk-account-dashboard__action {
  font: inherit;
}
