/* u88lao.com & Royal Online 1688 旗舰高定前端设计系统 (Design System) */

:root {
  /* u88lao 东南亚旗舰暗黑霓虹色系 */
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(22, 31, 48, 0.85);
  --bg-card-hover: rgba(30, 43, 66, 0.95);
  --bg-glass: rgba(15, 23, 42, 0.75);
  
  /* 品牌高定金属与高光 */
  --gold-primary: #ffb800;
  --gold-secondary: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ffb800 50%, #d97706 100%);
  --cyan-neon: #00f0ff;
  --cyan-gradient: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  --green-emerald: #10b981;
  --red-accent: #ef4444;
  --purple-royal: #8b5cf6;

  /* 文字系统 */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* 边框与光影 */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(255, 184, 0, 0.35);
  --border-cyan: rgba(0, 240, 255, 0.35);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow-gold: 0 0 25px rgba(255, 184, 0, 0.35);
  --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* 动画缓动 */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 澳门 1688 威尼斯人 VIP 奢华黑金皮肤模式 */
body.theme-1688-vip {
  --bg-primary: #070709;
  --bg-secondary: #121217;
  --bg-card: rgba(22, 22, 29, 0.9);
  --bg-card-hover: rgba(32, 32, 42, 0.98);
  --gold-primary: #d4af37;
  --gold-secondary: #ffd700;
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #996515 100%);
  --border-gold: rgba(212, 175, 55, 0.45);
  --shadow-glow-gold: 0 0 30px rgba(212, 175, 55, 0.4);
}

/* 基础重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', 'Noto Sans SC', 'Noto Sans Lao', 'Noto Sans Thai', -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(255, 184, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(0, 240, 255, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 0, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* 顶部跑马灯与状态栏 */
.top-bar {
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 50;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.marquee-badge {
  background: linear-gradient(90deg, rgba(16, 20, 30, 0.98), rgba(44, 34, 12, 0.98));
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  box-shadow: 10px 0 12px rgba(8, 12, 20, 0.96);
}

.marquee-content {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 12px), transparent 100%);
  animation: marquee 25s linear infinite;
  font-size: 12px;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.lang-btn.active, .lang-btn:hover {
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
}

.theme-switch-btn {
  background: linear-gradient(90deg, #d4af37, #ffd700);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  transition: var(--transition-fast);
}

.theme-switch-btn:hover {
  transform: scale(1.05);
}

/* 主导航 Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--gold-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #000;
  box-shadow: var(--shadow-glow-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #ffffff, #ffb800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 10px;
  color: var(--cyan-neon);
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
}

/* 主导航列表 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
}

.nav-item:hover, .nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

.badge-tag {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
}
.badge-hot { background: #ef4444; color: #fff; }
.badge-new { background: #10b981; color: #fff; }
.badge-live { background: #00f0ff; color: #000; }

/* 头部右侧用户状态与快捷操作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.wallet-label {
  font-size: 11px;
  color: var(--gold-primary);
  font-weight: 700;
}

.wallet-balance {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.btn-refresh-balance {
  color: var(--gold-primary);
  transition: transform 0.3s;
}
.btn-refresh-balance:hover {
  transform: rotate(180deg);
}

.btn-action-primary {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glow-gold);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 184, 0, 0.6);
}

.btn-action-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-action-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 主内容容器 */
.app-container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Hero 旗舰展示轮播 */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.hero-slider-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 20, 0.95) 10%, rgba(8, 12, 20, 0.2) 60%, transparent 100%);
  z-index: 1;
}

.hero-decor-art {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 320px;
  height: 320px;
  opacity: 0.85;
  z-index: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(255, 184, 0, 0.4));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 184, 0, 0.2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-btn-group {
  display: flex;
  gap: 14px;
}

/* 侧边实时奖池与大赢家看板 */
.hero-side-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jackpot-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow-gold);
}

.jackpot-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.jackpot-value {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  margin: 8px 0;
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.8);
  font-family: 'Cinzel', monospace, sans-serif;
}

.winners-list-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.winners-header {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.winner-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.winner-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 184, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 11px;
}

