/* ── Layout ─────────────────────────────────────────── */
.flex {
  display: flex;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-1 {
  flex: 1;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}
.grid-2-wider {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ── Spacing ────────────────────────────────────────── */
.m-0 {
  margin: 0;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.p-4 {
  padding: 1rem;
}

/* ── Sizing ─────────────────────────────────────────── */
.w-full {
  width: 100%;
}

/* ── Typography ─────────────────────────────────────── */
.text-sm {
  font-size: 0.85rem;
}
.text-muted {
  color: var(--text-muted);
}
.text-danger {
  color: var(--accent-danger);
}
.text-center {
  text-align: center;
}
.font-mono {
  font-family: monospace;
}

/* ── Visual ─────────────────────────────────────────── */
.rounded-full {
  border-radius: 50%;
}
.border-danger {
  border-color: var(--accent-danger);
}
.shrink-0 {
  flex-shrink: 0;
}
.overflow-hidden {
  overflow: hidden;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.inset-0 {
  inset: 0;
}
.z-10 {
  z-index: 10;
}
.z-100 {
  z-index: 100;
}

/* ── Skeleton ───────────────────────────────────────── */
.skeleton-sm {
  width: 30%;
  height: 0.85rem;
  margin-bottom: 0.5rem;
}
.skeleton-md {
  width: 90%;
  height: 1.25rem;
}
.skeleton-lg {
  height: 42px;
  width: 100%;
}
.skeleton-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}
.skeleton-title-lg {
  height: 2rem;
  width: 40%;
  margin-bottom: 1.5rem;
}

/* ── Alert ──────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.alert-success {
  background: rgba(52, 211, 153, 0.08);
  color: var(--accent-success);
  border: 1px solid rgba(52, 211, 153, 0.15);
}
.alert-error {
  background: rgba(248, 113, 113, 0.08);
  color: var(--accent-danger);
  border: 1px solid rgba(248, 113, 113, 0.15);
}

/* ── Avatar ─────────────────────────────────────────── */
.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}
.avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-hover);
  flex-shrink: 0;
}

/* ── Profile picture upload ─────────────────────────── */
.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 1.5rem;
  width: 90%;
  max-width: 500px;
}

/* ── Crop ───────────────────────────────────────────── */
.crop-area {
  position: relative;
  height: 300px;
  margin-bottom: 1rem;
}
.crop-zoom-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
