/* Auth, account, and listing favorites */

.nav-auth-link {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 999px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-auth-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.nav.nav-on-light .nav-auth-link {
  color: rgba(3, 7, 18, 0.88);
  border-color: rgba(3, 7, 18, 0.18);
}
.nav.nav-on-light .nav-auth-link:hover {
  background: rgba(3, 7, 18, 0.06);
  color: var(--ink, #030712);
  border-color: rgba(3, 7, 18, 0.28);
}
.mobile-menu .nav-auth-link {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  border-color: rgba(255, 255, 255, 0.25);
}

.elist-fav,
.lg-fav {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: auto;
  height: auto;
  padding: 6px;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}
html[dir="rtl"] .elist-fav,
html[dir="rtl"] .lg-fav {
  right: auto;
  left: 6px;
}
.elist-fav {
  color: #fff;
}
.elist-fav:hover {
  transform: scale(1.1);
  color: #fecdd3;
}
.elist-fav.is-fav {
  color: #ef4444;
}
.elist-fav svg,
.lg-fav svg {
  width: 26px;
  height: 26px;
  display: block;
  transition: color 0.2s ease;
}
.elist-fav svg {
  filter: drop-shadow(0 1px 3px rgba(3, 7, 18, 0.35));
}
.elist-fav .fav-fill,
.lg-fav .fav-fill {
  display: none;
}
.elist-fav.is-fav .fav-outline,
.lg-fav.is-fav .fav-outline {
  display: none;
}
.elist-fav.is-fav .fav-fill,
.lg-fav.is-fav .fav-fill {
  display: block;
}

.lg-fav {
  color: #9ca3af;
}
.lg-fav:hover {
  transform: scale(1.1);
  color: #f87171;
}
.lg-fav.is-fav {
  color: #ef4444;
}
.lg-fav svg {
  filter: none;
}

.lg-fav-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.lg-fav {
  position: static;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--n0, #fff);
}
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 5vw 80px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(3, 7, 18, 0.1);
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-shadow: 0 24px 60px -32px rgba(3, 7, 18, 0.18);
}
.auth-card h1 {
  font-size: clamp(26px, 4vw, 32px);
  margin-bottom: 8px;
}
.auth-card .auth-lead {
  color: var(--n5, #4c4c4c);
  font-size: 16px;
  margin-bottom: 28px;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--n1, #f2f2f2);
  border-radius: 12px;
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--n5, #4c4c4c);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.auth-tab.is-active {
  background: #fff;
  color: var(--ink, #030712);
  box-shadow: 0 2px 8px -4px rgba(3, 7, 18, 0.2);
}
.auth-panel[hidden] { display: none; }
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--n5, #4c4c4c);
}
.auth-field input {
  border: 1px solid rgba(3, 7, 18, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink, #030712);
  background: #fff;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--blue, #252fc7);
}
.auth-msg {
  font-size: 14px;
  margin-bottom: 14px;
  min-height: 20px;
}
.auth-msg.is-error { color: #b45309; }
.auth-msg.is-success { color: #15803d; }
.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.auth-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--n5, #4c4c4c);
}
.auth-foot a {
  color: var(--blue, #252fc7);
  font-weight: 600;
}

/* Account page */
.account-page .about-hero-inner {
  padding-bottom: 48px;
}
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}
.account-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 100px;
}
@media (max-width: 800px) {
  .account-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
  }
}
.account-tab {
  text-align: left;
  border: 1px solid rgba(3, 7, 18, 0.1);
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--n5, #4c4c4c);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
html[dir="rtl"] .account-tab { text-align: right; }
.account-tab.is-active {
  border-color: var(--blue, #252fc7);
  color: var(--blue, #252fc7);
  background: var(--blue-lightest, #e9eaf9);
}
.account-panel[hidden] { display: none; }
.account-panel h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.account-panel .panel-lead {
  color: var(--n5, #4c4c4c);
  font-size: 16px;
  margin-bottom: 24px;
}
.account-profile-form .auth-field { max-width: 420px; }
.fav-grid {
  display: grid;
  gap: 16px;
}
.fav-grid .elist-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  border: 1px solid rgba(3, 7, 18, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fav-grid .elist-card:hover {
  border-color: var(--blue, #252fc7);
  box-shadow: 0 16px 36px -22px rgba(3, 7, 18, 0.3);
}
.fav-grid .elist-media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--n2, #d8d8d8);
}
.fav-grid .elist-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fav-grid .elist-body {
  padding: 14px 16px 14px 0;
  align-self: center;
}
.fav-grid .elist-price {
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 4px;
}
.fav-grid .elist-title {
  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.fav-grid .elist-loc,
.fav-grid .elist-specs {
  font-size: 13px;
  color: var(--n5, #4c4c4c);
}
@media (max-width: 480px) {
  .fav-grid .elist-card { grid-template-columns: 110px 1fr; }
}
.fav-empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed rgba(3, 7, 18, 0.14);
  border-radius: 16px;
  color: var(--n5, #4c4c4c);
}
.fav-empty p { margin-bottom: 16px; }
.account-settings-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 520px;
}
.account-settings-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(3, 7, 18, 0.08);
  font-size: 15px;
}
.account-settings-list li span:last-child {
  color: var(--n5, #4c4c4c);
}
