/* ================================================= */
/* Bot 和 System 消息气泡样式 - 仅保留此部分 */
/* ================================================= */

:root {
    --primary: #00DFFF;      /* 主霓虹色：电光蓝 */
    --text-soft: #F0F0F0;    /* 柔和的白色文字 */
}

/* 消息气泡基础布局 */
#app .bot-message-content,
#app .bot-message,
#app .system-message,
#app .message-card:not(.own-message) {
    width: 100%;
    max-width: 85%;
    border-radius: 12px; 
    padding: 12px 16px; 
    margin-right: auto; /* 靠左对齐 */
}

/* Bot 和 System 核心视觉样式：深靛蓝 + 电光蓝光晕 */
#app .message-card:not(.own-message), 
#app .system-message {
    border: 1px solid rgba(0, 223, 255, 0.15) !important; /* 电光蓝微弱边框 */
    background: rgba(18, 20, 38, 0.8) !important;        /* 深靛蓝背景 */
    box-shadow: 0 4px 15px rgba(0, 223, 255, 0.1) !important; /* 电光蓝光晕阴影 */
    color: var(--text-soft) !important;
}

/* Bot 名字颜色优化 */
#app .bot-message-content .username,
#app .message-card:not(.own-message) .username {
    color: var(--primary) !important; /* 电光蓝名字 */
    font-size: 14px !important;
    font-weight: 700; 
}

/* 移除 Bot 消息中的头像（如果需要保留头像请删除此行） */
#app .bot-message .message-avatar { display:none; }


/* =========================
   REMOVE EMOJI + MIC
   ========================= */
.crs-input-emoji,
.crs-input-mic {
  display: none !important;
}

/* =========================
   INPUT WRAP BASE LAYOUT
   ========================= */
.crs-input-wrap {
  position: relative !important;

  display: flex !important;
  align-items: center !important;
  gap: 8px !important;

  padding: 8px !important;

  background: rgba(10,11,20,0.95) !important;
  border-top: 1px solid rgba(57,255,255,0.18) !important;

  backdrop-filter: blur(14px);
  box-sizing: border-box;
}

/* =========================
   FILE INPUT HIDE
   ========================= */
.crs-input-file {
  display: none !important;
}

/* =========================
   INPUT FIELD AREA
   ========================= */
.crs-input-field-wrap {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;

  background: rgba(31,46,61,0.85) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;

  border-radius: 14px !important;
  padding: 6px 8px !important;

  min-width: 0;
}

/* textarea */
.crs-input-field {
  flex: 1 !important;
  width: 100% !important;

  background: transparent !important;
  border: none !important;

  color: #fff !important;
  font-size: 14px !important;

  outline: none !important;
  resize: none !important;
}

/* =========================
   ICON BUTTON BASE
   ========================= */
.crs-input-upload,
.crs-input-send {
  flex-shrink: 0 !important;

  width: 40px !important;
  height: 40px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 12px !important;

  cursor: pointer !important;
  transition: 0.2s ease !important;

  box-sizing: border-box;
}

/* upload button */
.crs-input-upload {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #fff !important;
}

/* send button */
.crs-input-send {
  background: linear-gradient(135deg, #39ffff, #7df9ff) !important;
  border: none !important;

  box-shadow: 0 0 16px rgba(57,255,255,0.4) !important;
  color: #000 !important;
}

/* =========================
   ICON FIX
   ========================= */
.crs-input-wrap svg {
  width: 18px !important;
  height: 18px !important;

  stroke: currentColor !important;
  fill: currentColor !important;
}

/* send icon override */
.crs-input-send svg {
  fill: #000 !important;
  stroke: #000 !important;
}

/* =========================
   HOVER / ACTIVE
   ========================= */
.crs-input-upload:hover {
  border-color: #39ffff !important;
  box-shadow: 0 0 12px rgba(57,255,255,0.35) !important;
  transform: translateY(-1px);
}

.crs-input-send:hover {
  transform: scale(1.06);
  box-shadow: 0 0 26px rgba(57,255,255,0.55) !important;
}

.crs-input-upload:active,
.crs-input-send:active {
  transform: scale(0.92);
}

/* =========================
   REMOVE BLACK / BLUE FOCUS BUG
   ========================= */
button,
textarea,
input {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* =========================
   EMOJI PICKER POSITION FIX
   ========================= */
.crs-emoji-picker {
  position: absolute !important;

  bottom: calc(100% + 8px) !important;
  right: 10px !important;

  width: 300px !important;
  max-width: 90vw !important;

  z-index: 99999 !important;
}

/* =========================
   EMOJI TABS
   ========================= */
.crs-emoji-picker-tabs {
  display: flex !important;
  gap: 4px;

  padding: 6px !important;

  overflow-x: auto;
  scrollbar-width: none;
}

.crs-emoji-picker-tabs::-webkit-scrollbar {
  display: none;
}

.crs-emoji-picker-tab {
  min-width: 34px !important;
  height: 34px !important;

  border-radius: 10px !important;

  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;

  display: flex;
  align-items: center;
  justify-content: center;
}

.crs-emoji-picker-tab-active {
  background: rgba(57,255,255,0.15) !important;
  border-color: #39ffff !important;
  box-shadow: 0 0 10px rgba(57,255,255,0.25);
}

/* =========================
   EMOJI GRID
   ========================= */
.crs-emoji-picker-grid {
  display: grid !important;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;

  padding: 8px !important;

  max-height: 220px;
  overflow-y: auto;
}

.crs-emoji-picker-btn {
  width: 34px !important;
  height: 34px !important;

  border-radius: 8px !important;

  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px !important;
}

.crs-emoji-picker-btn:hover {
  background: rgba(57,255,255,0.12) !important;
  border-color: rgba(57,255,255,0.3) !important;
  transform: scale(1.08);
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {
  .crs-emoji-picker {
    width: 95% !important;
    left: 2.5% !important;
    right: auto !important;
  }

  .crs-emoji-picker-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .crs-input-upload,
  .crs-input-send {
    width: 36px !important;
    height: 36px !important;
  }

  .crs-input-field {
    font-size: 13px !important;
  }
}







/* =========================
   🎯 SINGLE DESIGN TOKENS ONLY
   ========================= */
:root {
  --bg: #0a0b14;
  --card: #1f2e3d;

  --primary: #39ffff;
  --primary-glow: rgba(57,255,255,0.35);

  --text: #ffffff;
  --muted: rgba(255,255,255,0.6);

  --danger: #ff4d4f;
  --warning: #ffc107;

  --radius: 12px;
}

/* =========================
   GLOBAL RESET
   ========================= */
body,
#body-main,
#app {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: Inter, system-ui, sans-serif;
}

/* =========================
   BALANCE PANEL
   ========================= */
#history-bet-header {
  background: rgba(31, 46, 61, 0.95) !important;
  color: #39ffff !important;

  border: 1px solid rgba(57,255,255,0.15) !important;

  padding: 10px 12px;
  border-radius: 10px;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;

  text-align: center;

  box-shadow: 0 0 10px rgba(57,255,255,0.08);
}

#history-balance-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 0;
  text-align: center;
}

