.userProfileRoot {
  background-color: none;
  min-height: 100vh;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.userProfileRoot::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: none;
  z-index: 0;
}

.userProfileRoot::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.192);
  z-index: 0;
}

.userSettingBreadcrumb {
  background-color: transparent;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1;
}

.userSettingBreadcrumbLink {
  color: #6c757d;
  font-weight: 500;
  transition: all 0.3s;
}

.userSettingBreadcrumbLink:hover {
  color: #1a3a6c;
  text-decoration: none;
}

.userProfileHeroTitle {
  color: #1a3a6c;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
  z-index: 1;
}

.userProfileHeroTitle:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, #1a3a6c, #2d6ee0);
}

.userProfileMain {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.userProfileLeft {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.userProfileAvatarWrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.userProfileAvatar {
  border: 3px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

.userProfileAvatar:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.userProfileAvatarEdit {
  position: absolute;
  bottom: 20px;
  right: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 9999;
}

.userProfileAvatarEdit:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.userProfileActionBtn {
  background: linear-gradient(135deg, #1a3a6c, #2d6ee0);
  color: white !important;
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(41, 98, 255, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.userProfileActionBtn::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(20deg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.userProfileActionBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(41, 98, 255, 0.3);
}

.userProfileActionBtn:hover::after {
  opacity: 1;
}

.actionBtnSecondary {
  background: linear-gradient(135deg, #4caf50, #66bb6a) !important;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2) !important;
}

.actionBtnSecondary:hover {
  box-shadow: 0 7px 20px rgba(76, 175, 80, 0.3) !important;
}

.btn-copy:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease-in-out;
}

.userProfileInfoCard {
  border-radius: 12px;
  border: 1px solid #e3e8f7;
  background: white;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.userProfileInfoCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a3a6c, #2d6ee0);
}

.userProfileInfoCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.userProfileLabel {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  color: #6c757d;
  display: flex;
  align-items: center;
}

.userProfileContent {
  font-weight: 500;
  font-size: 1.05rem;
  color: #1a3a6c;
  padding-left: 28px;
}

/* Modal Styles */
.userProfileModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.5);
}

.userProfileModalContent {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 850px;
  padding: 30px;
  position: relative;
  animation: modalAppear 0.4s ease-out;
  overflow: hidden;
  z-index: 1;
}

.userProfileModalContent::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 58, 108, 0.1) 0%, transparent 70%);
  z-index: -1;
}

.userProfileModalContent::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 110, 224, 0.1) 0%, transparent 70%);
  z-index: -1;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modalTitle {
  color: #1a3a6c;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f4f8;
  position: relative;
  z-index: 1;
}

.modalTitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #1a3a6c, #2d6ee0);
}

