/* Dashboard Layout */
.dashboard-body {
  background-color: var(--cream-white);
  min-height: 100vh;
}

.dashboard-header {
  background: var(--soft-white);
  box-shadow: 0 1px 3px rgba(26,26,26,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.dashboard-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.dashboard-nav .nav-brand {
  flex-shrink: 0;
}

.dashboard-nav .brand-logo {
  height: 40px;
  width: auto;
}

.dashboard-nav .nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.dashboard-nav .nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.dashboard-nav .nav-link:hover {
  color: var(--primary-red);
}

/* User Menu */
.nav-user {
  flex-shrink: 0;
}

.user-menu {
  position: relative;
}

.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-gray);
  transition: all 0.2s;
}

.user-menu__trigger:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.user-menu__name {
  font-weight: 500;
}

.user-menu__icon {
  transition: transform 0.2s;
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--soft-white);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
}

.user-menu__dropdown--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu__item {
  display: block;
  padding: 12px 16px;
  color: var(--text-gray);
  text-decoration: none;
  transition: background-color 0.2s;
}

.user-menu__item:hover {
  background-color: var(--cream-white);
  color: var(--primary-red);
}

/* Dashboard Main Content */
.dashboard-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-welcome {
  margin-bottom: 32px;
}

.dashboard-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-black);
  margin: 0 0 8px 0;
}

.dashboard-subtitle {
  font-size: 16px;
  color: var(--text-gray);
  margin: 0;
}

/* Stats Cards */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--soft-white);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card__icon {
  font-size: 32px;
  line-height: 1;
}

.stat-card__content {
  display: flex;
  flex-direction: column;
}

.stat-card__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-black);
  line-height: 1;
}

.stat-card__label {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 4px;
}

/* Dashboard Section */
.dashboard-section {
  background: var(--soft-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light-gray);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-black);
  margin: 0;
}

.section-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

.section-link:hover {
  color: var(--hover-red);
}

/* Listing Row (for dashboard) */
.listings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listing-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  transition: all 0.2s;
}

.listing-row:hover {
  border-color: var(--primary-red);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.listing-row__image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
}

.listing-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-row__image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-gray);
}

.listing-row__content {
  flex: 1;
  min-width: 0;
}

.listing-row__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-black);
  margin: 0 0 8px 0;
}

.listing-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-gray);
}

.meta-separator {
  color: var(--light-gray);
}

.listing-row__actions {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
}

/* Listings Grid (for index page) */
.dashboard-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.dashboard-header-section__heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dashboard-header-section__heading .dashboard-title {
  margin-bottom: 0;
}

.dashboard-verified-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #e8f5e9;
  color: #0a7;
  flex-shrink: 0;
}

.dashboard-verified-tick__icon {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.dashboard-header-section__status--pending {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5c4033;
  background: #fff4e6;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #f0e0c8;
  white-space: nowrap;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.listing-card {
  background: var(--soft-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.listing-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.listing-card__image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--light-gray);
}

.listing-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 14px;
}

.listing-card__content {
  padding: 20px;
}

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

.listing-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-black);
  margin: 0;
  line-height: 1.3;
}

.listing-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-red);
  white-space: nowrap;
}

.listing-card__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.listing-detail {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.listing-detail__label {
  color: var(--text-gray);
}

.listing-detail__value {
  color: var(--primary-black);
  font-weight: 500;
}

.listing-card__description {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.listing-card__actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--light-gray);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 80px 32px;
}

.empty-state__icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.empty-state__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-black);
  margin: 0 0 12px 0;
}

.empty-state__description {
  font-size: 16px;
  color: var(--text-gray);
  margin: 0 0 32px 0;
}

.empty-state-small {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-gray);
}

.empty-state-small p {
  margin: 0 0 16px 0;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 14px;
}

.button--primary {
  background-color: var(--primary-red);
  color: white;
}

.button--primary:hover {
  background-color: var(--hover-red);
}

.button--secondary {
  background-color: transparent;
  color: var(--text-gray);
  border: 1px solid var(--light-gray);
}

.button--secondary:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.button--danger {
  background-color: transparent;
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
}

.button--danger:hover {
  background-color: var(--primary-red);
  color: white;
}

.button--small {
  padding: 6px 12px;
  font-size: 13px;
}

