/* Novira — Customer profile panel */

.ds-profile-page {
  padding: 24px 0 48px;
  min-height: calc(100vh - 200px);
}

.ds-profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 991px) {
  .ds-profile-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .ds-profile-mobile-account-btn {
    order: 0;
    display: flex;
  }

  .ds-profile-main {
    order: 1;
    width: 100%;
    min-width: 0;
  }

  .ds-profile-sidebar {
    order: 2;
    width: 100%;
  }
}

.ds-profile-mobile-account-btn {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text-secondary);
  cursor: pointer;
  font-family: inherit;
}

.ds-profile-mobile-account-btn svg {
  transition: transform 0.2s;
}

.ds-profile-layout.is-account-nav-open .ds-profile-mobile-account-btn svg {
  transform: rotate(180deg);
}

@media (max-width: 991px) {
  .ds-profile-layout:not(.is-account-nav-open) .ds-profile-sidebar {
    display: none;
  }

  .ds-profile-layout.is-account-nav-open .ds-profile-sidebar {
    padding-top: 16px;
    overflow: visible;
    max-height: none;
  }

  .ds-profile-layout.is-account-nav-open .ds-profile-user-head {
    padding-top: 24px;
  }

  .ds-profile-nav-item {
    min-height: 44px;
  }

  .ds-profile-nav-item-left {
    flex: 1;
    min-width: 0;
  }

  .ds-profile-nav-item-left span:last-child {
    word-break: break-word;
  }
}

/* Sidebar */
.ds-profile-sidebar {
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  overflow: hidden;
}

.ds-profile-user-head {
  padding: 20px 16px;
  border-bottom: 1px solid var(--ds-border);
  position: relative;
}

.ds-profile-user-edit {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--ds-text-muted);
  padding: 4px;
}

.ds-profile-user-edit:hover {
  color: var(--ds-brand);
}

.ds-profile-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin: 0 0 4px;
}

.ds-profile-user-phone {
  font-size: 12px;
  color: var(--ds-text-muted);
  margin: 0;
}

.ds-profile-wallet-rows {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ds-border);
}

.ds-profile-wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  font-size: 12px;
  color: var(--ds-text-secondary);
}

.ds-profile-wallet-row:not(:last-child) {
  border-bottom: 1px solid var(--ds-bg-soft);
}

.ds-profile-wallet-row strong {
  font-weight: 600;
}

.ds-profile-wallet-link {
  font-size: 11px;
  font-weight: 600;
  color: #2196f3;
  white-space: nowrap;
}

.ds-profile-wallet-link:hover {
  text-decoration: underline;
}

.ds-profile-plus-promo {
  margin: 12px 16px;
  padding: 12px;
  background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
  border-radius: var(--ds-radius);
  font-size: 11px;
  color: var(--ds-text-secondary);
  line-height: 1.6;
}

.ds-profile-plus-promo a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: #7b1fa2;
  font-size: 11px;
}

.ds-profile-nav {
  padding: 8px 0 12px;
}

.ds-profile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-text-secondary);
  text-decoration: none;
  border-right: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.ds-profile-nav-item:hover {
  background: var(--ds-bg-soft);
}

.ds-profile-nav-item.is-active {
  color: var(--ds-brand);
  font-weight: 700;
  border-right-color: var(--ds-brand);
  background: #fff5f6;
}

.ds-profile-nav-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-profile-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
}

.ds-profile-nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--ds-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ds-profile-nav-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  margin-top: 4px;
  border: none;
  border-top: 1px solid var(--ds-border);
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-text-muted);
  cursor: pointer;
  font-family: inherit;
  text-align: right;
}

.ds-profile-nav-logout:hover {
  color: var(--ds-text-secondary);
  background: var(--ds-bg-soft);
}

/* Main panel */
.ds-profile-main {
  min-width: 0;
}

.ds-profile-panel {
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: 20px 24px;
}

.ds-profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ds-profile-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin: 0;
}

.ds-profile-section-link {
  font-size: 12px;
  font-weight: 600;
  color: #2196f3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ds-profile-section-link:hover {
  text-decoration: underline;
}

/* Order stat cards (dashboard) */
.ds-profile-order-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .ds-profile-order-stats {
    grid-template-columns: 1fr;
  }
}

