/* ============================================
   PROFILE EDIT PAGE
   Colors: #FE5722 (buttons), #FF9700 (text/accents)
   ============================================ */

.profile-edit-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  background: var(--bg);
  min-height: 100vh;
}

/* ═══════════════════════════════════════════
   PROFILE PICTURE SECTION
═══════════════════════════════════════════ */
.profile-picture-section {
  background: var(--surface);
  border-radius: 18px;
  padding: 32px 20px 28px;
  margin-bottom: 24px;
  border: 1px solid var(--border2);
  box-shadow: var(--shadow-sm);
  transition: all .2s var(--ease);
}

.profile-picture-section:hover {
  box-shadow: var(--shadow-md);
}

.picture-label {
  font-size: .875rem;
  font-weight: 700;
  color: var(--t-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.picture-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.current-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(254, 87, 34, .25);
  overflow: hidden;
  transition: transform .2s var(--ease);
}

.current-avatar:hover {
  transform: scale(1.03);
}

.current-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-letter {
  color: #fff;
  font-size: 2.75rem;
  font-weight: 900;
}

.upload-picture-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--c-primary-pale);
  border: 2px solid var(--c-primary);
  border-radius: 11px;
  color: var(--c-primary);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.upload-picture-btn:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.upload-picture-btn:active {
  transform: translateY(0);
}

.upload-picture-btn i {
  font-size: 1.0625rem;
}

.picture-hint {
  font-size: .6875rem;
  color: var(--t-muted);
  text-align: center;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   EDIT FORM
═══════════════════════════════════════════ */
.edit-form {
  background: var(--surface);
  border-radius: 18px;
  padding: 28px 24px;
  border: 1px solid var(--border2);
  box-shadow: var(--shadow-sm);
  transition: all .2s var(--ease);
  margin-bottom: 14px;
}

.edit-form:hover {
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}

.form-group:last-of-type {
  margin-bottom: 0;
}

.form-label {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--c-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.form-label i {
  font-size: .9375rem;
}

.form-input {
  width: 100%;
  padding: 15px 18px;
  background: var(--bg);
  border: 2px solid var(--border2);
  border-radius: 12px;
  color: var(--t-dark);
  font-size: .9375rem;
  font-weight: 600;
  transition: all .2s var(--ease);
  font-family: inherit;
}

.form-input::placeholder {
  color: var(--t-muted);
  font-weight: 500;
}

.form-input:focus {
  outline: none;
  border-color: var(--c-primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--c-primary-pale);
}

.form-input:readonly {
  background: var(--border2);
  cursor: not-allowed;
  color: var(--t-sub);
  border-color: var(--border2);
}

.input-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: .6875rem;
  color: var(--t-sub);
  padding: 8px 12px;
  background: rgba(255, 151, 0, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--c-secondary);
}

.input-hint i {
  font-size: .8125rem;
  color: var(--c-secondary);
}

.input-with-copy {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-with-copy .form-input {
  flex: 1;
  padding-right: 50px;
}

.copy-code-btn {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  background: var(--c-primary-pale);
  border: 1px solid var(--c-primary);
  border-radius: 8px;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.copy-code-btn:hover {
  background: var(--c-primary);
  color: #fff;
}

.copy-code-btn i {
  font-size: .875rem;
}

/* ═══════════════════════════════════════════
   SAVE BUTTON
═══════════════════════════════════════════ */
.save-btn {
  width: 100%;
  padding: 17px;
  background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-primary) 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(254, 87, 34, .3);
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.save-btn .btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .25s var(--ease);
}

.save-btn .btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.save-btn.loading .btn-content {
  opacity: 0;
}

.save-btn.loading .btn-loader {
  opacity: 1;
}

.loader-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.save-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254, 87, 34, .35);
}

.save-btn:active:not(:disabled) {
  transform: translateY(0);
}

.save-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.save-btn i {
  font-size: 1.125rem;
}