.cta-button.large {
  padding: 16px 32px;
  font-size: 16px;
}

.dashboard-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.dashboard-actions__hint {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-gray, #666);
  text-align: center;
  max-width: 28rem;
}

.dashboard-verification-banner--optional {
  border-color: #bfdbfe;
  background: #f0f9ff;
}

.dashboard-verification-banner {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
}

.dashboard-verification-banner__lead {
  margin: 0 0 0.5rem 0;
  color: var(--primary-black, #1a1a1a);
}

.dashboard-verification-banner__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
}

.dashboard-verification-banner__link {
  font-weight: 600;
  color: var(--primary-red, #c41e3a);
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-red);
}

/* Listing Show Page */
.listing-show__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.listing-show__actions {
  display: flex;
  gap: 12px;
}

.listing-show__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.listing-show__images,
.listing-show__info {
  background: var(--soft-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.listing-show__images {
  position: relative;
  overflow: hidden;
}

.listing-show__gallery-watermark {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 28px;
  pointer-events: none;
  user-select: none;
}

.listing-show__gallery-watermark img {
  display: block;
  width: min(240px, 55%);
  max-width: 100%;
  height: auto;
  opacity: 0.03;
  /* Red logo on black PNG: drop black so it sits cleanly on the card */
  mix-blend-mode: lighten;
}

.listing-show__images .listing-gallery {
  position: relative;
  z-index: 1;
}

.listing-show__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-black);
  margin: 0 0 24px 0;
}

.listing-gallery__main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.listing-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-gray, #333);
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
  appearance: none;
}

.listing-gallery__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.listing-gallery__nav:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

.listing-gallery__nav--prev {
  left: 12px;
}

.listing-gallery__nav--next {
  right: 12px;
}

.listing-gallery:focus {
  outline: none;
}

.listing-gallery:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 4px;
  border-radius: 8px;
}

.listing-gallery__main img {
  width: 100%;
  height: auto;
  display: block;
}

.listing-gallery__thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.listing-gallery__thumbnail {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  appearance: none;
  background: var(--light-gray);
  transition: border-color 0.2s;
}

.listing-gallery__thumbnail:hover,
.listing-gallery__thumbnail--active {
  border-color: var(--primary-red);
}

.listing-gallery__thumbnail img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

@media (min-width: 769px) {
  .listing-gallery__main-image {
    cursor: zoom-in;
  }

  .listing-gallery__expand-hint:not([hidden]) {
    display: block;
  }

  .listing-gallery__expand-hint {
    position: fixed;
    z-index: 500;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .listing-gallery__expand-hint--visible {
    opacity: 1;
    visibility: visible;
  }

  .listing-gallery__thumbnail {
    position: relative;
    height: 140px;
    cursor: zoom-in;
  }

  .listing-gallery__thumbnails {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .listing-gallery__thumbnail img {
    height: 100%;
  }
}

.listing-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 48px;
}

.listing-gallery-lightbox[hidden] {
  display: none !important;
}

.listing-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}

.listing-gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(94vw, 1280px);
  max-height: 94vh;
  outline: none;
}

.listing-gallery-lightbox__image {
  display: block;
  max-width: min(94vw, 1280px);
  max-height: calc(94vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.listing-gallery-lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  appearance: none;
}

.listing-gallery-lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 3001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  appearance: none;
}

.listing-gallery-lightbox__nav--prev {
  left: 20px;
}

.listing-gallery-lightbox__nav--next {
  right: 20px;
}

.listing-gallery-lightbox__counter {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

body.listing-gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .listing-gallery-lightbox {
    display: none !important;
  }
}

.listing-show__no-images {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-gray);
}

.listing-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.info-card {
  background: var(--cream-white);
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.info-card__label {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.info-card__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-black);
}

.listing-show__description,
.listing-show__amenities {
  margin-top: 32px;
}

.listing-show__description h2,
.listing-show__amenities h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-black);
  margin: 0 0 16px 0;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.amenity-item {
  background: var(--cream-white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-gray);
}

/* Forms */
.listing-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.listing-form-header {
  margin-bottom: 32px;
}

.listing-form {
  background: var(--soft-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.form-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--light-gray);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-black);
  margin: 0 0 24px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field,