.ds-profile-order-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.ds-profile-order-stat:hover {
  border-color: #c0c2c5;
  box-shadow: var(--ds-shadow);
}

.ds-profile-order-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.ds-profile-order-stat-icon--blue {
  background: #e3f2fd;
  color: #1976d2;
}

.ds-profile-order-stat-icon--green {
  background: #e8f5e9;
  color: var(--ds-green);
}

.ds-profile-order-stat-icon--yellow {
  background: #fff8e1;
  color: #f9a825;
}

.ds-profile-order-stat-label {
  font-size: 12px;
  color: var(--ds-text-muted);
  margin-bottom: 4px;
}

.ds-profile-order-stat-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-text-secondary);
}

/* Product row (panel) */
.ds-profile-products-section {
  margin-bottom: 28px;
}

.ds-profile-products-section:last-child {
  margin-bottom: 0;
}

.ds-profile-product-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.ds-profile-product-row::-webkit-scrollbar {
  display: none;
}

.ds-profile-product-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: var(--ds-bg);
  text-decoration: none;
  color: inherit;
}

.ds-profile-product-card:hover {
  box-shadow: var(--ds-shadow);
}

.ds-profile-product-img {
  aspect-ratio: 1;
  background: var(--ds-bg-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.ds-profile-product-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--ds-text-secondary);
  line-height: 1.5;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.ds-profile-product-stock {
  font-size: 10px;
  font-weight: 600;
  color: var(--ds-brand);
  margin: 0 0 4px;
}

.ds-profile-product-ship {
  font-size: 10px;
  color: var(--ds-text-muted);
  margin: 0 0 8px;
}

.ds-profile-product-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-text);
  margin: 0 0 10px;
}

.ds-profile-add-cart {
  margin-top: auto;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--ds-brand);
  border-radius: 6px;
  background: transparent;
  color: var(--ds-brand);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ds-profile-add-cart:hover {
  background: #fff5f6;
}

/* Orders page */
.ds-profile-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.ds-profile-orders-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ds-text-secondary);
  margin: 0;
}

.ds-profile-orders-search {
  padding: 8px;
  border: none;
  background: none;
  color: var(--ds-text-muted);
  cursor: pointer;
}

.ds-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--ds-border);
  margin-bottom: 20px;
}

.ds-profile-tab {
  padding: 12px 20px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-text-muted);
  cursor: pointer;
  font-family: inherit;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ds-profile-tab:hover {
  color: var(--ds-text-secondary);
}

.ds-profile-tab.is-active {
  color: var(--ds-brand);
  font-weight: 700;
}

.ds-profile-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--ds-brand);
  border-radius: 3px 3px 0 0;
}

.ds-profile-tab-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--ds-bg-soft);
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
}

.ds-profile-tab.is-active .ds-profile-tab-badge {
  background: #ffe8eb;
  color: var(--ds-brand);
}

/* Order card */
.ds-profile-order-card {
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.ds-profile-order-card:last-child {
  margin-bottom: 0;
}

.ds-profile-order-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #fff8e1;
  font-size: 13px;
  font-weight: 700;
  color: #e65100;
}

.ds-profile-order-status--delivered {
  background: #e8f5e9;
  color: var(--ds-green);
}

.ds-profile-order-body {
  padding: 16px 20px;
}

.ds-profile-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 12px;
  color: var(--ds-text-muted);
  margin-bottom: 12px;
}

.ds-profile-order-meta strong {
  color: var(--ds-text-secondary);
  font-weight: 600;
}

.ds-profile-order-points {
  font-size: 12px;
  color: var(--ds-text-muted);
  margin-bottom: 16px;
}

.ds-profile-order-shipment {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-top: 16px;
  border-top: 1px solid var(--ds-bg-soft);
}

.ds-profile-order-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: var(--ds-bg-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.ds-profile-order-ship-info {
  flex: 1;
  min-width: 0;
}

.ds-profile-order-ship-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin: 0 0 6px;
}

.ds-profile-order-ship-detail {
  font-size: 11px;
  color: var(--ds-text-muted);
  margin: 0 0 4px;
  line-height: 1.6;
}

.ds-profile-order-product-name {
  font-size: 12px;
  color: var(--ds-text-secondary);
  margin: 8px 0 0;
}