#history-balance-wrapper .fw-bold.text18 {
  font-size: 18px;
}

#history-balance-wrapper .icon130 {
  font-size: 13px;
  opacity: 0.7;
  margin: 6px 0;
}

#history-balance-wrapper .fw-bold.text18:last-child {
  font-size: 22px;
  color: var(--primary) !important;
}

/* =========================
   TAB BUTTONS
   ========================= */
#btn-history-transaction,
#btn-history-bet {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.2s ease;
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: #aaa;
  background: #2d2d2d;
}

/* active state */
#btn-history-transaction.selected,
#btn-history-bet.selected {
  background: #39ffff !important;
  color: #000 !important;
  box-shadow: 0 0 12px rgba(57,255,255,0.4);
  border-color: #39ffff !important;
}

/* inactive */
#btn-history-bet {
  background: #2d2d2d !important;
  color: #aaa !important;
}

/* =========================
   LOADING
   ========================= */
.loading-spinner {
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.loading-spinner circle {
  stroke-width: 3 !important;
}

/* =========================
   TABLE (CLEAN CARD STYLE)
   ========================= */
.live-transaction-wrapper table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 8px;
}

.live-transaction-wrapper table td {
  padding: 10px;
  border: none !important;
  background: rgba(255,255,255,0.03);
  color: #e5e7eb;
}

/* rows */
table tr:not(:first-child) td {
  background: rgba(255,255,255,0.03) !important;
  border: none !important;
  padding: 12px;
  color: #e5e7eb !important;
}

.live-transaction-wrapper table tr td {
  background: transparent !important;
  color: #fff !important;
}

.live-transaction-wrapper table tr:first-child td {
  background: rgba(57,255,255,0.12) !important;
  color: #39ffff !important;
  font-weight: 800;
  border-bottom: 1px solid rgba(57,255,255,0.25) !important;
}


/* 表头线条 */
table tr:first-child td {
  border-bottom: 1px solid rgba(57,255,255,0.25) !important;
}

/* row 之间的线条感 */
table tr:not(:first-child) td {
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
}

/* hover 强化线条 */
table tr:not(:first-child):hover td {
  border-bottom: 1px solid rgba(57,255,255,0.25) !important;
}

/* =========================
   STATUS DOTS
   ========================= */
.custom-amber {
  background: var(--warning) !important;
  box-shadow: 0 0 8px rgba(255,193,7,0.4);
}

.custom-red {
  background: var(--danger) !important;
  box-shadow: 0 0 8px rgba(255,77,79,0.4);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {

  #history-balance-wrapper {
    padding: 12px;
  }

  table tr td {
    font-size: 12px;
    padding: 10px !important;
  }

  #btn-history-transaction,
  #btn-history-bet {
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* =========================
   SCROLLBAR
   ========================= */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(57,255,255,0.25);
  border-radius: 10px;
}






/* =========================
   SWEETALERT2 - NEON THEME
   ========================= */

.swal2-popup {
    background: rgba(20, 32, 47, 0.98) !important;
    border: 1px solid rgba(57,255,255,0.25);
    border-radius: 16px !important;

    box-shadow:
        0 0 25px rgba(57,255,255,0.15),
        0 20px 60px rgba(0,0,0,0.6);
    
    backdrop-filter: blur(10px);
    color: #fff;
}

/* TITLE */
.swal2-title {
    color: #39ffff !important;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(57,255,255,0.25);
}

/* SUCCESS ICON RING */
.swal2-success-ring {
    border: 0.25em solid rgba(57,255,255,0.5) !important;
}

/* CHECK ICON */
.swal2-success-line-tip,
.swal2-success-line-long {
    background-color: #39ffff !important;
    box-shadow: 0 0 10px rgba(57,255,255,0.5);
}

/* BACK CIRCLES */
.swal2-success-fix,
.swal2-success-circular-line-left,
.swal2-success-circular-line-right {
    background-color: rgba(20,32,47,0.98) !important;
}

/* BUTTON */
.swal2-confirm {
    background: linear-gradient(135deg, #39ffff, #7df9ff) !important;
    color: #000 !important;

    border-radius: 10px !important;
    font-weight: 700;

    box-shadow: 0 0 15px rgba(57,255,255,0.3);
}

.swal2-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(57,255,255,0.4);
}

/* OPTIONAL CANCEL */
.swal2-cancel {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

/* ANIMATION SMOOTH */
.swal2-popup.swal2-show {
    animation: swalPop 0.25s ease-out;
}

@keyframes swalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {

    .swal2-popup {
        width: 92% !important;
        max-width: 92% !important;

        padding: 18px 14px !important;

        border-radius: 14px !important;
    }

    .swal2-title {
        font-size: 18px !important;
        line-height: 1.3;
    }

    .swal2-html-container {
        font-size: 13px !important;
    }

    /* success icon 缩小 */
    .swal2-icon {
        transform: scale(0.85);
        margin: 10px auto 0 auto !important;
    }

    /* buttons 变紧凑 */
    .swal2-actions {
        gap: 8px !important;
        flex-direction: column !important;
    }

    .swal2-confirm,
    .swal2-cancel {
        width: 100% !important;
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
}








/* ========= 核心变量重定义 ========= */
:root {
  --bg-dark: #0a0b14;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(57, 255, 255, 0.15);
  --text-main: #ffffff;
  --text-soft: #b0b3c1;
  
  /* 你的主题色 #39FFFF */
  --primary: #39FFFF; 
  --primary-glow: rgba(57, 255, 255, 0.4);
  --accent: #FFB84D;
  
  --radius-lg: 16px;
  --radius-md: 10px;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ====== 全局优化 ====== */
* { box-sizing: border-box; }
body, #body-main, #app {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, sans-serif;
  letter-spacing: -0.2px;
}



/* =========================
   LEADERBOARD — #39FFFF 主题
   ========================= */

/* ===== 标题 ===== */
#body-main #leaderboard-title { 
    color: var(--primary);
    border-bottom: 1px solid rgba(57, 255, 255, 0.25); 
    padding-bottom: 8px; 
    font-weight: 800; 
    font-size: 20px;
    letter-spacing: 1px;
    text-shadow: 0 0 4px rgba(57, 255, 255, 0.15);
    opacity: 0.9;
}

/* ===== 按钮 ===== */
#body-main #btn-leaderboard { 
    background: rgba(255,255,255,0.05); 
    color: var(--text-soft); 
    padding: 10px 16px; 
    border-radius: 12px; 
    border: 1px solid rgba(57,255,255,0.1); 
    transition: all 0.3s ease;
    font-weight: 600;
}