.winner-amount {
  color: var(--green-emerald);
  font-weight: 800;
}

/* 分类专区通用 Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
}

.section-tag {
  color: var(--gold-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-more-link {
  color: var(--cyan-neon);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}
.view-more-link:hover {
  transform: translateX(4px);
}

/* 体育滚球卡片网格 */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.match-league {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.match-live-tag {
  color: #ef4444;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-score {
  font-size: 16px;
  font-weight: 900;
  color: var(--cyan-neon);
}

.odds-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.odd-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-fast);
}

.odd-btn:hover, .odd-btn.selected {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan-neon);
}

.odd-label {
  font-size: 10px;
  color: var(--text-muted);
}

.odd-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-primary);
  margin-top: 2px;
}

/* 真人百家乐桌台与路单网格 */
.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.table-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow-gold);
}

.table-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
}

.table-id-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dealer-info {
  font-size: 12px;
  color: var(--text-secondary);
}

.table-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 14px;
  gap: 14px;
}

.dealer-stream-preview {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  height: 120px;
}

.dealer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.countdown-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 900;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.roadmap-preview-box {
  background: #05070a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 珠盘路与大路 Canvas/Grid */
.roadmap-bead-matrix {
  display: grid;
  grid-template-rows: repeat(6, 16px);
  grid-auto-flow: column;
  gap: 2px;
}

.bead-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
}
.bead-banker { background: #ef4444; }
.bead-player { background: #3b82f6; }
.bead-tie { background: #10b981; }

.table-footer {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-limits {
  font-size: 11px;
  color: var(--text-muted);
}

/* 电子游艺 (PG Soft, SlotXO) 网格 */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .slot-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  }
}

.slot-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 正方形海报 */
  background: #000;
  overflow: hidden;
}

.slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .slot-card:hover .slot-img {
    transform: scale(1.08);
  }
}

.slot-rtp-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid var(--green-emerald);
  color: var(--green-emerald);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.slot-hover-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .slot-card:hover .slot-hover-mask {
    opacity: 1;
  }
}

.btn-slot-play {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  touch-action: manipulation;
}

.btn-slot-demo {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.slot-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slot-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-provider {
  font-size: 11px;
  color: var(--text-muted);
}

/* 棋牌、捕鱼、彩票、斗鸡卡片通用组件 */
.game-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-glow-gold);
}

.feature-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 184, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gold-primary);
}

