/* ===== ACCOUNT 2026+ ===== */

.account-card {
  border-radius: 14px;
  overflow: hidden;
}

.account-subtitle {
  opacity: 0.75;
  margin-top: -6px;
}

.req::after {
  content: ' *';
  color: var(--bs-danger);
}

.account-form .form-label {
  font-weight: 500;
}

.account-form .invalid-feedback {
  display: block;
}

.account-actions {
  margin-top: 1.5rem;
}

#account-wishlist .account-card:has(.wishlist-empty-state) {
  background: transparent;
  box-shadow: none !important;
}

#account-wishlist .account-card:has(.wishlist-empty-state) > .card-body {
  padding: 0 !important;
}

#account-wishlist .account-card:has(.wishlist-empty-state) h1,
#account-wishlist .account-card:has(.wishlist-empty-state) > .card-body > .text-end {
  display: none;
}

#account-wishlist .account-card:has(.wishlist-empty-state) .wishlist-page__list {
  margin-top: 0 !important;
}

#account-wishlist .account-card:has(.wishlist-empty-state) .wishlist-empty-state {
  max-width: none;
}

/* Sticky mobile bar */
.account-sticky-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 12px;
  border-top: 1px solid #eee;
  display: none;
  gap: 10px;
}

.account-sticky-actions .btn {
  width: 50%;
}

@media (max-width: 768px) {
  .account-actions {
    display: none !important;
  }

  .account-sticky-actions {
    display: flex !important;
  }
}
/* ===== ADDRESS EXTENSIONS ===== */

.account-section-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.account-muted {
  font-size: 0.95rem;
  opacity: 0.75;
}

.account-segmented .btn {
  min-width: 160px;
}

.address-sticky-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 12px;
  display: none;
  gap: 10px;
}

.address-sticky-actions .btn {
  width: 50%;
}

.badge.bg-purple {
  background-color: #6f42c1;
  color: #fff;
}

.order-info-summary {
  line-height: 1.7;
}

.order-progress {
  position: relative;
  padding: 8px 0;
}

.order-progress__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 26px;
  height: 8px;
  border-radius: 999px;
  background: #e8edf2;
}

.order-progress__fill {
  position: absolute;
  left: 0;
  top: 26px;
  height: 8px;
  width: var(--order-progress);
  border-radius: 999px;
  background: rgba(var(--bs-success-rgb), 0.55);
  transition: width 0.35s ease;
}

.order-progress.is-danger .order-progress__fill {
  background: rgba(var(--bs-danger-rgb), 0.55);
}

.order-progress__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  position: relative;
  z-index: 1;
}

.order-progress__step {
  text-align: center;
}

.order-progress__node {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid #9fb0c2;
  background: #fff;
  color: #5f7185;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.order-progress__label {
  margin-top: 10px;
  font-size: 0.92rem;
  color: #556678;
}

.order-progress__step.is-done .order-progress__node {
  border-color: rgb(var(--bs-success-rgb));
  background: rgba(var(--bs-success-rgb), 0.14);
  color: rgb(var(--bs-success-rgb));
}

.order-progress__step.is-current .order-progress__node {
  border-color: rgb(var(--bs-primary-rgb));
  color: rgb(var(--bs-primary-rgb));
  box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.15);
}

.order-progress__step.is-error .order-progress__node {
  border-color: rgb(var(--bs-danger-rgb));
  background: rgba(var(--bs-danger-rgb), 0.14);
  color: rgb(var(--bs-danger-rgb));
}

.order-progress.is-danger .order-progress__step.is-done .order-progress__node {
  border-color: rgb(var(--bs-danger-rgb));
  background: rgba(var(--bs-danger-rgb), 0.14);
  color: rgb(var(--bs-danger-rgb));
}

@media (max-width: 767.98px) {
  .order-progress {
    padding: 0;
  }

  .order-progress__track {
    left: 16px;
    top: 0;
    bottom: 0;
    right: auto;
    width: 6px;
    height: auto;
  }

  .order-progress__fill {
    left: 16px;
    top: 0;
    width: 6px;
    height: var(--order-progress);
  }

  .order-progress__steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .order-progress__step {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding-left: 2px;
  }

  .order-progress__node {
    margin: 0;
    flex: 0 0 38px;
  }

  .order-progress__label {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .address-desktop-actions {
    display: none;
  }

  .address-sticky-actions {
    display: flex;
  }
}
/* ===== Password strength (register) ===== */

.pwd-rules {
  list-style: none;
  padding-left: 0;
}

.pwd-rules li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 4px;
  color: #6c757d; /* muted default */
  transition: color 0.2s ease;
}

.pwd-rules li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  line-height: 1;
  color: #adb5bd;
  transition: color 0.2s ease;
}

.pwd-rules li.text-success {
  color: #198754;
}

.pwd-rules li.text-success::before {
  content: '✔';
  font-size: 14px;
  top: 2px;
  color: #198754;
}

/* progress bar smooth */
#pwd-strength-bar {
  transition: width 0.25s ease;
}

/* optional nicer eye button */
.password-group .btn {
  min-width: 44px;
}
.pwd-rules li.ok {
  color: #198754;
}
.pwd-rules li.ok::before {
  content: '\2713';
  color: #198754;
}

/* ===== Account dashboard ===== */
.account-dashboard__hero {
  border-radius: 14px;
  overflow: hidden;
}

.account-dashboard__hero .card-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-dashboard__hero-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5ff;
  color: #1b3a5f;
  font-size: 1.75rem;
}

.account-dashboard__hero-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
}

.account-dashboard__hero-email {
  color: #6b7280;
  font-size: 0.95rem;
}

.account-dashboard__title {
  margin-bottom: 12px;
}

.account-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-dashboard__tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.account-dashboard__tile i {
  width: 18px;
  text-align: center;
  color: #0ea5e9;
}

.account-dashboard__tile:hover {
  transform: translateY(-1px);
  border-color: #cfd8e3;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  color: #0f172a;
}

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

/* ===== Account left module ===== */
.account-nav {
  border-radius: 14px;
}

.account-nav__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 500;
  color: #2f3b4a;
  background: #fff;
}

.account-nav__user i {
  font-size: 1.45rem;
  color: #2f3b4a;
}

.account-nav__menu {
  display: grid;
  gap: 4px;
}

.account-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #1f2937;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.account-nav__link i {
  width: 16px;
  text-align: center;
  color: #111827;
}

.account-nav__link:hover {
  background: #f7f8fa;
  color: #0f172a;
}

@media (max-width: 767.98px) {
  .account-nav {
    border-radius: 18px;
  }

  .account-nav__user {
    font-size: 1rem;
    padding: 10px 14px;
  }
}

@media (max-width: 767.98px) {
  #account-wishlist .wishlist-product-name {
    display: block;
    white-space: nowrap;
    overflow: visible;
  }
}
