.user-area-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-area {
  display: flex;
  align-items: center;
  position: relative;
}

.auth-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
  background: rgba(52, 73, 94, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.auth-links a:hover {
  background: rgba(52, 73, 94, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.auth-links a[data-page="login"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 1px solid transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.auth-links a[data-page="login"]:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

.auth-links a[data-page="register"] {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  border: 1px solid transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.auth-links a[data-page="register"]:hover {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  box-shadow: 0 4px 16px rgba(46, 204, 113, 0.4);
  transform: translateY(-2px);
}

.auth-links .divider {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin: 0 8px;
}

#user-info-pc {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  min-width: 200px;
  min-height: 60px;
  cursor: pointer;
  position: relative;
  overflow: visible;
  border-radius: 6px;
  --user-rank-bg: url('https://oss.am-all.com.cn/asset/img/main/dc/UserRank/UserRank_normal.png');
}

#user-info-pc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--user-rank-bg);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 1;
  border-radius: 6px;
  transform: none;
}

#user-info-pc:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#user-info-pc .user-basic-info {
  display: flex;
  flex-direction: column;
  margin-right: 30px;
  max-width: 180px;
  color: white;
  overflow: hidden;
  position: relative;
}

#user-info-pc .user-nickname {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-bottom: 4px;
  position: relative;
  padding-left: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-top: 12px;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.7)) 
          drop-shadow(0 0 1px rgba(0, 0, 0, 0.7)) 
          drop-shadow(0 0 1px rgba(0, 0, 0, 0.7));
}

#user-info-pc .user-uid {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-left: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.7)) 
          drop-shadow(0 0 1px rgba(0, 0, 0, 0.7)) 
          drop-shadow(0 0 1px rgba(0, 0, 0, 0.7));
}

.user-rank-icon {
  position: absolute;
  right: 5px;
  top: 32%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  object-fit: contain;
}

#user-info-pc .user-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #2c3e50;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 100%;
  display: none;
  z-index: 1000;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

#user-info-pc .user-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#user-info-pc .user-dropdown a {
  display: block;
  padding: 10px 15px;
  color: #ecf0f1;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

#user-info-pc .user-dropdown a:hover {
  background: #34495e;
}

#user-info-pc .dropdown-rank {
  padding: 8px 15px;
  color: #f1c40f;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

#user-info-pc .dropdown-uid {
  color: #ecf0f1;
  padding: 8px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  display: flex;
  align-items: center;
}

#user-info-pc .dropdown-points {
  padding: 8px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
}

#user-info-pc .dropdown-credit {
  padding: 8px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
}

#user-info-pc .dropdown-uid i,
#user-info-pc .dropdown-points i,
#user-info-pc .dropdown-credit i {
  margin-right: 8px;
  font-size: 14px;
}

#user-info-pc .dropdown-special-rank,
#user-info-pc .dropdown-auth {
  color: #ecf0f1;
  padding: 8px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  display: flex;
  align-items: center;
}

#user-info-pc .dropdown-special-rank i,
#user-info-pc .dropdown-auth i {
  margin-right: 8px;
  font-size: 14px;
  color: #f1c40f;
}

#user-info-pc .dropdown-special-rank.hidden,
#user-info-pc .dropdown-auth.hidden {
  display: none;
}

.user-avatar-wrapper-pc {
  position: relative;
  display: inline-block;
  width: 55px;
  height: 55px;
  margin-right: 15px;
  flex-shrink: 0;
}

#user-info-pc .user-avatar-pc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: block;
  position: relative;
  z-index: 2;
}

.user-avatar-wrapper-pc .user-state-icon {
  position: absolute;
  bottom: -4px;
  left: -10px;
  width: 24px;
  height: 24px;
  z-index: 4;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  object-fit: contain;
  pointer-events: none;
}