.form-field-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--primary-black);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-label--small {
  font-size: 13px;
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--primary-black);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 6px;
  margin-bottom: 0;
}

.form-hint strong {
  color: var(--primary-black);
  font-weight: 600;
}

.form-section__header {
  margin-bottom: 24px;
}

.form-section__lead {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-gray);
}

.form-label__optional {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--light-gray);
  color: var(--text-gray);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.form-field--full {
  margin-bottom: 0;
}

.form-section--location {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 249, 251, 0.96) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 32px;
  border-bottom: none;
}

.form-section--location .form-section__title {
  margin-bottom: 0;
}

.location-fields {
  display: grid;
  gap: 20px;
}

.location-fields .form-row {
  margin-bottom: 0;
}

.form-input--location {
  background: #fff;
}

.location-tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(196, 30, 58, 0.12);
  background: rgba(196, 30, 58, 0.04);
}

.location-tip__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-top: 2px;
  border-radius: 10px;
  background: rgba(196, 30, 58, 0.12);
  position: relative;
}

.location-tip__icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 0;
  background: var(--primary-red);
  transform: translateX(-50%) rotate(-45deg);
}

.location-tip__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.location-tip__body {
  min-width: 0;
}

.location-tip__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-black);
}

.location-tip__list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-gray);
}

.location-tip__list li + li {
  margin-top: 4px;
}

.location-tip__list strong {
  color: var(--primary-black);
  font-weight: 600;
}

.form-errors {
  background-color: #fee;
  border: 1px solid var(--primary-red);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 24px;
}

.form-errors h3 {
  color: var(--primary-red);
  font-size: 16px;
  margin: 0 0 12px 0;
}

.form-errors ul {
  margin: 0;
  padding-left: 20px;
}

.form-errors li {
  color: var(--primary-red);
  font-size: 14px;
}

.form-file-input {
  width: 100%;
  padding: 12px;
  border: 2px dashed var(--light-gray);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-file-input:hover {
  border-color: var(--primary-red);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
}

.form-actions form {
  display: inline;
  margin: 0;
}

.form-help--profile-actions {
  margin-top: 8px;
  max-width: 42rem;
}

/* Image Preview */
.image-preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.image-preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--light-gray);
}

.image-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.image-preview__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.7);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  text-align: center;
}

/* Current Images */
.current-images {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--light-gray);
}

.current-images__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-black);
  margin: 0 0 8px 0;
}

.current-images__hint {
  margin: 0 0 16px 0;
}

.current-images__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.current-image {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--light-gray);
  background: var(--soft-white);
  cursor: grab;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.current-image:active {
  cursor: grabbing;
}

.current-image--main {
  border-color: var(--primary-red);
}

.current-image--dragging {
  opacity: 0.55;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.current-image--drop-before {
  box-shadow: inset 4px 0 0 0 var(--primary-red);
}

.current-image--drop-after {
  box-shadow: inset -4px 0 0 0 var(--primary-red);
}

.current-image__media {
  position: relative;
}

.current-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.current-image__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: var(--primary-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.current-image__position {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(26, 26, 26, 0.7);
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
}

.current-image__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--light-gray);
}

.current-image__control {
  flex: 0 0 auto;
  min-width: 36px;
  padding: 4px 10px;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  background: white;
  color: var(--primary-black);
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.current-image__control:hover:not(:disabled) {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.current-image__control:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.current-image__drag-hint {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--dark-gray, #666);
  user-select: none;
}

/* Amenities Form */
.amenities-category {
  margin-bottom: 24px;
}

.amenities-category__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-black);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--light-gray);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.amenity-checkbox {
  display: flex;
  align-items: center;
}

.checkbox-input {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 14px;
  color: var(--primary-black);
  cursor: pointer;
  user-select: none;
}

.checkbox-label:hover {
  color: var(--primary-red);
}

/* Amenities Display (Show Page) */
.amenities-category-section {
  margin-bottom: 24px;
}

.amenities-category-section__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-black);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--light-gray);
}