#body-main #btn-leaderboard.selected { 
    background: linear-gradient(135deg, rgba(57,255,255,0.25), rgba(57,255,255,0.1)); 
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-1px);
}

/* ===== 容器 ===== */
#body-main #leaderboard-table-container { 
    padding: 10px; 
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
}

/* ===== 表格 ===== */
#body-main #leaderboard-table { 
    border-collapse: separate !important; 
    border-spacing: 0 6px;
    width: 100%;
}

/* 表头 */
#body-main #leaderboard-table .table-head-item { 
    background: rgba(57,255,255,0.1) !important;
    color: var(--primary) !important; 
    font-weight: 800; 
    text-transform: uppercase;
    font-size: 12px;
    padding: 12px 8px;
    border: none !important;
}

#body-main #leaderboard-table .table-head-item:first-child { border-radius: 8px 0 0 8px; }
#body-main #leaderboard-table .table-head-item:last-child  { border-radius: 0 8px 8px 0; }

/* 默认行 */
#body-main #leaderboard-table td { 
    padding: 14px 8px; 
    border: none !important; 
    color: #e0e0e0 !important;
    background: rgba(255,255,255,0.03) !important;
    font-size: 13px;
    transition: background 0.2s;
}

/* 圆角 */
#body-main #leaderboard-table tr td:first-child { 
    border-radius: 10px 0 0 10px; 
    border-left: 2px solid transparent !important; 
}
#body-main #leaderboard-table tr td:last-child { 
    border-radius: 0 10px 10px 0; 
}

/* ===== 前三名 ===== */
#body-main #leaderboard-table tr:nth-child(2) td { background: rgba(57,255,255,0.10) !important; color:#fff !important; }
#body-main #leaderboard-table tr:nth-child(3) td { background: rgba(57,255,255,0.06) !important; color:#fff !important; }
#body-main #leaderboard-table tr:nth-child(4) td { background: rgba(57,255,255,0.04) !important; color:#fff !important; }

/* 左边排名色 */
#body-main #leaderboard-table tr:nth-child(2) td:first-child { border-left:2px solid #FFD700 !important; color:#FFD700 !important; font-weight:900; }
#body-main #leaderboard-table tr:nth-child(3) td:first-child { border-left:2px solid #C0C0C0 !important; color:#C0C0C0 !important; font-weight:900; }
#body-main #leaderboard-table tr:nth-child(4) td:first-child { border-left:2px solid #CD7F32 !important; color:#CD7F32 !important; font-weight:900; }


/* 默认 */
#body-main #leaderboard-table td:last-child {
    color: var(--primary) !important;
    font-weight: 700;
}

/* 前三名覆盖（用金银铜） */
#body-main #leaderboard-table tr:nth-child(2) td:last-child { color:#FFD700 !important; font-weight:900; }
#body-main #leaderboard-table tr:nth-child(3) td:last-child { color:#C0C0C0 !important; font-weight:900; }
#body-main #leaderboard-table tr:nth-child(4) td:last-child { color:#CD7F32 !important; font-weight:900; }

/* ===== Hover ===== */
#body-main #leaderboard-table tr:hover td {
    background: rgba(57,255,255,0.12) !important;
}



/* =========================================
   个人资料与设置 (PROFILE & SETTING) 修复版
========================================= */

/* --- 整体容器美化 --- */
#setting-container {
  padding: 20px;
  background-color: #0b0f19;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
}

/* --- 标题美化 (PROFILE & SETTING) --- */
.setting-header-title {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 15px;
  margin-top: 15px;
  margin-bottom: 25px !important; /* 这里已经合并了间距修复 */
  border-left: 4px solid #00FFFF !important; 
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.15) 0%, transparent 100%);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
  border-bottom: none !important;
}

/* --- 个人信息区域美化 --- */
#user-detail-container {
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.15);
  margin-bottom: 35px;
}

/* --- 下方设置按钮美化 --- */
.btn-setting {
  display: flex !important;
  align-items: center;
  padding: 14px 20px;
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff !important;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid #00FFFF !important;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

/* --- 按钮悬停(Hover)发光特效 --- */
.btn-setting:hover {
  background-color: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), inset 0 0 8px rgba(0, 255, 255, 0.2);
  color: #00FFFF !important;
  transform: translateY(-2px);
}

/* --- 按钮点击(Active)特效 --- */
.btn-setting:active {
  transform: translateY(0);
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

/* --- 专门针对 SETTING 下方的按钮容器增加顶部间距 --- */
.title-2 + .d-flex-column {
  margin-top: 20px !important; 
}



/* =========================================
   历史记录 (History / Transactions) 美化 CSS
========================================= */

/* --- 1. 表头美化 (Transactions / Status) --- */
.bg-history-table-header {
    background-color: rgba(0, 255, 255, 0.1) !important; /* 青蓝微透背景 */
    color: #00FFFF !important; /* 青蓝文字 */
    border: 1px solid rgba(0, 255, 255, 0.2) !important;
    border-bottom: 2px solid #00FFFF !important; /* 底部加粗发光线，增加立体感 */
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* --- 2. 表格单元格基础样式 --- */
td.border-1 {
    border: 1px solid rgba(0, 255, 255, 0.1) !important; /* 替换原本的死板边框 */
    background-color: rgba(11, 16, 26, 0.7); /* 深蓝黑玻璃质感背景 */
    transition: all 0.3s ease; /* 增加动画过渡 */
    color: #e0e0e0;
}

/* 鼠标悬停在整行时的交互光效 */
tr:hover td.border-1 {
    background-color: rgba(0, 255, 255, 0.05);
    box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.05);
}

/* --- 3. 交易详情文字美化 --- */
/* DEPOSIT / WITHDRAWAL 标题 */
.text-history-transaction-type {
    color: #00FFFF !important; /* 统一改成赛博青蓝色 */
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4); /* 文字微发光 */
    letter-spacing: 0.5px;
}

/* 日期与时间 (压低亮度，突出主次关系) */
.text-history-transaction-date-time {
    color: rgba(255, 255, 255, 0.4) !important; 
    font-size: 12px;
    margin-top: 6px;
}