.feature-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.feature-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 澳门 1688 百家乐 VIP 对讲与 3D 筹码下注大厅专用组件 */
.vip-table-arena {
  background: radial-gradient(circle at 50% 30%, #151822 0%, #070709 100%);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

.baccarat-felt {
  background: radial-gradient(ellipse at center, #0f381f 0%, #061c0d 100%);
  border: 8px solid #2d1e12;
  border-radius: 40px;
  padding: 30px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
  position: relative;
}

.betting-zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.bet-zone {
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(255, 215, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bet-zone:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--gold-primary);
}

.zone-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}
.zone-payout {
  font-size: 12px;
  color: var(--gold-primary);
  margin-top: 4px;
  font-weight: 700;
}
.zone-bet-amt {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  margin-top: 6px;
}

/* 3D 陶瓷筹码叠放器 */
.chip-rack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  max-width: 720px;
  margin: 0 auto;
}

.chip-item {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  border: 3px dashed rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.chip-item:hover, .chip-item.active {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 12px 20px rgba(255, 184, 0, 0.6);
}

.chip-10 { background: #3b82f6; }
.chip-50 { background: #10b981; }
.chip-100 { background: #ef4444; }
.chip-500 { background: #8b5cf6; }
.chip-1k { background: #f59e0b; }
.chip-5k { background: #06b6d4; }
.chip-10k { background: #ec4899; }
.chip-50k { background: #1e293b; border-color: var(--gold-primary); color: var(--gold-primary); }

.stacked-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.8);
  border: 1px solid #fff;
}

/* 3D 咪牌模态视窗 (Interactive Card Squeeze) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-content-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  position: relative;
}

.modal-header {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-primary);
}

.btn-close-modal {
  font-size: 20px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.btn-close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
}

/* 3D 扑克牌咪牌实体 */
.squeeze-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.poker-card-3d {
  width: 190px;
  height: 270px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid #cbd5e1;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  cursor: grab;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  user-select: none;
}

.poker-card-back {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, #1e3a8a, #1e3a8a 10px, #1e40af 10px, #1e40af 20px);
  border: 8px solid #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poker-card-face {
  position: absolute;
  inset: 0;
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-rank {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.card-suit {
  font-size: 32px;
  line-height: 1;
}

.card-center-symbol {
  font-size: 64px;
  align-self: center;
}

/* 体育投注单 (Bet Slip) 侧边面板 */
.bet-slip-drawer {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  right: max(20px, env(safe-area-inset-right, 0px));
  width: 340px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  z-index: 80;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bet-slip-header {
  padding: 12px 16px;
  background: rgba(0, 240, 255, 0.1);
  border-bottom: 1px solid var(--border-cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan-neon);
}

.bet-slip-body {
  padding: 14px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slip-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
}

.slip-item-top {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: #fff;
}

.slip-item-match {
  color: var(--text-muted);
  font-size: 11px;
}

.bet-slip-footer {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stake-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stake-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}
.stake-input:focus {
  border-color: var(--cyan-neon);
}

.win-return-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.win-return-val {
  color: var(--green-emerald);
  font-weight: 800;
}

/* 个人中心 / 财务中心 选项卡界面 */
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.profile-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.profile-tab-btn:hover, .profile-tab-btn.active {
  background: rgba(255, 184, 0, 0.15);
  color: var(--gold-primary);
  border-left: 3px solid var(--gold-primary);
}

.profile-content-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* 底部 Footer */
.master-footer {
  background: #04060a;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.provider-logos-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0.7;
}

.provider-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .casino-grid {
    grid-template-columns: 1fr;
  }
  .profile-layout {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-wrap: wrap;
  }
  .main-nav {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 6px;
  }
  .sports-grid {
    grid-template-columns: 1fr;
  }
  .betting-zones {
    grid-template-columns: 1fr;
  }
  .chip-rack {
    gap: 8px;
    padding: 10px;
    flex-wrap: wrap;
  }
  .chip-item {
    width: 44px;
    height: 44px;
    font-size: 11px;
  }
}

/* === WAVE B1: U88LAO THAI ROYAL-GOLD & EMERALD REVAMP === */
html[data-font-scale="sm"] {
  --u88-font-scale: 0.92;
  font-size: 14.5px;
}

html[data-font-scale="md"] {
  --u88-font-scale: 1;
  font-size: 16px;
}

html[data-font-scale="lg"] {
  --u88-font-scale: 1.09;
  font-size: 17.5px;
}

body.theme-u88-thai {
  --bg-primary: #FDFBF5;
  --bg-secondary: #F4EFE0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFDF7;
  --bg-glass: rgba(11, 79, 58, 0.95);
  --emerald-deep: #0B4F3A;
  --emerald-mid: #0E6B4E;
  --emerald-dark: #073828;
  --mint-bar: #C9F2E3;
  --gold-primary: #D4A017;
  --gold-secondary: #F5C451;
  --gold-gradient: linear-gradient(135deg, #F5C451 0%, #D4A017 55%, #B8860B 100%);
  --emerald-gradient: linear-gradient(135deg, #0E6B4E 0%, #0B4F3A 100%);
  --cyan-neon: #0E6B4E;
  --cyan-gradient: linear-gradient(135deg, #11825D 0%, #0B4F3A 100%);
  --green-emerald: #0E6B4E;
  --text-primary: #0B3D2E;
  --text-secondary: #2B5949;
  --text-muted: #58786B;
  --border-subtle: rgba(212, 160, 23, 0.3);
  --border-gold: #E5CFA0;
  --border-cyan: rgba(14, 107, 78, 0.35);
  --shadow-card: 0 10px 26px -10px rgba(11, 79, 58, 0.14);
  --shadow-glow-gold: 0 6px 20px rgba(212, 160, 23, 0.28);
  --shadow-glow-cyan: 0 6px 18px rgba(14, 107, 78, 0.22);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(245, 196, 81, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 88% 35%, rgba(14, 107, 78, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 50% 96%, rgba(212, 160, 23, 0.09) 0%, transparent 45%);
  background-attachment: fixed;
}

body.theme-u88-thai::-webkit-scrollbar-track {
  background: #F4EFE0;
}

body.theme-u88-thai::-webkit-scrollbar-thumb {
  background: rgba(14, 107, 78, 0.35);
}

/* Top Utility Capsule Strip */
body.theme-u88-thai .u88-utility-bar {
  background: linear-gradient(90deg, #073828 0%, #0B4F3A 50%, #073828 100%);
  border-bottom: 1px solid rgba(245, 196, 81, 0.35);
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #EAFBF4;
  font-size: 12px;
  position: relative;
  z-index: 62;
}

body.theme-u88-thai .u88-utility-left,
body.theme-u88-thai .u88-utility-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.theme-u88-thai .u88-capsule-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(245, 196, 81, 0.45);
  color: #FFE9A8;
  font-size: 11.5px;
  font-weight: 700;
  transition: var(--transition-fast);
  white-space: nowrap;
}

body.theme-u88-thai .u88-capsule-btn:hover {
  background: rgba(245, 196, 81, 0.22);
  color: #FFFFFF;
}

body.theme-u88-thai .u88-flag-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 6px;
  border-radius: 999px;
  background: rgba(6, 45, 33, 0.9);
  border: 1px solid rgba(245, 196, 81, 0.5);
}

body.theme-u88-thai .u88-flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

body.theme-u88-thai .u88-flag-select select[data-locale],
body.theme-u88-thai .main-header select[data-locale] {
  background: transparent;
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  padding-right: 4px;
}

body.theme-u88-thai .u88-flag-select select[data-locale] option,
body.theme-u88-thai .main-header select[data-locale] option {
  background: #0B4F3A;
  color: #FFFFFF;
}

body.theme-u88-thai .u88-font-capsule {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 196, 81, 0.35);
}

body.theme-u88-thai .u88-font-label {
  font-size: 11px;
  color: #CFECE0;
  font-weight: 600;
  margin-right: 2px;
}

body.theme-u88-thai .u88-font-btn {
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #CFECE0;
  transition: var(--transition-fast);
}

body.theme-u88-thai .u88-font-btn.active,
body.theme-u88-thai .u88-font-btn:hover {
  background: var(--gold-gradient);
  color: #073828;
}

/* Main Deep Emerald Header + Royal Gold Accent */
body.theme-u88-thai .main-header {
  background: linear-gradient(180deg, #0E6B4E 0%, #0B4F3A 100%);
  border-bottom: 2px solid #D4A017;
  box-shadow: 0 8px 24px rgba(11, 79, 58, 0.25);
}

body.theme-u88-thai .brand-title {
  background: linear-gradient(135deg, #FFF3BE 0%, #F5C451 55%, #D4A017 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: 0.4px;
}

body.theme-u88-thai .brand-subtitle {
  color: #CFECE0;
}

body.theme-u88-thai .nav-item {
  color: #EAFBF4;
  border: 1px solid transparent;
}

body.theme-u88-thai .nav-item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

body.theme-u88-thai .nav-item.active {
  color: #073828;
  background: var(--gold-gradient);
  border-color: #FFF3BE;
  box-shadow: 0 4px 12px rgba(245, 196, 81, 0.35);
  font-weight: 800;
}

body.theme-u88-thai .wallet-badge {
  background: rgba(6, 45, 33, 0.85);
  border: 1px solid rgba(245, 196, 81, 0.55);
  color: #FFFFFF;
}

body.theme-u88-thai .wallet-label {
  color: #BBE7D7;
}

body.theme-u88-thai .wallet-balance {
  color: #FFE9A8;
}

body.theme-u88-thai .btn-action-primary {
  background: var(--gold-gradient);
  color: #073828;
  font-weight: 900;
  border: 1px solid #FFF2B8;
  box-shadow: 0 4px 14px rgba(245, 196, 81, 0.35);
}

body.theme-u88-thai .btn-action-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

body.theme-u88-thai .btn-action-secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(245, 196, 81, 0.48);
  color: #FFFFFF;
}

body.theme-u88-thai .btn-action-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* White-card context action buttons stay high-contrast emerald/gold */
body.theme-u88-thai .app-container .btn-action-secondary,
body.theme-u88-thai .sports-container .btn-action-secondary,
body.theme-u88-thai .profile-main .btn-action-secondary,
body.theme-u88-thai .auth-box .btn-action-secondary {
  background: #F4EFE0;
  border: 1.5px solid #D4A017;
  color: #0B3D2E;
}

body.theme-u88-thai .app-container .btn-action-secondary:hover,
body.theme-u88-thai .sports-container .btn-action-secondary:hover {
  background: #0E6B4E;
  color: #FFFFFF;
}

/* Announcement Bar (Crisp Mint #C9F2E3 + Report Unfair Button) */
body.theme-u88-thai .top-bar {
  background: #C9F2E3;
  border-bottom: 1.5px solid #8CD9BC;
  color: #0B3D2E;
  backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.theme-u88-thai .top-bar-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  overflow: hidden;
}

body.theme-u88-thai .marquee-badge {
  background: linear-gradient(135deg, #0E6B4E 0%, #0B4F3A 100%);
  border: 1px solid #D4A017;
  color: #FFE9A8;
  box-shadow: 8px 0 10px #C9F2E3;
}

body.theme-u88-thai .marquee-content {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  display: block;
  text-align: left;
  white-space: nowrap;
  animation: none;
  -webkit-mask-image: none;
  mask-image: none;
  color: #0B3D2E;
  font-weight: 700;
}

.u88-marquee-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: u88-marquee-scroll 16s linear infinite;
  will-change: transform;
}

.top-bar-left:hover .u88-marquee-track {
  animation-play-state: paused;
}

@keyframes u88-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .u88-marquee-track {
    animation: none;
    padding-left: 0;
  }
}

body.theme-u88-thai .u88-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #D9383A 0%, #B42324 100%);
  border: 1px solid #FFE2B0;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(180, 35, 36, 0.25);
  transition: var(--transition-fast);
}

body.theme-u88-thai .u88-report-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Hero Slider Card stays vibrant with crisp white text overlay */
body.theme-u88-thai .hero-slider-card {
  border: 2px solid #D4A017;
  box-shadow: 0 18px 36px -14px rgba(11, 79, 58, 0.35);
}

body.theme-u88-thai .hero-slider-card .hero-tag {
  background: rgba(11, 79, 58, 0.85);
  border-color: #F5C451;
  color: #FFE9A8;
}

body.theme-u88-thai .hero-title {
  color: #FFFFFF;
}

body.theme-u88-thai .hero-slider-card .hero-desc,
body.theme-u88-thai .hero-subtitle {
  color: #EBF9F3;
}

body.theme-u88-thai .hero-slider-card .btn-action-secondary {
  background: rgba(7, 56, 40, 0.78);
  border: 1.5px solid #F5C451;
  color: #FFFFFF;
}

body.theme-u88-thai .jackpot-card,
body.theme-u88-thai .hero-side-card,
body.theme-u88-thai .jackpot-box,
body.theme-u88-thai .winners-list-box {
  background: linear-gradient(160deg, #0E6B4E 0%, #083B2B 100%);
  border: 2px solid #F5C451;
  color: #FFFFFF;
  box-shadow: 0 18px 36px -14px rgba(11, 79, 58, 0.35);
}

body.theme-u88-thai .hero-side-card p,
body.theme-u88-thai .jackpot-label,
body.theme-u88-thai .jackpot-title {
  color: #F5C451;
}

body.theme-u88-thai .jackpot-value {
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

body.theme-u88-thai .winners-header,
body.theme-u88-thai .winner-item {
  color: #EAFBF4;
  border-color: rgba(245, 196, 81, 0.22);
}

/* Section Titles & Floating White Ivory Cards */
body.theme-u88-thai .section-title {
  color: #0B3D2E;
}

body.theme-u88-thai .slot-card,
body.theme-u88-thai .sports-card,
body.theme-u88-thai .rebate-stat-card,
body.theme-u88-thai .rebate-action-bar,
body.theme-u88-thai .affiliate-tier-card,
body.theme-u88-thai .profile-sidebar,
body.theme-u88-thai .profile-main,
body.theme-u88-thai .profile-content-panel,
body.theme-u88-thai .venue-wallet-card,
body.theme-u88-thai .login-card-wrap,
body.theme-u88-thai .register-card-wrap,
body.theme-u88-thai .currency-preview-box,
body.theme-u88-thai .modal-dialog,
body.theme-u88-thai .slot-filter-bar,
body.theme-u88-thai .auth-box,
body.theme-u88-thai .promo-card,
body.theme-u88-thai .affiliate-card,
body.theme-u88-thai .integration-empty,
body.theme-u88-thai .sports-banner-bar {
  background: #FFFFFF;
  border: 1.5px solid #E5CFA0;
  box-shadow: 0 10px 24px -10px rgba(11, 79, 58, 0.14);
  color: #0B3D2E;
}

body.theme-u88-thai .wallet-card-header {
  color: #466A5C;
}

body.theme-u88-thai .wallet-card-amt,
body.theme-u88-thai .profile-tab-btn {
  color: #0B3D2E;
}

body.theme-u88-thai .profile-tab-btn.active,
body.theme-u88-thai .profile-tab-btn:hover {
  background: linear-gradient(135deg, #0E6B4E 0%, #0B4F3A 100%);
  color: #FFE9A8;
  border-color: #D4A017;
}

body.theme-u88-thai .btn-refresh-balance {
  color: #FFE9A8;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(245, 196, 81, 0.45);
}

body.theme-u88-thai .integration-game-dialog {
  --text-primary: #FFFFFF;
  --text-secondary: #CDEBE0;
  color: #FFFFFF;
}

body.theme-u88-thai @media (hover: hover) and (pointer: fine) {
  .slot-card:hover {
    border-color: #D4A017;
    box-shadow: 0 14px 28px -8px rgba(14, 107, 78, 0.22), 0 0 0 2px rgba(245, 196, 81, 0.25);
    transform: translateY(-4px);
  }
}

body.theme-u88-thai .slot-title,
body.theme-u88-thai .team-name,
body.theme-u88-thai .feature-name,
body.theme-u88-thai .rebate-stat-value,
body.theme-u88-thai .promo-title,
body.theme-u88-thai .slip-item-top {
  color: #0B3D2E;
}

body.theme-u88-thai .slot-provider,
body.theme-u88-thai .feature-desc,
body.theme-u88-thai .rebate-stat-label {
  color: #466A5C;
}

body.theme-u88-thai .slot-rtp-badge {
  background: rgba(11, 79, 58, 0.9);
  border: 1px solid #F5C451;
  color: #FFE9A8;
}

body.theme-u88-thai .btn-slot-play,
body.theme-u88-thai .integration-play {
  background: linear-gradient(135deg, #0E6B4E 0%, #0B4F3A 100%);
  color: #FFE9A8;
  border: 1px solid #D4A017;
  font-weight: 800;
}

body.theme-u88-thai .btn-slot-play:hover,
body.theme-u88-thai .integration-play:hover {
  background: var(--gold-gradient);
  color: #073828;
  border-color: #D4A017;
}

/* Inputs, Selects & Search Bars */
body.theme-u88-thai input:not([type="checkbox"]):not([type="radio"]),
body.theme-u88-thai select:not([data-locale]),
body.theme-u88-thai textarea,
body.theme-u88-thai .stake-input {
  background: #FAF6EA;
  border: 1.5px solid #DFC793;
  color: #0B3D2E;
}

body.theme-u88-thai input::placeholder,
body.theme-u88-thai textarea::placeholder {
  color: #6E8A7E;
}

body.theme-u88-thai .profile-menu-item {
  color: #2B5949;
}

body.theme-u88-thai .profile-menu-item.active,
body.theme-u88-thai .profile-menu-item:hover {
  background: linear-gradient(135deg, #0E6B4E 0%, #0B4F3A 100%);
  color: #FFE9A8;
}

/* Sports Page Light/Royal Overrides */
body.theme-u88-thai .odd-btn {
  background: #FAF6EA;
  border: 1.5px solid #E5CFA0;
  color: #0B3D2E;
}

body.theme-u88-thai .odd-btn:hover {
  background: #0E6B4E;
  border-color: #0E6B4E;
  color: #FFFFFF;
}

body.theme-u88-thai .odd-btn:hover .odd-label,
body.theme-u88-thai .odd-btn:hover .odd-val {
  color: #FFFFFF;
}

body.theme-u88-thai .odd-btn.selected {
  background: var(--gold-gradient);
  border-color: #B8860B;
  color: #073828;
}

body.theme-u88-thai .odd-btn.selected .odd-label,
body.theme-u88-thai .odd-btn.selected .odd-val {
  color: #073828;
}

body.theme-u88-thai .sports-tab-btn {
  background: #FFFFFF;
  border: 1.5px solid #E5CFA0;
  color: #0B3D2E;
}

body.theme-u88-thai .sports-tab-btn.active {
  background: linear-gradient(135deg, #0E6B4E 0%, #0B4F3A 100%);
  border-color: #D4A017;
  color: #FFE9A8;
}

body.theme-u88-thai .bet-drawer {
  background: #FFFFFF;
  border: 2px solid #D4A017;
  color: #0B3D2E;
}

body.theme-u88-thai .bet-drawer-title {
  color: #0B4F3A;
}

body.theme-u88-thai .bet-amount-input {
  background: #FAF6EA;
  color: #0B3D2E;
  border: 1.5px solid #D4A017;
}

body.theme-u88-thai .chip-btn {
  background: #F4EFE0;
  border: 1px solid #DFC793;
  color: #0B3D2E;
}

body.theme-u88-thai .chip-btn:hover {
  background: var(--gold-gradient);
  color: #073828;
}

/* AI Support Widget preserves dark-emerald readability */
body.theme-u88-thai .u88-ai-support-panel {
  --text-primary: #FFFFFF;
  --text-secondary: #CBEBDD;
  --text-muted: #98C9B7;
  --bg-card: #0E4D39;
  --border-subtle: rgba(245, 196, 81, 0.3);
  --border-gold: rgba(245, 196, 81, 0.55);
  background: #073828;
  color: #FFFFFF;
  border-color: #F5C451;
}

body.theme-u88-thai .u88-ai-support-panel .ai-panel-head {
  background: linear-gradient(135deg, #0E6B4E 0%, #073828 100%);
}

body.theme-u88-thai .u88-ai-support-panel .ai-msg-bot {
  background: #0B4F3A;
  color: #FFFFFF;
}

body.theme-u88-thai .u88-ai-support-panel input {
  background: #062D21;
  color: #FFFFFF;
  border-color: rgba(245, 196, 81, 0.45);
}

/* Homepage Category Showcase (Real Modules Only) */
body.theme-u88-thai .u88-category-showcase {
  margin: 28px 0 36px;
}

body.theme-u88-thai .u88-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.theme-u88-thai .u88-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #0E6B4E 0%, #083B2B 100%);
  border: 2px solid #D4A017;
  box-shadow: 0 14px 28px -12px rgba(11, 79, 58, 0.35);
  min-height: 310px;
  padding: 20px;
  color: #FFFFFF;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.theme-u88-thai .u88-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 34px -10px rgba(11, 79, 58, 0.45), 0 0 0 2px #F5C451;
}

body.theme-u88-thai .u88-cat-art {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 58%;
  height: 92%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.3s ease;
}

body.theme-u88-thai .u88-cat-card:hover .u88-cat-art {
  transform: scale(1.04) translateY(-4px);
}

body.theme-u88-thai .u88-cat-meta {
  position: relative;
  z-index: 2;
  max-width: 62%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.theme-u88-thai .u88-cat-badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: #073828;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

body.theme-u88-thai .u88-cat-title {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.theme-u88-thai .u88-cat-desc {
  font-size: 12.5px;
  color: #DDF7ED;
  line-height: 1.45;
}

body.theme-u88-thai .u88-cat-cta {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0B4F3A;
  font-size: 13px;
  font-weight: 900;
  border: 1.5px solid #F5C451;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: var(--transition-fast);
}

body.theme-u88-thai .u88-cat-card:hover .u88-cat-cta {
  background: var(--gold-gradient);
  color: #073828;
}

/* Deep Emerald + Gold Provider Wall Footer */
body.theme-u88-thai .master-footer {
  background: linear-gradient(180deg, #0E6B4E 0%, #094532 45%, #062F22 100%);
  border-top: 3px solid #D4A017;
  color: #EAFBF4;
  padding: 34px 24px 28px;
  margin-top: 48px;
}

body.theme-u88-thai .u88-footer-tagline {
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #FFE9A8;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
}

body.theme-u88-thai .u88-provider-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  max-width: 1240px;
  margin: 0 auto 24px;
}

body.theme-u88-thai .u88-provider-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 196, 81, 0.16);
  height: 40px;
  transition: transform 0.18s ease, background 0.18s ease;
}

body.theme-u88-thai .u88-provider-tile:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(245, 196, 81, 0.45);
}

body.theme-u88-thai .u88-provider-tile img {
  max-height: 26px;
  max-width: 82px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

body.theme-u88-thai .u88-footer-divider {
  height: 1px;
  max-width: 1240px;
  margin: 18px auto;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 196, 81, 0.55) 50%, transparent 100%);
}

body.theme-u88-thai .u88-footer-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  color: #FFE9A8;
  margin-bottom: 10px;
}

body.theme-u88-thai .u88-footer-powered img {
  width: 26px;
  height: 26px;
}

body.theme-u88-thai .footer-bottom {
  border-top: none;
  padding-top: 4px;
  justify-content: center;
  text-align: center;
  color: #BBE7D7;
}

@media (max-width: 1024px) {
  body.theme-u88-thai .u88-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.theme-u88-thai:not(.u88-force-desktop) .hero-slider-card {
    aspect-ratio: 16 / 9;
    min-height: clamp(190px, 52vw, 236px);
    height: auto;
    padding: clamp(10px, 2.8vw, 18px) clamp(12px, 3.6vw, 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-size: cover;
    background-position: right center;
  }
  body.theme-u88-thai:not(.u88-force-desktop) .hero-slider-card .hero-content {
    width: 58%;
    max-width: 58%;
  }
  body.theme-u88-thai:not(.u88-force-desktop) .hero-slider-card .hero-title {
    font-size: clamp(14px, 4vw, 20px);
    line-height: 1.18;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    margin-bottom: 4px;
  }
  body.theme-u88-thai:not(.u88-force-desktop) .hero-slider-card .hero-desc,
  body.theme-u88-thai:not(.u88-force-desktop) .hero-slider-card .hero-subtitle {
    font-size: clamp(9.5px, 2.5vw, 11.5px);
    line-height: 1.25;
  }
  body.theme-u88-thai:not(.u88-force-desktop) .hero-slider-card .btn-action-primary,
  body.theme-u88-thai:not(.u88-force-desktop) .hero-slider-card .btn-action-secondary {
    font-size: clamp(9.5px, 2.5vw, 11px);
    padding: 4px 8px;
  }
}

@media (max-width: 640px) {
  body.theme-u88-thai:not(.u88-force-desktop) .u88-utility-bar {
    padding: 6px 12px;
  }
  body.theme-u88-thai:not(.u88-force-desktop) .u88-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.theme-u88-thai:not(.u88-force-desktop) .u88-cat-card {
    min-height: 185px;
  }
}