.amenities-grid-display {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.amenity-item-display {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 6px;
}

.amenity-checkmark {
  color: #10b981;
  font-weight: bold;
  margin-right: 8px;
  font-size: 16px;
}

.amenity-name {
  font-size: 14px;
  color: var(--primary-black);
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-nav {
    padding: 0 16px;
  }

  .dashboard-main {
    padding: 16px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .listing-show__content {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-section--location {
    padding: 20px;
  }

  .location-tip {
    flex-direction: column;
    gap: 10px;
  }

  .listings-grid {
    grid-template-columns: 1fr;
  }

  .listing-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .listing-row__image {
    width: 100%;
    height: 200px;
  }

  .dashboard-header-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* User Profile Styles */
.profile-section {
  max-width: 800px;
  margin: 0 auto;
}

.profile-card {
  background: var(--soft-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.profile-card__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--light-gray);
}

.profile-card__avatar {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-red), var(--hover-red));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-card__title h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-black);
  margin: 0 0 4px 0;
}

.profile-card__subtitle {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
}

.profile-card__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-field {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-gray);
}

.profile-field:last-child {
  border-bottom: none;
}

.profile-field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
}

.profile-field__value {
  font-size: 14px;
  color: var(--primary-black);
}

.profile-field__empty {
  font-size: 14px;
  color: var(--text-gray);
  font-style: italic;
}

.profile-field__link {
  color: var(--primary-red);
  text-decoration: none;
  transition: color 0.2s;
}

.profile-field__link:hover {
  color: var(--hover-red);
  text-decoration: underline;
}

/* Profile Edit Form */
.form-section {
  max-width: 800px;
  margin: 0 auto;
}

.form-card {
  background: var(--soft-white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.form-field--readonly .form-input {
  background: var(--light-gray);
  cursor: not-allowed;
}

.form-help {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 6px;
  margin-bottom: 0;
}

.form-errors__title {
  color: var(--primary-red);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.form-errors__list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.form-errors__list li {
  color: var(--primary-red);
  font-size: 14px;
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .profile-field {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .form-field--inline-pair {
    grid-template-columns: 1fr;
  }
}

/* Extended profile (landlord / tenant / agency) */
.profile-fieldset {
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 24px 24px 8px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.5);
}

.profile-fieldset__legend {
  padding: 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-black);
}

.profile-fieldset__intro {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0 0 20px 0;
  max-width: 720px;
}

.form-field--inline-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field--inline-pair .form-field {
  margin-bottom: 0;
}

.form-field--checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-field--checkbox .form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-red);
}

.form-label--inline {
  margin-bottom: 0;
  font-weight: 500;
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

.profile-card--sub {
  margin-top: 24px;
}

.profile-subsection__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-black);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--light-gray);
}

.profile-card__avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-card__avatar-form {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.profile-card__avatar--editable {
  position: relative;
  cursor: pointer;
}

.profile-card__avatar--editable:focus-within {
  outline: 2px solid var(--primary-red);
  outline-offset: 3px;
}

.profile-card__avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-card__avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.profile-card__avatar--editable:hover .profile-card__avatar-overlay {
  opacity: 1;
}

.profile-field__value--multiline p {
  margin: 0 0 0.5em 0;
}

.profile-field__value--multiline p:last-child {
  margin-bottom: 0;
}

.form-errors__list--nested {
  margin-bottom: 16px;
}

/* Notifications (navbar bell → /notifications) */
.notifications-page .dashboard-header-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notifications-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notifications-list__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--light-gray, #e8e8e8);
  background: #fff;
}