/* 附件/查看凭证链接 (Attachment) */
.text-history-transaction-view-receipt {
    color: #00FFFF !important;
    text-decoration: none !important;
    border-bottom: 1px dashed #00FFFF; /* 虚线底边代替默认下划线更显高级 */
    transition: all 0.3s;
}
.text-history-transaction-view-receipt:hover {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
    text-shadow: 0 0 8px #00FFFF;
}

/* --- 4. 状态指示灯 (LED 霓虹发光效果) --- */
/* 失败 / 取消 (Failed / Cancelled) -> 警示霓虹红 */
.custom-red {
    background-color: #ff2a55 !important;
    box-shadow: 0 0 8px #ff2a55 !important;
}
.custom-text-red {
    color: #ff2a55 !important;
    text-shadow: 0 0 5px rgba(255, 42, 85, 0.5);
}

/* 处理中 (Pending) -> 等待霓虹橙黄 */
.custom-amber {
    background-color: #ffaa00 !important;
    box-shadow: 0 0 8px #ffaa00 !important;
}
.custom-text-amber {
    color: #ffaa00 !important;
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.5);
}

/* (备用) 成功 (Success) -> 通行霓虹绿。如果你后续有成功的状态，可以直接用这两个 class */
.custom-green {
    background-color: #00ff66 !important;
    box-shadow: 0 0 8px #00ff66 !important;
}
.custom-text-green {
    color: #00ff66 !important;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.5);
}




/* =========================================
   手机端专属：VIP 卡片改为左右滑动效果
========================================= */
@media (max-width: 768px) {
    .vip-ranking-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 15px !important;
        padding-bottom: 15px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .vip-ranking-container::-webkit-scrollbar {
        display: none;
    }
    .vip-ranking-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .vip-ranking-container .ranking-item {
        flex: 0 0 85% !important;
        min-width: 260px !important;
        scroll-snap-align: center;
        margin-bottom: 0 !important;
    }
}

/* =========================================
   VIP RANKING 页面赛博朋克美化 CSS
========================================= */

.vip-ranking-hero {
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.05) 0%, rgba(10, 15, 25, 0.8) 100%) !important;
    border: 1px solid rgba(0, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.bg-vip-hero-divider-line {
    background: linear-gradient(90deg, transparent, #00FFFF, transparent) !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
    height: 1px !important;
    border: none;
}

.ranking-item {
    background: rgba(15, 20, 30, 0.7) !important;
    border: 1px solid rgba(0, 255, 255, 0.15) !important;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease-in-out;
}

.ranking-item:hover {
    border-color: #00FFFF !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15) inset, 0 0 20px rgba(0, 255, 255, 0.2);
    transform: translateY(-3px);
}

.bg-vip-current-rank-radio {
    box-shadow: 0 0 8px var(--vip-current-rank-radio-bg-color, #00ff00) !important;
}

.progressbar.vip-progressbar {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 2px;
    height: 16px !important;
}

.progressbar-inner.bg-vip-progress-bar {
    border-radius: 20px !important;
    box-shadow: 0 0 10px var(--vip-progress-bar-bg-color, #00ff00) !important;
    height: 100% !important;
}

.ranking-bonus-container, .mobile-vip-privileges {
    background: rgba(11, 16, 26, 0.85) !important;
    border: 1px solid rgba(0, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.section-header {
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    letter-spacing: 1px;
}

.section-divider {
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent) !important;
    height: 1px !important;
}

.label-cell, .value-cell {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.value-cell:hover {
    background: rgba(0, 255, 255, 0.05);
    border-radius: 6px;
    cursor: default;
}

.mobile-vip-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    padding-bottom: 15px;
}

.privilege-item {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding: 8px 0;
}


/* =========================================
   🔥 绝对精准狙击：彻底修复 VIP 卡片高度被撑得过长的问题
   ========================================= */

/* 1. 解除容器的强制拉伸 */
.vip-ranking-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 15px !important;
}

/* 2. 锁定每个 ranking-item 的最大高度，强制取消 flex-1 的纵向拉伸 */
.vip-ranking-container .ranking-item {
    flex: 1 1 30% !important;
    height: auto !important;
    min-height: unset !important;
    max-height: max-content !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 20px 15px !important;
}

/* 3. 压缩内部文字块的上下空隙，让它紧凑排列 */
.vip-ranking-container .ranking-details {
    flex: unset !important;
    height: auto !important;
}

.vip-ranking-container .ranking-details .deposit {
    margin-bottom: 8px !important;
}

/* 4. 手机端滚动视图特殊锁定 */
@media (max-width: 768px) {
    .vip-ranking-container {
        flex-wrap: nowrap !important;
    }
    .vip-ranking-container .ranking-item {
        flex: 0 0 85% !important;
        height: auto !important;
    }
}









/* =========================================
   LIVE TRANSACTION (实时交易) 赛博朋克美化
   (零 HTML 修改版 - 自动追踪生效) - V2 修复版
========================================= */

/* 1. 整体容器：暗色玻璃质感 + 霓虹边框 */
div:has(> #table-first-column) {
    background: rgba(11, 16, 26, 0.8) !important; 
    --border-color: rgba(57, 255, 255, 0.15) !important; 
    border: 1px solid rgba(57, 255, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden; 
}

/* 2. 标题栏 (LIVE TRANSACTION) 美化 */
#table-first-column {
    background: linear-gradient(90deg, rgba(57, 255, 255, 0.15) 0%, transparent 100%) !important;
    color: #39FFFF !important;
    text-shadow: 0 0 8px rgba(57, 255, 255, 0.4) !important;
}

/* 3. 顶部的 LIVE 闪烁红标优化 */
#table-first-column .bg-color-red {
    background-color: #ff2a55 !important;
    box-shadow: 0 0 8px rgba(255, 42, 85, 0.6) !important;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* 4. DEPOSIT 和 WITHDRAW 表头背景替换 */
div:has(> #table-first-column) > div:nth-child(2) {
    background: rgba(57, 255, 255, 0.05) !important;
    color: #39FFFF !important;
    text-shadow: 0 0 5px rgba(57, 255, 255, 0.3) !important;
}
div:has(> #table-first-column) > div:nth-child(3) {
    background: rgba(57, 255, 255, 0.1) !important;
    color: #39FFFF !important;
    text-shadow: 0 0 5px rgba(57, 255, 255, 0.3) !important;
}

/* 5. 统一数据文字颜色，降低白字亮度让主次更分明 */
div:has(> #table-first-column) > div:nth-child(n+4) {
    color: #e5e7eb !important; 
    transition: background 0.2s ease, color 0.2s ease;
}

/* 6. ★ 修复金额：改回原版小字号，不再挤压旁边空间 */
div:has(> #table-first-column) > div[style*="color: rgb(250, 255, 0)"] {
    color: #FFB84D !important;
    text-shadow: 0 0 8px rgba(255, 184, 77, 0.5) !important;
    font-size: 11px !important; /* 强制缩小回 11px */
    font-family: inherit !important; /* 移除变胖的等宽字体 */
}

/* 7. ★ 修复 Provider Name 显示不全：解除隐藏限制，自动换行 */
div:has(> #table-first-column) > div:nth-child(5n+3) {
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: break-word !important;
}

/* 8. 鼠标悬停互动光效 (光标扫过单个数据格时发亮) */
div:has(> #table-first-column) > div:nth-child(n+4):hover {
    background: rgba(57, 255, 255, 0.1) !important;
    color: #ffffff !important;
    cursor: default;
}



/* =========================================
   REWARD MALL (商城/积分换购) 赛博朋克美化
========================================= */

/* --- 1. 顶部积分仪表盘 (Coin Container) --- */
#mall-coin-container {
    background: rgba(11, 16, 26, 0.85) !important; /* 替换原本刺眼的亮青色背景 */
    border: 1px solid rgba(57, 255, 255, 0.3) !important;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(57, 255, 255, 0.05) !important;
    padding: 15px 20px !important;
}

#mall-coin-container .coin-title {
    color: #b0b3c1 !important;
    font-weight: 600;
    letter-spacing: 1px;
}

#mall-coin-container .coin-amount {
    color: #39FFFF !important; /* 积分主数字发光 */
    font-size: 24px !important;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(57, 255, 255, 0.5);
}

/* Convert 转换按钮 (替换原来的基础绿色) */
#mall-retrieve-all-btn {
    background: linear-gradient(135deg, #39FFFF, #00b3b3) !important; 
    color: #000 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700;
    padding: 0 20px !important;
    box-shadow: 0 0 12px rgba(57, 255, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
#mall-retrieve-all-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(57, 255, 255, 0.6);
}

/* 分割线 */
#mall-coin-container-hline {
    border: none !important;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 255, 0.5), transparent) !important;
    margin: 15px 0 !important;
}

