/* ===========================
   我的页面 — 深色玻璃态
=========================== */

/* 头部：深蓝渐变 + 氛围光 */
.profile-header {
  background: linear-gradient(135deg, #0B1426 0%, #0F1F3D 50%, #162B4E 100%);
  padding: 28px 20px 24px; position: relative; overflow: hidden;
  margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.profile-header::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(0,230,138,0.08) 0%, transparent 70%);
}
.profile-header::after {
  content: ''; position: absolute; bottom: -30px; left: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(0,180,110,0.05) 0%, transparent 70%);
}
.profile-deco-ball {
  position: absolute; top: 12px; left: 16px; opacity: 0.18;
  transform: rotate(-30deg); z-index: 0;
}

/* 左侧：头像 + 用户名 + ID */
.profile-left {
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index:1; cursor: pointer;
}
.profile-avatar {
  width: clamp(48px, 16vw, 58px); height: clamp(48px, 16vw, 58px); border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--icon-2xl); font-weight: 800; color: var(--text-main);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border: none;
  flex-shrink: 0;
  position: relative;
}
.profile-avatar::before {
  content: ''; position: absolute; inset: -2.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #00C485);
  z-index: -1;
}
.profile-user-info { display: flex; flex-direction: column; gap: 2px; }
.profile-name {
  font-size: var(--fs-lg); font-weight: 800; color: var(--text-main);
  letter-spacing: -0.3px; line-height: 1.3;
}
.profile-id { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 500; }

/* 右侧：余额卡片 */
.profile-right {
  display: flex; align-items: center; justify-content: flex-end;
  position: relative; z-index:1; margin-top: -8px;
}
.profile-balance-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 10px 18px;
  text-align: right;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.profile-balance-label {
  font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600;
  letter-spacing: 0.3px; text-transform: uppercase;
}
.profile-balance-value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl); font-weight: 900; color: var(--text-main);
  letter-spacing: -0.6px; line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,230,138,0.15);
}

/* 快捷操作按钮行 */
.profile-quick-actions {
  display: flex; gap: 12px;
  margin: 12px 18px; position: relative; z-index:1;
}
.profile-action-btn {
  flex:1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 12px 4px 10px;
  cursor: pointer; transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.profile-action-btn i { font-size: var(--icon-xl); color: var(--text-main); }
.profile-action-btn:nth-child(1) i { color: #F59E0B; }
.profile-action-btn:nth-child(2) i { color: #EF4444; }
.profile-action-btn:nth-child(3) i { color: #10B981; }
.profile-action-btn span {
  font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.3px;
}
.profile-action-btn:active {
  transform: scale(0.96);
  background: rgba(255,255,255,0.08);
}

/* 移除旧的三栏统计样式（已废弃） */
.profile-stats,
.profile-stat,
.profile-stat-value,
.profile-stat-label { display: none !important; }

/* 菜单列表 */
.profile-menu { padding: 16px 18px; }
.profile-menu-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.profile-menu-item:active {
  background: rgba(255,255,255,0.08); transform: scale(0.99);
}
.profile-menu-left { display: flex; align-items: center; gap: 14px; }
.profile-menu-icon {
  width: clamp(34px, 11vw, 40px); height: clamp(34px, 11vw, 40px); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--icon-lg); color: #0D0D1A;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}
.profile-menu-text { font-size: var(--fs-md); font-weight: 700; color: var(--text-main); }
.profile-menu-sub { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; font-weight: 500; }
.profile-menu-right { color: var(--text-light); font-size: var(--fs-md); }

/* ===========================
   VIP 等级 & 进度条
=========================== */
.profile-vip-section {
  margin: 0 18px 12px; padding: 18px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  position: relative; z-index:1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s;
}
.profile-vip-section:active {
  background: rgba(255,255,255,0.08);
  transform: scale(0.99);
}

/* VIP 卡片顶部：徽章 + 箭头 */
.profile-vip-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.profile-vip-arrow {
  color: var(--text-light); font-size: var(--icon-md);
  display: flex; align-items: center;
}

.vip-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #B8860B 0%, #FFD700 50%, #DAA520 100%);
  padding: 6px 16px 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(218,165,32,0.25),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.vip-crown {
  font-size: var(--icon-md); color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  display: flex; align-items: center;
}
.vip-level-text {
  font-size: var(--fs-sm); color: rgba(255,255,255,0.9);
  font-weight: 600; letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.vip-level-text strong { font-size: var(--fs-xl); color: #fff; margin-left: 3px; }

.progress-group { display: flex; flex-direction: column; gap: 14px; }
.progress-item { }
.progress-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.progress-label {
  font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.progress-label i { font-size: var(--icon-sm); }
.progress-value {
  font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600;
}
.progress-track {
  width: 100%; height: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px; overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
.progress-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.22,1,0.36,1);
}
.recharge-fill {
  background: var(--gold);
}
.bet-fill {
  background: var(--primary);
}