.notifications-list__item--unread {
  background: #f8fafc;
  border-left: 4px solid var(--primary-red, #c41e3a);
  padding-left: calc(1rem - 4px);
}

.notifications-list__title {
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  color: var(--primary-black, #1a1a1a);
}

.notifications-list__text {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-gray, #555);
}

.notifications-list__meta {
  margin: 0;
  font-size: 0.8rem;
  color: #888;
}

.notifications-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.notifications-page__empty {
  color: var(--text-gray, #666);
  margin: 2rem 0;
}

/* Edit profile — agency / landlord verification rails beside fieldsets */
.form-section--profile-edit {
  max-width: 980px;
}

.profile-fieldset-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 1.5rem 1.75rem;
  align-items: start;
  margin-bottom: 1rem;
}

.profile-fieldset-split__main {
  min-width: 0;
}

.profile-verification-rail {
  position: relative;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.35rem;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 28px -8px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.profile-verification-rail__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-red, #c41e3a) 0%, #e85d4c 45%, #f4a261 100%);
  opacity: 0.95;
}

.profile-verification-rail__accent--agency {
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 50%, #5eead4 100%);
}

.profile-verification-rail--agency .profile-verification-rail__title {
  color: #0f172a;
}

.profile-verification-rail__title {
  margin: 0.35rem 0 0.5rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-black, #1a1a1a);
}

.profile-verification-rail__lead {
  margin: 0 0 1rem 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #64748b;
}

.profile-verification-rail__hint,
.profile-verification-rail__meta {
  margin: 0 0 0.85rem 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
}

.profile-verification-rail__success {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #14532d;
  font-weight: 500;
}

.profile-verification-rail__check {
  color: #16a34a;
  font-weight: 800;
  margin-right: 0.25rem;
}

.profile-verification-rail__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8em;
  word-break: break-all;
}

.profile-verification-rail__micro {
  margin: 0.5rem 0 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
}

.profile-verification-rail__cta {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.profile-verification-rail__cta--stacked {
  margin-top: 0.5rem;
}

.verification-status-line {
  margin-bottom: 0.85rem;
}

.verification-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.verification-badge--verified {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.verification-badge--pending-review {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.verification-badge--not-submitted {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.verification-badge--rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.verification-badge--needs-more-info {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.verification-badge--inactive {
  background: #f8fafc;
  color: #64748b;
  border: 1px dashed #cbd5e1;
}

.verification-badge--ready {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

@media (max-width: 880px) {
  .profile-fieldset-split {
    grid-template-columns: 1fr;
  }

  .profile-verification-rail {
    order: 2;
  }

  .profile-fieldset-split__main {
    order: 1;
  }
}

.profile-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-header-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-header-section__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.agency-verification-page__details {
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.agency-verification-page__row {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

.agency-verification-page__row dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted, #64748b);
}

.agency-verification-page__row dd {
  margin: 0;
  font-size: 1rem;
}

.agency-verification-page__cta {
  margin-top: 0.5rem;
}

.agency-verification-page__status--ok {
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .agency-verification-page__row {
    grid-template-columns: 1fr;
  }
}

.verified-publisher-badge {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0a7;
  vertical-align: middle;
  white-space: nowrap;
}

.verified-publisher-badge--agency {
  color: #1565c0;
  cursor: default;
}

.verified-publisher-badge--agency .verified-publisher-badge__verified {
  display: none;
}

.verified-publisher-badge--agency:hover .verified-publisher-badge__company,
.verified-publisher-badge--agency:focus-within .verified-publisher-badge__company {
  display: none;
}

.verified-publisher-badge--agency:hover .verified-publisher-badge__verified,
.verified-publisher-badge--agency:focus-within .verified-publisher-badge__verified {
  display: inline;
}

/* Account settings */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.settings-page {
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.settings-hero {
  margin-bottom: 2rem;
  padding: 1.75rem 1.5rem 2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--soft-white) 0%, var(--cream-white) 55%, #fff 100%);
  border: 1px solid rgba(26, 26, 26, 0.06);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.06);
  position: relative;
  overflow: hidden;
}

.settings-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-red), var(--hover-red, #c4181c));
}

.settings-hero__back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-red);
  text-decoration: none;
}

.settings-hero__back:hover {
  text-decoration: underline;
}

.settings-hero__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.settings-hero__avatar .navbar-user-avatar {
  width: 72px;
  height: 72px;
  font-size: 1.5rem;
}

.settings-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-red);
}

.settings-hero__title {
  margin: 0 0 0.5rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary-black);
  line-height: 1.15;
}

.settings-hero__lead {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--dark-gray, #555);
}

.settings-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.settings-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(26, 26, 26, 0.06);
  color: var(--primary-black);
}

.settings-pill--verified {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.settings-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 1.75rem;
  }
}

.settings-layout__main,
.settings-layout__aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-card {
  background: var(--soft-white);
  border-radius: 14px;
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid rgba(26, 26, 26, 0.07);
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.04);
}

.settings-card--accent {
  border-color: rgba(227, 28, 32, 0.12);
  box-shadow: 0 8px 28px rgba(227, 28, 32, 0.06);
}