/* REWARD POINTS 小标题 */
#mall-coin-container .text12.text-md16 {
    color: #39FFFF !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(57, 255, 255, 0.3);
}

/* 输入框容器 */
.reward-point-container {
    background: rgba(0, 0, 0, 0.4) !important; 
    border: 1px solid rgba(57, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
}
.reward-point-container input {
    color: #FFB84D !important; /* 剩余积分数字用金橙色 */
    font-weight: 700;
    font-size: 16px !important;
    background: transparent !important;
    text-shadow: 0 0 5px rgba(255, 184, 77, 0.4);
}

/* --- 2. 商城商品列表 (Mall List & Items) --- */
#mall-list-container {
    gap: 15px !important; /* 给网格增加间距，避免商品粘在一起 */
    padding-top: 20px;
}

/* 商品卡片基础外观 */
.mall-item {
    background: rgba(18, 24, 38, 0.8) !important; /* 替换死白底色，改为深蓝黑 */
    border: 1px solid rgba(57, 255, 255, 0.15) !important;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* 鼠标悬停卡片上浮发光 */
.mall-item:hover {
    border-color: #39FFFF !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5), inset 0 0 15px rgba(57, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* 图片区域背景压暗 */
.mall-item > div:first-child {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 商品标题文字 */
.mall-item-title {
    color: #ffffff !important; /* 替换原本的纯黑字 */
    font-weight: 600;
    padding: 10px 10px 5px 10px;
    min-height: 24px;
}

/* 底部兑换区排版优化 */
.mall-point-redeem-section {
    padding: 12px 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

/* 商品售价 (分数) */
.mall-point {
    color: #FFB84D !important; /* 把原本的黑字改成亮眼的电竞橙金 */
    font-weight: 800;
    font-size: 15px;
    text-shadow: 0 0 8px rgba(255, 184, 77, 0.3);
}

/* Redeem (兑换) 按钮美化 */
.redeem-btn {
    background: rgba(57, 255, 255, 0.05) !important; /* 替换难看的土黄色 */
    border: 1px solid #39FFFF !important;
    color: #39FFFF !important;
    border-radius: 6px !important;
    font-weight: 700;
    padding: 6px 16px !important;
    transition: all 0.3s ease;
}

/* 兑换按钮悬停：反转为实心青光 */
.redeem-btn:hover {
    background: #39FFFF !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(57, 255, 255, 0.5);
    border-color: transparent !important;
}



/* =========================================
   SIDEMENU (侧边栏) 静态高级感美化版
   (注重默认状态下的 3D 质感、色彩与层次)
========================================= */

/* -----------------------------------------
   1. 充值 / 提现 (Deposit / Withdraw) 实体质感按键
----------------------------------------- */
.sidemenu-grid > div[role="button"] {
    /* 默认状态就带有的深空渐变蓝 */
    background: linear-gradient(145deg, #1e2a3a 0%, #111824 100%) !important;
    
    /* 顶部亮、底部暗的 3D 边框感 */
    border: 1px solid rgba(57, 255, 255, 0.1) !important;
    border-top: 1px solid rgba(57, 255, 255, 0.4) !important; 
    
    /* 常驻的外阴影悬浮感 + 内发光 */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 2px 8px rgba(57, 255, 255, 0.05) !important;
    
    border-radius: 14px !important;
    transition: all 0.3s ease !important;
}

/* 充提文字默认高亮，图标自带环境光 */
.sidemenu-grid > div[role="button"] div {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}
.sidemenu-grid > div[role="button"] img {
    filter: drop-shadow(0 4px 6px rgba(0, 255, 255, 0.2)) !important;
}

/* 充提轻微悬停反馈 */
.sidemenu-grid > div[role="button"]:hover {
    background: linear-gradient(145deg, #243649 0%, #151e2d 100%) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(57, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* -----------------------------------------
   2. 分割线 (Divider) 质感升级
----------------------------------------- */
/* 隐藏掉原生难看的死灰线，重新画一条渐变线 */
.sidemenu-grid + div {
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 255, 0.3), transparent) !important;
    border: none !important;
    margin: 20px 0 !important;
    box-shadow: 0 0 5px rgba(57, 255, 255, 0.2) !important;
}

/* -----------------------------------------
   3. 导航菜单 (Menu Items) 常驻玻璃渐变
----------------------------------------- */
.mb-3 .menu_button:not(#sidemenu-logout) {
    /* 默认状态就有的微光渐变，取代死板的单色底 */
    background: linear-gradient(90deg, rgba(31, 46, 61, 0.7) 0%, rgba(20, 30, 45, 0.2) 100%) !important;
    
    /* 默认自带左侧微光标识线 */
    border: 1px solid rgba(255, 255, 255, 0.02) !important;
    border-left: 3px solid rgba(57, 255, 255, 0.4) !important;
    
    border-radius: 12px !important;
    margin-bottom: 6px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

/* 默认文字和图标提升清晰度和质感 */
.mb-3 .menu_button:not(#sidemenu-logout) span {
    color: #e2e8f0 !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
}
.mb-3 .menu_button:not(#sidemenu-logout) img {
    opacity: 0.85 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) !important;
}

/* 悬停互动保持丝滑 */
.mb-3 .menu_button:not(#sidemenu-logout):hover {
    background: linear-gradient(90deg, rgba(31, 46, 61, 0.9) 0%, rgba(20, 30, 45, 0.4) 100%) !important;
    border-left: 3px solid #00ffff !important;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.1) !important;
    transform: translateX(4px) !important;
}
.mb-3 .menu_button:not(#sidemenu-logout):hover span {
    color: #ffffff !important;
}
.mb-3 .menu_button:not(#sidemenu-logout):hover img {
    opacity: 1 !important;
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.5)) !important;
}

/* -----------------------------------------
   4. 登出按钮 (LOG OUT) 高级警示红
----------------------------------------- */
#sidemenu-logout {
    /* 默认状态带有血红色微渐变 */
    background: linear-gradient(90deg, rgba(255, 77, 79, 0.1) 0%, rgba(255, 77, 79, 0.02) 100%) !important;
    border: 1px solid rgba(255, 77, 79, 0.2) !important;
    border-left: 3px solid #ff4d4f !important;
    
    border-radius: 12px !important;
    color: #ff4d4f !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    margin-top: 15px !important;
    transition: all 0.3s ease !important;
}

#sidemenu-logout:hover {
    background: linear-gradient(90deg, rgba(255, 77, 79, 0.8) 0%, rgba(255, 77, 79, 0.6) 100%) !important;
    color: #ffffff !important;
    border-color: #ff4d4f !important;
    box-shadow: 0 4px 15px rgba(255, 77, 79, 0.3) !important;
    transform: translateX(4px) !important;
}





/* =========================================
   LOGIN 页面：电脑端居中 + 赛博深海玻璃质感
   (完美覆盖 bg-white, text-black 和行内样式)
========================================= */

/* --- 1. 把整个 Form Wrapper 变成悬浮居中的玻璃卡片 --- */
.form-wrapper.block {
    max-width: 480px !important; /* 电脑端控制宽度 */
    margin: 60px auto !important; /* 上下留白，水平居中 */
    height: auto !important; /* 覆盖原来的 h-100，让卡片高度自适应内容 */
    background: rgba(15, 23, 33, 0.85) !important; /* 深空蓝微透背景 */
    border: 1px solid rgba(57, 255, 255, 0.2) !important; /* 霓虹微边框 */
    border-radius: 16px !important; /* 圆角 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(57, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    padding: 40px 30px !important;
    box-sizing: border-box;
}

/* --- 2. Login 标题发光特效 --- */
#login-title {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #39ffff !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    text-shadow: 0 0 15px rgba(57, 255, 255, 0.5) !important;
}

/* --- 3. 标签文字 (Mobile No. / Password) 颜色弱化 --- */
.text15 .mb-10 {
    color: #b0c4de !important; /* 替换原本的纯白，用灰蓝色提升质感 */
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    margin-bottom: 8px !important;
}

/* --- 4. 强制消灭丑陋的白底输入框 (bg-white 覆盖) --- */
.form-wrapper .bg-white {
    background: rgba(0, 0, 0, 0.4) !important; /* 强制替换成深色半透 */
    border: 1px solid rgba(57, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

/* 输入框聚焦时的全息发光边缘 */
.form-wrapper .bg-white:focus-within {
    border-color: #39ffff !important;
    box-shadow: 0 0 12px rgba(57, 255, 255, 0.3), inset 0 0 5px rgba(0, 0, 0, 0.5) !important;
    background: rgba(20, 32, 47, 0.9) !important;
}

/* 输入框本体文字颜色 (text-black 覆盖) */
#username_or_phone, #password {
    color: #ffffff !important; /* 强制白字 */
    background: transparent !important;
    font-size: 15px !important;
    padding: 14px 15px !important;
    width: 100% !important;
}

/* 占位符颜色变暗 */
#username_or_phone::placeholder, #password::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* 密码小眼睛图标美化 */
.toggle-password-icon {
    color: #39ffff !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}
.toggle-password-icon:hover {
    opacity: 1 !important;
    filter: drop-shadow(0 0 6px rgba(57, 255, 255, 0.8)) !important;
}

/* --- 5. 主登录按钮 (LOGIN) 充能特效 --- */
#login-submit-btn {
    background: linear-gradient(135deg, #39ffff 0%, #00b3b3 100%) !important;
    color: #000 !important; /* 黑字撞色更显眼 */
    font-weight: 900 !important;
    font-size: 16px !important;
    letter-spacing: 2px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(57, 255, 255, 0.3) !important;
    padding: 16px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}
#login-submit-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(57, 255, 255, 0.5) !important;
    background: linear-gradient(135deg, #7df9ff 0%, #39ffff 100%) !important;
}

/* --- 6. 注册区域文字 (Do not have an account yet?) --- */
.text-color-white .lh-sm {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    margin-bottom: 15px !important;
    margin-top: 20px !important;
}

/* --- 7. 注册按钮 (REGISTER) 工业骇客风绿框 --- */
#login-register-btn {
    background: rgba(2, 186, 10, 0.05) !important;
    color: #02ba0a !important; /* 原生绿色 */
    border: 1px solid rgba(2, 186, 10, 0.5) !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    letter-spacing: 1px !important;
    border-radius: 12px !important;
    padding: 14px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}
#login-register-btn:hover {
    background: #02ba0a !important;
    color: #ffffff !important;
    border-color: #02ba0a !important;
    box-shadow: 0 4px 20px rgba(2, 186, 10, 0.4) !important;
    transform: translateY(-2px) !important;
}
/* 确保注册按钮满宽对齐 */
.d-flex.mb-3:has(> #login-register-btn) {
    width: 100% !important;
}

/* --- 8. 忘记密码 (Forgot Password) 发光交互 --- */
#login-forgot-password {
    color: #39ffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: 0.8 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 20px !important;
    width: 100% !important;
}
#login-forgot-password:hover {
    opacity: 1 !important;
    text-shadow: 0 0 10px rgba(57, 255, 255, 0.8) !important;
}
#login-forgot-password svg {
    margin-left: 8px !important;
    transition: transform 0.3s ease !important;
}
#login-forgot-password:hover svg {
    transform: translateX(5px) !important; /* 箭头微动效果 */
}