.user-avatar-wrapper-pc .user-auth-icon-official,
.user-avatar-wrapper-pc .user-auth-icon-personal {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  z-index: 4;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.user-avatar-wrapper-pc .user-auth-icon-official:hover,
.user-avatar-wrapper-pc .user-auth-icon-personal:hover,
.user-avatar-wrapper-pc .user-state-icon:hover {
  transform: scale(1.15);
}

.user-avatar-wrapper-pc .avatar-effect-rainbow {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 63px;
  height: 63px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff0080, #ff0040, #ff4000, #ff8000, #ffbf00, #ffff00,
    #bfff00, #80ff00, #40ff00, #00ff00, #00ff40, #00ff80,
    #00ffbf, #00ffff, #00bfff, #0080ff, #0040ff, #0000ff,
    #4000ff, #8000ff, #bf00ff, #ff00ff, #ff00bf, #ff0080
  );
  animation: rainbow-rotate 4s linear infinite;
  z-index: 1;
  pointer-events: none;
  filter: brightness(1.2) saturate(1.3);
}

@keyframes rainbow-rotate {
  0% { 
    transform: rotate(0deg);
    filter: brightness(1.2) saturate(1.3) hue-rotate(0deg);
  }
  50% {
    filter: brightness(1.3) saturate(1.4) hue-rotate(180deg);
  }
  100% { 
    transform: rotate(360deg);
    filter: brightness(1.2) saturate(1.3) hue-rotate(360deg);
  }
}

.user-avatar-wrapper-pc .avatar-effect-rainbow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: inherit;
  filter: blur(4px);
  opacity: 0.7;
  z-index: -1;
  animation: rainbow-pulse 2s ease-in-out infinite;
}

@keyframes rainbow-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.sidebar-user-area {
  padding: 12px 15px;
  background: white;
  margin-bottom: 0;
  position: relative; 
  overflow: visible;
  min-height: auto;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-bottom: 1px solid #eee;
}

.sidebar-user-area::after {
  content: "";
  position: absolute;
  bottom: calc(152px + env(safe-area-inset-bottom, 0px)); 
  left: 0;
  right: 0;
  height: 64px; 
  background-image: var(--user-rank-bg);
  background-size: 100% 100%; 
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0; 
  opacity: 1;
  border-radius: 6px; 
}

.sidebar-user-area .user-rank-icon-mobile {
  position: absolute; 
  top: -2px; 
  right: 1px; 
  width: 50px; 
  height: 50px; 
  object-fit: contain;
  z-index: 2; 
}

.sidebar-user-area #user-info-mobile {
  display: none;
}

.sidebar-user-area .user-basic {
  display: flex;
  align-items: center;
  margin-bottom: 10px; 
  position: relative; 
  z-index: 2; 
}

.sidebar-user-area .user-info-text {
  flex: 1;
  overflow: visible;
  position: relative; 
  z-index: 2; 
  padding-right: 55px;
  margin-bottom: env(safe-area-inset-bottom, 0px);
}

.sidebar-user-area #user-nickname-mobile {
  color: #333;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 10px);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) 
          drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) 
          drop-shadow(0 0 1px rgba(255, 255, 255, 0.7));
}

.sidebar-user-area #user-email-mobile {
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 1px);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) 
          drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) 
          drop-shadow(0 0 1px rgba(255, 255, 255, 0.7));
}

.sidebar-user-area #user-uid-mobile {
  color: #666;
  background: #f5f5f5;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 4px;
  position: relative; 
  z-index: 2; 
  margin-left: -75px;
  padding-left: 9px;
  padding-right: 6px;
  overflow: visible;
  white-space: nowrap;
  max-width: none;
}

.sidebar-user-area #user-points-mobile {
  color: #666;
  background: #f5f5f5;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 4px;
  position: relative;
  z-index: 2;
  margin-left: 8px;
}

.sidebar-user-area .user-actions {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  position: relative; 
  z-index: 2;
  gap: 8px;
}

.sidebar-user-area .auth-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 15px;
}

.sidebar-user-area .auth-links a.mobile-auth-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  margin: 8px 0;
}

