.mon-compte-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mon-compte-page .page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

/* Responsive layout */
.mon-compte-page .content-padded-wrapper,
.content-padded-wrapper:has(> div > .experience-list){
  max-width: var(--site-width-sm);
}

/* Profile Card */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-purple) 0%, #8041d9 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  color: white;
}

@media (min-width: 768px) {
  .profile-card {
    flex-direction: row;
    text-align: left;
    gap: var(--spacing-lg);
  }
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-purple);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.avatar-edit-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-info {
  margin-top: var(--spacing-md);
}

@media (min-width: 768px) {
  .profile-info {
    margin-top: 0;
  }
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: white;
}

.profile-email {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Section Block */
.section-block {
  margin-bottom: var(--spacing-xl);
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
  .section-header {
    justify-content: flex-start;
  }
}

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.badge-number {
  background-color: var(--primary-purple);
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Action List */
.action-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.action-item {
  background: var(--bg-surface);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}

.action-item:hover {
  background: #f8f8f8;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary-purple);
  border-radius: 50%;
  flex-shrink: 0;
}

.action-text {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.action-item svg {
  color: var(--text-grey);
}

/* Menu Section */
.menu-section {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: var(--tag-purple-bg);
}

.menu-icon {
  color: var(--text-grey);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.menu-item svg:last-child {
  color: var(--text-grey);
}

/* Logout Button */
.logout-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
  padding: var(--spacing-md);
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s ease;
}

.logout-btn:hover {
  opacity: 0.8;
}

/* ─── Avatar upload states ────────────────────────────────────────────────── */
.avatar-uploading {
  opacity: 0.6;
  filter: blur(1px);
  transition: all 0.3s ease;
}

.avatar-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--primary-purple);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Crop Dialog ────────────────────────────────────────────────────────── */
.crop-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.crop-dialog {
  background: #fff;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slide-up 0.25s ease;
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.crop-dialog-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.crop-dialog-header svg {
  color: #64748b;
}

.crop-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.crop-close-btn:hover {
  background: #f1f5f9;
  color: #334155;
}

.crop-canvas-wrapper {
  padding: 1rem 1.25rem 0;
  background: #f8fafc;
  display: flex;
  justify-content: center;
}

.crop-canvas {
  width: 100%;
  max-width: 480px;
  cursor: move;
  border-radius: 0.5rem;
  display: block;
  touch-action: none;
}

.crop-hint {
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  padding: 0.75rem 1rem 0;
  line-height: 1.5;
}

.crop-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.crop-btn-cancel {
  padding: 0.55rem 1.1rem;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s;
}

.crop-btn-cancel:hover {
  background: #f8fafc;
}

.crop-btn-save {
  padding: 0.55rem 1.4rem;
  border: none;
  background: #ef4444;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.crop-btn-save:hover:not(:disabled) {
  background: #dc2626;
}

.crop-btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


.email-status-row,
.phone-status-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0 !important;
  gap: 1rem;
}
:is(.email-status-row, .phone-status-row) span[class*="-status"]{
  font-weight: 600;
  background: #efefef;
  padding: 0.5em .7em;
  line-height: 1;
  border-radius: 5px;
}
:is(.email-status-row, .phone-status-row) span.pending{
  background: #fff5e3;
}
:is(.email-status-row, .phone-status-row) span.verified{
  background: #e3f7e3;
}