/* ═══════════════════════════════════════════
   PASSWORD CHANGE SECTION
═══════════════════════════════════════════ */
.password-section {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px 24px;
  border: 1px solid var(--border2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: all .2s var(--ease);
}

.password-section:hover {
  box-shadow: var(--shadow-md);
}

.save-profile-section {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--t-dark);
  flex: 1;
}

.section-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(254, 87, 34, .25);
  transition: transform .2s var(--ease);
}

.section-header:hover .section-icon-wrapper {
  transform: scale(1.05);
}

.section-icon-wrapper i {
  color: #fff;
  font-size: 1.25rem;
}

.toggle-password-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--t-sub);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.toggle-password-btn:hover {
  background: var(--c-primary-pale);
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.toggle-password-btn i {
  font-size: .875rem;
  transition: transform .2s var(--ease);
}

.password-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border2);
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .form-input {
  padding-right: 45px;
}

.toggle-visibility-btn {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--t-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all .2s var(--ease);
}

.toggle-visibility-btn:hover {
  background: var(--bg);
  color: var(--c-primary);
}

.toggle-visibility-btn i {
  font-size: 1rem;
}

.password-strength {
  margin-top: 10px;
}

.strength-bars {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.strength-bar {
  height: 4px;
  flex: 1;
  background: #e2e8f0;
  border-radius: 2px;
  transition: all .3s var(--ease);
}

.strength-bar.active {
  background: var(--c-primary);
}

.strength-text {
  font-size: .6875rem;
  color: var(--t-sub);
  font-weight: 600;
}

.strength-text span {
  font-weight: 700;
}

.password-requirements {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.requirement-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--t-dark);
  margin-bottom: 10px;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: .75rem;
  color: var(--t-sub);
  transition: all .2s var(--ease);
}

.requirement-item:last-child {
  margin-bottom: 0;
}

.requirement-item i {
  font-size: .875rem;
  color: #ef4444;
  transition: color .2s var(--ease);
}

.requirement-item.met {
  color: #059669;
}

.requirement-item.met i {
  color: #10b981;
}

.change-password-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, .25);
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
}

.change-password-btn .btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .25s var(--ease);
}

.change-password-btn .btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.change-password-btn.loading .btn-content {
  opacity: 0;
}

.change-password-btn.loading .btn-loader {
  opacity: 1;
}

.change-password-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, .35);
}

.change-password-btn:active:not(:disabled) {
  transform: translateY(0);
}

.change-password-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.change-password-btn i {
  font-size: 1rem;
}

/* ═══════════════════════════════════════════
   NOTIFICATION
═══════════════════════════════════════════ */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
  z-index: 10000;
  transform: translateX(400px);
  transition: transform .3s var(--ease);
  border: 1px solid var(--border2);
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid #10b981;
}

.notification.success i {
  color: #10b981;
  font-size: 1.25rem;
}

.notification.error {
  border-left: 4px solid #ef4444;
}

.notification.error i {
  color: #ef4444;
  font-size: 1.25rem;
}

.notification span {
  font-size: .875rem;
  font-weight: 600;
  color: var(--t-dark);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .profile-edit-container {
    padding: 14px 16px 80px;
  }

  .profile-picture-section {
    padding: 20px 18px;
  }

  .current-avatar {
    width: 90px;
    height: 90px;
  }

  .avatar-letter {
    font-size: 2.25rem;
  }

  .edit-form {
    padding: 20px 18px;
  }

  .notification {
    right: 16px;
    left: 16px;
    top: 70px;
  }
}

@media (max-width: 480px) {
  .profile-edit-container {
    padding: 12px 14px 80px;
  }

  .profile-picture-section {
    padding: 18px 16px;
  }

  .current-avatar {
    width: 80px;
    height: 80px;
  }

  .avatar-letter {
    font-size: 2rem;
  }

  .upload-picture-btn {
    padding: 9px 16px;
    font-size: .8125rem;
  }

  .edit-form {
    padding: 18px 16px;
  }

  .form-input {
    padding: 12px 14px;
    font-size: .8125rem;
  }

  .save-btn {
    padding: 14px;
    font-size: .9375rem;
  }
}
