body.profile-page {
  font-family: 'Inter', 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-main);
}
.profile-hero {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-actions .btn {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 14px;
}
.profile-actions .edit-btn {
  min-width: 100px;
}
.profile-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}
.profile-name {
  font-size: 20px;
  font-weight: 800;
}
.profile-email {
  color: var(--text-muted);
  font-size: 14px;
}
.edit-btn {
  min-width: 120px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.nav-panel {
  display: none;
  grid-column: 1 / -1;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}
.nav-panel.open {
  display: block;
}
.nav-panel.highlight {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  border-color: var(--primary);
}
.card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-title {
  font-weight: 700;
}
.nav-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}
.chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.12s ease, color 0.12s ease;
}
.nav-card:hover .chevron {
  transform: translateX(2px);
  color: var(--primary);
}
.card-section {
  margin-top: 16px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}
.card-section.highlight {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.section-head h2 {
  font-size: 18px;
  font-weight: 700;
}
.orders-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
/* Saved addresses layout */
#addresses-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
#addresses-list .mini-card {
  width: auto;
  padding: 12px;
}
#addresses-list .addr-card {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
#addresses-list .addr-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
#addresses-list .addr-actions .btn {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
}
#addresses-list .addr-edit-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
#addresses-list .addr-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
}
#addresses-list .addr-edit-actions {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
}
#addresses-list .addr-edit-actions .btn {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
}
#addresses-list .mini-title {
  font-size: 13px;
  font-weight: 700;
}
#addresses-list .mini-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.order-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg-section);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
}
.order-top {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.order-id {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
}
.order-date {
  font-size: 13px;
  color: var(--text-muted);
}
.status-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-main);
}
.status-pending {
  color: var(--warning);
  border-color: var(--warning);
}
.status-paid {
  color: var(--success);
  border-color: var(--success);
}
.status-shipped {
  color: var(--primary);
  border-color: var(--primary);
}
.status-delivered {
  color: var(--secondary);
  border-color: var(--secondary);
}
.order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.order-total {
  font-weight: 800;
  color: var(--text-main);
}
.empty-notice {
  color: var(--text-muted);
  font-size: 13px;
}
.card-section + .card-section {
  margin-top: 16px;
}
@media (max-width: 720px) {
  .profile-hero {
    padding: 14px;
  }
  .profile-actions .btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
  }
  #addresses-list {
    grid-template-columns: 1fr;
  }
  #addresses-list .addr-edit-form {
    grid-template-columns: 1fr;
  }
  .avatar {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }
}
/* Logout at bottom */
.profile-logout {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.profile-logout .btn {
  min-height: 36px;
  padding: 8px 12px;
}
