/* ==========================================================================
   Accounts — password strength, profile page
   ========================================================================== */

/* Password strength indicator */
.password-strength {
  margin-top: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px var(--sp-3);
  border-radius: var(--radius-full);
  display: inline-block;
  min-height: 1.5em;
}
.password-strength[data-strength="weak"]   { background: #fee2e2; color: #b91c1c; }
.password-strength[data-strength="fair"]   { background: #fef9c3; color: #854d0e; }
.password-strength[data-strength="strong"] { background: #dcfce7; color: #15803d; }

/* Profile page */
.profile-page { padding-block: var(--sp-10) var(--sp-16); }
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-8);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-border);
  margin-bottom: var(--sp-8);
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-primary-light);
}
.profile-info h1 { font-size: var(--text-2xl); margin-bottom: var(--sp-1); }
.profile-info p { color: var(--color-grey); font-size: var(--text-sm); margin: 0; }
.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--sp-8);
}
.profile-tab {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-grey);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--ease), border-color var(--ease);
  text-decoration: none;
  display: block;
}
.profile-tab:hover, .profile-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.profile-tab-panel { display: none; }
.profile-tab-panel.active { display: block; }
.profile-section { background: var(--color-white); border-radius: var(--radius-xl); border: 1.5px solid var(--color-border); padding: var(--sp-6); margin-bottom: var(--sp-6); }
.profile-section h2 { font-size: var(--text-xl); margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--color-border); }
.profile-form { max-width: 480px; }
.profile-form .btn { margin-top: var(--sp-2); }
.profile-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-4);
}
.profile-favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.no-favorites { text-align: center; padding: var(--sp-12) 0; color: var(--color-grey); }
.no-favorites p { margin-bottom: var(--sp-4); }