/* --- 9. 手机端自适应排版 --- */
@media (max-width: 768px) {
    .form-wrapper.block {
        margin: 30px auto !important;
        width: 92% !important;
        padding: 30px 20px !important;
    }
}

/* =========================================
   修复浏览器自动填充 (Autofill) 导致的黑字白底问题
========================================= */

#username_or_phone:-webkit-autofill,
#password:-webkit-autofill,
#username_or_phone:-webkit-autofill:hover,
#password:-webkit-autofill:hover,
#username_or_phone:-webkit-autofill:focus,
#password:-webkit-autofill:focus,
#username_or_phone:-webkit-autofill:active,
#password:-webkit-autofill:active {
    /* 强制把自动填充的文字变成白色 */
    -webkit-text-fill-color: #ffffff !important; 
    
    /* 用极厚的深蓝黑内阴影，强制覆盖掉浏览器自带的黄色/白色自动填充背景 */
    -webkit-box-shadow: 0 0 0px 1000px rgb(20, 30, 45) inset !important; 
    
    /* 附加一点过渡，让背景不要闪烁 */
    transition: background-color 5000s ease-in-out 0s !important; 
    
    /* 确保字体大小保持一致 */
    font-size: 15px !important;
}




/* =========================================
   REGISTER 注册页面：深海赛博玻璃质感
   (完美覆盖内联白底、修复手机端排版与自动填充)
========================================= */