.avatarUploadLabel {
  background: linear-gradient(135deg, #1a3a6c, #2d6ee0);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.avatarUploadLabel::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(20deg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.modalAvatarWrapper {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e9ecef;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

.modalAvatarImage {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatarUploadLabel:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(41, 98, 255, 0.3);
}

.avatarUploadLabel:hover::after {
  opacity: 1;
}

.avatarUploadInput {
  display: none;
}

.actionBtnPrimarySolid {
  background: linear-gradient(135deg, #1a3a6c, #2d6ee0);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 8px 25px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(41, 98, 255, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.actionBtnPrimarySolid::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(20deg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.actionBtnPrimarySolid:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(41, 98, 255, 0.3);
}

.actionBtnPrimarySolid:hover::after {
  opacity: 1;
}

.actionBtnOutline {
  background: transparent;
  border: 2px solid #6c757d;
  color: #6c757d;
  border-radius: 30px;
  padding: 8px 20px;
  font-weight: 600;
  transition: all 0.3s;
}

.actionBtnOutline:hover {
  background: #6c757d;
  color: white;
}

.formControlFinancial {
  border: 1px solid #e3e8f7;
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.3s;
  background: #f8fafc;
}

.formControlFinancial:focus {
  border-color: #2d6ee0;
  box-shadow: 0 0 0 3px rgba(45, 110, 224, 0.15);
  background: white;
}

.formLabel {
  font-weight: 600;
  color: #1a3a6c;
  margin-bottom: 8px;
}

/* CSS mới cho select và option */
.genderSelect {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.genderSelect:hover {
  border-color: #2d6ee0;
  background: white;
}

.genderSelect:focus {
  outline: none;
}

.genderOption {
  padding: 10px 15px;
  background: white;
  color: #374151;
  font-weight: 500;
}

.genderOption:hover {
  background: #f3f4f6;
}

.genderOption:first-child {
  color: #9ca3af;
  font-style: italic;
}

.genderOption:checked {
  background: #eff6ff;
  color: #2d6ee0;
  font-weight: 600;
}

/* Specific Modals */
.modalChangePassword {
  max-width: 500px;
}

.modal2FA {
  max-width: 450px;
}

.modalSuccess {
  max-width: 400px;
}

.modalAvatar {
  max-width: 450px;
}

.modalQR {
  max-width: 450px;
  text-align: center;
}

/* QR Code Styling */
.qrCodeContainer {
  padding: 20px;
  background: white;
  border-radius: 12px;
  display: inline-block;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.qrCodeContainer::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a3a6c, #2d6ee0);
  z-index: -1;
}

.qrCodeImage {
  border: 10px solid white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qrAccountInfo {
  margin-top: 20px;
  background: #f8f9fc;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.qrAccountName {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a3a6c;
  margin-bottom: 5px;
}

.qrAccountNumber {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a3a6c;
  letter-spacing: 1px;
}

/* Success Modal */
.userProfileModalSuccess {
  padding: 40px 20px;
  text-align: center;
}

.userProfileModalSuccess i {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

/* Bubble Effects */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(11, 24, 44, 0.315);
  z-index: 0;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  25% {
    transform: translateY(-20px) translateX(10px);
  }

  50% {
    transform: translateY(10px) translateX(-15px);
  }

  75% {
    transform: translateY(-15px) translateX(-10px);
  }
}

@media screen and (max-width: 768px) {

  .userProfileLeft {
    align-items: center;
  }

  .userProfileModal {
    height: 100%;
    overflow-y: auto;
  }

  .userProfileModalContent {
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
  }

  .userProfileAvatarWrapper {
    width: 120px;
    height: 120px;
  }

  .userProfileAvatar {
    width: 100% !important;
    height: 100% !important;
  }

  .userProfileEditBtn {
    margin-right: 8px;
    font-size: 0.9rem;
  }

  .userProfileInfoCard {
    margin-bottom: 1rem;
  }

  .userProfileEditForm {
    margin-bottom: 30px;
  }

  .userProfileEditActions {
    margin-top: 20px;
    margin-bottom: 40px;
  }
}

/* CSS cho modal 2FA với 6 ô input */
.twoFactorCodeInputContainer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.twoFactorCodeInput {
  width: 50px;
  height: 55px;
  text-align: center;
  border: 2px solid #e0e6ed;
  border-radius: 8px;
  background-color: #ffffff;
  color: #333333;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.2s ease;
  outline: none;
}

.twoFactorCodeInput:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  background-color: #f8fbff;
}

.twoFactorCodeInput:disabled {
  background-color: #f5f5f5;
  border-color: #d0d0d0;
  color: #999999;
  cursor: not-allowed;
}

.twoFactorCodeInput::placeholder {
  color: #cccccc;
}

/* Responsive cho mobile */
@media (max-width: 576px) {
  .twoFactorCodeInputContainer {
    gap: 8px;
  }

  .twoFactorCodeInput {
    width: 40px;
    height: 45px;
    font-size: 16px;
  }
}

.role-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}
.role-badge-danger {
  background-color: #dc3545;
  color: white;
}
.role-badge-success {
  background-color: #28a745;
  color: white;
}
.role-badge-warning {
  background-color: #ffc107;
  color: black;
}
.role-badge-primary {
  background-color: #007bff;
  color: white;
}