.ds-profile-order-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--ds-border);
  background: var(--ds-bg-soft);
}

.ds-profile-order-progress-wrap {
  margin-bottom: 12px;
}

.ds-profile-order-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ds-text-muted);
  margin-bottom: 6px;
}

.ds-profile-order-progress {
  height: 4px;
  background: var(--ds-border);
  border-radius: 2px;
  overflow: hidden;
}

.ds-profile-order-progress-bar {
  height: 100%;
  background: #ff9800;
  border-radius: 2px;
  transition: width 0.3s;
}

.ds-profile-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ds-profile-order-payable {
  font-size: 12px;
  color: var(--ds-text-secondary);
}

.ds-profile-order-payable strong {
  font-size: 14px;
  color: var(--ds-text);
}

.ds-profile-order-pay-btn {
  padding: 10px 28px;
  background: var(--ds-brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ds-profile-order-pay-btn:hover {
  background: var(--ds-brand-dark);
}

.ds-profile-order-warning {
  width: 100%;
  font-size: 11px;
  color: #e65100;
  margin-top: 8px;
}

/* Placeholder */
.ds-profile-empty {
  text-align: center;
  padding: 48px 24px;
}

.ds-profile-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.ds-profile-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin: 0 0 8px;
}

.ds-profile-empty-desc {
  font-size: 13px;
  color: var(--ds-text-muted);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

.ds-profile-orders-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ds-text-muted);
}

/* Page head & actions */
.ds-profile-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.ds-profile-page-head .ds-profile-section-title {
  margin: 0;
}

.ds-profile-page-head-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-brand);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.ds-profile-page-head-action:hover {
  text-decoration: underline;
}

.ds-profile-link-muted {
  font-size: 12px;
  font-weight: 600;
  color: #2196f3;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.ds-profile-link-muted:hover {
  text-decoration: underline;
}

.ds-profile-btn-primary {
  padding: 12px 28px;
  background: var(--ds-brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ds-profile-btn-primary:hover {
  background: var(--ds-brand-dark);
}

.ds-profile-btn-outline {
  padding: 8px 16px;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-text-secondary);
  cursor: pointer;
  font-family: inherit;
}

.ds-profile-btn-outline:hover {
  border-color: var(--ds-brand);
  color: var(--ds-brand);
}

/* Tabs — underline (gift cards) */
.ds-profile-tabs--underline {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ds-border);
  margin-bottom: 24px;
}

.ds-profile-tabs--underline .ds-profile-tab {
  padding: 12px 24px;
}

/* Tabs — pill (messages) */
.ds-profile-tabs--pill {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ds-profile-tab-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--ds-border);
  background: var(--ds-bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--ds-text-muted);
  cursor: pointer;
  font-family: inherit;
}

.ds-profile-tab-pill.is-active {
  background: var(--ds-text-secondary);
  border-color: var(--ds-text-secondary);
  color: #fff;
  font-weight: 600;
}

/* Gift cards empty */
.ds-profile-gift-empty {
  text-align: center;
  padding: 40px 24px 32px;
}

.ds-profile-gift-illus {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1;
}

.ds-profile-gift-empty p {
  font-size: 13px;
  color: var(--ds-text-muted);
  line-height: 1.8;
  max-width: 360px;
  margin: 0 auto 24px;
}

/* Addresses */
.ds-profile-map-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  margin-bottom: 24px;
  padding: 24px;
  border: 2px dashed var(--ds-border);
  border-radius: var(--ds-radius);
  background: var(--ds-bg-soft);
  color: var(--ds-text-muted);
  font-size: 13px;
  cursor: pointer;
}

.ds-profile-map-box:hover {
  border-color: #c0c2c5;
  color: var(--ds-text-secondary);
}

.ds-profile-subsection-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin: 0 0 12px;
}

.ds-profile-address-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  margin-bottom: 12px;
}

.ds-profile-address-card:last-child {
  margin-bottom: 0;
}

.ds-profile-address-pin {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-bg-soft);
  border-radius: 50%;
  color: var(--ds-text-muted);
}

.ds-profile-address-body {
  flex: 1;
  min-width: 0;
}