/* --- 1. 把整个 Register Wrapper 变成悬浮居中的玻璃卡片 --- */
#register-form-wrapper.form-wrapper.block {
    max-width: 550px !important; /* 电脑端控制宽度 */
    margin: 60px auto !important; /* 上下留白，水平居中 */
    height: auto !important; 
    background: rgba(15, 23, 33, 0.85) !important; /* 深空蓝微透背景 */
    border: 1px solid rgba(57, 255, 255, 0.2) !important; /* 霓虹微边框 */
    border-radius: 16px !important; 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(57, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    padding: 40px 35px !important;
    box-sizing: border-box;
}

/* --- 2. 表单左侧标签 (Username, Full Name 等) --- */
#register-form-wrapper .d-grid > .d-flex.align-items-center {
    color: #b0c4de !important; /* 替换原本的纯白，用灰蓝色提升高级感 */
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

/* 隐藏中间多余的冒号 (:) 显得更现代 */
#register-form-wrapper .d-grid > .d-flex-center.ps-2.pe-2 {
    color: rgba(255, 255, 255, 0.1) !important;
}

/* --- 3. 强制消灭丑陋的白底输入框 (覆盖 rgb 255) --- */
#register-form-wrapper .list[style*="rgb(255, 255, 255)"] {
    background: rgba(0, 0, 0, 0.4) !important; /* 强制替换成深色半透 */
    border: 1px solid rgba(57, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

/* 输入框聚焦时的全息发光边缘 */
#register-form-wrapper .list[style*="rgb(255, 255, 255)"]:focus-within {
    border-color: #39ffff !important;
    box-shadow: 0 0 12px rgba(57, 255, 255, 0.3), inset 0 0 5px rgba(0, 0, 0, 0.5) !important;
    background: rgba(20, 32, 47, 0.9) !important;
}

/* 输入框本体文字颜色覆盖 */
#register-form-wrapper input {
    color: #ffffff !important; /* 强制白字 */
    background: transparent !important;
    font-size: 14px !important;
    padding: 12px 15px !important;
    width: 100% !important;
}

/* 占位符颜色变暗 */
#register-form-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

/* --- 4. 温馨提示 (*Must be the same as your bank...) --- */
#register-form-wrapper .text12.text-md16 {
    color: #ffb84d !important; /* 警示金橙色 */
    font-size: 11px !important;
    margin-top: 6px !important;
    text-shadow: 0 0 5px rgba(255, 184, 77, 0.4) !important;
}

/* 密码小眼睛图标美化 */
#register-form-wrapper .toggle-password-icon {
    color: #39ffff !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}
#register-form-wrapper .toggle-password-icon:hover {
    opacity: 1 !important;
    filter: drop-shadow(0 0 6px rgba(57, 255, 255, 0.8)) !important;
}

/* --- 5. 注册按钮 (REGISTER) 充能绿光特效 --- */
#register-submit-btn {
    background: linear-gradient(135deg, #02ba0a 0%, #00ff33 100%) !important; /* 赛博霓虹绿 */
    color: #000 !important; /* 黑字撞色更显眼 */
    font-weight: 900 !important;
    font-size: 16px !important;
    letter-spacing: 2px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(2, 186, 10, 0.3) !important;
    padding: 16px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    margin-top: 15px !important;
}
#register-submit-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(2, 186, 10, 0.5) !important;
    background: linear-gradient(135deg, #00ff33 0%, #02ba0a 100%) !important;
}

/* --- 6. 底部登录区域 (Already Have An Account?) --- */
#register-form-wrapper .lh-sm.mb-12 {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    margin-bottom: 12px !important;
    margin-top: 15px !important;
}

/* 去登录 (Login here) 链接发光交互 */
#register-login-here {
    color: #39ffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    opacity: 0.8 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}
#register-login-here:hover {
    opacity: 1 !important;
    text-shadow: 0 0 10px rgba(57, 255, 255, 0.8) !important;
    letter-spacing: 1px !important;
}
#register-login-here svg {
    margin-left: 8px !important;
    transition: transform 0.3s ease !important;
}
#register-login-here:hover svg {
    transform: translateX(5px) !important;
}


/* =========================================
   修复浏览器自动填充 (Autofill) 导致的黑字白底问题
========================================= */
#register-form-wrapper input:-webkit-autofill,
#register-form-wrapper input:-webkit-autofill:hover,
#register-form-wrapper input:-webkit-autofill:focus,
#register-form-wrapper input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important; 
    -webkit-box-shadow: 0 0 0px 1000px rgb(20, 30, 45) inset !important; 
    transition: background-color 5000s ease-in-out 0s !important; 
    font-size: 14px !important;
}


/* =========================================
   手机端自适应排版优化 (非常重要)
========================================= */
@media (max-width: 768px) {
    #register-form-wrapper.form-wrapper.block {
        margin: 30px auto !important;
        width: 92% !important;
        padding: 30px 20px !important;
    }
    
    /* 强行改变原本的水平 Grid 排版，变成上下排列，防止手机端字挤在一起 */
    #register-form-wrapper .d-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }
    
    /* 隐藏冒号 */
    #register-form-wrapper .d-grid > .d-flex-center.ps-2.pe-2 {
        display: none !important;
    }
    
    /* 调整下划线/间距 */
    #register-form-wrapper .icon12.grid-full {
        height: 15px !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
        margin-bottom: 10px;
    }
}



