.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dialog {
  background: #1f1f1f;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 90%;
  max-width: 400px;
  margin: 20px;
  animation: dialogFadeIn 0.3s ease-out;
}

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

.dialog-icon {
  width: min(64px, 15vw);
  height: min(64px, 15vw);
  margin: 0 auto 16px;
}

.dialog-icon svg {
  width: 100%;
  height: 100%;
}

.dialog-content {
  padding: 0px !important;
}

.dialog-content h3 {
  margin: 0 0 8px;
  color: white;
  font-size: clamp(18px, 5vw, 20px);
}

.dialog-content p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(12px, 4vw, 14px);
  line-height: 1.5;
  padding: 0 8px;
}

.dialog button {
  width: 100%;
  padding: clamp(8px, 3vw, 12px);
  border: none;
  border-radius: 6px;
  font-size: clamp(12px, 4vw, 14px);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.dialog button.success {
  background: #00ff9d;
  color: #000;
}

.dialog button.success:hover {
  background: #00cc7d;
}

.dialog button.error {
  background: #ff4d4f;
  color: white;
}

.dialog button.error:hover {
  background: #cc3c3e;
}

@media (max-width: 480px) {
  .dialog {
    padding: 20px;
    margin: 16px;
  }

  .dialog-icon {
    margin-bottom: 12px;
  }

  .dialog-content p {
    margin-bottom: 20px;
  }
} 
.login-container {
  display: flex;
  min-height: 100vh;
  background-color: #121212;
  background-image: url(/static/media/loginBg.e66a605c052658d6ebd6.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.login-form-section {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(18, 18, 18, 0.7);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  color: white;
  min-width: 0;
  width: 100%;
  z-index: 1;
}

.login-form-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

.login-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: bold;
  margin-bottom: 8px;
  color: white;
  text-align: center;
}

.login-subtitle {
  color: #a0a0a0;
  margin-bottom: 24px;
  font-size: clamp(14px, 2vw, 16px);
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.form-group label {
  font-weight: 500;
  color: white;
  margin-bottom: 0px;
}

.form-group input {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  height: 36px;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input.error {
  border-color: #f44336;
}

.error-text {
  color: #f44336;
  font-size: 12px;
  margin-top: 2px;
  display: block;
}

.forgot-password {
  color: #00ff9d;
  text-decoration: none;
  font-size: 14px;
  margin-top: 4px;
  display: block;
  text-align: right;
}

.login-button {
  background: #00ff9d;
  color: #000;
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 16px;
  width: 100%;
  transition: all 0.3s;
  font-weight: 500;
  height: 36px;
}

.login-button:hover {
  background: #00cc7d;
}

.signup-link {
  text-align: center;
  margin-top: 16px;
  color: #a0a0a0;
  font-size: 14px;
}

.signup-link a {
  color: #00ff9d;
  text-decoration: none;
  font-weight: 500;
}

@media (min-width: 1000px) {
  .login-container {
    display: flex;
    background-image: url(/static/media/loginBg.e66a605c052658d6ebd6.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
  }

  .login-form-section {
    flex: 1 1;
    background-color: rgba(18, 18, 18, 0.7);
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    max-width: 100%;
    width: 100%;
  }

  .login-form-wrapper {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .login-form-wrapper {
    max-width: 360px;
  }
}

@media (max-width: 380px) {
  .login-form-wrapper {
    max-width: 320px;
  }

  .login-form-section {
    padding: 20px;
  }
}

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

.password-input-wrapper input {
  width: 100%;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: #00FF9D;
} 
.language-button2 {
  cursor: pointer;
  font-size: 12px; 
  color: white;
  border: none;
  background: none;
  padding: 8px;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 4px;
}


.language-button2 img {
  width: 20px;
  height: 20px;
}

.language-button2:hover {
  opacity: 0.8;
}

/* 固定在左上角的样式 */
.language-button2.fixed {
  position: fixed;
  left: 40px;
  top: 40px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  padding: 0;
}

.language-button2.fixed:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Admin 页面的语言按钮样式 */
.language-button2.admin {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.8rem;
}

.language-button2.admin:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .language-button2.fixed {
    left: 20px;
    top: 20px;
  }
} 
.signup-container {
  display: flex;
  min-height: 100vh;
  background-color: #121212;
  background-image: url(/static/media/loginBg.e66a605c052658d6ebd6.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  width: 100%;
  position: relative;
}

.signup-form-section {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
}

.signup-form-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 32px;
  position: relative;
  border-radius: 16px;
}

.back-button {
  position: absolute;
  left: 0;
  top: 0;
  cursor: pointer;
  font-size: 28px;
  color: white;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 1000;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  line-height: 1;
  padding-right: 3px;
  padding-bottom: 2px;
  margin: 40px;
}

.back-button:hover {
  transform: translateX(-5px);
  background-color: rgba(255, 255, 255, 0.3);
}

.back-button span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.signup-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: bold;
  margin-bottom: 8px;
  color: white;
  text-align: center;
}

.signup-subtitle {
  color: #a0a0a0;
  margin-bottom: 24px;
  font-size: clamp(14px, 2vw, 16px);
  text-align: center;
}

.signup-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.form-group label {
  font-weight: 500;
  color: white;
  margin-bottom: 0px;
}

.form-group input {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  height: 36px;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input.error {
  border-color: #f44336;
}

.error-text {
  color: #f44336;
  font-size: 12px;
  margin-top: 2px;
  display: block;
}

.signup-button {
  background: #00ff9d;
  color: #000;
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 16px;
  width: 100%;
  transition: all 0.3s;
  font-weight: 500;
  height: 36px;
}

.signup-button:hover {
  background: #00cc7d;
}

.login-link {
  text-align: center;
  margin-top: 16px;
  color: #a0a0a0;
  font-size: 14px;
}

.login-link a {
  color: #00ff9d;
  text-decoration: none;
  font-weight: 500;
}

.dialog-content {
  padding: 0px !important;
}

@media (max-width: 768px) {
  .signup-form-wrapper {
    max-width: 360px;
    padding: 24px;
    margin: 16px;
  }

  .back-button {
    margin: 20px;
  }
}

@media (max-width: 380px) {
  .signup-form-wrapper {
    max-width: 320px;
    padding: 20px;
    margin: 12px;
  }

  .signup-form-section {
    padding: 12px;
  }
} 
/* 隐藏聊天按钮 - 按需求临时禁用但保留代码 */
.chat-button {
  position: fixed;
  right: 25px;
  bottom: 170px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #00ff9d;
  border: none;
  cursor: pointer;
  display: none !important; /* 隐藏按钮 */
  visibility: hidden !important; /* 确保不可见 */
  opacity: 0 !important; /* 完全透明 */
  pointer-events: none !important; /* 禁用点击事件 */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  color: #000;
}

/* 兼容模式下的聊天按钮 */
.chat-button.compat-mode {
  /* 修复 Safari 和 MIUI 浏览器的渲染问题 */
  -webkit-appearance: none;
  transform: translateZ(0);
  /* 确保按钮在所有浏览器中都能正确显示 */
  will-change: transform;
  backface-visibility: hidden;
}

.chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 255, 157, 0.4);
  background-color: #00cc7d;
}

.chat-button svg {
  width: 28px;
  height: 28px;
  color: #1a1a1a;
}

.unread-indicator {
  position: absolute;
  top: 0px;
  right: -5px;
  width: 10px;
  height: 10px;
  background-color: #ff4d4f;
  border-radius: 50%;
  border: 2px solid white;
}

/* Dialog Styles */
.chat-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none !important; /* 隐藏对话框 */
  visibility: hidden !important; /* 确保不可见 */
  opacity: 0 !important; /* 完全透明 */
  pointer-events: none !important; /* 禁用点击事件 */
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  z-index: 1001;
  animation: fadeIn 0.2s ease;
}

/* 兼容模式下的对话框覆盖层 */
.chat-dialog-overlay.compat-mode {
  /* 修复 Safari 和 MIUI 浏览器的渲染问题 */
  transform: translateZ(0);
  /* 确保在所有浏览器中都能正确显示 */
  will-change: opacity;
  /* 使用更简单的动画，避免复杂的渲染问题 */
  animation: simpleOpacity 0.2s ease;
}

.chat-dialog {
  background: #1a1a1a;
  border-radius: 16px;
  width: 280px;
  margin-bottom: 80px;
  margin-right: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s ease;
}

/* 兼容模式下的对话框 */
.chat-dialog.compat-mode {
  /* 修复 Safari 和 MIUI 浏览器的渲染问题 */
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
  /* 确保在所有浏览器中都能正确显示 */
  will-change: transform;
  /* 使用更简单的动画，避免复杂的渲染问题 */
  animation: simpleSlide 0.3s ease;
}

.chat-dialog-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-dialog-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: #2a2a2a;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.chat-dialog-button:hover {
  background: #333;
  transform: translateY(-2px);
}

.chat-dialog-button svg {
  width: 24px;
  height: 24px;
  color: #00FF9D;
}

.chat-dialog-button.withdraw {
  border-left: 3px solid #FF3B3B;
}

.chat-dialog-button.topup {
  border-left: 3px solid #00FF9D;
}

.chat-dialog-button.chat {
  border-left: 3px solid #3B82F6;
}

/* 浏览器兼容性警告也需要隐藏 */
.browser-compat-warning {
  position: fixed;
  bottom: 180px;
  right: 30px;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 16px;
  width: 300px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: simpleSlide 0.3s ease;
  border-left: 4px solid #ff9d00;
  display: none !important; /* 隐藏警告框 */
  visibility: hidden !important; /* 确保不可见 */
  opacity: 0 !important; /* 完全透明 */
  pointer-events: none !important; /* 禁用点击事件 */
  /* 修复 Safari 和 MIUI 浏览器的渲染问题 */
  transform: translateZ(0);
  will-change: transform;
}

.browser-compat-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.browser-compat-content h3 {
  margin: 0;
  color: white;
  font-size: 16px;
}

.browser-compat-content p {
  margin: 0;
  color: #aaa;
  font-size: 14px;
  line-height: 1.5;
}

.browser-compat-content button {
  align-self: flex-end;
  background: #ff9d00;
  color: black;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}

.browser-compat-content button:hover {
  background: #ffb340;
}

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

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

/* 简化的动画，适用于有问题的浏览器 */
@keyframes simpleOpacity {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Safari 特定修复 */
@supports (-webkit-touch-callout: none) {
  .chat-dialog {
    -webkit-overflow-scrolling: touch;
  }
  
  .chat-button, 
  .chat-dialog-button {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* 修复 Safari 中的动画问题 */
  .chat-dialog-overlay,
  .chat-dialog,
  .browser-compat-warning {
    animation-duration: 0.2s;
  }
}

/* MIUI 浏览器特定修复 */
@supports (-webkit-appearance: none) and (not (overflow:-webkit-marquee)) and (not (-ms-ime-align:auto)) and (not (-moz-appearance:none)) {
  .chat-dialog-overlay {
    position: fixed;
    -webkit-transform: translateZ(0);
  }
  
  .chat-dialog {
    -webkit-transform: translateZ(0);
  }
  
  /* 强制硬件加速 */
  .chat-button,
  .chat-dialog,
  .chat-dialog-button,
  .browser-compat-warning {
    backface-visibility: hidden;
  }
}

/* 为 Safari 浏览器添加特定样式 */
.safari-browser .chat-dialog {
  /* Safari 中的特定修复 */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

/* 为 MIUI 浏览器添加特定样式 */
.miui-browser .chat-dialog-overlay {
  /* MIUI 浏览器中的特定修复 */
  background: rgba(0, 0, 0, 0.8); /* 更深的背景色，提高对比度 */
}

.miui-browser .chat-dialog {
  /* MIUI 浏览器中的特定修复 */
  margin-bottom: 90px; /* 增加底部边距 */
}

@media (max-width: 768px) {
  .chat-button {
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
  }

  .chat-button svg {
    width: 20px;
    height: 20px;
  }
  
  .browser-compat-warning {
    width: calc(100% - 40px);
    right: 20px;
    bottom: 80px;
  }
} 

@media (max-width: 480px) {
  .chat-button {
    width: 40px;
    height: 40px;
  }

  .chat-button svg {
    width: 16px;
    height: 16px;
  }
}

.testimonials-section {
  padding: 100px 0;
  background: #000;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 添加绿色光晕效果 */
.testimonials-section::before {
  content: '';
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
}

/* 添加网格效果 */
.testimonials-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 255, 157, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 157, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 2;
}

/* 确保内容在背景效果之上 */
.testimonials-section h2,
.testimonials-container {
  position: relative;
  z-index: 3;
}

.testimonials-section h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 60px;
  line-height: 1.2;
}


.testimonials-container {
  display: flex;
  justify-content: center;
  gap: clamp(15px, 2vw, 30px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(10px, 3vw, 20px);
  flex-wrap: wrap;
}

.testimonial-card {
  flex: 0 1 auto;
  min-width: 280px;
  max-width: 380px;
  width: calc(33.333% - 20px);
  background: rgba(0, 255, 157, 0.05);
  border: 1px solid rgba(0, 255, 157, 0.1);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 30px);
  text-align: left;
  position: relative;
  transition: transform 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  margin: 0 auto;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background: rgba(0, 255, 157, 0.08);
}

.quote-icon {
  color: #00ff9d;
  font-size: 48px;
  position: absolute;
  top: 20px;
  right: 30px;
  opacity: 0.2;
}

.quote {
  width: 100%;  /* 改为100%以适应容器 */
  max-width: 300px;
  margin: 0 auto 30px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  color: #a0a0a0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  color: #00ff9d;
  font-size: 16px;
  margin: 0;
}

.author-info p {
  color: #a0a0a0;
  font-size: 14px;
  margin: 5px 0 0;
}

@media (max-width: 1024px) {
  .testimonials-container {
    gap: 20px;
    justify-content: center;
  }

  .testimonial-card {
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: calc(50% - 10px);
    margin: 0;
  }

  .testimonials-section h2 {
    font-size: 36px;
    padding: 0 20px;
  }

  .testimonials-section::before {
    width: 300px;
    height: 300px;
  }

  .testimonials-section::after {
    background-size: 20px 20px;
  }
}

@media (max-width: 768px) {
  .testimonials-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .testimonial-card {
    /* width: min(100%, 500px); */
    margin: 0 auto;
  }

  .testimonials-section h2 {
    font-size: 24px;
    padding: 0 20px;
  }

  .quote {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    padding: 15px;
  }

  .quote {
    font-size: 13px;
  }
}



.home-page {
  min-height: 100vh;
  background-color: #000;
  color: white;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(/static/media/mainBg.d703a0d81be6925a1237.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6em 2em;
  background-color: #1a1a1a;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  width: 100%;
  box-sizing: border-box;
  max-width: 100vw;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s;
}

.logo:hover {
  color: #00ff9d;
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 12px);
  flex: 0 1 auto;
  min-width: 0;
}

.get-started-button {
  padding: clamp(3px, 0.8vw, 8px) clamp(6px, 1.2vw, 16px);
  border-radius: 20px;
  border: none;
  background: linear-gradient(45deg, #00ff9d, #00f0ff);
  color: #000;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s;
  white-space: nowrap;
  font-size: clamp(10px, 1vw, 14px);
  min-width: 0;
  min-width: initial;
  flex-shrink: 0;
}

.get-started-button:hover {
  transform: translateY(-2px);
}

.home-main {
  padding-top: 100px;
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
}

.hero-section {
  padding: 80px 0px 0 40px;
  max-width: 100vw;
  margin: 0;
  padding-left: 80px;
}

.hero-title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
}

.dot {
  color: #00ff9d;
}

.hero-subtitle {
  font-size: 24px;
  color: #a0a0a0;
  margin: 24px 0;
  max-width: 600px;
}

.trading-section {
  margin-top: 10px;
}

.trading-widgets {
  display: flex;
  justify-content: flex-start;
  gap: clamp(10px, 2vw, 30px);
  max-width: 1200px;
  margin: 0;
  padding-left: 80px;
}

.tradingview-widget-container {
  flex: 0 0 auto;
  width: 280px;
  min-width: auto;
  max-width: none;
}

.widget-container__widget {
  height: 100%;
  width: 90%;
}

.intro-section {
  height: 700px;
  padding: 120px 80px;
  background: linear-gradient(to bottom, transparent 0%, #000 20%);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 1;
}

.intro-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 255, 157, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 157, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 2;
}

.intro-section h1,
.intro-section p,
.intro-section button {
  position: relative;
  z-index: 3;
}

.intro-section h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 40px;
}

.intro-section p {
  font-size: 18px;
  line-height: 1.8;
  color: #a0a0a0;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.learn-more-button {
  padding: 16px 40px;
  border: 2px solid #00ff9d;
  background: transparent;
  color: #00ff9d;
  font-size: 16px;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.learn-more-button:hover {
  background: #00ff9d;
  color: #000;
}


.market-overview-section {
  height: 600px;
  width: 100%;
  background: #000;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.market-overview-section .tradingview-widget-container {
  height: 100%;
  width: 95%;
  background: transparent;
}

.market-overview-section .tradingview-widget-container__widget {
  height: 100%;
  width: 100%;
}

.market-overview-section .tradingview-widget-copyright {
  text-align: center;
  padding: 5px 0;
}

.market-summary-section h2{
  margin-top:200px;
  color: white;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  width: 100%;
}

.market-news-section h2 {
  color: white;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  width: 100%;
}

.market-summary-section {
  height: 800px;
  width: 100%;
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.market-summary-section .tradingview-widget-container {
  height: 100%;
  width: 95%;
  background: transparent;
}

.market-summary-section .tradingview-widget-container__widget {
  height: 100%;
  width: 100%;
}

.market-news-section {
  height: 500px;
  width: 100%;
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  margin-bottom: 0;
}

.market-news-section .tradingview-widget-container {
  height: calc(100% - 100px);
  width: 95%;
  background: transparent;
}

.market-news-section .tradingview-widget-container__widget {
  height: 100%;
  width: 100%;
}

/* 保持动画只用于 hero, intro 和 testimonial 部分 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero section animations */
.hero-title.visible {
  transition-delay: 0.2s;
}

.hero-subtitle.visible {
  transition-delay: 0.4s;
}

/* Intro section animations */
.intro-section h1.visible {
  transition-delay: 0.2s;
}

.intro-section p.visible {
  transition-delay: 0.4s;
}

/* Testimonials section animations */
.testimonials-section h2.visible {
  transition-delay: 0.2s;
}

.testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:nth-child(1).visible {
  transition-delay: 0.3s;
}

.testimonial-card:nth-child(2).visible {
  transition-delay: 0.5s;
}

.testimonial-card:nth-child(3).visible {
  transition-delay: 0.7s;
}

/* 确保 trading widget 相关的部分没有动画 */
.market-overview-section,
.market-summary-section,
.market-news-section {
  opacity: 1;
  transform: none;
}

.market-overview-section h2,
.market-summary-section h2,
.market-news-section h2 {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Footer styles */
.footer {
  width: 100%;
  background: #000;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 14px;
}

.footer-content .logo {
  font-size: 16px;
  font-weight: 500;
  color: #00ff9d;
}

.profile-button {
  background: none;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  padding: clamp(2px, 0.8vw, 8px);
  border-radius: 50%;
  transition: background-color 0.3s;
  flex-shrink: 0;
}

.profile-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.profile-button svg {
  width: clamp(18px, 2vw, 28px);
  height: clamp(18px, 2vw, 28px);
}

@media (max-width: 1200px) {
  .trading-widgets {
    gap: 16px;
  }

  .home-header {
    padding: 0.9em 1.5em;
  }

  .tradingview-widget-container {
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .intro-section {
    padding: 0 20px;
    height: 500px;
  }

  .intro-section h1 {
    font-size: clamp(24px, 8vw, 36px);
  }

  .intro-section p {
    font-size: clamp(12px, 4vw, 16px);
  }

  .intro-section::before {
    width: 300px;
    height: 300px;
  }

  .logo{
    font-size: 16px !important; 
  }

  .intro-section::after {
    background-size: 20px 20px;
  }

  .home-header {
    padding: 0.9em 1.25em;
  }

  .logo {
    font-size: 20px;
  }

  .header-right {
    gap: 10px;
  }

  .get-started-button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .hero-title {
    font-size: clamp(30px, 8vw, 60px);
  }

  .hero-section {
    padding: 60px 20px 0 40px;
  }

  .hero-subtitle {
    font-size: clamp(16px, 4vw, 24px);
  }

  .trading-section {
    padding: 0 20px;
  }

  .trading-widgets {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
    padding-left: 20px;
  }

  .tradingview-widget-container {
    width: 250px;
  }

  .profile-button {
    padding: 4px;
  }

  .profile-button svg {
    width: 20px;
    height: 20px;
  }

  .language-button span {
    display: none;
  }

  .intro-section {
    padding: 0 20px;
    height: 500px;
  }

  .intro-section h1 {
    font-size: clamp(24px, 8vw, 36px);
  }

  .intro-section p {
    font-size: clamp(12px, 4vw, 16px);
  }

  .intro-section::before {
    width: 300px;
    height: 300px;
  }

  .intro-section::after {
    background-size: 20px 20px;
  }

  .market-overview-section {
    height: 500px;
  }

  .market-summary-section {
    height: 500px;
  }

  .market-summary-section h2,
  .market-news-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .market-news-section {
    height: 400px;
  }

  .market-news-section .tradingview-widget-container {
    height: calc(100% - 80px);
  }

  .footer-content {
    font-size: 12px;
  }
  
  .footer-content .logo {
    font-size: 14px;
  }

  .learn-more-button {
    padding: 14px 35px;
    border: 2px solid #00ff9d;
    background: transparent;
    color: #00ff9d;
    font-size: 12px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
  }
  .language-switch {
    margin-right: 0px !important;
  }
}

@media (max-width: 480px) {
  .home-header {
    padding: 1em 1em;
  }

  .logo {
    font-size: 14px;
  }

  .header-right {
    gap: 4px;
  }

  .get-started-button {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 70px;
  }

  .profile-button {
    padding: 4px;
  }

  .profile-button svg {
    width: 18px;
    height: 18px;
  }

  .language-button {
    padding: 4px;
  }
  
  .language-button img {
    width: 18px;
    height: 18px;
  }

  .language-button span {
    display: none;
  }

  .trading-widgets {
    padding: 0 10px;
  }

  .language-switch {
    margin-right: 0px !important;
  }
}

@media (max-width: 360px) {
  .home-header {
    padding: 1em 0.75em;
  }

  .header-right {
    gap: 3px;
  }

  .get-started-button {
    padding: 3px 6px;
    font-size: 6px;
    min-width: 60px;
  }

  .logo {
    font-size: 12px;
  }

  .tradingview-widget-container {
    width: 280px;
  }

  .tradingview-widget-container iframe {
    width: 100% !important;
    height: 100% !important;
  }

  .widget-container__widget {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
.language-switch {
  position: relative;
}

.language-switch img {
  width: 25px;
  height: 25px;
}

.language-button {
  display: flex;
  margin-right: 10px;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.language-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-button span {
  font-size: 16px;
}

.globe-icon {
  width: 20px;
  height: 20px;
  color: white;
}


.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a3a;
  border-radius: 8px;
  overflow: hidden;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-size: 16px;
}

.language-option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  color: white;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.language-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-option.active {
  background-color: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
} 

@media (max-width: 1024px) {
  .language-switch img{
    width: 20px;
    height: 20px;
  }

  .language-button{
    margin-right: 0px;
  }
}


@media (max-width: 768px) {
  .language-option {
    padding: 10px 12px;
    font-size: 12px;
  }
  .language-switch img{
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 480px) {
  .language-option {
    padding: 8px 10px;
  }
}


.country-page {
  min-height: 100vh;
  background-color: #000;
  color: white;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(/static/media/countryBg.bda9cc6bc327aedda417.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.country-main {
  padding: 100px 24px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.country-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.country-subtitle {
  color: #888;
  margin-bottom: 40px;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 24px;
  gap: 24px;
}

.country-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.country-card:hover {
  transform: translateY(-5px);
}

.country-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
}

.country-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.country-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.lock-icon {
  font-size: 32px;
  opacity: 0.8;
}

.country-card.locked:hover .country-image-container img {
  transform: scale(1.05);
}

.country-card.locked .country-info {
  opacity: 0.7;
}

.country-info {
  padding: 16px;
}

.country-info h3 {
  margin: 0;
  font-size: 18px;
}

.country-info p {
  margin: 8px 0 0;
  color: #888;
  font-size: 14px;
}

@media (max-width: 768px) {
  .country-main {
    padding: 80px 16px 16px;
  }

  .countries-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
}

.hall-page {
  min-height: 100vh;
  background-color: #000;
  color: white;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(/static/media/loginBg.e66a605c052658d6ebd6.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hall-main {
  padding: 100px 24px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hall-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.hall-subtitle {
  color: #888;
  margin-bottom: 40px;
}

.halls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 24px;
  gap: 24px;
}

.hall-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.hall-card:hover {
  transform: translateY(-5px);
}

.hall-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
}

.hall-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.hall-info {
  padding: 16px;
}

.hall-info h3 {
  margin: 0;
  font-size: 18px;
}

.vip-requirement {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
  font-size: 14px;
}

.vip-tag {
  background: linear-gradient(45deg, #F0D3A1, #FFA500);
  padding: 2px 8px;
  border-radius: 4px;
  color: #000;
  font-weight: 500;
}

.hall-card.locked {
  cursor: not-allowed;
  opacity: 0.7;
}

.hall-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.lock-icon {
  font-size: 32px;
  opacity: 0.8;
}

.hall-card.locked:hover .hall-image-container img {
  transform: scale(1.05);
}

.hall-card.locked .hall-info {
  opacity: 0.7;
}

.vip-tag.locked {
  background-color: #666;
  /* color: #999; */
}

.hall-card.locked .hall-image-container img {
  filter: grayscale(100%);
}

@media (max-width: 768px) {
  .hall-main {
    padding: 80px 16px 16px;
  }

  .halls-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
}

.profile-page {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
  padding-top: 80px;
}

.profile-main {
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.profile-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.right-section {
  display: flex;
  gap: 24px;
  align-items: center;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #00FF9D;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar span {
  font-size: 24px;
  color: black;
}

.profile-info {
  flex: 1 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-info h2 {
  margin: 0;
  font-size: 20px;
  color: white;
}

.user-id {
  margin: 0.25rem 0 0;
  color: #888;
  font-size: 0.875rem;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(45deg, #FFD700, #FFA500);
  border-radius: 4px;
  padding: 4px 8px;
  margin-left: 8px;
}

.vip-badge span {
  color: #000;
  font-size: 12px;
  font-weight: 600;
}

.vip-badge .vip-level {
  margin-left: 4px;
}

.stat-item .amount{
  color: #00FF9D;
  font-weight: bold;

}

.referral-code{
  color: #00FF9D;
  font-weight: bold;
}

.profile-stats {
  display: none;
}

.profile-menu {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
}

.profile-menu h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #888;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #333;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.menu-item:hover {
  background: #444;
}

.menu-icon {
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

.menu-icon svg {
  width: 24px;
  height: 24px;
}

.menu-item:hover .menu-icon {
  color: #00FF9D;
}

.menu-label {
  flex: 1 1;
}

.menu-arrow {
  color: #888;
  font-size: 1.25rem;
}

/* 平板设备 (768px 到 1024px) */
@media (max-width: 1024px) {
  .profile-main {
    padding: 1rem;
    max-width: 90%;
  }

  .profile-card {
    padding: 1.25rem;
  }

  .avatar {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .profile-info h2 {
    font-size: 1.1rem;
  }

  .menu-item {
    padding: 0.875rem;
  }
}

/* 手机设备 (小于 768px) */
@media (max-width: 768px) {
  .profile-page {
    padding-top: 60px;
  }

  .profile-main {
    padding: 0.75rem;
    max-width: 100%;
  }

  .profile-card {
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .profile-header {
    flex-direction: column;
    gap: 16px;
  }

  .right-section {
    width: 100%;
    justify-content: space-around;
  }

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

  .profile-info h2 {
    font-size: 1rem;
  }

  .user-id {
    font-size: 0.75rem;
  }

  .vip-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.875rem;
  }

  .stat-item {
    align-items: center;
  }

  .stat-item label {
    font-size: 0.75rem;
  }

  .stat-item .amount {
    font-size: 0.875rem;
  }

  .profile-menu {
    padding: 1rem;
  }

  .profile-menu h3 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .menu-items {
    gap: 0.375rem;
  }

  .menu-item {
    padding: 0.75rem;
  }

  .menu-icon svg {
    width: 20px;
    height: 20px;
  }

  .menu-label {
    font-size: 0.875rem;
  }

  .menu-arrow {
    font-size: 1rem;
  }
}

/* 小型手机设备 (小于 480px) */
@media (max-width: 480px) {
  .profile-page {
    padding-top: 50px;
  }

  .profile-main {
    padding: 0.5rem;
  }

  .profile-card {
    padding: 0.875rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .profile-info h2 {
    font-size: 0.875rem;
  }

  .user-id {
    font-size: 0.7rem;
  }

  .vip-badge {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
  }

  .stat-item label {
    font-size: 0.7rem;
  }

  .stat-item .amount {
    font-size: 0.8rem;
  }

  .profile-menu {
    padding: 0.875rem;
  }

  .profile-menu h3 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .menu-item {
    padding: 0.625rem;
  }

  .menu-icon {
    margin-right: 0.75rem;
  }

  .menu-icon svg {
    width: 18px;
    height: 18px;
  }

  .menu-label {
    font-size: 0.8rem;
  }

  .menu-arrow {
    font-size: 0.875rem;
  }
}

/* 超小型手机设备 (小于 360px) */
@media (max-width: 360px) {
  .profile-page {
    padding-top: 45px;
  }

  .profile-main {
    padding: 0.375rem;
  }

  .profile-card {
    padding: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .profile-info h2 {
    font-size: 0.8rem;
  }

  .user-id {
    font-size: 0.65rem;
  }

  .vip-badge {
    padding: 0.1rem 0.3rem;
    font-size: 0.7rem;
  }

  .stat-item label {
    font-size: 0.65rem;
  }

  .stat-item .amount {
    font-size: 0.75rem;
  }

  .menu-item {
    padding: 0.5rem;
  }

  .menu-icon svg {
    width: 16px;
    height: 16px;
  }

  .menu-label {
    font-size: 0.75rem;
  }
}

.bet-survey-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bet-survey-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bet-survey-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bet-survey-id {
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

.bet-survey-date {
  color: #666;
  font-size: 0.875rem;
}

.bet-amount {
  font-weight: 500;
  font-size: 18px;
  position: relative;
}

.bet-amount.positive {
  color: #00FF9D;
}

.bet-amount.negative {
  color: #FF4D4F;
}

.amount-indicator {
  position: absolute;
  left: -12px;
}

.bet-survey-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ball-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ball-label {
  color: #a2a0a0;
  font-size: 0.875rem;
  min-width: 70px;
}

.ball-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.number-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: black;
  font-size: 0.9rem;
}

.number-circle.result {
  background: #FF9D00;
  color: black;
}

.total-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00FF9D;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.9rem;
}

.total-circle.result {
  background: #FF9D00;
  color: black;
}

.plus, .equals {
  color: #666;
  font-size: 1.1rem;
  font-weight: 300;
}

.result-row {
  padding-top: 0.5rem;
  border-top: 1px solid #333;
}

@media (max-width: 768px) {
  .bet-survey-card {
    padding: 1rem 1.25rem;
  }

  .bet-survey-id {
    font-size: 0.9rem;
  }

  .bet-amount {
    font-size: 1rem;
  }

  .number-circle,
  .total-circle {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .bet-survey-card {
    padding: 0.875rem 1rem;
  }

  .ball-row {
    gap: 0.75rem;
  }

  .ball-label {
    min-width: 60px;
    font-size: 0.8rem;
  }

  .ball-numbers {
    gap: 0.375rem;
  }

  .number-circle,
  .total-circle {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }
} 
.survey-history-page {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
  padding-top: 80px;
}

.survey-history-main {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.title-with-back2 {
  padding-top: 50px;
}

.survey-history-header {
  margin-bottom: 24px;
}

.rank-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.title-with-back {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.title-with-back h1 {
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  margin: 0;
}

.back-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #222;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.survey-history-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.survey-history-tabs .tab {
  background: none;
  border: none;
  color: #888;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s;
}

.survey-history-tabs .tab.active {
  color: white;
}

.survey-history-tabs .tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #00FF9D;
  transition: transform 0.3s;
  transform-origin: left;
  animation: tabIndicator 0.3s ease-out;
}

@keyframes tabIndicator {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.survey-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.no-records {
  text-align: center;
  padding: 40px 0;
  color: #666;
}

.no-records-icon {
  margin-bottom: 16px;
  color: #333;
}

@media (max-width: 768px) {
  .survey-history-main {
    padding: 16px;
  }

  .title-with-back h1 {
    font-size: 20px;
  }

  .survey-history-tabs .tab {
    padding: 6px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .survey-history-main {
    padding: 12px;
  }

  .title-with-back h1 {
    font-size: 18px;
  }

  .survey-history-tabs {
    gap: 8px;
  }

  .survey-history-tabs .tab {
    padding: 6px 16px;
    font-size: 12px;
  }
}

.transaction-page {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
  padding-top: 80px;
}

.transaction-main {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.transaction-header {
  margin-bottom: 2rem;
  margin-top: 1rem;
  padding-left: 2rem;
  position: relative;
}

.title-with-back {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.back-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  -webkit-user-select: none;
          user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.transaction-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
}

.transaction-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.tab {
  background: none;
  border: none;
  color: #888;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s;
}

.tab.active {
  color: white;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #00FF9D;
  transition: transform 0.3s;
  transform-origin: left;
  animation: tabIndicator 0.3s ease-out;
}

.transaction-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.transaction-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.transaction-id {
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

.transaction-date {
  color: white;
  font-size: 0.9rem;
}

.transaction-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.amount-positive {
  color: #00FF9D;
  font-weight: 500;
  font-size: 1.125rem;
}

.amount-negative {
  color: #FF4D4D;
  font-weight: 500;
  font-size: 1.125rem;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  text-transform: capitalize;
}

.status-badge.completed {
  background: rgba(0, 255, 157, 0.1);
  color: #00FF9D;
}

.status-badge.pending {
  background: rgba(255, 193, 7, 0.1);
  color: #FFC107;
}

.no-records {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  color: #888;
}

.no-records-icon {
  margin-bottom: 1rem;
  color: #666;
}

@media (max-width: 768px) {
  .transaction-main {
    padding: 0.75rem;
  }

  .transaction-header {
    padding-left: 1.75rem;
  }

  .transaction-header h1 {
    font-size: 1.25rem;
  }

  .tab {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }

  .transaction-card {
    padding: 1rem;
  }

  .transaction-id {
    font-size: 0.9rem;
  }

  .transaction-date {
    font-size: 0.8rem;
  }

  .amount-positive,
  .amount-negative {
    font-size: 1rem;
  }

  .back-button {
    left: -1.75rem;
  }
}

@media (max-width: 480px) {
  .transaction-page {
    padding-top: 60px;
  }

  .transaction-main {
    padding: 0.5rem;
  }

  .transaction-header {
    padding-left: 1.5rem;
  }

  .transaction-header h1 {
    font-size: 1.125rem;
  }

  .transaction-tabs {
    gap: 0.5rem;
  }

  .tab {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .transaction-card {
    padding: 0.875rem;
  }

  .transaction-id {
    font-size: 0.85rem;
  }

  .transaction-date {
    font-size: 0.75rem;
  }

  .amount-positive,
  .amount-negative {
    font-size: 0.9rem;
  }

  .back-button {
    left: -1.5rem;
  }
}

.survey-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.survey-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.survey-id {
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

.survey-date {
  color: #666;
  font-size: 0.875rem;
}

.survey-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.number-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: black;
  font-size: 0.9rem;
}

.total-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #00FF9D;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.9rem;
}

.plus, .equals {
  color: #666;
  font-size: 1.1rem;
  font-weight: 300;
}

@media (max-width: 768px) {
  .survey-card {
    padding: 1rem 1.25rem;
  }

  .survey-id {
    font-size: 0.9rem;
  }

  .survey-date {
    font-size: 0.8rem;
  }

  .number-circle,
  .total-circle {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .plus, .equals {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .survey-card {
    padding: 0.875rem 1rem;
  }

  .survey-id {
    font-size: 0.85rem;
  }

  .survey-date {
    font-size: 0.75rem;
  }

  .number-circle,
  .total-circle {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .survey-numbers {
    gap: 0.375rem;
  }

  .plus, .equals {
    font-size: 0.9rem;
  }
} 
.past-result-page {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
  padding-top: 80px;
}

.past-result-main {
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.title-with-back {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.title-with-back h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}


.past-result-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-select {
  flex: 1 1;
  background: #2a2a2a;
  border: 1px solid #333;
  color: white;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M1 1.5L6 6.5L11 1.5%27 stroke=%27%23666%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 3rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-select:hover {
  background-color: #333;
  border-color: #444;
}

.filter-select:focus {
  border-color: #00FF9D;
  box-shadow: 0 0 0 1px #00FF9D20;
}

/* 自定义下拉列表选项样式 */
.filter-select option {
  background-color: #2a2a2a;
  color: white;
  padding: 12px 16px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

/* 选项悬停和选中状态 */
.filter-select option:hover,
.filter-select option:checked {
  background-color: #02975e;
  color: white;
}

/* 自定义下拉列表容器样式 */
.filter-select:focus-within {
  position: relative;
  z-index: 10;
}

/* 使用伪元素创建自定义下拉箭头 */
.filter-select::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.filter-select:focus::after {
  transform: translateY(-50%) rotate(180deg);
}

/* 添加选项列表的滚动条样式 */
.filter-select::-webkit-scrollbar {
  width: 8px;
}

.filter-select::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.filter-select::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.filter-select::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 选项列表动画 */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-select option {
  animation: slideDown 0.2s ease;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 1.25rem;
}

.result-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.survey-id {
  font-weight: 500;
}

.result {
  color: #00FF9D;
}

.timestamp {
  color: #888;
  font-size: 0.875rem;
}

.loading-state,
.error-state,
.no-records {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}

.no-records-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .past-result-main {
    padding: 0.75rem;
  }

  .title-with-back h1 {
    font-size: 1.25rem;
  }

  .result-card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .past-result-page {
    padding-top: 60px;
  }

  .past-result-main {
    padding: 0.5rem;
  }

  .title-with-back h1 {
    font-size: 1.125rem;
  }

  .result-card {
    padding: 0.875rem;
  }

  .timestamp {
    font-size: 0.75rem;
  }
}

.admin-header {
  background: #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
}

.logo {
  color: #00FF9D;
  font-weight: 600;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  background: none;
  border: none;
  color: white;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #00FF9D;
}

.nav-link.active {
  color: #00FF9D;
}

.logout-btn {
  background: #ff4d4f !important;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease !important;
}

.logout-btn:hover {
  background: #ff7875;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .hamburger {
    display: block !important;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #2a2a2a;
    flex-direction: column;
    padding: 0.75rem;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav-link:hover{
    background: #383838;
    color: #00FF9D;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    padding: 0.35rem 0.75rem;
  }

  .logout-btn {
    width: calc(100% - 1.5rem);
    margin: 0 0.75rem;
    box-sizing: border-box;
    text-align: center;
  }
} 
.rank-page {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
  padding-top: 80px;
}

.rank-main {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.rank-header {
  margin-bottom: 2rem;
  margin-top: 1rem;
  padding-left: 2rem;
  position: relative;
}

.title-with-back {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.rank-icon img{
    width:50px;
    height:50px;
}

.back-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  -webkit-user-select: none;
          user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  z-index: 1;
}

.back-button:hover,
.back-button:active {
  opacity: 0.8;
  transform: translateY(-50%);
}

.rank-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
}

.rank-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: #222;
  border-radius: 16px;
  margin: 0 auto;
  max-width: 800px;
}

.rank-icon {
  margin-bottom: 1.5rem;
}

.rank-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: #00FF9D;
}

.rank-table {
  width: 100%;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 1rem 1.5rem;
  background: #2a2a2a;
  font-weight: 500;
  color: #888;
}

.table-header span:nth-child(2){
  text-align: center;
}

.table-header span:nth-child(3){
  text-align: right;
}


.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #333;
  align-items: center;
}

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

.level-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  text-transform: capitalize;
}

.badge.bronze {
  background: linear-gradient(to right, #CD7F32, #83511f);
  color: white;
}

.badge.ordinary {
  background: linear-gradient(to right, #FFA07A, #c0785c);
  color: white;
}

.badge.elementary {
  background: linear-gradient(to right, #FFB6C1, #b9848c);
  color: white;
}

.badge.silver {
  background: linear-gradient(to right, #C0C0C0, #7a7979);
  color: white;
}

.badge.gold {
  background: linear-gradient(to right, #FFD700, #d4b347);
  color: white;
}

.badge.platinum {
  background: linear-gradient(to right, #808080, #5a5a5a);
  color: white;
}

.badge.diamond {
  background: linear-gradient(to right, #bbe1f4, #79929e);
  color: black;
}

.badge.bluediamond {
  background: linear-gradient(to right, #0000FF, #0000A3);
  color: white;
}

.amount-cell {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bonus-cell {
  display: flex;
  align-items: right;
  justify-content: right;
  gap: 0.5rem;
  color: #00FF9D;

}

.trend-icon {
  color: #00FF9D;
}

.table-row:hover{
    background-color: #2a2a2a;
}

@media (max-width: 1000px) {
  .level-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .table-row {
    padding: 1.25rem 1.5rem;
  }

  .amount-cell,
  .bonus-cell {
    align-self: center;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 768px) {
  .rank-main {
    padding: 0.75rem;
  }

  .rank-content {
    padding: 1.5rem;
  }

  .rank-header {
    padding-left: 1.75rem;
  }

  .rank-header h1 {
    font-size: 1.25rem;
  }

  .table-header,
  .table-row {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .badge {
    font-size: 0.7rem;
  }

  .back-button {
    left: -1.75rem;
  }
}

@media (max-width: 480px) {
  .rank-page {
    padding-top: 60px;
  }

  .rank-main {
    padding: 0.5rem;
  }

  .rank-content {
    padding: 1rem;
  }

  .rank-header {
    padding-left: 1.5rem;
  }

  .rank-header h1 {
    font-size: 1.125rem;
  }

  .table-header,
  .table-row {
    padding: 0.75rem;
    font-size: 0.8125rem;
  }

  .back-button {
    left: -1.5rem;
  }

  .level-cell {
    gap: 0.375rem;
  }

  .badge {
    font-size: 0.675rem;
    padding: 0.15rem 0.35rem;
  }
}


.manage-pwd-page {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
  padding-top: 80px;
}

.manage-pwd-main {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.manage-pwd-header {
  margin-bottom: 2rem;
  margin-top: 1rem;
  padding-left: 2rem;
  position: relative;
}

.title-with-back {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.back-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  -webkit-user-select: none;
          user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.manage-pwd-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
}

.manage-pwd-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background: #222;
  border-radius: 16px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #888;
  font-size: 0.875rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #00FF9D;
  box-shadow: 0 0 0 1px #00FF9D20;
}

.password-hint {
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.75rem;
}

.update-button {
  width: 100%;
  padding: 1rem;
  background: #00FF9D;
  color: black;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.update-button:hover {
  background: #00cc7d;
}

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

.password-input-wrapper input {
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  padding: 0.25rem;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #888;
}

.toggle-password:focus {
  outline: none;
}

@media (max-width: 768px) {
  .manage-pwd-main {
    padding: 0.75rem;
  }

  .manage-pwd-header {
    padding-left: 1.75rem;
  }

  .manage-pwd-header h1 {
    font-size: 1.25rem;
  }

  .manage-pwd-form {
    padding: 1.5rem;
  }

  .form-group input {
    padding: 0.75rem;
  }

  .back-button {
    left: -1.75rem;
  }
}

@media (max-width: 480px) {
  .manage-pwd-page {
    padding-top: 60px;
  }

  .manage-pwd-main {
    padding: 0.5rem;
  }

  .manage-pwd-header {
    padding-left: 1.5rem;
  }

  .manage-pwd-header h1 {
    font-size: 1.125rem;
  }

  .manage-pwd-form {
    padding: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group input {
    padding: 0.625rem;
    font-size: 0.875rem;
  }

  .update-button {
    padding: 0.875rem;
    font-size: 0.875rem;
  }

  .back-button {
    left: -1.5rem;
  }
}

.survey-page {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
  padding-top: 80px; /* 添加顶部内边距，与导航栏高度相同 */
}

.survey-main {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.survey-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.activities-wrapper {
  display: none; /* 默认隐藏 */
}

.desktop-only {
  display: block; /* 默认显示 */
}

@media (min-width: 1000px) {
  .survey-content {
    flex-direction: row;
    gap: 32px;
  }

  .survey-left {
    flex: 1 1;
    max-width: 800px;
  }

  .survey-right {
    width: 600px;
  }

  .activities-wrapper {
    display: none; /* 大屏时隐藏 */
  }
}

@media (max-width: 999px) {
  .activities-wrapper {
    display: block; /* 小屏时显示 */
    margin-bottom: 24px;
  }

  .desktop-only {
    display: none; /* 小屏时隐藏 */
  }

  .survey-right {
    display: none; /* 小屏时隐藏右侧容器 */
  }
}

.survey-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative; /* 确保定位正确 */
  z-index: 1; /* 确保在正确的层级 */
}

.back-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.survey-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.timer-section {
  background: #222;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.timer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.duration,
.closed-at {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.label {
  color: #00FF9D;
  font-size: 12px;
  margin-bottom: 4px;
}

.time {
  font-size: 24px;
  font-weight: 500;
}

.unit {
  color: #666;
  font-size: 12px;
}

.progress-circle {
  width: 120px;
  height: 120px;
  position: relative;
}

.progress-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring {
  transform-origin: center;
  transition: stroke-dashoffset 0.3s;
}

.timer-text-group {
  transform: rotate(90deg);
  transform-origin: center;
}

.timer-text {
  font-size: 20px;
  fill: white;
  font-weight: 500;
}

.timer-unit {
  font-size: 14px;
  fill: #00FF9D;
}

.timer-note {
  color: #666;
  font-size: 14px;
  margin: 0;
  text-align: center;
}

.wallet-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.balance {
  display: flex;
  flex-direction: column;
}

.balance .amount {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
}

.balance .label {
  font-size: 14px;
  color: #888888;
}

.activities-section {
  margin-bottom: 24px;
}

.activities-section h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* ID和名字占更多空间 */
  align-items: center;
  background: #222;
  padding: 12px;
  border-radius: 8px;
}

.activity-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-avatar {
  width: 32px;
  height: 32px;
  background: #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.activity-name {
  font-size: 14px;
}

.activity-amount {
  font-weight: 500;
  text-align: center;
}

.activity-type {
  background: #333;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 14px;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-type .value {
  background: #00FF9D;
  color: #000;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 12px;
}

.players-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.players-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.players-count {
  font-size: 16px;
  font-weight: 500;
}

.players-avatars {
  display: flex;
  gap: 8px;
}

.player-avatar {
  width: 32px;
  height: 32px;
  background: #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: white;
}

.see-past-button {
  background: none;
  border: none;
  color: #00FF9D;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.place-survey-button {
  width: 100%;
  background: #00FF9D;
  border: none;
  color: black;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 768px) {
  .survey-page {
    padding-top: 60px; /* 移动端导航栏可能更小 */
  }
  
  .survey-main {
    padding: 16px;
  }

  .survey-header h1 {
    font-size: 20px;
  }

  .timer-info {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    text-align: left;
    margin-bottom: 16px;
  }

  .duration,
  .closed-at {
    align-items: flex-start;
  }

  .progress-circle {
    width: 100px;
    height: 100px;
    margin: 20px 0;
  }

  .timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .activities-list {
    gap: 8px;
  }

  .activity-item {
    padding: 10px;
    font-size: 14px;
  }

  .activity-avatar {
    width: 28px;
    height: 28px;
  }

  .activity-type {
    font-size: 12px;
    padding: 4px 8px;
  }

  .players-section {
    gap: 12px;
  }

  .see-past-button {
    padding: 8px;
    font-size: 14px;
  }
}

.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;  /* 添加内边距防止贴边 */
  overflow-y: auto;  /* 只允许垂直滚动 */
  overflow-x: hidden;  /* 禁止水平滚动 */
}

.survey-dialog {
  background: #1a1a1a;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.dialog-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #1a1a1a;
  z-index: 1;
}

.dialog-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.close-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
}

.dialog-content {
  padding: 24px;
}

.standard-section,
.number-section,
.amount-section2,
.summary-section {
  margin-bottom: 32px;
  padding: 0 16px;
}

.standard-section h3,
.number-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
}

.standard-section p {
  margin: 0 0 20px;
  color: #888;
  font-size: 14px;
}

.standard-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-pair {
  display: flex;
  gap: 12px;
}

.choice-button {
  flex: 1 1;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.choice-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.choice-button.selected {
  background: #00FF9D;
  color: black;
  border-color: #00FF9D;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  grid-gap: 8px;
  gap: 8px;
  margin-top: 16px;
}

.number-button {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.number-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.number-button.selected {
  background-color: #00FF9D;
  color: #000;
}

.amount-section2 label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.amount-section2 input {
  width: 95%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 16px;
}

.summary-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #888;
}

.summary-row.total {
  color: white;
  font-weight: 500;
  font-size: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.confirm-button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #00FF9D;
  color: black;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-top: 24px;
}

.confirm-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.confirm-button:not(:disabled):hover {
  opacity: 0.9;
}

@media (max-width: 480px) {
  .dialog-content {
    padding: 16px;
  }

  .standard-section,
  .number-section,
  .amount-section2,
  .summary-section {
    padding: 0 8px;
    margin-bottom: 24px;
  }

  .choice-button,
  .number-button {
    padding: 10px;
    font-size: 13px;
  }
}

.confirmation-modal {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.confirmation-modal h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 500;
}

.bet-details {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.bet-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #888;
  font-size: 14px;
}

.bet-row:last-child {
  margin-bottom: 0;
}

.bet-row.total {
  color: white;
  font-weight: 500;
  font-size: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-buttons {
  display: flex;
  gap: 12px;
}

.cancel-btn,
.confirm-bet-btn {
  flex: 1 1;
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  cursor: pointer;
}

.cancel-btn {
  background: #333;
  color: white;
}

.confirm-bet-btn {
  background: #00FF9D;
  color: black;
}

.modal-overlay-survey {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-dialog-survey {
  background: rgba(26, 26, 26, 0.95);
  padding: 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: auto;
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.loading-dialog-survey p {
  color: #ffffff;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

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

/* Last Game Result Styles */
.last-game-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.last-game-calculation {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.last-game-label {
  font-size: 12px;
  color: #888888;
  text-align: right;
}

.ball {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: white;
  border-radius: 50%;
}

.ball span {
  font-size: 14px;
  font-weight: 600;
  color: black;
}

.operator {
  color: #aaa;
  font-size: 16px;
  margin: 0 2px;
}

.result {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #00ff9d;
  border-radius: 50%;
}

.result span {
  font-size: 14px;
  font-weight: 600;
  color: black;
}

/* Mobile version of last game result */
.last-game-result-mobile {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

.last-game-result-mobile .last-game-label {
  text-align: left;
}

/* Show/hide based on screen size */
@media (min-width: 601px) {
  .desktop-view {
    display: flex;
  }
  
  .mobile-view {
    display: none;
  }
}

@media (max-width: 600px) {
  .desktop-view {
    display: none;
  }
  
  .mobile-view {
    display: flex;
  }
}

.admin-home {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
  padding-top: 80px;
}

.admin-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.search-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 0 24px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 16px;
  flex: 1 1;
}

.search-box input {
  flex: 1 1;
  background: none;
  border: none;
  color: white;
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-box button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 8px 12px;
  display: flex;
  align-items: center;
}

.search-box button:hover {
  color: white;
}

.users-table {
  width: 100%;
  overflow-x: auto;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.users-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.confirm-delete-btn {
  background: #f44336;
  color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .admin-home {
    padding-top: 120px;
  }

  .admin-main {
    padding: 1rem;
  }

  .search-box {
    max-width: 100%;
  }

  .users-table {
    font-size: 0.85rem;
  }

  .users-table th,
  .users-table td {
    padding: 10px;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link, .logout-btn {
    width: 100%;
    text-align: left;
    padding: 1rem;
    /* border-bottom: 1px solid #eee; */
  }
}

.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s;
}

.clickable-row:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #2a2a2a;
  border-radius: 8px;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  color: white;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgb(36, 36, 36);
  position: sticky;
  top: 0;
  z-index: 1;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.close-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.close-button:hover {
  color: white;
}

.modal-body {
  padding: 16px;
}

.user-info {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}

.user-info p {
  margin: 6px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info p strong {
  color: rgba(255, 255, 255, 0.6);
  font-weight: normal;
}

.action-buttons2 {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.action-buttons2-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 4px;
}

.action-buttons2-row .status-btn,
.action-buttons2-row .delete-btn {
  width: 100%;
}

.action-buttons2-row .view-history-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #4caf50;
  color: white;
  transition: background-color 0.3s;
  grid-column: 1 / -1;
  width: 100%;
}

.action-buttons2-row .view-history-btn:hover {
  background-color: #45a049;
}

.input-group {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
}

.input-group:has(.take-btn) {
  grid-template-columns: 1fr auto auto;
}

.input-group:not(:has(.take-btn)) {
  grid-template-columns: 1fr auto;
}

.input-group input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: white;
  padding: 6px 10px;
  font-size: 0.9rem;
  height: 32px;
}

.input-group input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.input-group button,
.status-btn,
.delete-btn {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.input-group button:hover,
.status-btn:hover,
.delete-btn:hover {
  opacity: 0.9;
}

.give-btn {
  background: #4caf50;
  color: white;
}

.take-btn {
  background: #f44336;
  color: white;
}

.input-group button:not(.give-btn):not(.take-btn) {
  background: #4caf50;
  color: white;
}

.status-btn {
  background: #4caf50;
  color: white;
  margin: 0;
  width: 100%;
}

.delete-btn {
  background: #f44336;
  color: white;
  width: 100%;
}

.modal-loading,
.modal-error {
  padding: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* 汉堡菜单样式 */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #2a2a2a;
    padding: 1rem 0;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 1rem 2rem;
    text-align: left;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .logout-btn {
    margin: 1rem 2rem;
    width: calc(100% - 4rem);
  }

  .admin-main {
    padding: 1rem;
  }

  .search-box {
    max-width: 100%;
  }

  .users-table {
    margin: 0 -1rem;
    width: calc(100% + 2rem);
    border-radius: 0;
  }
}

.referral-users {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.referral-users h3 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: normal;
}

.referral-table {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.referral-table table {
  width: 100%;
  font-size: 0.85rem;
}

.referral-table th,
.referral-table td {
  padding: 8px 12px;
  text-align: left;
}

.referral-table th {
  color: rgba(255, 255, 255, 0.6);
  font-weight: normal;
  background: rgba(255, 255, 255, 0.05);
}

/* 滚动条样式 */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 在文件末尾添加移动端的样式 */

@media (max-width: 480px) {
  .modal-content {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    max-width: none;
    margin: 0;
    border-radius: 0;
  }

  .modal-body {
    padding: 12px;
    height: calc(100vh - 48px);
    overflow-y: auto;
  }

  .user-info {
    padding: 10px;
    margin-bottom: 12px;
  }

  .user-info p {
    font-size: 0.85rem;
  }

  .action-buttons2-row {
    gap: 6px;
  }

  .input-group {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-gap: 6px;
    gap: 6px;
  }

  .input-group:has(.take-btn) {
    grid-template-columns: 1fr auto auto;
  }

  .input-group input {
    font-size: 0.85rem;
    padding: 4px 8px;
    height: 30px;
  }

  .input-group button,
  .status-btn,
  .delete-btn {
    padding: 4px 8px;
    font-size: 0.8rem;
    height: 30px;
    width: auto;
  }

  .referral-table {
    margin: 0;
    width: 100%;
  }

  .referral-table th,
  .referral-table td {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
}

/* 超小屏幕的额外优化 */
@media (max-width: 360px) {
  .input-group button,
  .status-btn,
  .delete-btn {
    font-size: 0.75rem;
    padding: 4px 6px;
  }
}

/* 确认弹窗样式 */
.confirmation-modal {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 320px;
  text-align: center;
}

.confirmation-modal h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.confirmation-modal p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.8);
}

.confirmation-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
}

.confirmation-buttons button {
  padding: 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.confirm-give-btn {
  background: #4caf50;
  color: white;
}

.confirm-take-btn {
  background: #f44336;
  color: white;
}

.confirmation-buttons button:hover {
  opacity: 0.9;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .confirmation-modal {
    width: 95%;
    padding: 16px;
  }

  .confirmation-buttons button {
    font-size: 0.85rem;
    padding: 6px;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .pagination {
    padding: 12px;
    gap: 12px;
  }

  .page-btn {
    padding: 6px 12px;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: white;
  padding: 4px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .header-right {
    gap: 0.5rem;
  }
}

.language-btn.admin {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: white;
  padding: 4px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.language-btn.admin:hover {
  background: rgba(255, 255, 255, 0.2);
}

.manage-referral-btn {
  background: #00ff9d;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  height: 40px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s;
}

.manage-referral-btn:hover {
  background: #00cc7d;
}

.referral-modal {
  max-width: 600px;
  width: 90%;
}

.referral-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.referral-input-group input {
  flex: 1 1;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
}

.referral-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.referral-input-group button {
  background: #00ff9d;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 8px 24px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s;
}

.referral-input-group button:hover {
  background: #00cc7d;
}

.referral-codes-table {
  width: 100%;
  overflow-x: auto;
}

.referral-codes-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.referral-codes-table th,
.referral-codes-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.referral-codes-table th {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.referral-codes-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .search-section {
    flex-direction: column;
    padding: 0 16px;
  }

  .manage-referral-btn {
    width: 100%;
  }

  .referral-modal {
    width: 95%;
    margin: 16px;
  }

  .referral-input-group {
    flex-direction: column;
  }

  .referral-input-group button {
    width: 100%;
  }
}

.country-permissions {
  margin: 8px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.country-permissions h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

.country-item {
  flex: 0 0 auto;
}

.country-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
}

.country-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  background: #00cc7d;
}

.update-permissions-btn {
  width: 100%;
  padding: 6px;
  background: #4CAF50;
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.update-permissions-btn:hover {
  background: #49A24C;
}

.input-group select.referral-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: white;
  padding: 6px 10px;
  font-size: 0.9rem;
  height: 32px;
  width: 100%;
  cursor: pointer;
  outline: none;
}

.input-group select.referral-select:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.input-group select.referral-select option {
  background: #2a2a2a;
  color: white;
  padding: 8px;
}

.action-buttons2-row .view-history-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #28a745;
  color: white;
  transition: background-color 0.3s;
}

.action-buttons2-row .view-history-btn:hover {
  background-color: #218838;
}

.forget-pwd-page {
  display: flex;
  min-height: 100vh;
  background-color: #121212;
  background-image: url(/static/media/loginBg.e66a605c052658d6ebd6.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
  width: 100%;
}

.forget-pwd-container {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(18, 18, 18, 0.7);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  color: white;
  min-width: 0;
}

.forget-pwd-form-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}

.forget-pwd-container h1 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: bold;
  margin-bottom: 8px;
  color: white;
  text-align: center;
}

.subtitle {
  color: #a0a0a0;
  margin-bottom: 24px;
  font-size: clamp(14px, 2vw, 16px);
  text-align: center;
}

.forget-pwd-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  color: white;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.submit-button {
  background: #00FF9D;
  color: black;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-button:not(:disabled):hover {
  opacity: 0.9;
}

.submit-button.loading {
  position: relative;
  color: transparent;
  height: 44px;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-left-color: #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.back-to-login {
  background: none;
  border: none;
  color: #00FF9D;
  cursor: pointer;
  font-size: 14px;
  padding: 8px;
  text-align: center;
}

.back-to-login:hover {
  text-decoration: underline;
}

.back-to-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (min-width: 1000px) {
  .forget-pwd-page {
    display: flex;
    background-image: none;
    position: relative;
  }

  .forget-pwd-container {
    flex: 0 0 50%;
    background-color: #121212;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }

  .forget-pwd-page::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: url(/static/media/loginBg.e66a605c052658d6ebd6.jpg);
    background-size: cover;
    background-position: center;
  }
}

@media (max-width: 768px) {
  .forget-pwd-form-wrapper {
    max-width: 360px;
  }
}

@media (max-width: 380px) {
  .forget-pwd-form-wrapper {
    max-width: 320px;
  }

  .forget-pwd-container {
    padding: 20px;
  }
}

.otp-section {
  text-align: left;
}

.otp-section label {
  display: block;
  color: white;
  margin-bottom: 8px;
  font-size: 14px;
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.otp-inputs input {
  width: 40px;
  height: 40px;
  text-align: center;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 0;
}

.otp-inputs input:focus {
  border-color: #00FF9D;
  outline: none;
}

input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .otp-inputs input {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

.resend-otp {
  display: flex;
  justify-content: flex-end;
  margin-top: -16px;
}

.resend-button {
  background: none;
  border: none;
  color: #00FF9D;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  transition: opacity 0.3s;
}

.resend-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.resend-button:not(:disabled):hover {
  opacity: 0.8;
}

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

.password-input input {
  width: 100%;
  padding-right: 40px; /* 为眼睛图标留出空间 */
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: #00FF9D;
}

.modify-result-page {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
  padding-top: 80px;
}

.modify-result-container {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.modify-result-form-section {
  flex: 1 1;
  min-width: 400px;
}

.modify-result-table-section {
  flex: 1 1;
  min-width: 400px;
}

.modify-result-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.modify-result-header h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

.modify-result-form {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.875rem;
  color: #888;
}

.form-select,
.form-input {
  background: #1a1a1a;
  border: 1px solid #333;
  color: white;
  padding: 0.625rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M1 1.5L6 6.5L11 1.5%27 stroke=%27%23666%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-select:hover,
.form-input:hover {
  border-color: #444;
}

.form-select:focus,
.form-input:focus {
  border-color: #00FF9D;
  box-shadow: 0 0 0 1px #00FF9D20;
}

.error-message {
  color: #ff4d4f;
  font-size: 0.75rem;
  margin-top: -0.5rem;
}

.submit-button {
  background: #00FF9D;
  color: #000;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.submit-button:hover:not(:disabled) {
  background: #00cc7d;
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.table-header2 {
  margin-bottom: 1.5rem;
}

.table-header2 h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  text-align: center;
}

.table-container {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
}

.schedules-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.schedules-table th,
.schedules-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #333;
  color: white;
}

.schedules-table th {
  font-weight: 500;
  color: #888;
  background-color: transparent;
}

.schedules-table tr:last-child td {
  border-bottom: none;
}

.schedules-table th:nth-child(1),
.schedules-table td:nth-child(1) {
  width: 20%;
}

.schedules-table th:nth-child(2),
.schedules-table td:nth-child(2) {
  width: 25%;
}

.schedules-table th:nth-child(3),
.schedules-table td:nth-child(3) {
  width: 40%;
}

.schedules-table th:nth-child(4),
.schedules-table td:nth-child(4) {
  width: 15%;
}

.no-data {
  text-align: center;
  color: #888;
  padding: 2rem !important;
}

@media (max-width: 1024px) {
  .modify-result-container {
    flex-direction: column;
  }

  .modify-result-form-section,
  .modify-result-table-section {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .modify-result-container {
    padding: 1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.future-result-page {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
  padding-top: 80px;
}

.future-result-main {
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.future-result-header {
  margin-bottom: 2rem;
}

.title-with-back2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.title-with-back2 h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.future-result-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-select {
  flex: 1 1;
  background: #2a2a2a;
  border: 1px solid #333;
  color: white;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M1 1.5L6 6.5L11 1.5%27 stroke=%27%23666%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 3rem;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: #444;
}

.filter-select:focus {
  border-color: #00FF9D;
}

@media (max-width: 480px) {
  .future-result-main {
    padding: 1rem;
  }

  .future-result-header h1 {
    font-size: 1.25rem;
  }

  .future-result-filters {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.topup-withdraw-page {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: #ffffff;
  padding-top: 64px; /* Height of navbar */
}

.main-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem;
}

.form-container {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 0.75rem;
}

.tab {
  background: none;
  border: none;
  color: #888;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.tab:hover {
  color: #00FF9D;
}

.tab.active {
  color: #00FF9D;
  background: rgba(0, 255, 157, 0.1);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  color: #c6c6c6;
  font-size: 0.8rem;
}

.form-group input {
  background: #3a3a3a;
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  height: 36px;
}

.form-group input:focus {
  border-color: #00FF9D;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.2);
}

.form-group input::placeholder {
  color: #666;
}

.submit-button {
  background: #00FF9D;
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-button:hover {
  background: #00cc7d;
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

.form-group select.bank-select {
  background: #3a3a3a;
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  height: 36px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23888%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpolyline points=%276 9 12 15 18 9%27%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

.form-group select.bank-select:focus {
  border-color: #00FF9D;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 255, 157, 0.2);
}

.form-group select.bank-select option {
  background: #2a2a2a;
  color: #fff;
  padding: 0.5rem;
}

.form-group select.bank-select::-ms-expand {
  display: none;
}

.admin-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
  padding: 0 15px;
}

.admin-button {
  background-color: #2c3e50;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.admin-button:hover {
  background-color: #1a2733;
}

@media (max-width: 768px) {
  .admin-controls {
    padding: 0 10px;
  }
  
  .admin-button {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* 加载状态的样式 */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.submit-button:disabled {
  background-color: #888;
  cursor: not-allowed;
}

.admin-request-page {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: #ffffff;
  padding-top: 64px; /* Height of navbar */
}

.main-content2 {
  padding: 2rem;
}

.content-container2 {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%;
  margin: 0 auto;
  max-width: 1600px;
}

.filter-section {
  margin-bottom: 2rem;
}

.tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 1rem;
}

.tab {
  background: none;
  border: none;
  color: #888;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.tab:hover {
  color: #00FF9D;
}

.tab.active {
  color: #00FF9D;
  background: rgba(0, 255, 157, 0.1);
}

.table-container2 {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* 为iOS设备提供平滑滚动 */
}

.requests-table {
  width: 100%;
  min-width: 800px; /* 确保表格在小屏幕上不会过度压缩 */
  border-collapse: collapse;
  margin-top: 1rem;
}

.requests-table th,
.requests-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #3a3a3a;
}

.requests-table th {
  font-weight: 600;
  color: #888;
  font-size: 0.9rem;
}

.requests-table td {
  color: #fff;
  font-size: 0.9rem;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.pending {
  background: rgba(255, 170, 0, 0.1);
  color: #ffaa00;
}

.status-badge.approved {
  background: rgba(0, 255, 157, 0.1);
  color: #00FF9D;
}

.status-badge.rejected {
  background: rgba(255, 77, 79, 0.1);
  color: #ff4d4f;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.action-buttons button {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.approve-btn {
  background: rgba(0, 255, 157, 0.1);
  color: #00FF9D;
}

.approve-btn:hover {
  background: rgba(0, 255, 157, 0.2);
}

.reject-btn {
  background: rgba(255, 77, 79, 0.1);
  color: #ff4d4f;
}

.reject-btn:hover {
  background: rgba(255, 77, 79, 0.2);
}

.loading-spinner2 {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.loading-spinner2::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid #3a3a3a;
  border-top-color: #00FF9D;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.chat-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #1a1a1a;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: relative;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background-color: #222;
  height: 60px;
  box-sizing: border-box;
}

.chat-header .back-button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 20px;
  transition: background-color 0.3s;
}

.chat-header .back-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.chat-header h1 {
  flex: 1 1;
  text-align: center;
  font-size: 20px;
  margin: 0;
  font-weight: 500;
  padding: 0 40px;
}

.language-switch {
  margin-right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 14px;
  transition: background-color 0.3s;
}

/* .language-switch:hover {
  background-color: rgba(255, 255, 255, 0.2);
} */

.chat-content {
  flex: 1 1;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 80px;
  height: calc(100vh - 60px);
}

.chat-welcome {
  text-align: center;
  padding: 100px 20px 40px 20px;
}

.chat-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.chat-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.chat-welcome h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.chat-welcome p {
  margin: 0;
  color: #a0a0a0;
}

.message-date {
  text-align: center;
  color: #a0a0a0;
  font-size: 14px;
  margin: 20px 0;
}

.chat-input {
  padding: 12px 16px;
  background-color: #222;
  display: flex;
  gap: 12px;
  align-items: center;
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
}

.input-wrapper {
  flex: 1 1;
  display: flex;
  align-items: flex-end;
  background-color: #2a2a2a;
  border-radius: 24px;
  padding: 8px 16px;
  min-width: 0;
  flex-wrap: wrap;
  max-height: 150px;
  overflow-y: auto;
}

.input-wrapper textarea {
  flex: 1 1;
  border: none;
  background: none;
  padding: 8px;
  color: white;
  font-size: 16px;
  outline: none;
  min-width: 0;
  max-height: 100px;
  min-height: 24px;
  line-height: 1.5;
  font-family: inherit;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.input-wrapper textarea::placeholder {
  color: #666;
}

.input-wrapper textarea::-webkit-scrollbar {
  width: 4px;
}

.input-wrapper textarea::-webkit-scrollbar-track {
  background: transparent;
}

.input-wrapper textarea::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.input-wrapper textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* For Firefox */
.input-wrapper textarea {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Ensure the textarea has some padding on the right to prevent text from being hidden by scrollbar */
.input-wrapper textarea {
  padding-right: 12px;
}

.visitor-note a{
  color: #00ff9d;
  text-decoration: none;
}
.emoji-button,
.attachment-button,
.voice-button {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 20px;
  flex-shrink: 0;
  color: #a0a0a0;
}

.send-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #00ff9d;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  flex-shrink: 0;
  margin-left: auto;
}

.send-button:disabled {
  background-color: #2a2a2a;
  color: #666;
  cursor: not-allowed;
}

.send-button svg {
  width: 20px;
  height: 20px;
}

.voice-button {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 20px;
  flex-shrink: 0;
  color: #a0a0a0;
  transition: color 0.3s;
}

.voice-button.recording {
  color: #ff4444;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .chat-header {
    padding: 0 12px;
    height: 56px;
  }

  .chat-header h1 {
    padding: 0 32px;
    font-size: 18px;
  }

  .chat-input {
    padding: 10px 12px;
  }

  .input-wrapper {
    padding: 6px 12px;
  }

  .emoji-button,
  .attachment-button,
  .voice-button {
    padding: 6px;
    font-size: 18px;
  }

  .send-button {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 380px) {
  .chat-header {
    padding: 0 10px;
    height: 52px;
  }

  .chat-header .back-button,
  .language-switch {
    margin-right: 0px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .chat-input {
    padding: 8px 10px;
  }

  .input-wrapper {
    padding: 4px 10px;
  }

  .emoji-button,
  .attachment-button,
  .voice-button {
    padding: 4px;
    font-size: 16px;
  }

  .send-button {
    width: 32px;
    height: 32px;
  }
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  margin: 8px 0;
  max-width: 70%;
  width: fit-content;
}

.message.user {
  margin-left: auto;
  margin-right: 0;
}

.message.admin {
  margin-right: auto;
  margin-left: 0;
}

.message-content {
  position: relative;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  max-width: 100%;
  min-width: 60px;
}

.message-content p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 500px;
  text-overflow: ellipsis;
}

.message.user .message-content {
  background-color: #00FF9D;
  color: black;
  border-top-right-radius: 4px;
}

.message.admin .message-content {
  background-color: #2a2a2a;
  color: white;
  border-top-left-radius: 4px;
}

/* 新增请求卡片样式 */
.message-content.request-card {
  padding: 20px;
  max-width: 300px;
  min-width: 280px;
  border-radius: 12px;
  color: black;
}

.request-card .request-header {
  font-size: 1.2em;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  text-align: center;
}

.request-card .request-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-card .request-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  gap: 40px;
}

.request-card .request-label {
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.9em;
  flex-shrink: 0;
}

.request-card .request-value {
  color: #000;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.request-card .request-amount {
  font-size: 1.2em;
  color: #000;
  font-weight: 600;
}

.message-time {
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.message.user .message-time {
  color: rgba(0, 0, 0, 0.5);
}

.message.admin .message-time {
  color: rgba(255, 255, 255, 0.5);
}

.message-date {
  text-align: center;
  color: #a0a0a0;
  font-size: 12px;
  margin: 24px 0 16px;
  position: relative;
}

.message-date::before,
.message-date::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.message-date::before {
  right: calc(50% + 32px);
}

.message-date::after {
  left: calc(50% + 32px);
}

.chat-admin-container {
  display: flex;
  height: calc(100vh - 50px);
  margin-top: 50px;
  background: #1a1a1a;
}

.chat-sessions {
  width: 300px;
  border-right: 1px solid #333;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.chat-sessions.closed {
  width: 0;
  padding: 0;
}

.chat-session-list {
  height: 100%;
  overflow-y: auto;
  padding-bottom: 80px;
}

.chat-session {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
}

.chat-session:hover {
  background-color: #2a2a2a;
}

.chat-session.selected {
  background-color: #2a2a2a;
}

.session-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  overflow: hidden;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: #00FF9D;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.session-info {
  flex: 1 1;
  min-width: 0;
}

.session-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name {
  font-weight: 500;
  color: white;
}

.timestamp {
  font-size: 12px;
  color: #888;
}

.last-message {
  color: #888;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-badge {
  background-color: #00FF9D;
  color: black;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
}

.chat-messages {
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.no-chat-selected {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.no-messages-today {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #666;
  text-align: center;
  font-style: italic;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin: 20px 0;
}

.selected-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.selected-chat .chat-header {
  padding: 15px 20px;
  background-color: #222;
  border-bottom: 1px solid #333;
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
}

.selected-chat .user-info2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 10px;
}

.selected-chat .user-info2 .session-avatar {
  margin: 0;
}

.selected-chat .user-info2 .user-name {
  font-size: 16px;
}

.selected-chat .messages-container {
  flex: 1 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 在管理员界面中，调整消息气泡的方向 */
.chat-admin-container .message.user {
  margin-left: auto;
  margin-right: 0;
}

.chat-admin-container .message.admin {
  margin-right: auto;
  margin-left: 0;
}

.chat-admin-container .message.user .message-content {
  background-color: #00FF9D;
  color: black;
  border-top-right-radius: 4px;
}

.chat-admin-container .message.admin .message-content {
  background-color: #2a2a2a;
  color: white;
  border-top-left-radius: 4px;
}

.chat-admin-container .message.user .message-time {
  color: rgba(0, 0, 0, 0.5);
}

.chat-admin-container .message.admin .message-time {
  color: rgba(255, 255, 255, 0.5);
}

.messages-container {
  height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-input {
  padding: 20px;
  background: #222;
  display: flex;
  gap: 10px;
}

.message-input input {
  flex: 1 1;
  background: #2a2a2a;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  color: white;
  outline: none;
}

.message-input button {
  background: #00FF9D;
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
}

.message-input button:hover {
  background: #00cc7d;
}

/* 覆盖 react-chat-widget 的样式 */
.rcw-widget-container {
  height: calc(100vh - 140px) !important;
  width: 100% !important;
  margin: 0 !important;
  max-width: none !important;
}

.rcw-conversation-container {
  border-radius: 0 !important;
  background-color: #1a1a1a !important;
}

.rcw-header {
  background-color: #222 !important;
  padding: 20px !important;
}

.rcw-title {
  color: white !important;
}

.rcw-close-button {
  display: none !important;
}

.rcw-messages-container {
  background-color: #1a1a1a !important;
}

.rcw-message {
  background-color: #2a2a2a !important;
  color: white !important;
}

.rcw-client {
  background-color: #00FF9D !important;
  color: black !important;
}

.rcw-sender {
  background-color: #222 !important;
  padding: 20px !important;
}

.rcw-new-message {
  background-color: #2a2a2a !important;
  border: none !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 10px 15px !important;
}

.rcw-send {
  background-color: #00FF9D !important;
  border-radius: 50% !important;
  padding: 10px !important;
}

.emoji-container {
  position: relative;
  z-index: 1001;
}

.emoji-picker {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #222222;
  /* border: 1px solid #ccc; */
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 4px;
  gap: 4px;
  z-index: 1002;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  margin-bottom: 8px;
  transform: translateY(-10px);
  max-height: 200px;
  overflow-y: auto;
  position: fixed;
  bottom: auto;
  top: auto;
}

.emoji-picker button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  font-size: 20px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.emoji-picker button:hover {
  background-color: #f0f0f0;
}

.chat-sidebar {
  width: 300px;
  background: #222;
  border-right: 1px solid #333;
  transition: all 0.3s ease;
  position: relative;
}

.chat-sidebar.closed {
  width: 0;
  padding: 0;
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 1rem;
  padding-right: 1rem;
  border-bottom: 1px solid #333;
}

.sidebar-header h2{
  color: white;
}

.toggle-sidebar {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.chat-sessions.closed .toggle-sidebar {
  position: fixed;
  left: 0;
  top: 100px;
  width: 24px;
  height: 40px;
  background: #222;
  border-radius: 0 4px 4px 0;
  transform: rotate(180deg);
  z-index: 100;
}

/* 保持原来的高度 */
.chat-messages {
  height: calc(100vh - 60px);
  transition: margin-left 0.3s ease;
}

.selected-chat {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.messages-container {
  flex: 1 1;
  overflow-y: auto;
}

.chat-main {
  flex: 1 1;
  transition: all 0.3s ease;
}
/* 
.chat-main.expanded {
  margin-left: 40px;
} */

@media (max-width: 768px) {
  .chat-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
  }

  .chat-sidebar.closed {
    transform: translateX(-100%);
  }

  .chat-main.expanded {
    margin-left: 0;
  }

  .message {
    max-width: 85%;
  }

  .message-content p {
    max-width: 300px;
  }
}

/* 添加响应式样式 */
@media (max-width: 1000px) {
  .chat-sessions {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    background: #1a1a1a;
    z-index: 1000;
    transition: transform 0.3s ease;
  }

  .chat-main.expanded{
    margin-left: 0px;
  }

  .chat-sessions.closed {
    transform: translateX(-100%);
  }

  /* 遮罩层 */
  .chat-sessions::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }

  .chat-sessions:not(.closed)::before {
    opacity: 1;
    pointer-events: auto;
  }

  /* 移除所有展开按钮 */
  .toggle-sidebar {
    display: none;
  }

  /* 小屏幕字体和间距调整 */
  .chat-session {
    padding: 12px;
  }

  .session-avatar {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }

  .user-name {
    font-size: 14px;
  }

  .timestamp {
    font-size: 11px;
  }

  .last-message {
    font-size: 12px;
  }

  .unread-badge {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .message-content {
    padding: 8px 12px;
    font-size: 14px;
  }

  .message-time {
    font-size: 11px;
  }

  .message-date {
    font-size: 11px;
    margin: 20px 0 12px;
  }

  .selected-chat .chat-header {
    padding: 12px 16px;
  }

  .selected-chat .user-info2 .user-name {
    font-size: 15px;
  }

  .selected-chat .messages-container {
    padding: 16px;
    gap: 12px;
  }

  .chat-input {
    padding: 10px 12px;
  }

  .input-wrapper {
    padding: 6px 12px;
  }

  .input-wrapper input {
    font-size: 14px;
    padding: 6px;
  }

  .emoji-button,
  .attachment-button,
  .voice-button {
    font-size: 18px;
    padding: 6px;
  }

  .send-button {
    width: 36px;
    height: 36px;
  }

  .send-button svg {
    width: 18px;
    height: 18px;
  }

  .chat-sessions.closed + .chat-main .selected-chat .chat-header {
    width: 100%;
    left: 0;
  }

  .selected-chat .chat-header {
    padding: 15px 20px;
    margin-top: 20px;
  }
}

.mobile-toggle-sidebar {
  display: none;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

@media (min-width: 1000px) {
  .mobile-toggle-sidebar {
    display: flex;
  }

  /* 移除原来的 toggle-sidebar */
  .toggle-sidebar {
    display: none;
  }
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
}

/* .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: white;
}

.nav-link.active {
  color: white;
  font-weight: 500;
} */

.logout-btn {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 汉堡菜单样式 */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #2a2a2a;
    padding: 1rem 0;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 1rem 2rem;
    text-align: left;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .logout-btn {
    margin: 1rem 2rem;
    width: calc(100% - 4rem);
  }
}

.session-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.unread-count {
  background-color: #4CAF50;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 确保管理员页面的样式不受影响 */
.chat-page-admin .chat-input {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
}

/* 移动端适配 */
@media (max-width: 1000px) {
  .chat-admin-container {
    position: relative;
    overflow: hidden;
  }

  .chat-sessions {
    width: 100%;
    max-width: 100%;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    background: #1a1a1a;
  }

  .chat-sessions.closed {
    transform: translateX(-100%);
  }

  .chat-main {
    width: 100%;
    margin-left: 0;
    transition: margin-left 0.3s ease;
  }

  .chat-main.expanded {
    margin-left: 0;
  }

  .selected-chat .chat-header {
    padding: 10px 15px;
  }

  .mobile-toggle-sidebar {
    display: flex;
    margin-right: 10px;
  }

  .toggle-sidebar {
    display: none;
  }
}

/* 更小屏幕的额外适配 */
@media (max-width: 480px) {
  .chat-input {
    padding: 8px 12px;
  }

  .input-wrapper {
    padding: 6px 10px;
  }

  .message-content {
    max-width: 85%;
  }
}

.add-conversation {
  padding: 15px;
  border-top: 1px solid #2A2A2A;
  margin-top: auto;
}

.add-chat-button {
  width: 100%;
  padding: 10px;
  background: #2A2A2A;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.add-chat-button:hover {
  background: #2e2e2e;
}

.add-chat-button span {
  font-size: 20px;
  font-weight: bold;
}

.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.new-chat-dialog {
  background: #1a1a1a;
  border-radius: 8px;
  width: 90%;
  max-width: 480px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #333;
}

.dialog-header {
  padding: 12px 16px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-header h3 {
  color: white;
  margin: 0;
  font-size: 16px;
}

.close-button {
  background: none;
  border: none;
  color: #888;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.search-box2 {
  padding: 12px 16px;
  border-bottom: 1px solid #333;
}

.search-input {
  /* width: 100%; */
  padding: 8px 12px;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 6px;
  color: white;
  font-size: 14px;
}

.users-list {
  overflow-y: auto;
  padding: 0;
  flex: 1 1;
  max-height: 360px;
}

.user-item {
  display: flex;
  align-items: center;
  padding-left: 16px;
  padding-right: 16px;
  cursor: pointer;
  border-bottom: 1px solid #333;
}

.user-avatar {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: #00FF9D;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.user-info {
  flex: 1 1;
  min-width: 0;
}

.username {
  color: white;
  font-weight: 500;
  margin-bottom: 2px;
  font-size: 14px;
}

.email {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loading, .no-results {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 13px;
}

.users-list::-webkit-scrollbar {
  width: 6px;
}

.users-list::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

@media (max-width: 480px) {
  .new-chat-dialog {
    width: 95%;
    max-height: 80vh;
  }

  .dialog-header {
    padding: 10px 12px;
  }

  .search-box2 {
    padding: 10px 12px;
  }

  .user-item {
    padding: 8px 12px;
  }

  .user-avatar {
    width: 28px;
    height: 28px;
    margin-right: 10px;
  }
}

/* Add these new styles */
.selected-file {
  display: flex;
  align-items: center;
  background: #2a2a2a;
  padding: 4px 8px;
  border-radius: 4px;
  margin: 4px 8px;
  max-width: 200px;
}

.selected-file span {
  margin-right: 8px;
  font-size: 0.9em;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a0a0a0;
}

.remove-file {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1.2em;
  padding: 0 4px;
}

.remove-file:hover {
  color: #ff4444;
}

/* 添加图片样式 */
.chat-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  margin: 5px 0;
}

/* 响应式图片样式 */
@media (max-width: 768px) {
  .chat-image {
    max-width: 100%;
    max-height: 200px; /* 在小屏幕上减小最大高度 */
  }
}

@media (max-width: 480px) {
  .chat-image {
    max-width: 100%;
    max-height: 150px; /* 在更小的屏幕上进一步减小最大高度 */
  }
}

.loading-spinner4 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  min-height: 200px;
}

.spinner-icon4 {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #00FF9D;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner-overlay4 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 2;
}

.loading-spinner-icon4 {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #00FF9D;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 480px) {
  .message-content.request-card {
    max-width: 260px;
    min-width: 240px;
  }

  .request-card .request-detail-row {
    gap: 20px;
  }
}

/* 移动端适配 */
@media (max-width: 480px) {
  .message-content.request-card {
    max-width: 100%;
    min-width: 200px;
    padding: 15px;
  }

  .request-card .request-header {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 8px;
  }

  .request-card .request-details {
    gap: 8px;
  }

  .request-card .request-detail-row {
    gap: 20px;
    padding: 3px 0;
  }

  .request-card .request-label {
    font-size: 0.85em;
  }

  .request-card .request-value {
    font-size: 0.9em;
  }

  .request-card .request-amount {
    font-size: 1.1em;
  }
}

@media (max-width: 380px) {
  .message-content.request-card {
    padding: 12px;
    min-width: 180px;
  }

  .request-card .request-header {
    font-size: 1em;
    margin-bottom: 12px;
    padding-bottom: 6px;
  }

  .request-card .request-detail-row {
    gap: 15px;
  }

  .request-card .request-label {
    font-size: 0.8em;
  }

  .request-card .request-value {
    font-size: 0.85em;
  }

  .request-card .request-amount {
    font-size: 1em;
  }
}

.message.admin .message-content.request-card {
  background-color: #2a2a2a;
  color: white;
}

.message.admin .request-card .request-header {
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.message.admin .request-card .request-label,
.message.admin .request-card .request-value {
  color: white;
}

.message.admin .request-card .request-amount {
  color: #00FF9D;
}

.reference-id {
  font-size: 11px;
  color: #000000;
  margin-left: 6px;
  font-weight: 500;
  background-color: #00FF9D;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}

/* Message status indicator styles */
.message-status {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  font-size: 12px;
}

.message.user .message-status {
  color: rgba(0, 0, 0, 0.6);
}

.message.admin .message-status {
  color: rgba(255, 255, 255, 0.6);
}

.message-status.success {
  color: #4CAF50;
}

.message-status.error {
  color: #f44336;
}

.message-status svg {
  width: 14px;
  height: 14px;
}

.message-time-container {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.no-resize {
  resize: none;
}

/* Safari and iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .chat-container {
    -webkit-overflow-scrolling: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    position: relative;
    height: 100%;
  }
  
  .chat-messages {
    -webkit-overflow-scrolling: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    overflow-y: scroll;
    position: relative;
    height: 100%;
  }
  
  .chat-content {
    -webkit-overflow-scrolling: auto;
    overflow-y: scroll;
    position: relative;
  }
  
  .message-bubble {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  
  .chat-input {
    -webkit-appearance: none;
    border-radius: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
  
  /* Fix for Safari's flexbox issues */
  .chat-message {
    width: 100%;
    max-width: 100%;
  }
  
  /* Fix for Safari's image rendering */
  .message-image {
    transform: translateZ(0);
    will-change: transform;
  }
  
  /* Prevent momentum scrolling issues */
  .messages-container {
    -webkit-overflow-scrolling: auto;
    overflow-y: scroll;
    position: relative;
  }
  
  /* Fix for Safari's scroll event handling */
  .selected-chat .messages-container {
    -webkit-overflow-scrolling: auto;
    overflow-y: scroll;
  }
}

/* Browser-specific class-based fixes */
.safari-browser .chat-messages {
  padding-bottom: 30px;
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: auto !important;
}

.safari-browser .messages-container {
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: auto !important;
}

.safari-browser .chat-content {
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: auto !important;
}

.miui-browser .chat-container {
  height: calc(100vh - 20px);
}

.miui-browser .chat-input-container {
  padding-bottom: 15px;
}

/* Fix for image messages in problematic browsers */
.browser-safari .message-image,
.browser-miui-browser .message-image,
.browser-uc-browser .message-image,
.browser-samsung-browser .message-image {
  max-width: 250px;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fix for notification permission button in Safari */
.browser-safari .notification-permission-button,
.browser-miui-browser .notification-permission-button {
  -webkit-appearance: none;
  border-radius: 4px;
  padding: 8px 16px;
}

/* MIUI Browser and other Android custom browser fixes */
@supports (-webkit-appearance: none) and (not (overflow:-webkit-marquee)) and (not (-ms-ime-align:auto)) and (not (-moz-appearance:none)) {
  .chat-container {
    position: relative;
    z-index: 1;
    background-color: #121212; /* Ensure background is solid */
  }
  
  .chat-messages {
    backface-visibility: hidden;
  }
  
  .message-bubble {
    backface-visibility: hidden;
  }
  
  /* Fix for MIUI Browser's input field issues */
  .chat-input-container {
    position: relative;
    z-index: 2;
    background-color: #1a1a1a; /* Ensure background is solid */
  }
  
  /* Fix for MIUI Browser's scrolling issues */
  .chat-messages::-webkit-scrollbar {
    width: 6px;
  }
  
  .chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
  }
}

/* Crisp Chat Styles - New implementation */
.crisp-chat-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* Add safe area insets support */
  height: 100vh;
  height: -webkit-fill-available;
  height: fill-available;
  /* Ensure content is within safe area */
  padding-bottom: env(safe-area-inset-bottom);
  padding-bottom: constant(safe-area-inset-bottom);
}

.crisp-chat-container {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  /* Ensure container respects safe areas */
  min-height: -webkit-fill-available;
  min-height: fill-available;
  /* Add padding for iOS Safari bottom bar */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.crisp-chat-container.full-height {
  height: 100vh;
  height: -webkit-fill-available;
  height: fill-available;
}

.crisp-chat-container.with-header {
  height: calc(100vh - 64px);
  height: calc(-webkit-fill-available - 64px);
  height: calc(fill-available - 64px);
  margin-top: 64px;
}

.crisp-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  /* Add safe area insets for iframe */
  padding-bottom: env(safe-area-inset-bottom);
  padding-bottom: constant(safe-area-inset-bottom);
}

/* Safari and iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .crisp-chat-wrapper {
    /* Fix for iOS Safari 100vh issue */
    height: -webkit-fill-available;
  }

  .crisp-chat-container {
    /* Prevent overscroll issues */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Add bottom padding for Safari bottom bar */
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }

  .crisp-iframe {
    /* Ensure iframe fills container while respecting safe areas */
    height: 100%;
    min-height: -webkit-fill-available;
    /* Add padding for bottom bar */
    margin-bottom: env(safe-area-inset-bottom, 20px);
  }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .crisp-chat-container.with-header {
    height: calc(100vh - 56px);
    height: calc(-webkit-fill-available - 56px);
    margin-top: 56px;
  }

  /* Additional padding for mobile browsers */
  .crisp-chat-container {
    padding-bottom: max(env(safe-area-inset-bottom, 20px), 20px);
  }
}

/* iPhone specific fixes */
@media screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3),
       screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3),
       screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
  .crisp-chat-wrapper {
    /* Add extra padding for iPhone models with home indicator */
    padding-bottom: env(safe-area-inset-bottom, 34px);
  }

  .crisp-chat-container {
    /* Ensure container respects iPhone safe areas */
    padding-bottom: env(safe-area-inset-bottom, 34px);
  }

  .crisp-iframe {
    /* Add margin to prevent overlap with home indicator */
    margin-bottom: env(safe-area-inset-bottom, 34px);
  }
}

.crisp-chat-user.crisp-fullscreen {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

.crisp-chat-user.crisp-fullscreen .crisp-container {
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.crisp-chat-user.crisp-fullscreen .crisp-wrapper {
  flex: 1 1;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Hide default Crisp launcher button */
.crisp-client .crisp-1rjpbb7 {
  display: none !important;
}

/* Ensure Crisp chat takes full height */
#crisp-chatbox {
  height: 100% !important;
  max-height: none !important;
  position: relative !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  border-radius: 0 !important;
  transform: none !important;
}

.crisp-chat-admin.crisp-fullscreen,
.crisp-chat-user.crisp-fullscreen {
  height: calc(100vh - 60px); /* Subtract header height */
  margin-top: 60px; /* Add margin for header */
  width: 100vw;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
}

.crisp-fullscreen .crisp-container {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.crisp-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Hide Crisp's default chat button */
.crisp-client .crisp-1rjpbb7,
.crisp-client [class*="crisp-1rjpbb"],
.crisp-client #crisp-chatbox [class*="crisp-1rjpbb"],
.crisp-client .crisp-1imz6i4,
iframe[id*="crisp-chatbox"] div[class*="crisp-1rjpbb"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ensure chat container takes full height */
#crisp-chatbox,
.crisp-client {
  height: 100% !important;
  max-height: none !important;
  position: relative !important;
}

.crisp-chat-user {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

/* 登录用户的样式 - 有 Header */
.crisp-chat-user:not(.no-header) {
  padding-top: 64px; /* Header 的高度 */
}

/* 未登录用户的样式 - 无 Header */
.crisp-chat-user.no-header {
  padding-top: 0;
  height: 100vh;
  margin: 0;
}

.crisp-container {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  height: 100%;
  background: #fff;
}

.crisp-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* 全屏模式样式 */
.crisp-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

/* 未登录用户的全屏模式 */
.crisp-chat-user.no-header.crisp-fullscreen {
  margin-top: 0;
  padding-top: 0;
}

/* 登录用户的全屏模式 */
.crisp-chat-user:not(.no-header).crisp-fullscreen {
  margin-top: 64px; /* Header 的高度 */
}

/* 确保容器在所有状态下都是全高度 */
.crisp-chat-user.no-header .crisp-container {
  height: 100vh;
}

.crisp-chat-user:not(.no-header) .crisp-container {
  height: calc(100vh - 64px); /* 减去 Header 高度 */
}

/* 隐藏 Crisp 默认的聊天按钮 */
.crisp-client .crisp-1rjpbb7,
.crisp-client [class*="crisp-1rjpbb"],
.crisp-client #crisp-chatbox [class*="crisp-1rjpbb"],
.crisp-client .crisp-1imz6i4,
iframe[id*="crisp-chatbox"] div[class*="crisp-1rjpbb"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
  .crisp-chat-user:not(.no-header) {
    padding-top: 56px; /* 移动端 Header 可能更小 */
  }
  
  .crisp-chat-user:not(.no-header).crisp-fullscreen {
    margin-top: 56px;
  }
  
  .crisp-chat-user:not(.no-header) .crisp-container {
    height: calc(100vh - 56px);
  }
} 
.admin-transaction-history {
  min-height: 100vh;
  background-color: #1a1a1a;
  color: white;
  padding-top: 80px; /* 为header腾出空间 */
}

.transaction-main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
}

.header-section {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
  padding: 0 24px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-button {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.filter-button.active {
  background: #4caf50;
  color: white;
}

.amount.positive {
  color: #4caf50;
  font-weight: 500;
}

.amount.negative {
  color: #f44336;
  font-weight: 500;
}

.back-button-admin-transaction-history {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: white;
  transition: background-color 0.3s;
}

.back-button-admin-transaction-history:hover {
  background: rgba(255, 255, 255, 0.2);
}

.user-info {
  flex-grow: 1;
}

.user-info h2 {
  margin: 0;
  color: white;
  font-size: 1.2rem;
}

.user-info p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Tabs Styling */
.history-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 24px;
}

.tab-button {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.tab-button.active {
  background: #4caf50;
  color: white;
}

/* Table Styling */
.transactions-table {
  background: #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.transactions-table table {
  width: 100%;
  min-width: 600px; /* Minimum width to prevent squishing */
  border-collapse: collapse;
}

.transactions-table th,
.transactions-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  white-space: nowrap;
}

.transactions-table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  position: sticky;
  top: 0;
  z-index: 1;
}

.transactions-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.credit-amount {
  color: #4caf50 !important;
  font-weight: 500;
}

.debit-amount {
  color: #f44336 !important;
  font-weight: 500;
}

.no-records {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  padding: 40px !important;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #2a2a2a;
}

.page-btn {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-btn:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-info {
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .admin-transaction-history {
    padding-top: 60px;
  }

  .transaction-main {
    padding: 10px;
  }

  .header-section {
    padding: 0 10px;
  }

  .header-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .filter-button {
    flex: 1 1;
    min-width: calc(50% - 4px); /* 2 buttons per row with gap */
    padding: 8px 10px;
    font-size: 13px;
    text-align: center;
  }

  .transactions-table {
    border-radius: 4px;
    margin: 0;
  }

  .transactions-table th,
  .transactions-table td {
    padding: 10px;
    font-size: 13px;
  }

  .back-button-admin-transaction-history {
    width: 100%;
    text-align: center;
  }

  .pagination {
    padding: 10px;
  }

  .page-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
}

.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  color: white;
  text-align: center;
  position: relative;
}

.not-found-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.not-found-content h1 {
  font-size: 8rem;
  margin: 0;
  color: #00FF9D;
}

.not-found-content h2 {
  font-size: 2rem;
  margin: 1rem 0;
}

.not-found-content p {
  color: #888;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.return-btn {
  background: #00FF9D;
  color: black;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
}

.return-btn:hover {
  opacity: 0.8;
}

/* 平板设备 (768px 到 1024px) */
@media (max-width: 1024px) {
  .not-found-content h1 {
    font-size: 6rem;
  }

  .not-found-content h2 {
    font-size: 1.75rem;
  }
}

/* 手机设备 (小于 768px) */
@media (max-width: 768px) {
  .not-found-content h1 {
    font-size: 5rem;
  }

  .not-found-content h2 {
    font-size: 1.5rem;
  }

  .not-found-content p {
    font-size: 0.9rem;
  }

  .return-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    bottom: 40px;
  }
}

/* 小型手机设备 (小于 480px) */
@media (max-width: 480px) {
  .not-found-content h1 {
    font-size: 4rem;
  }

  .not-found-content h2 {
    font-size: 1.25rem;
  }

  .not-found-content p {
    font-size: 0.85rem;
  }

  .return-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    bottom: 30px;
  }
} 
.maintenance-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  text-align: center;
  position: relative;
  padding: 2rem;
}

.maintenance-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 600px;
  width: 100%;
}

.maintenance-icon {
  animation: pulse 2s ease-in-out infinite;
  margin-bottom: 1rem;
}

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

.maintenance-title {
  font-size: 3rem;
  margin: 0;
  color: #00FF9D;
  font-weight: 700;
  letter-spacing: 1px;
}

.maintenance-message {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
  line-height: 1.6;
  font-weight: 500;
}

.maintenance-details {
  margin-top: 1rem;
}

.maintenance-submessage {
  color: #888;
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

/* 平板设备 (768px 到 1024px) */
@media (max-width: 1024px) {
  .maintenance-content {
    padding: 2rem;
  }

  .maintenance-title {
    font-size: 2.5rem;
  }

  .maintenance-message {
    font-size: 1.15rem;
  }
}

/* 手机设备 (小于 768px) */
@media (max-width: 768px) {
  .maintenance-page {
    padding: 1rem;
  }

  .maintenance-content {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .maintenance-icon {
    width: 100px;
    height: 100px;
  }

  .maintenance-icon svg {
    width: 100px;
    height: 100px;
  }

  .maintenance-title {
    font-size: 2rem;
  }

  .maintenance-message {
    font-size: 1rem;
  }

  .maintenance-submessage {
    font-size: 0.9rem;
  }
}

/* 小型手机设备 (小于 480px) */
@media (max-width: 480px) {
  .maintenance-content {
    padding: 1rem;
    gap: 1rem;
  }

  .maintenance-icon {
    width: 80px;
    height: 80px;
  }

  .maintenance-icon svg {
    width: 80px;
    height: 80px;
  }

  .maintenance-title {
    font-size: 1.75rem;
  }

  .maintenance-message {
    font-size: 0.95rem;
  }

  .maintenance-submessage {
    font-size: 0.85rem;
  }
}


body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
} 