.settings-card--compact {
  padding: 1.25rem 1.35rem;
}

.settings-card--danger {
  border-color: rgba(227, 28, 32, 0.22);
  background: linear-gradient(180deg, #fffbfb 0%, var(--soft-white) 100%);
}

.settings-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.settings-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(227, 28, 32, 0.08);
  color: var(--primary-red);
}

.settings-card__title {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-black);
}

.settings-card__title--danger {
  color: var(--primary-red);
}

.settings-card__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--dark-gray, #666);
}

.settings-card__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--dark-gray, #555);
}

.settings-card__footer {
  margin-top: 0.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--light-gray);
}

.settings-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.settings-facts__item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.settings-facts__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-facts__item:first-child {
  padding-top: 0;
}

.settings-facts__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-gray, #777);
}

.settings-facts__value {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--primary-black);
  word-break: break-word;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.settings-nav__link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-black);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.settings-nav__link:hover {
  background: rgba(227, 28, 32, 0.06);
  color: var(--primary-red);
}

.settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  appearance: none;
}

.settings-btn:hover {
  transform: translateY(-1px);
}

.settings-btn--primary,
input.settings-btn--primary {
  background: linear-gradient(135deg, var(--primary-red), var(--hover-red, #c4181c));
  color: #fff;
  box-shadow: 0 4px 14px rgba(227, 28, 32, 0.28);
}

.settings-btn--outline {
  background: #fff;
  color: var(--primary-black);
  border: 1px solid rgba(26, 26, 26, 0.12);
}

.settings-btn--outline:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.settings-btn--danger,
input.settings-btn--danger {
  width: 100%;
  margin-top: 0.75rem;
  background: var(--primary-red);
  color: #fff;
}

.settings-callout {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.settings-callout--neutral {
  background: var(--cream-white);
  border: 1px solid var(--light-gray);
  color: var(--dark-gray, #555);
}

.settings-callout p {
  margin: 0;
}

.settings-toggle {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.settings-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-toggle__track {
  flex-shrink: 0;
  width: 2.75rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background 0.2s;
}

.settings-toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.settings-toggle input:checked + .settings-toggle__track {
  background: var(--primary-red);
}

.settings-toggle input:checked + .settings-toggle__track::after {
  transform: translateX(1.25rem);
}

.settings-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.4;
}

.settings-toggle__text strong {
  font-size: 0.95rem;
  color: var(--primary-black);
}

.settings-toggle__text small {
  font-size: 0.85rem;
  color: var(--dark-gray, #666);
}

.settings-field {
  margin-bottom: 1rem;
}

.settings-field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-black);
}

.settings-field__hint {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  color: var(--dark-gray, #666);
}

.settings-field__input {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.settings-field__input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(227, 28, 32, 0.12);
}

.settings-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.settings-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.settings-alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.settings-checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--dark-gray, #444);
}

.settings-checkbox input {
  margin-top: 0.2rem;
  accent-color: var(--primary-red);
}

.settings-password-panel {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--cream-white);
  border: 1px solid var(--light-gray);
}

.settings-password-panel[hidden] {
  display: none;
}

.settings-verification {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.settings-verification--verified {
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(22, 163, 74, 0.03));
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.settings-verification--verified .dashboard-verified-tick {
  flex-shrink: 0;
}

.settings-verification--pending {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.settings-verification__copy {
  flex: 1;
  min-width: 0;
}

.settings-verification__status {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-black);
}

.settings-verification__detail {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--dark-gray, #555);
}

.settings-delete-form__fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.settings-goodbye {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem 4rem;
}

.settings-goodbye__card {
  max-width: 520px;
  text-align: center;
  background: var(--soft-white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.settings-goodbye__icon {
  margin-bottom: 1.25rem;
  opacity: 0.2;
}

.settings-goodbye__icon img {
  width: 72px;
  height: auto;
}

.settings-goodbye__title {
  margin: 0 0 1rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-black);
}

.settings-goodbye__lead {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--primary-black);
}

.settings-goodbye__text {
  margin: 0 0 1.75rem;
  color: var(--dark-gray, #555);
  line-height: 1.5;
}

.settings-goodbye__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 480px) {
  .settings-goodbye__actions {
    flex-direction: row;
    justify-content: center;
  }
}
