/**
 * Account hub — left vertical profile + top tabs.
 * BusinessListPK tokens only (no reference colors/fonts).
 */

.account-page {
  background: var(--neutral-50, #FAFAF8);
}

.account-shell {
  padding: 28px 0 72px;
  position: relative;
  z-index: 1;
}

.account-shell__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter-desktop, 24px);
}

.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* —— Left sidebar —— */
.account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
}

/* Vertical profile card */
.profile-card {
  background: #fff;
  border: 1px solid var(--neutral-200, #ECEAE6);
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 8px 28px rgba(30, 28, 25, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--brand-100, #FAE8E0), var(--neutral-200, #ECEAE6));
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(30, 28, 25, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar__fallback {
  font-family: var(--font-family-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--brand-700, #8C432B);
}

.profile-card__name {
  margin: 0 0 4px;
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900, #1E1C19);
  line-height: 1.25;
  word-break: break-word;
}

.profile-card__email {
  margin: 0;
  font-size: 13px;
  color: var(--neutral-500, #918B82);
  word-break: break-all;
}

.profile-card__bio {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--neutral-600, #6E6960);
}

.profile-inline-stats {
  display: flex;
  justify-content: flex-start;
  gap: 28px;
  margin: 14px 0 0;
  width: 100%;
}

.profile-inline-stats > div {
  margin: 0;
  text-align: center;
}

.profile-inline-stats dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-500, #918B82);
}

.profile-inline-stats dd {
  margin: 2px 0 0;
  font-family: var(--font-family-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neutral-900, #1E1C19);
}

.profile-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--neutral-300, #DDDAD4);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--error, #C43E3E);
  cursor: pointer;
}

.profile-logout-btn:hover {
  border-color: var(--error, #C43E3E);
  background: var(--error-bg, #FDF0F0);
  color: var(--error, #C43E3E);
}

/* Listing stats card (layout inspired; site tokens only) */
.dir-stats {
  background: #fff;
  border: 1px solid var(--neutral-200, #ECEAE6);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(30, 28, 25, 0.03);
}

.dir-stats__title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--neutral-200, #ECEAE6);
  font-family: var(--font-family-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-800, #36332E);
}

.dir-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dir-stat {
  border-radius: 12px;
  border: 1px solid var(--neutral-200, #ECEAE6);
  background: var(--neutral-50, #FAFAF8);
  padding: 16px 10px;
  text-align: center;
}

.dir-stat__value {
  margin: 0;
  font-family: var(--font-family-heading);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--neutral-900, #1E1C19);
}

.dir-stat__label {
  margin: 8px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-600, #6E6960);
}

.dir-stat--total {
  background: var(--brand-50, #FDF5F2);
  border-color: var(--brand-200, #F3C9B8);
}

.dir-stat--total .dir-stat__value,
.dir-stat--total .dir-stat__label {
  color: var(--brand-700, #8C432B);
}

.dir-stat--live {
  background: var(--success-bg, #EDF7F1);
  border-color: #B7E4C7;
}

.dir-stat--live .dir-stat__value,
.dir-stat--live .dir-stat__label {
  color: var(--success, #2D8F5E);
}

.dir-stat--pending {
  background: var(--warning-bg, #FFF8E8);
  border-color: #F5D78E;
}

.dir-stat--pending .dir-stat__value,
.dir-stat--pending .dir-stat__label {
  color: #9A6B08;
}

.dir-stat--changes {
  background: var(--error-bg, #FDF0F0);
  border-color: #F0C0C0;
}

.dir-stat--changes .dir-stat__value,
.dir-stat--changes .dir-stat__label {
  color: var(--error, #C43E3E);
}

/* —— Right main column —— */
.account-main {
  min-width: 0;
}

/* Horizontal top tabs */
.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--neutral-200, #ECEAE6);
}

.account-tabs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--neutral-600, #6E6960);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.account-tabs__item:hover {
  color: var(--neutral-900, #1E1C19);
}

.account-tabs__item.is-active {
  color: var(--neutral-900, #1E1C19);
  border-bottom-color: var(--neutral-900, #1E1C19);
}

.account-tabs__icon {
  display: inline-flex;
  color: inherit;
  opacity: 0.85;
}

/* Promo CTA */
.profile-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(201, 162, 78, 0.35), transparent 55%),
    linear-gradient(120deg, var(--brand-600, #A85535), var(--brand-700, #8C432B));
  box-shadow: 0 10px 24px rgba(168, 85, 53, 0.22);
  transition: transform 0.15s ease;
}

.profile-promo:hover {
  transform: translateY(-1px);
  color: #fff;
}

.profile-promo__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.profile-promo__title {
  margin: 0 0 4px;
  font-family: var(--font-family-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.profile-promo__desc {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
  max-width: 28rem;
}

.profile-promo__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-700, #8C432B);
  font-size: 13px;
  font-weight: 700;
}

/* Content panels */
.account-panel-block {
  margin-bottom: 24px;
}

.account-panel-block[hidden] {
  display: none !important;
}

.account-panel-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.account-panel-block__title {
  margin: 0;
  font-family: var(--font-family-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neutral-900, #1E1C19);
}

.account-panel-block__action {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-600, #A85535);
  text-decoration: none;
}

.account-edit-form {
  background: #fff;
  border: 1px solid var(--neutral-200, #ECEAE6);
  border-radius: 16px;
  padding: 22px;
}

.account-identity {
  margin-bottom: 18px;
}

.account-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--neutral-400, #B8B3AB);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-800, #36332E);
  cursor: pointer;
}

.account-upload-btn:hover {
  border-color: var(--brand-500, #C06A3F);
  color: var(--brand-700, #8C432B);
}

.account-text-btn {
  display: inline-block;
  margin-left: 10px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-600, #6E6960);
  cursor: pointer;
  text-decoration: underline;
}

.account-text-btn[hidden] {
  display: none !important;
}

.account-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--neutral-500, #918B82);
}

.account-bio {
  resize: vertical;
  min-height: 110px;
}

.account-bio-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  font-size: 12px;
  color: var(--neutral-500, #918B82);
}

.form-label__optional {
  font-weight: 400;
  color: var(--neutral-500, #918B82);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.account-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background-color: var(--brand-500, #C06A3F);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.account-save-btn:hover {
  background-color: var(--brand-600, #A85535);
}

.account-save-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.account-edit-form .form-group {
  margin-bottom: 18px;
}

/* Listing cards */
.listing-card {
  background: #FFFFFF;
  border: 1px solid var(--neutral-200, #ECEAE6);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(30, 28, 25, 0.03);
}

.listing-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.listing-card__title {
  font-family: var(--font-family-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-900, #1E1C19);
  margin: 0 0 6px 0;
}

.listing-card__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--neutral-600, #6E6960);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-status--pending {
  background-color: var(--warning-bg, #FFF8E8);
  color: #92400E;
  border: 1px solid #FCD34D;
}

.badge-status--approved {
  background-color: var(--success-bg, #EDF7F1);
  color: #065F46;
  border: 1px solid #6EE7B7;
}

.badge-status--rejected {
  background-color: var(--error-bg, #FDF0F0);
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.listing-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--neutral-700, #504C45);
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rejection-box {
  background-color: #FFF5F5;
  border-left: 4px solid var(--error, #C43E3E);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-top: 12px;
  font-size: 13px;
  color: #991B1B;
}

.rejection-box strong {
  display: block;
  margin-bottom: 4px;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #FFFFFF;
  border: 1px dashed var(--neutral-300, #DDDAD4);
  border-radius: 14px;
}

.empty-state__title {
  font-family: var(--font-family-heading);
  font-size: 18px;
  color: var(--neutral-900, #1E1C19);
  margin: 0 0 8px 0;
}

.empty-state__desc {
  font-size: 14px;
  color: var(--neutral-600, #6E6960);
  margin: 0 0 20px 0;
}

.listing-card__actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-listings-pagination {
  margin-top: 8px;
}

.account-listings-pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 24px 0 4px;
}

.account-listings-pager__meta {
  margin: 0;
  font-size: 13px;
  color: var(--neutral-600, #6E6960);
}

.account-listings-pager__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.account-listings-pager__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-700, #504C45);
  background: #FFFFFF;
  border: 1px solid var(--neutral-200, #ECEAE6);
  border-radius: 12px;
  cursor: pointer;
}

.account-listings-pager__btn:hover {
  border-color: var(--brand-300, #EBB09A);
  color: var(--brand-700, #8C432B);
}

.account-listings-pager__btn.is-current {
  background: var(--brand-500, #C06A3F);
  border-color: var(--brand-500, #C06A3F);
  color: #FFFFFF;
  cursor: default;
}

.account-listings-pager__ellipsis {
  min-width: 20px;
  text-align: center;
  color: var(--neutral-400, #B8B3AB);
  font-weight: 600;
}

@media (max-width: 900px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .profile-card {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 16px;
    padding: 20px;
  }

  .profile-avatar {
    margin-bottom: 0;
    width: 72px;
    height: 72px;
  }

  .profile-card__name,
  .profile-card__email,
  .profile-card__bio {
    flex: 1;
    min-width: 140px;
  }

  .profile-card__name {
    width: calc(100% - 88px);
  }

  .profile-inline-stats {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .profile-logout-btn {
    width: auto;
    min-width: 140px;
  }
}

@media (max-width: 640px) {
  .account-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .profile-promo {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-card__name {
    width: 100%;
  }

  .profile-inline-stats {
    justify-content: center;
  }

  .profile-logout-btn {
    width: 100%;
  }
}