.sidebar-user-area .auth-links a.mobile-auth-btn:hover {
  background: linear-gradient(135deg, #2980b9, #1d6fa5);
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.sidebar-user-area .auth-links a.mobile-auth-btn:active {
  transform: translateY(1px);
}

.sidebar-user-area .auth-links a.mobile-auth-btn i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.sidebar-user-area .auth-links a[data-page="login"] {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.sidebar-user-area .auth-links a[data-page="register"] {
  background: linear-gradient(135deg, #27ae60, #219653);
}

.sidebar-user-area .auth-links a[data-page="login"]:hover {
  background: linear-gradient(135deg, #2980b9, #1d6fa5);
}

.sidebar-user-area .auth-links a[data-page="register"]:hover {
  background: linear-gradient(135deg, #219653, #1e8449);
}

.sidebar-user-area .mobile-user-action-btn {
  display: block;
  text-align: center;
  background: #3498db;
  color: white;
  border-radius: 6px;
  padding: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.sidebar-user-area .mobile-user-action-btn:hover {
  background: #2980b9;
}

.sidebar-user-area #logout-mobile.mobile-user-action-btn {
  background: #e74c3c;
}

.sidebar-user-area #logout-mobile.mobile-user-action-btn:hover {
  background: #c0392b;
}

.user-avatar-wrapper-mobile {
  position: relative;
  display: inline-block;
  width: 55px;
  height: 55px;
  margin-right: 12px;
  margin-top: -38px;
  flex-shrink: 0;
}

.user-avatar-wrapper-mobile .user-avatar-mobile {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
  display: block;
  position: relative;
  z-index: 2;
}

.user-avatar-wrapper-mobile .user-state-icon-mobile {
  position: absolute;
  bottom: -2px;
  left: -6px;
  width: 22px;
  height: 22px;
  z-index: 4;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  object-fit: contain;
  pointer-events: none;
}

.user-avatar-wrapper-mobile .user-auth-icon-mobile {
  position: absolute;
  bottom: -2px;
  right: -4px;
  width: 22px;
  height: 22px;
  z-index: 4;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  object-fit: contain;
  pointer-events: none;
}

.user-avatar-wrapper-mobile .avatar-effect-rainbow {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 63px;
  height: 63px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff0080, #ff0040, #ff4000, #ff8000, #ffbf00, #ffff00,
    #bfff00, #80ff00, #40ff00, #00ff00, #00ff40, #00ff80,
    #00ffbf, #00ffff, #00bfff, #0080ff, #0040ff, #0000ff,
    #4000ff, #8000ff, #bf00ff, #ff00ff, #ff00bf, #ff0080
  );
  animation: rainbow-rotate 4s linear infinite;
  z-index: 1;
  pointer-events: none;
  filter: brightness(1.2) saturate(1.3);
}

@media (max-width: 992px) {
  .top-navbar .user-area {
    display: none;
  }
  
  #user-info-pc {
    min-width: 160px;
    padding: 6px 10px;
  }
  
  #user-info-pc .user-basic-info {
    margin-right: 20px;
  }
  
  .user-avatar-wrapper-pc {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  
  .user-avatar-wrapper-pc .user-state-icon,
  .user-avatar-wrapper-pc .user-auth-icon-official,
  .user-avatar-wrapper-pc .user-auth-icon-personal {
    width: 20px;
    height: 20px;
    bottom: 0;
  }
  
  .user-avatar-wrapper-pc .user-state-icon {
    left: 0;
  }
  
  .user-avatar-wrapper-pc .user-auth-icon-official,
  .user-avatar-wrapper-pc .user-auth-icon-personal {
    right: 0;
  }
  
  .user-avatar-wrapper-pc .avatar-effect-rainbow {
    top: -3px;
    left: -3px;
    width: 46px;
    height: 46px;
  }
}

@media (min-width: 993px) {
  .sidebar .sidebar-user-area {
    display: none;
  }
}

@media (max-width: 768px) {
  .user-avatar-wrapper-mobile .user-state-icon-mobile,
  .user-avatar-wrapper-mobile .user-auth-icon-mobile {
    width: 20px;
    height: 20px;
  }
  
  .user-state-badge {
    font-size: 12px;
    padding: 3px 10px;
  }
}

.auth-container {
  max-width: 500px;
  margin: 30px auto;
  padding: 20px;
}

.auth-form {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.auth-btn, .send-code-btn {
  width: 100%;
  padding: 12px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.auth-btn:hover, .send-code-btn:hover {
  background: #2980b9;
}

.send-code-btn {
  background: #2c3e50;
  margin-left: 10px;
  width: auto;
  min-width: 120px;
}

.send-code-btn:hover {
  background: #1a252f;
}

.send-code-btn:disabled {
  background-color: #95a5a6 !important;
  cursor: not-allowed;
}

.verification-code-group {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.verification-code-group input {
  flex: 1;
  min-width: 0;
}

.verification-code-group button {
  width: 120px;
}

.forgot-password {
  margin-left: 15px;
}

.forgot-password a {
  color: #3498db;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.login-required-container {
  text-align: center;
  padding: 40px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.login-required-icon {
  font-size: 60px;
  color: #3498db;
  margin-bottom: 20px;
}

.login-required-container h2 {
  margin-bottom: 15px;
  color: #333;
}

.login-required-container p {
  margin-bottom: 25px;
  color: #666;
  font-size: 16px;
}

.login-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.login-btn:hover {
  background: #2980b9;
}

.login-btn i {
  margin-right: 8px;
}

.sidebar-nav {
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.user-state-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.user-state-badge.state-normal {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.user-state-badge.state-limited {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.user-state-badge.state-banned {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.user-state-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.user-settings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-header {
  margin-bottom: 30px;
  text-align: center;
}

.settings-title {
  font-size: 32px;
  font-weight: 600;
  color: #2c3e50;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.settings-title i {
  color: #3498db;
}

.user-overview-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  position: relative;
}

.user-overview-bg {
  height: 150px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
  position: relative;
}

.user-overview-content {
  display: flex;
  align-items: center;
  padding: 0 30px 30px;
  gap: 30px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.user-avatar-section {
  flex-shrink: 0;
}

.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.avatar-wrapper:hover {
  transform: scale(1.05);
}

.user-avatar-display {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.avatar-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.avatar-wrapper:hover .avatar-upload-overlay {
  opacity: 1;
}

.avatar-upload-overlay i {
  color: white;
  font-size: 28px;
}

.user-info-summary {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 3;
}

.user-display-name {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-email {
  color: rgba(0, 0, 0, 0.9);
  font-size: 14px;
  margin: 0 0 12px;
}

.user-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-uid {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  font-size: 13px;
  color: #34495e;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-tabs {
  margin-top: 20px;
}

.tab-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  color: #7f8c8d;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.tab-btn i {
  font-size: 16px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.settings-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-bottom: 1px solid #ecf0f1;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
  color: #2c3e50;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header i {
  color: #667eea;
  font-size: 18px;
}

.card-body {
  padding: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 600;
  font-size: 16px;
}

.form-group label i {
  margin-right: 8px;
  color: #667eea;
  font-size: 16px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ecf0f1;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-wrapper {
  position: relative;
}

.char-counter {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #95a5a6;
  background: white;
  padding: 0 6px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row label {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.info-value {
  color: #2c3e50;
  font-weight: 500;
  font-size: 16px;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.points-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.points-item:hover {
  transform: translateY(-5px);
}

.points-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #667eea;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.points-info {
  flex: 1;
}

.points-label {
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 4px;
}

.points-value {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
}

.binding-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.binding-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.binding-item i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.binding-item label {
  font-size: 12px;
  color: #7f8c8d;
  margin: 0 0 4px;
}

.binding-value {
  font-size: 14px;
  color: #2c3e50;
  font-weight: 500;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #ecf0f1;
  color: #34495e;
}

.btn-secondary:hover {
  background: #bdc3c7;
}

.btn-danger {
  background: linear-gradient(135deg, #eb3b5a 0%, #fc5c65 100%);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(235, 59, 90, 0.4);
}

.btn-block {
  width: 100%;
}

.empty-icon {
  font-size: 64px;
  color: #bdc3c7;
  margin-bottom: 16px;
}

.text-center {
  text-align: center;
}

.text-center p {
  color: #7f8c8d;
  margin: 0;
}

.avatar-crop-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.crop-modal-content {
  background: white;
  border-radius: 12px;
  padding: 15px;
  max-width: 90vw;
  width: 900px;
  height: 85vh;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.crop-modal-content h3 {
  margin: 0 0 10px;
  text-align: center;
  color: #2c3e50;
  font-size: 1.2rem;
  flex-shrink: 0;
  padding: 0;
}

.crop-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}

.crop-container img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.crop-container .cropper-view-box,
.crop-container .cropper-face {
  border-radius: 50%;
  outline: 0;
}

.crop-container .cropper-view-box {
  box-shadow: 0 0 0 1px #39f;
  outline: 0;
}

.crop-container .cropper-crop-box {
  border-radius: 50%;
}

.crop-container .cropper-line,
.crop-container .cropper-point {
  background-color: #39f;
}

.crop-container .cropper-point.point-se {
  width: 10px;
  height: 10px;
  opacity: 1;
  border-radius: 50%;
}

.crop-container .cropper-dashed {
  border: 0;
}

.crop-container .cropper-center {
  opacity: 1;
}

.crop-container .cropper-container {
  width: 100% !important;
  height: 100% !important;
}

.crop-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .user-settings-container {
    padding: 15px;
  }
  
  .settings-title {
    font-size: 24px;
  }
  
  .user-overview-content {
    flex-direction: column;
    text-align: center;
    padding: 0 20px 20px;
  }
  
  .avatar-wrapper {
    width: 100px;
    height: 100px;
  }

  .avatar-crop-modal {
    padding: 5px;
  }
  
  .crop-modal-content {
    padding: 12px;
    max-width: 98vw;
    width: 98vw;
    height: 90vh;
    max-height: 90vh;
  }
  
  .crop-modal-content h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .crop-container {
    padding: 8px;
    margin-bottom: 8px;
  }
  
  .crop-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .crop-actions button {
    width: 100%;
    padding: 12px;
  }
  
  .user-display-name {
    font-size: 20px;
    color: #2c3e50;
    text-shadow: none;
  }
  
  .tab-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  
  .tab-nav::-webkit-scrollbar {
    display: none;
  }
  
  .tab-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .tab-btn span {
    display: none;
  }
  
  .tab-btn i {
    font-size: 18px;
  }
  
  .points-grid {
    grid-template-columns: 1fr;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .binding-item {
    flex-direction: column;
    text-align: center;
  }

  .form-group label {
    font-size: 14px;
  }
  
  .info-row label {
    font-size: 14px;
  }
  
  .info-value {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .verification-code-group {
    flex-direction: column;
  }
  
  .verification-code-group button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .user-overview-bg {
    height: 120px;
  }
  
  .user-badges {
    justify-content: center;
  }
  
  .form-input {
    font-size: 16px;
  }
}

.success-animation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.success-animation-modal.show {
  display: flex;
}

.success-animation-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  position: relative;
  animation: slideUp 0.4s ease, scaleIn 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

.success-checkmark-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  position: relative;
}

.success-circle {
  width: 100px;
  height: 100px;
  position: relative;
  border-radius: 50%;
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
  animation: scaleCircle 0.5s ease 0.2s both;
}

@keyframes scaleCircle {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-checkmark {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 0;
  left: 0;
  stroke-width: 3;
  stroke: white;
  stroke-miterlimit: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.success-checkmark-circle {
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: strokeCircle 0.6s ease 0.3s forwards;
  stroke: rgba(255, 255, 255, 0.3);
  fill: none;
}

@keyframes strokeCircle {
  to {
    stroke-dashoffset: 0;
  }
}

.success-checkmark-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: strokeCheck 0.4s ease 0.8s forwards;
  fill: none;
}

@keyframes strokeCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.success-title {
  font-size: 28px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
  animation: fadeInUp 0.5s ease 0.9s both;
}

.success-message {
  font-size: 16px;
  color: #7f8c8d;
  margin-bottom: 30px;
  animation: fadeInUp 0.5s ease 1s both;
}

.success-progress-bar {
  width: 100%;
  height: 4px;
  background: #ecf0f1;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 20px;
  animation: fadeInUp 0.5s ease 1.1s both;
}

.success-progress {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 2px;
  animation: progressFill 2.5s ease 1.2s forwards;
  width: 0;
}

@keyframes progressFill {
  to {
    width: 100%;
  }
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #f39c12;
  animation: confettiFall 3s ease-in-out forwards;
}

.confetti:nth-child(odd) {
  background: #e74c3c;
  width: 8px;
  height: 8px;
  animation-duration: 2.5s;
}

.confetti:nth-child(3n) {
  background: #3498db;
  width: 12px;
  height: 12px;
  animation-duration: 3.5s;
}

.confetti:nth-child(4n) {
  background: #2ecc71;
  border-radius: 50%;
  animation-duration: 2.8s;
}

.confetti:nth-child(5n) {
  background: #9b59b6;
  width: 6px;
  height: 6px;
  animation-duration: 3.2s;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.success-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 2s ease infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.2;
  }
}

@media (max-width: 576px) {
  .success-animation-content {
    padding: 30px 20px;
    max-width: 90%;
  }
  
  .success-checkmark-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .success-circle,
  .success-checkmark {
    width: 80px;
    height: 80px;
  }
  
  .success-title {
    font-size: 24px;
  }
  
  .success-message {
    font-size: 14px;
  }
}

.success-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s ease infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.star:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 30%; left: 80%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 60%; left: 10%; animation-delay: 1s; }
.star:nth-child(4) { top: 70%; left: 70%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 80%; left: 40%; animation-delay: 2s; }

@keyframes twinkle {
  0%, 100% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.settings-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--modern-border-color);
}

.settings-card .card-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.visibility-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: var(--modern-text-secondary);
    font-size: 18px;
}

.visibility-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--modern-primary-color);
}

.visibility-toggle-btn i {
    transition: all 0.3s ease;
}

.binding-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--modern-border-color);
    padding-bottom: 0;
}

.binding-tab-btn {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    color: var(--modern-text-secondary);
}

.binding-tab-btn i.fa-credit-card {
    font-size: 16px;
}

.binding-tab-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--modern-text-primary);
}

.binding-tab-btn.active {
    color: var(--modern-primary-color);
    border-bottom-color: var(--modern-primary-color);
    font-weight: 600;
}

.binding-tab-btn.bound {
    color: var(--modern-success-color);
}

.binding-tab-btn.bound.active {
    color: var(--modern-primary-color);
}

.card-active-star {
    color: gold;
    font-size: 12px;
    margin-left: 4px;
}

.binding-tabs-content {
    position: relative;
    min-height: 280px;
}

.binding-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.binding-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.binding-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.binding-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.binding-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.binding-item > i {
    font-size: 20px;
    color: var(--modern-primary-color);
    margin-top: 2px;
    min-width: 24px;
}

.binding-item > div {
    flex: 1;
}

.binding-item label {
    display: block;
    font-size: 12px;
    color: var(--modern-text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.binding-value {
    font-size: 14px;
    color: var(--modern-text-primary);
    font-weight: 500;
    word-break: break-all;
}

.sensitive-data {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.no-binding-hint {
    text-align: center;
    padding: 40px 20px;
    color: var(--modern-text-secondary);
}

.no-binding-hint i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.binding-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.binding-actions button {
    flex: 0 0 auto;
}

.empty-icon {
    font-size: 64px;
    color: var(--modern-text-secondary);
    opacity: 0.3;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .binding-tabs-nav {
        flex-direction: column;
        border-bottom: none;
        gap: 4px;
    }
    
    .binding-tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        justify-content: flex-start;
    }
    
    .binding-tab-btn.active {
        border-left-color: var(--modern-primary-color);
        background: rgba(var(--modern-primary-rgb), 0.1);
    }
    
    .binding-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .binding-item > i {
        font-size: 24px;
    }
    
    .visibility-toggle-btn {
        padding: 6px 10px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .settings-card .card-header {
        padding: 12px 16px;
    }
    
    .settings-card .card-header h3 {
        font-size: 16px;
    }
    
    .binding-value {
        font-size: 13px;
    }
    
    .binding-tab-btn {
        font-size: 13px;
        padding: 10px 12px;
    }
}

@media (prefers-color-scheme: dark) {
    .binding-item {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .binding-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }
    
    .binding-tab-btn:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .binding-tab-btn.active {
        background: rgba(255, 255, 255, 0.08);
    }
    
    .visibility-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

@media print {
    .visibility-toggle-btn {
        display: none;
    }
    
    .binding-tabs-nav {
        display: none;
    }
    
    .binding-tab-panel {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .sensitive-data {
        color: transparent;
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    }
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.text-muted {
    color: var(--modern-text-secondary);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    background: var(--modern-primary-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}