.ds-profile-address-text {
  font-size: 12px;
  color: var(--ds-text-secondary);
  line-height: 1.7;
  margin: 0 0 8px;
}

.ds-profile-address-meta {
  font-size: 11px;
  color: var(--ds-text-muted);
  margin: 0 0 4px;
}

.ds-profile-address-menu {
  flex-shrink: 0;
  padding: 4px 8px;
  border: none;
  background: none;
  color: var(--ds-text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* Recent visits grid */
.ds-profile-title-underline {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ds-brand);
  display: inline-block;
}

.ds-profile-recent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .ds-profile-recent-grid {
    grid-template-columns: 1fr;
  }
}

.ds-profile-recent-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: var(--ds-bg);
}

.ds-profile-recent-card-img {
  aspect-ratio: 1;
  max-height: 140px;
  background: var(--ds-bg-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 10px;
}

.ds-profile-recent-card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ds-text-secondary);
  line-height: 1.5;
  margin: 0 0 6px;
  flex: 1;
}

.ds-profile-recent-rating {
  font-size: 11px;
  color: #f9a825;
  margin-bottom: 6px;
}

.ds-profile-recent-price {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ds-profile-recent-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.ds-profile-recent-actions .ds-profile-add-cart {
  flex: 1;
}

.ds-profile-recent-delete {
  padding: 8px 12px;
  border: 1px solid var(--ds-border);
  border-radius: 6px;
  background: var(--ds-bg);
  font-size: 11px;
  color: var(--ds-text-muted);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ds-profile-recent-delete:hover {
  color: var(--ds-brand);
  border-color: var(--ds-brand);
}

/* Messages */
.ds-profile-msg-list {
  border-top: 1px solid var(--ds-border);
}

.ds-profile-msg-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ds-border);
}

.ds-profile-msg-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.ds-profile-msg-content {
  flex: 1;
  min-width: 0;
}

.ds-profile-msg-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin: 0 0 6px;
}

.ds-profile-msg-body {
  font-size: 12px;
  color: var(--ds-text-muted);
  line-height: 1.6;
  margin: 0 0 6px;
}

.ds-profile-msg-date {
  font-size: 11px;
  color: var(--ds-text-muted);
}

.ds-profile-msg-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--ds-bg-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.ds-profile-msg-action {
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 768px) {
  .ds-profile-msg-action {
    align-self: start;
  }
}
.ds-profile-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
}

.ds-profile-pagination button,
.ds-profile-pagination span {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ds-border);
  border-radius: 6px;
  background: var(--ds-bg);
  font-size: 12px;
  color: var(--ds-text-secondary);
  cursor: pointer;
  font-family: inherit;
}

.ds-profile-pagination .is-active {
  background: var(--ds-brand);
  border-color: var(--ds-brand);
  color: #fff;
  font-weight: 700;
}

.ds-profile-pagination .is-ellipsis {
  border: none;
  cursor: default;
}

/* Account info */
.ds-profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

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

.ds-profile-field {
  padding: 14px 16px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  position: relative;
}

.ds-profile-field-label {
  font-size: 11px;
  color: var(--ds-text-muted);
  margin: 0 0 6px;
}

.ds-profile-field-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text-secondary);
  margin: 0;
}

.ds-profile-field-value.is-empty {
  color: var(--ds-text-muted);
  font-weight: 400;
}

.ds-profile-field-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ds-green);
  background: #e8f5e9;
  border-radius: 4px;
}

.ds-profile-field-action {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px;
  border: none;
  background: none;
  color: #2196f3;
  cursor: pointer;
  font-size: 14px;
}

.ds-profile-info-card {
  padding: 20px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  margin-bottom: 16px;
}

.ds-profile-info-card:last-child {
  margin-bottom: 0;
}

.ds-profile-info-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin: 0 0 10px;
}

.ds-profile-info-card p {
  font-size: 12px;
  color: var(--ds-text-muted);
  line-height: 1.7;
  margin: 0;
}

.ds-profile-info-card--link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.ds-profile-info-card--link:hover {
  background: var(--ds-bg-soft);
}

/* Plus */
.ds-profile-plus-banner {
  padding: 24px;
  border-radius: var(--ds-radius);
  background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 50%, #ede7f6 100%);
  margin-bottom: 24px;
}