/* =========================================
   👑 VIP 卡片精简美化：紧凑排版
========================================= */

/* 1. 减少整体容器的间距 */
.vip-ranking-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 12px !important;
}

/* 2. 减小卡片自身的内边距，让它变矮、变精致 */
.vip-ranking-container .ranking-item {
    flex: 1 1 30% !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    
    padding: 15px 12px !important; /* 缩小上下左右边距 */
    border-radius: 12px !important;
}

/* 3. 皇冠和等级名字的间距变小 */
.vip-ranking-container .ranking-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 8px !important; /* 缩短与下方数据的距离 */
}

/* 4. 缩小皇冠图标的尺寸，让卡片看起来更轻量 */
.vip-ranking-container .ranking-logo img,
.vip-ranking-container .image-container {
    width: 60px !important;
    height: 60px !important;
}

/* 5. 数据列表的上下间距压缩 */
.vip-ranking-container .ranking-details {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important; /* 缩小行与行之间的空隙 */
}

.vip-ranking-container .ranking-details .deposit {
    display: flex !important;
    justify-content: space-between !important;
    background: rgba(0, 0, 0, 0.25) !important;
    padding: 6px 10px !important; /* 缩小单行内部的上下留白 */
    border-radius: 6px !important;
    margin-bottom: 0 !important;
    font-size: 13px !important; /* 字稍微改小一点点，更精致 */
}

/* 6. 手机端横向滑动 */
@media (max-width: 768px) {
    .vip-ranking-container {
        flex-wrap: nowrap !important;
    }
    .vip-ranking-container .ranking-item {
        flex: 0 0 85% !important;
    }
}


/* =========================================
   CHANGE PASSWORD 修改密码页面：完美同步 Login 样式
========================================= */

/* --- 1. 把 Change Password 的卡片变成和 Login 一模一样的居中玻璃浮窗 --- */
#resetPassword-title + div,
div:has(> #resetPassword-title) {
    /* 适配你 Change Password 的容器包装 */
}

/* 统一用 Login 卡片的尺寸和毛玻璃规格包裹 */
.form-wrapper:has(#resetPassword-title) {
    max-width: 480px !important;
    margin: 60px auto !important;
    height: auto !important;
    background: rgba(15, 23, 33, 0.85) !important;
    border: 1px solid rgba(57, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(57, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    padding: 40px 30px !important;
    box-sizing: border-box;
}

/* --- 2. CHANGE PASSWORD 标题发光特效 --- */
#resetPassword-title {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #39ffff !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    text-shadow: 0 0 15px rgba(57, 255, 255, 0.5) !important;
    border-bottom: none !important;
}

/* --- 3. 标签文字 (Current Password, New Password 等) 颜色与排版优化 --- */
.main-wrapper .d-grid > div:nth-child(odd) {
    color: #b0c4de !important; /* 灰蓝色高质感标签 */
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

/* 隐藏中间多余的冒号 */
.main-wrapper .d-grid > div:nth-child(even) {
    color: rgba(255, 255, 255, 0.1) !important;
}

/* --- 4. 强制消灭丑陋的白底输入框 (bg-white 覆盖) --- */
.form-wrapper .list[style*="rgb(255, 255, 255)"] {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(57, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

/* 输入框聚焦时的全息发光边框 */
.form-wrapper .list[style*="rgb(255, 255, 255)"]:focus-within {
    border-color: #39ffff !important;
    box-shadow: 0 0 12px rgba(57, 255, 255, 0.3), inset 0 0 5px rgba(0, 0, 0, 0.5) !important;
    background: rgba(20, 32, 47, 0.9) !important;
}

/* 输入框本体文字强制变白 */
.form-wrapper input[type="password"] {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 15px !important;
    padding: 14px 15px !important;
    width: 100% !important;
}

/* 占位符透明度降低 */
.form-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* 小眼睛图标统一样式 */
.form-wrapper .toggle-password-icon {
    color: #39ffff !important;
    opacity: 0.7 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}
.form-wrapper .toggle-password-icon:hover {
    opacity: 1 !important;
    filter: drop-shadow(0 0 6px rgba(57, 255, 255, 0.8)) !important;
}

/* --- 5. SUBMIT 按钮 (青色霓虹充能风格) --- */
#changePassword-submit-btn {
    background: linear-gradient(135deg, #39ffff 0%, #00b3b3 100%) !important;
    color: #000000 !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    letter-spacing: 2px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(57, 255, 255, 0.3) !important;
    padding: 16px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}
#changePassword-submit-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(57, 255, 255, 0.5) !important;
    background: linear-gradient(135deg, #7df9ff 0%, #39ffff 100%) !important;
}

/* --- 6. 切换修改方式按钮 (绿框骇客风) --- */
#changePassword-change-method-btn {
    background: rgba(2, 186, 10, 0.05) !important;
    color: #02ba0a !important;
    border: 1px solid rgba(2, 186, 10, 0.5) !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    letter-spacing: 1px !important;
    border-radius: 12px !important;
    padding: 14px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}
#changePassword-change-method-btn:hover {
    background: #02ba0a !important;
    color: #ffffff !important;
    border-color: #02ba0a !important;
    box-shadow: 0 4px 20px rgba(2, 186, 10, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* --- 7. 手机端适配调整 --- */
@media (max-width: 768px) {
    .form-wrapper:has(#resetPassword-title) {
        margin: 30px auto !important;
        width: 92% !important;
        padding: 30px 20px !important;
    }
    
    /* 手机端让网格布局变成上下排列，防止挤压 */
    .main-wrapper .d-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    .main-wrapper .d-grid > div:nth-child(even) {
        display: none !important; /* 隐藏冒号 */
    }
    .main-wrapper .d-grid .icon12.grid-full {
        height: 12px !important;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
        margin-bottom: 8px;
    }
}


/* =========================================
   RESET PASSWORD 页面：强制输入框文字改为白色
========================================= */

/* 1. 覆盖输入框内由 text-black 导致的黑色字体 */
#resetPassword-form-wrapper input,
.form-wrapper:has(#resetPassword-title) input,
input#phone {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* 2. 覆盖自动填充时的黑字白底问题 */
#resetPassword-form-wrapper input:-webkit-autofill,
input#phone:-webkit-autofill,
#resetPassword-form-wrapper input:-webkit-autofill:hover,
#resetPassword-form-wrapper input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px rgb(20, 30, 45) inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}