.ds-profile-plus-status {
  font-size: 12px;
  color: #7b1fa2;
  font-weight: 600;
  margin: 0 0 8px;
}

.ds-profile-plus-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ds-text-secondary);
  margin: 0 0 8px;
}

.ds-profile-plus-savings {
  font-size: 13px;
  color: var(--ds-text-muted);
  margin: 0 0 16px;
}

.ds-profile-plus-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.ds-profile-plus-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--ds-text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ds-profile-plus-benefits li::before {
  content: '✓';
  color: var(--ds-green);
  font-weight: 700;
}

/* Lists */
.ds-profile-list-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
}

.ds-profile-list-card:hover {
  box-shadow: var(--ds-shadow);
}

.ds-profile-list-previews {
  display: flex;
  gap: 4px;
}

.ds-profile-list-preview {
  width: 48px;
  height: 48px;
  background: var(--ds-bg-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.ds-profile-list-info {
  flex: 1;
}

.ds-profile-list-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin: 0 0 4px;
}

.ds-profile-list-count {
  font-size: 12px;
  color: var(--ds-text-muted);
}

/* Comments */
.ds-profile-comment-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ds-border);
}

.ds-profile-comment-item:last-child {
  border-bottom: none;
}

.ds-profile-comment-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--ds-bg-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.ds-profile-comment-body {
  flex: 1;
  min-width: 0;
}

.ds-profile-comment-product {
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin: 0 0 6px;
}

.ds-profile-comment-text {
  font-size: 12px;
  color: var(--ds-text-muted);
  line-height: 1.6;
  margin: 0 0 8px;
}

.ds-profile-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--ds-text-muted);
}

.ds-profile-comment-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.ds-profile-comment-badge--approved {
  background: #e8f5e9;
  color: var(--ds-green);
}

.ds-profile-comment-badge--pending {
  background: #fff8e1;
  color: #f57f17;
}

.ds-profile-comment-badge--answered {
  background: #e3f2fd;
  color: #1976d2;
}

/* Full-page empty state (dedicated *-empty.html pages) */
.ds-profile-page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
  padding: 48px 32px;
}

.ds-profile-page-empty-visual {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ds-bg-soft) 0%, #fafafa 100%);
  border: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.ds-profile-page-empty-visual--sm {
  width: 96px;
  height: 96px;
  font-size: 2.75rem;
  margin-bottom: 20px;
}

.ds-profile-page-empty-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ds-text-secondary);
  margin: 0 0 10px;
}

.ds-profile-page-empty-desc {
  font-size: 13px;
  color: var(--ds-text-muted);
  line-height: 1.85;
  max-width: 380px;
  margin: 0 0 24px;
}

.ds-profile-page-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ds-profile-page-empty-actions .ds-profile-btn-outline {
  text-decoration: none;
}

.ds-profile-page-empty-actions .ds-profile-btn-primary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Dashboard empty: stat cards at zero */
.ds-profile-order-stats--empty .ds-profile-order-stat {
  opacity: 0.65;
  pointer-events: none;
}

.ds-profile-panel-empty-section {
  margin-top: 24px;
}

/* Profile info form (empty / edit state) */
.ds-profile-info-form-hint {
  font-size: 13px;
  color: var(--ds-text-muted);
  line-height: 1.7;
  margin: 0 0 20px;
  padding: 12px 14px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--ds-radius);
}

.ds-profile-info-form {
  margin-bottom: 8px;
}

.ds-profile-info-grid--form {
  margin-bottom: 20px;
}

.ds-profile-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds-profile-form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-text-secondary);
}

.ds-profile-form-required {
  color: var(--ds-brand);
  margin-right: 2px;
}

.ds-profile-form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  font-size: 13px;
  font-family: inherit;
  color: var(--ds-text-secondary);
  background: var(--ds-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ds-profile-form-input::placeholder {
  color: #b0b3b8;
}

.ds-profile-form-input:hover {
  border-color: #c0c2c5;
}

.ds-profile-form-input:focus {
  outline: none;
  border-color: var(--ds-brand);
  box-shadow: 0 0 0 3px rgba(239, 64, 86, 0.12);
}

.ds-profile-form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2381858B' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 36px;
}

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

.ds-profile-form-actions .ds-profile-btn-outline {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
