/* ============================================================
   UFALOVE MEMBER - DARK GOLD PREMIUM THEME
   Applied ONLY to member.ufalove.com
   Version: 2.0 (Jun 2026)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --gold: #e5b858;
  --gold-light: #f6d98e;
  --gold-dark: #8b5a00;
  --gold-dim: rgba(229,184,88,0.15);
  --gold-border: rgba(229,184,88,0.35);
  --bg-body: #080808;
  --bg-card: #111111;
  --bg-card2: #181818;
  --bg-card3: #1e1e1e;
  --text-white: #f0f0f0;
  --text-muted: #888888;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-gold: 0 4px 30px rgba(229,184,88,0.2);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Nav Tabs ─────────────────────────────────────────────── */
.nav-tabs {
  border-bottom: 1px solid rgba(229,184,88,0.2) !important;
}
.nav-tabs .nav-link {
  color: rgba(255,255,255,0.6) !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: 0.6rem 1.2rem !important;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active {
  color: var(--gold) !important;
  border-bottom-color: var(--gold) !important;
  background: transparent !important;
}
.tab-content { padding-top: 0.5rem; }


/* ── Base Reset & Body ────────────────────────────────────── */
html {
  min-height: 100%;
  background-color: var(--bg-body);
  /* background-image: url('/v2021/images/member-ufalove/bg-stadium.png'); */
  /* background-image: url('../images/member-ufalove/bg-labs.jpg'); */
  /* background-image: url('../images/member-ufalove/bg-labs.jpg'); */
  /* background-attachment: fixed;
  background-size: cover;
  background-position: center center; */
}
body {
  font-family: 'Prompt', 'Sarabun', sans-serif !important;
  background: transparent !important; /* Let html's background show through */
  color: var(--text-white) !important;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}
/* Dark overlay fixed to cover viewport - covers both content and below footer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  /* background: rgba(0,0,0,0.4); */
  z-index: 0;
  pointer-events: none;
}
/* Bottom fade gradient - makes the bottom area pitch black */
body::after {
  content: '';
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  /* background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.3) 60%, transparent 100%); */
  z-index: 0;
  pointer-events: none;
}
/* Ensure content appears above the fixed overlay pseudo-elements */
body > .bmd-layout-container,
body > .header-middle-area,
body > .bodyMember,
body > footer,
body > .menuFooter,
body > .deposit-countdown,
body > div[style*="flex"] { position: relative; z-index: 1; }
body > .footer-content { position: relative; z-index: 1; }

a { color: var(--gold); }
a:hover { color: var(--gold-light); }

/* ── Gold Text ────────────────────────────────────────────── */
.text-gold, .text-warning { color: var(--gold) !important; }
.gold-gradient-text {
  background: linear-gradient(90deg, #cb9b51 0%, #f6e27a 40%, #f6f2c0 50%, #f6e27a 60%, #cb9b51 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   PARTNER LAYOUT (Login / Register / Forget)
   ══════════════════════════════════════════════════════════ */
.bgLogin {
  background-image: url('../images/member-ufalove/bg-login.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.bgLogin::before {
  content: '';
  position: fixed;
  inset: 0;
  /* background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.75) 100%); */
  z-index: 0;
}
.bgLogin > * { position: relative; z-index: 1; }

/* ── Login Card ───────────────────────────────────────────── */
.login-card-wrap {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10;
  padding: 1rem;
  overflow-y: auto;
}
.login-card-wrap > div {
  position: relative;
  text-align: center;
  max-width: 420px;
  width: 100%;
  margin: auto;
}
.logoLogin {
  max-width: 100%;
  width: 100%;
}
.login-card {
  position: relative;
  background: rgba(10,10,10,0.88) !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: 20px !important;
  padding: 2.5rem 2rem !important;
  /* width: 100% !important; */
  /* max-width: 420px !important; */
  box-shadow: 0 0 60px rgba(229,184,88,0.12), 0 25px 50px rgba(0,0,0,0.5) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInUp 0.5s ease;
  /* margin: auto; */
  margin-top: 1rem;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-card .titleLogin {
  text-align: center;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin-bottom: 1.5rem;
}
.login-card h2.welcome-text {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.8rem;
}

/* ── Form Controls ────────────────────────────────────────── */
.formGold, .form-control {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-white) !important;
  padding: 0.75rem 1rem !important;
  font-family: 'Prompt', sans-serif !important;
  font-size: 0.9rem !important;
  transition: var(--transition) !important;
  line-height: 1.5rem;
  height: unset !important;
}
.formGold:focus, .form-control:focus {
  background: rgba(229,184,88,0.06) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(229,184,88,0.15) !important;
  outline: none !important;
}
.form-control::placeholder, .formGold::placeholder { color: #555 !important; }

/* ── Input Groups (icon left) ─────────────────────────────── */
.input-icon-group { position: relative; margin-bottom: 1rem; }
.input-icon-group .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1rem;
}
.input-icon-group input { padding-left: 2.8rem !important; }

/* ── Gold Button ──────────────────────────────────────────── */
.btn-gold-main, .btnLogin, .bg-gold, .color-gold {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 50px !important;
  background: linear-gradient(180deg, #e5b858 0%, #8b5a00 55%, #e5b858 100%) !important;
  border: 1px solid #e5b858 !important;
  color: #111 !important;
  font-weight: 700 !important;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(229,184,88,0.3);
}
.btn-gold-main:hover, .btnLogin:hover, .bg-gold:hover, .color-gold:hover {
  background: linear-gradient(180deg, #f6d98e 0%, #6b3a00 55%, #f6d98e 100%) !important;
  box-shadow: 0 6px 30px rgba(229,184,88,0.5);
  transform: translateY(-1px);
  color: #000 !important;
}
.btn-gold-main:active, .btnLogin:active { transform: translateY(0); }

.btn-gold-outline {
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  border-radius: 50px !important;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-gold-outline:hover {
  background: var(--gold) !important;
  color: #000 !important;
}

.loginTextlink { text-align: center; margin-top: 1.2rem; font-size: 0.88rem; }
.loginTextlink a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.loginTextlink a:hover { color: var(--gold); }
.loginTextlink span { margin: 0 0.5rem; color: #444; }

/* ── Step Register Progress Bar ───────────────────────────── */
.steps-bar { display: flex; align-items: center; justify-content: center; list-style: none; padding: 0; margin: 0 0 1.5rem 0; gap: 0; }
.step-item { display: flex; align-items: center; }
.step-item div {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  background: #222;
  border: 2px solid #444;
  color: #666;
  transition: var(--transition);
}
.step-item.success div {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
  color: #000;
}
.step-item + .step-item::before {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: #333;
}

/* ── Alert ────────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius-sm) !important;
  border: 1px solid transparent;
}
.alert-danger {
  background: rgba(220,38,38,0.15) !important;
  border-color: rgba(220,38,38,0.4) !important;
  color: #fca5a5 !important;
}
.alert-success {
  background: rgba(16,185,129,0.12) !important;
  border-color: rgba(16,185,129,0.35) !important;
  color: #6ee7b7 !important;
}
.alert-warning {
  background: rgba(229,184,88,0.12) !important;
  border-color: var(--gold-border) !important;
  color: var(--gold-light) !important;
}

/* ══════════════════════════════════════════════════════════
   MEMBER LAYOUT — HEADER
   ══════════════════════════════════════════════════════════ */
.header-middle-area {
  background: rgba(5,5,5,0.97) !important;
  border-bottom: 2px solid var(--gold-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 0 0;
  position: sticky;
  top: 0;
  z-index: 1050;
}
.header-middle-area .container { max-width: 1200px; }

/* Logo area */
.img-banner-website img { max-height: 90px; width: auto !important; }

/* User info row */
.row-header-login { align-items: center; }
.col-form-login { border-bottom: unset !important; }
.col-form-login .d-flex { align-items: center; gap: 0.5rem; }
.button-firstnamelastname {
  background: rgba(229,184,88,0.1) !important;
  border: 1px solid var(--gold-border) !important;
  color: var(--gold) !important;
  border-radius: 50px;
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
}
.button-dashboard, .button-logout {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: var(--text-white) !important;
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.87rem;
  text-decoration: none;
  transition: var(--transition);
}
.button-dashboard:hover, .button-logout:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
.button-logout.btn-primary {
  border-color: rgba(99,102,241,0.5) !important;
}

/* ── Navbar (now inside header, transparent bg) ─────────── */
.navbar {
  background: transparent !important;
  border-bottom: none !important;
  padding: 0 !important;
}
/* Standalone navbar (outside header context) still gets bg */
/* .container > .navbar {
  background: rgba(10,10,10,0.97) !important;
  border-bottom: 2px solid var(--gold-border) !important;
} */
.navbar-nav { gap: 0; }
.navbar-nav .nav-item .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 0.5rem !important;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.navbar-nav .nav-item .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  transition: left 0.3s, right 0.3s;
}
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-item .nav-link:hover { color: var(--gold) !important; }
.navbar-nav .nav-item.active .nav-link::after,
.navbar-nav .nav-item .nav-link:hover::after { left: 0; right: 0; }

/* Dropdown menus — always on top */
.dropdown-menu {
  /* background: rgba(8,8,8,0.99) !important; */
  background: linear-gradient(90deg, rgba(178, 142, 54, 1) 0%, rgba(255, 241, 170, 1) 50%, rgba(178, 142, 54, 1) 100%);
  /* border: 1px solid var(--gold-border) !important; */
  border: 0;
  border-radius: var(--radius-sm) !important;
  backdrop-filter: blur(10px);
  min-width: 200px;
  padding: 0.4rem 0;
  z-index: 9999 !important;
  position: absolute !important;
}
.dropdown-item {
  /* color: rgba(255,255,255,0.85) !important; */
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem !important;
  transition: background 0.15s;
}
.dropdown-item:hover {
  /* background: rgba(229,184,88,0.15) !important; */
  color: var(--gold) !important;
  background: rgba(8,8,8,0.99) !important;
}

/* ── Mobile drawer ────────────────────────────────────────── */
.bmd-layout-header {
  background: rgba(5,5,5,0.97) !important;
  border-bottom: 1px solid var(--gold-border);
}
.bmd-layout-drawer.bg-dark {
  background: #090909 !important;
  border-right: 1px solid var(--gold-border);
}
.bmd-drawer-f-r > .bmd-layout-drawer {
  z-index: 10000000 !important;
}
.mobile-list-menu { padding: 0; list-style: none; }
.mobile-list-menu li a {
  display: block;
  padding: 0.25rem 1.3rem;
  color: rgba(255,255,255,0.85) !important;
  font-size: 1rem;
  font-weight: 300;
  border-bottom: 1px solid rgba(229,184,88,0.08);
  transition: var(--transition);
}
.mobile-list-menu li a:hover { color: var(--gold) !important; background: var(--gold-dim); }
.card-deposit, .card-activity { padding: 0 1rem; }

/* ── Mobile Footer Nav ────────────────────────────────────── */
.menuFooter {
  position: fixed !important;
  bottom: 0; left: 0; right: 0;
  z-index: 9 !important;
  background: rgba(5,5,5,0.97);
  border-top: 1px solid var(--gold-border);
  backdrop-filter: blur(10px);
}
.menuFooter .playBtn {
  display: block;
  text-align: center;
  padding: 0.7rem 0;
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.8rem;
  background: transparent;
  border-right: 1px solid rgba(229,184,88,0.1);
  text-decoration: none !important;
}
.menuFooter .playBtn.gold { color: var(--gold) !important; }
.menuFooter .playBtn i { display: block; font-size: 1.1rem; margin-bottom: 2px; }
.menuFooter .playBtn:hover { background: var(--gold-dim); }

/* ── Body Content Area ────────────────────────────────────── */
.bodyMember {
  padding-bottom: 80px;
  /* NO position:relative or z-index here - would create stacking context
     that traps Bootstrap modals inside it, causing backdrop to cover them */
}

/* Remove the visible border from main page content wrappers */
:not(body#member_cdm) > .bodyMember > .container > .row > .col-12 > .bg-grey,
:not(body#member_cdm) > .bodyMember > .container > .row > [class*="col"] > .bg-grey {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}
/* Keep border for sub-cards (nested .bg-grey inside content) */
/* .bg-grey .bg-grey {
  background: rgba(18,18,18,0.7) !important;
  border: 1px solid rgba(229,184,88,0.2) !important;
  border-radius: var(--radius-sm) !important;
  overflow: visible !important;
} */
/* ── Card Base ────────────────────────────────────────────── */
.bg-grey {
  background: rgba(15,15,15,0.88) !important;
  border: 1px solid rgba(229,184,88,0.2) !important;
  border-radius: var(--radius) !important;
  overflow: visible !important; /* allow dropdowns/modals to overflow */
}

/* ── Page Title (h4 / img-title) ──────────────────────────── */
.img-title { max-height: 55px; }
.page-title-gold {
  font-size: 3rem !important;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

/* ── Tables ───────────────────────────────────────────────── */
.z-table-theme-gold, .table {
  color: var(--text-white) !important;
  border-color: rgba(229,184,88,0.12) !important;
  border-collapse: collapse !important;
  background-color: rgba(229, 184, 88, 0.35);
}
.z-table-theme-gold thead tr, .table thead tr {
  background: linear-gradient(90deg, rgba(229,184,88,0.15), rgba(229,184,88,0.05));
  border-bottom: 1px solid var(--gold-border);
}
.z-table-theme-gold thead th, .table thead th {
  color: #fff !important;
  font-weight: bolder;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  padding: 0.75rem 1rem;
  border: none !important;
}
.z-table-theme-gold tbody tr, .table tbody tr {
  border-bottom: 1px solid rgba(229,184,88,0.07) !important;
  transition: background 0.15s;
}
.z-table-theme-gold tbody tr:hover, .table tbody tr:hover {
  background: rgba(229,184,88,0.05) !important;
}
.z-table-theme-gold tbody td, .table tbody td {
  padding: 0.4rem 0.5rem;
  border: none !important;
}
.table-responsive { border-radius: var(--radius-sm); overflow: hidden; }

/* ── Badges ───────────────────────────────────────────────── */
.badge-success, .text-success { color: #4ade80 !important; }
.badge-danger, .text-danger { color: #f87171 !important; }
.badge-warning, .text-warning { color: var(--gold) !important; }

/* ── Modals ───────────────────────────────────────────────── */
.modal { z-index: 10500 !important; }
.modal-backdrop { z-index: 10400 !important; background: rgba(0,0,0,0.75) !important; }
/* Vertically center modal-dialog via Bootstrap 4 centered dialog */
.modal-dialog-centered, .modal .modal-dialog {
  margin: 1.75rem auto !important;
}
.modal-content, .modal-content.bg-dark {
  background: #0e0e0e !important;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius) !important;
  color: var(--text-white) !important;
}
.modal-header {
  border-bottom: 1px solid var(--gold-border);
  background: rgba(229,184,88,0.06);
  padding: 0.5rem 1.2rem !important;
}
.modal-footer { border-top: 1px solid rgba(229,184,88,0.1); }
.modal-title { color: var(--gold); font-weight: 600; }
button.close, .btn-close { color: var(--text-white) !important; opacity: 0.7; }
button.close:hover, .btn-close:hover { opacity: 1; }

/* ── Select ───────────────────────────────────────────────── */
select.form-control option { background: #111; color: var(--text-white); }

/* ── Footer ───────────────────────────────────────────────── */
.footer-content {
  background: rgba(5,5,5,0.95) !important;
  border-top: 1px solid var(--gold-border);
  padding: 1rem 0;
}
.text-copyright { color: #444; font-size: 0.78rem; border: unset !important; }

/* ══════════════════════════════════════════════════════════
   PAGE: TURNOVER (/member/turnover)
   ══════════════════════════════════════════════════════════ */
.turnover-page-wrap { padding: 1.5rem; }
.turnover-cards-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.turnover-card {
  flex: 1;
  min-width: 280px;
  background: linear-gradient(145deg, rgba(20,20,20,1) 0%, rgba(12,12,12,1) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}
.turnover-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); border-color: var(--gold); }
.turnover-card .card-bg-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.turnover-card .card-body-inner {
  padding: 1.2rem;
  text-align: center;
}
.turnover-card .percent-text {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(90deg, #cb9b51, #f6e27a, #cb9b51);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.turnover-card .card-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.3rem;
}
.turnover-card .card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.btn-grab {
  display: inline-block;
  padding: 0.6rem 2.5rem;
  border-radius: 50px;
  background: linear-gradient(180deg, #e5b858 0%, #8b5a00 55%, #e5b858 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(229,184,88,0.3);
  text-decoration: none;
}
.btn-grab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(229,184,88,0.5);
  color: #000;
}

.payback-receive img {
  max-width: 100%;
}

/* ══════════════════════════════════════════════════════════
   PAGE: COUPON (/member/coupon)
   ══════════════════════════════════════════════════════════ */
.coupon-page-wrap { padding: 2rem; max-width: 500px; margin: 0 auto; }
.coupon-title {
  text-align: center;
  margin-bottom: 1.5rem;
}
.coupon-title h2 { color: var(--gold); font-size: 1.5rem; font-weight: 600; }
.coupon-title p { color: var(--text-muted); font-size: 0.9rem; }
.coupon-input-group {
  position: relative;
  margin-bottom: 1.5rem;
}
.coupon-input-group input {
  border-radius: 50px !important;
  padding: 0.9rem 1.5rem !important;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 2px;
}
.coupon-input-group .coupon-icon {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════
   PAGE: DEPOSIT (/member/deposit)
   ══════════════════════════════════════════════════════════ */
.deposit-page-wrap { padding: 0; }

/* Horizontal button nav replacing old vertical sidebar */
.deposit-layout { display: flex; flex-direction: column; gap: 0; min-height: 200px; }
.deposit-sidebar {
  width: 100%;
  flex-shrink: 0;
  border-bottom: 1px solid var(--gold-border);
  display: flex;
  flex-direction: row;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  gap: 0.75rem;
}
.deposit-sidebar-btn {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border-radius: 10px;
  border: 2.5px solid rgba(229,184,88,0.25);
  background: rgba(255,255,255,0.03);
}
.deposit-sidebar-btn i { font-size: 1.1rem; }
.deposit-sidebar-btn.active {
  /* background: linear-gradient(135deg, #e5b858 0%, #c8922a 100%); */
  background-color: rgba(229, 184, 88, 0.3);
  border-color: var(--gold);
  color: rgb(229, 184, 88) !important;
  box-shadow: 0 4px 20px rgba(229,184,88,0.35);
}
.deposit-sidebar-btn:hover:not(.active) {
  background: rgba(229,184,88,0.12);
  border-color: var(--gold);
  color: var(--gold);
}
.deposit-sidebar.d-none {
  width: auto;
  text-align: center !important;
  margin: 0 1rem 0 0;
  padding: 0.5rem 2rem 5rem 1.5rem;
  display: block;
  border-bottom: none;
  border: 0;
  border-right: 3px solid transparent;
  border-image: linear-gradient(rgba(254, 180, 123, 0.05) 0, rgba(254, 180, 123, 1) 50%, rgba(254, 180, 123, 0.05) 100%) 1;
}

.deposit-main { flex: 1; }

.deposit-title { color: var(--gold); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem; }
.deposit-subtitle { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 1.5rem; }

/* Channel cards (QR / FAST / VIP) */
.channel-cards { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.channel-card {
  flex: 1;
  min-width: 90px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(229,184,88,0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.channel-card:hover, .channel-card.selected {
  background: var(--gold-dim);
  border-color: var(--gold);
}
.channel-card img { width: 40px; height: 40px; margin-bottom: 0.4rem; object-fit: contain; }
.channel-card .ch-label { font-size: 0.75rem; font-weight: 600; color: var(--gold); }
.channel-card .ch-range { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }

/* Amount input */
.deposit-amount-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 0.4rem; }
.deposit-amount-input {
  border-radius: var(--radius-sm) !important;
  font-size: 1.2rem !important;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}
.quick-amounts { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.quick-amt-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(229,184,88,0.25);
  border-radius: 50px;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Prompt', sans-serif;
}
.quick-amt-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

/* Promo banner */
.promo-banner {
  background: linear-gradient(135deg, rgba(10,10,10,0.9), rgba(30,20,0,0.9));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.promo-banner .promo-text { flex: 1; }
.promo-banner .promo-text .bonus-pct {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(90deg, #cb9b51, #f6e27a, #cb9b51);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.promo-banner .promo-text .bonus-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.promo-banner .promo-text .bonus-note { font-size: 0.75rem; color: var(--text-muted); }

/* Image picker overrides */
.image_picker_selector { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.image_picker_selector li { cursor: pointer; }
.image_picker_selector li .thumbnail {
  border: 2px solid rgba(229,184,88,0.2) !important;
  border-radius: var(--radius-sm) !important;
  background: rgba(255,255,255,0.03) !important;
  transition: var(--transition);
}
.image_picker_selector li.selected .thumbnail,
.image_picker_selector li:hover .thumbnail {
  border-color: var(--gold) !important;
  background: var(--gold-dim) !important;
}

/* ══════════════════════════════════════════════════════════
   PAGE: WITHDRAWAL (/member/withdrawal)
   ══════════════════════════════════════════════════════════ */
.withdrawal-page-wrap { padding: 1.5rem; }
.withdrawal-form-wrap { max-width: 500px; margin: 0 auto; }

/* Success state */
.withdrawal-success {
  text-align: center;
  padding: 2rem 1rem;
}
.withdrawal-success .check-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #000;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px rgba(229,184,88,0.4);
  animation: pulseGold 2s infinite;
}
@keyframes pulseGold {
  0%,100% { box-shadow: 0 0 30px rgba(229,184,88,0.4); }
  50% { box-shadow: 0 0 50px rgba(229,184,88,0.7); }
}
.withdrawal-success .bank-info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}
.withdrawal-success .amount-display {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #cb9b51, #f6e27a, #cb9b51);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.withdrawal-success .datetime { color: var(--text-muted); font-size: 0.82rem; }

/* ══════════════════════════════════════════════════════════
   PAGE: HISTORY (/member/history)
   ══════════════════════════════════════════════════════════ */
.history-tabs { display: flex; border-bottom: 1px solid var(--gold-border); margin-bottom: 1.2rem; }
.history-tab {
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.history-tab.active, .history-tab:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-badge.success { background: rgba(74,222,128,0.15); color: #4ade80; }
.status-badge.pending { background: rgba(229,184,88,0.15); color: var(--gold); }
.status-badge.failed  { background: rgba(248,113,113,0.15); color: #f87171; }

/* ══════════════════════════════════════════════════════════
   PAGE: TURNOVER DETAIL (payback / receive)
   ══════════════════════════════════════════════════════════ */
.turnover-detail-card {
  background: rgba(15,15,15,0.9);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}
.turnover-detail-card .turnover-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin: 1rem 0;
}
.turnover-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(229,184,88,0.08);
  font-size: 0.88rem;
}
.turnover-info-row .label { color: var(--text-muted); }
.turnover-info-row .value { color: var(--text-white); font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   PAGE: ACTIVITY LOTTO (/member/activity/lotto)
   ══════════════════════════════════════════════════════════ */
.lotto-page-wrap { padding: 1.5rem; }
.lotto-header { text-align: center; margin-bottom: 1.5rem; }
.lotto-header h2 { color: var(--gold); font-size: 1.4rem; font-weight: 700; }

/* Countdown timer */
.countdown-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(20,20,20,0.9);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  min-width: 80px;
}
.countdown-box .num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, #f6d98e, #e5b858);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.countdown-box .unit { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }

/* Lotto active countdown (above the form) */
.lotto-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(229,184,88,0.04);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
}
.lotto-countdown-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Result display */
.lotto-result-card {
  background: rgba(229,184,88,0.05);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.lotto-result-card .result-label { color: var(--text-muted); font-size: 0.8rem; }
.lotto-result-card .result-value { color: var(--text-white); font-weight: 500; }
.lotto-result-card .result-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
}

/* Prize cards grid */
.prize-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}
.prize-card {
  /* background: linear-gradient(145deg, rgba(20,20,20,0.95), rgba(10,10,10,0.95)); */
  background: rgba(5, 5, 5, 0.75);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.6rem;
  text-align: center;
  transition: var(--transition);
}
.prize-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.prize-card .pc-rank {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.prize-card .pc-amount {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #cb9b51, #f6e27a, #cb9b51);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.prize-card .pc-unit { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.prize-card.prize-main {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(229,184,88,0.15);
  max-width: 500px;
  width: 100%;
}
.prize-card.prize-main .pc-amount { font-size: 1.6rem; }

/* Prize table (fallback) */
.prize-table { width: 100%; border-collapse: collapse; }
.prize-table th {
  background: rgba(229,184,88,0.1);
  color: var(--gold);
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--gold-border);
}
.prize-table td {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-white);
}

/* Lotto input fields */
.lotto-field-group { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; margin-bottom: 1rem; }
.lotto-field-group label { color: rgba(255,255,255,0.7); font-size: 0.82rem; text-align: center; }
.lotto-field-group label span { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.lotto-field-group input {
  max-width: 220px;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 6px;
  font-weight: 700;
  border: 2px solid rgba(229,184,88,0.3) !important;
  border-radius: var(--radius-sm) !important;
  background: rgba(0,0,0,0.4) !important;
  color: var(--gold) !important;
  transition: border-color 0.2s;
}
.lotto-field-group input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 10px rgba(229,184,88,0.2) !important;
  outline: none !important;
}
.lotto-field-group input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════
   PAGE: ACTIVITY PREDICT (/member/activity/predict)
   ══════════════════════════════════════════════════════════ */
.predict-page-wrap { padding: 1.5rem; }
.predict-header { text-align: center; margin-bottom: 1.5rem; }
.predict-header h2 { color: var(--gold); font-size: 1.4rem; font-weight: 700; }
.predict-header .predict-date { color: var(--text-muted); font-size: 0.85rem; }

.match-table { width: 100%; border-collapse: collapse; }
.match-table thead th {
  background: rgba(229,184,88,0.1);
  color: var(--gold);
  font-size: 0.82rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--gold-border);
  text-align: center;
}
.match-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); }
.match-table tbody tr:hover { background: rgba(229,184,88,0.03); }
.match-table tbody td { padding: 0.7rem 0.8rem; color: var(--text-white); font-size: 0.88rem; vertical-align: middle; text-align: center; }
.match-table .team-cell { text-align: left; }
.match-table .team-flag { width: 24px; height: 24px; object-fit: contain; margin-right: 0.4rem; border-radius: 2px; }
.match-table .score-cell { font-size: 1rem; font-weight: 700; color: var(--gold); }
.result-badge {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  line-height: 28px;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}
.result-badge.correct { background: rgba(74,222,128,0.2); color: #4ade80; }
.result-badge.wrong   { background: rgba(248,113,113,0.2); color: #f87171; }
.result-badge.pending { background: rgba(229,184,88,0.15); color: var(--gold); }

/* ── Predict: New-design section ── */
/* ── ส่วนทายผล (เลือก radio ใหม่) ── */
.predict-match-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.2rem; }
.predict-match-row {
  display: flex;
  align-items: center;
  background: rgba(18,18,18,0.9);
  /* border: 1px solid rgba(229,184,88,0.13); */
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  gap: 0.6rem;
  flex-wrap: wrap;
  transition: border-color 0.2s;
}
.predict-match-row:hover { border-color: rgba(229,184,88,0.35); }
.predict-match-num {
  min-width: 22px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}
.predict-team {
  flex: 1;
  min-width: 90px;
  font-size: 1.1rem;
  color: var(--text-white);
}
.predict-team.away { text-align: right; }
.predict-score-box {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  justify-content: center;
}
.predict-score-box .sc {
  background: rgba(229,184,88,0.12);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 32px;
  text-align: center;
}
.predict-score-box .sc-sep { color: var(--text-muted); font-weight: 700; }
.predict-radio-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}
.predict-radio-btn {
  position: relative;
  cursor: pointer;
  margin: 0;
}
.predict-radio-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.predict-radio-btn .rb-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1.5px solid rgba(229,184,88,0.3);
  background: #000;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.predict-radio-btn .rb-label:hover {
  background: rgba(229,184,88,0.1);
  border-color: rgba(229,184,88,0.5);
  color: rgba(255,255,255,0.9);
}
.predict-radio-btn input[type="radio"]:checked + .rb-label,
.predict-radio-btn .rb-label.selected {
  background: rgba(229,184,88,0.22);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(229,184,88,0.2);
}
.predict-radio-btn input[type="radio"]:disabled + .rb-label {
  opacity: 0.6;
  cursor: not-allowed;
}
.predict-result-badge {
  min-width: 44px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  flex-shrink: 0;
}
.predict-result-badge.correct { background: rgba(74,222,128,0.18); color: #4ade80; border: 1px solid rgba(74,222,128,0.4); }
.predict-result-badge.wrong   { background: rgba(248,113,113,0.18); color: #f87171; border: 1px solid rgba(248,113,113,0.4); }
.predict-result-badge.pending { background: rgba(229,184,88,0.12); color: var(--gold); border: 1px solid var(--gold-border); }


/* ── Predict History (sidebar-style) ── */
.predict-history-wrap {
  margin-top: 2rem;
}
.predict-history-title {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.predict-history-container {
  display: flex;
  gap: 20px;
  border-radius: 10px;
  overflow: hidden;
}
.predict-history-sidebar {
  min-width: 120px;
  max-height: 445px;
  background: rgba(10, 10, 10, 0.8);
  border: 2px solid var(--gold-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 5px;
  gap: 3px;
  margin-top: 70px;
}
.predict-history-sidebar::-webkit-scrollbar { width: 0px; height: 0px; }
.predict-history-sidebar-item {
  padding: 0.9rem 2rem;
  font-size: 1.25rem;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(229, 184, 88, 0.2);
  border-radius: 5px;
  background: #111;
  text-align: center;
  transition: all 0.18s;
  font-weight: 500;
  line-height: 1.3;
}
.predict-history-sidebar-item.active {
  background: #cb9a44;
  color: #fff;
  font-weight: 700;
}
.predict-history-sidebar-item:hover:not(.active) {
  background: rgba(229,184,88,0.06);
  color: rgba(255,255,255,0.8);
}
.predict-history-sidebar-label {
  padding: 0.6rem 0.8rem;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--gold-border);
  text-align: center;
  background: rgba(229,184,88,0.07);
}
.predict-history-panel {
  flex: 1;
  min-width: 0;
}
.predict-history-panel-item {
  display: none;
}
.predict-history-panel-item.active {
  display: block;
}
/* Table rows inside history panel */
.predict-history-panel .ph-panel-header {
  padding: 1rem 0.5rem;
  text-align: center;
}
.predict-history-panel .ph-panel-name {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
}
.predict-history-panel .ph-row {
  display: grid;
  /* grid-template-columns: 22px 1fr 80px 1fr 50px; */
  grid-template-columns: 1fr 100px 1fr 60px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #111;
  border: 1px solid rgba(229,184,88,0.3);
  border-radius: 5px;
  text-align: center;
  margin-top: 5px;
}
.predict-history-panel .ph-row:last-of-type { border-bottom: none; }
.predict-history-panel .ph-row:hover { background: rgba(229,184,88,0.04); }
.predict-history-panel .ph-num {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}
.predict-history-panel .ph-home {
  font-size: 1.1rem;
  color: var(--text-white);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.predict-history-panel .ph-away {
  font-size: 1.1rem;
  color: var(--text-white);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.predict-history-panel .ph-score {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  background: #000;
  border: 1px solid rgba(229,184,88,0.35);
  border-radius: 8px;
  padding: 0.4rem 0.4rem;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(229,184,88,0.12);
}

/* ── Highlight: ทีมที่ user เลือก — เขียว=ถูก, แดง=ผิด, ทอง=รอผล ── */
.predict-history-panel .ph-home.ph-picked-correct,
.predict-history-panel .ph-away.ph-picked-correct {
  color: #4ade80;
  background: rgba(74,222,128,0.14);
  border-radius: 6px;
  padding: 0.4rem 0.45rem;
}
.predict-history-panel .ph-home.ph-picked-wrong,
.predict-history-panel .ph-away.ph-picked-wrong {
  color: #f87171;
  background: rgba(248,113,113,0.14);
  border-radius: 6px;
  padding: 0.4rem 0.45rem;
}
.predict-history-panel .ph-home.ph-picked-pending,
.predict-history-panel .ph-away.ph-picked-pending {
  color: var(--gold);
  background: rgba(229,184,88,0.12);
  border-radius: 6px;
  padding: 0.12rem 0.45rem;
}

.predict-history-panel .ph-badge {
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}
.predict-history-panel .ph-badge.correct { background: #0d4e0d; color: #fff; }
.predict-history-panel .ph-badge.wrong   { background: #980707; color: #fff; }
.predict-history-panel .ph-badge.pending { background: rgba(229,184,88,0.12); color: #fff; }

/* History summary bar */
.predict-history-summary {
  margin-top: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1rem 1.2rem;
  background: rgba(0,0,0,0.5);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.predict-history-summary .sum-item {
  text-align: center;
  padding: 0.4rem 1rem;
  border-right: 1px solid rgba(229,184,88,0.12);
  flex: 1;
  min-width: 70px;
}
.predict-history-summary .sum-item:last-child { border-right: none; }
.predict-history-summary .sum-label {
  color: var(--text-muted);
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}
.predict-history-summary .sum-val {
  font-weight: 800;
  font-size: 1.15rem;
  display: block;
  line-height: 1;
}
.predict-history-summary .sum-val.gold { color: var(--gold); }
.predict-history-summary .sum-val.green { color: #4ade80; }
.predict-history-summary .sum-val.red { color: #f87171; }
.predict-history-summary .sum-val.muted { color: rgba(255,255,255,0.5); }

/* No history */
.predict-no-history {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 991px) {
  .predict-history-container { flex-direction: column; }
  .predict-history-sidebar { flex-direction: row; overflow-x: auto; min-width: 0; margin-top: 10px; }
  .predict-history-sidebar-item { font-size: 0.9rem; padding: 0.6rem 0.8rem; }

  /* predict match row: เปลี่ยนเป็น 3 แถว บน mobile */
  .predict-match-row {
    display: grid;
    grid-template-columns: 0 auto auto 0;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 0.5rem;
    gap: 0.2rem 0.5rem;
  }
  .predict-match-num   { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .predict-team        { grid-column: 2; grid-row: 1; font-size: 1.1rem; min-width: 0; }
  .predict-team.away   { grid-column: 3; grid-row: 1; text-align: right; }
  .predict-radio-group { grid-column: 2 / 4; grid-row: 2; }
  .predict-result-badge { grid-column: 2 / 4; grid-row: 2; justify-self: end; }

  /* ปุ่ม radio ขนาดพอดี mobile */
  .predict-radio-btn .rb-label { width: auto; font-size: 0.9rem; padding: 0.5rem 1rem; }
}


/* ══════════════════════════════════════════════════════════
   PAGE: ACTIVITY EXCHANGE (/member/activity/exchange)
   ══════════════════════════════════════════════════════════ */
.exchange-page-wrap { padding: 1.5rem; }
.exchange-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.exchange-card {
  background: rgba(18,18,18,0.9);
  /* border: 1px solid rgba(229,184,88,0.2); */
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  padding: 6px;
}
.exchange-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
.exchange-card img { width: 70%; aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto; }
.exchange-card .exc-info { padding: 0.7rem; text-align: center; }
.exchange-card .exc-name { font-size: 0.82rem; color: var(--text-white); margin-bottom: 0.3rem; font-weight: 500; }
.exchange-card .exc-price { font-size: 0.8rem; color: var(--gold); display: flex; align-items: center; gap: 0.3rem; justify-content: center;}
.exchange-card .exc-price img { width: 14px; margin: unset; }
.exchange-card .btn-exchange {
  display: block;
  margin: 0.3rem 0.7rem 0.7rem;
  padding: 0.45rem 0;
  border-radius: 50px;
  background: linear-gradient(180deg, #e5b858, #8b5a00, #e5b858);
  color: #000;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}
.exchange-card .btn-exchange:hover { opacity: 0.85; }

/* ── image-frame (existing exchange style) ────────────────── */
.image-frame { border-radius: var(--radius-sm); overflow: hidden; }
.image-frame-action {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6);
  padding: 0.5rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.image-frame:hover .image-frame-action { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   PAGE: CONTACT / AFFILIATE / etc
   ══════════════════════════════════════════════════════════ */
.btn-gold { 
  background: linear-gradient(180deg, #e5b858 0%, #8b5a00 55%, #e5b858 100%) !important;
  color: #000 !important;
  border-color: var(--gold) !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
}
.btn-gold:hover {
  background: linear-gradient(180deg, #f6d98e 0%, #6b3a00 55%, #f6d98e 100%) !important;
  color: #000 !important;
}
.btn-secondary {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: rgba(255,255,255,0.8) !important;
}
.btn-primary {
  background: rgba(99,102,241,0.2) !important;
  border-color: rgba(99,102,241,0.5) !important;
  color: rgba(200,200,255,0.9) !important;
}
.btn-primary:hover {
  background: rgba(99,102,241,0.35) !important;
}
.btn-success {
  background: rgba(74,222,128,0.15) !important;
  border-color: rgba(74,222,128,0.4) !important;
  color: #4ade80 !important;
}
.btn-danger {
  background: rgba(248,113,113,0.15) !important;
  border-color: rgba(248,113,113,0.4) !important;
  color: #f87171 !important;
}

/* Bank cards */
.bank {
  max-width: 320px;
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--gold-border);
}
.card.bank.scb {
  background-color: #582584 !important;
}
.card.bank.kbank {
  background-color: #008d36 !important;
}
.card.bank.bay {
  background-color: #ffbe00 !important;
}
.card.bank.baac {
  background-color: #13007d !important;
}
.card.bank.bbl {
  background-color: #111583 !important;
}
.card.bank.cimb {
  background-color: #8a2034 !important;
}
.card.bank.gh {
  background-color: #f89828 !important;
}
.card.bank.gsb {
  background-color: #f3399c !important;
}
.card.bank.kk {
  background-color: #009dca !important;
}
.card.bank.ktb {
  background-color: #0090d6 !important;
}
.card.bank.lhbank, .card.bank.tmb, .card.bank.ttb, .card.bank.tisco {
  background-color: #ffffff !important;
  color: #555 !important;
}
.card.bank.tbank {
  background-color: #f37022 !important;
}
.card.bank.uob {
  background-color: #00246a !important;
}

/* ── Bootstrap overrides ──────────────────────────────────── */
.card { background: rgba(0,0,0,0.4) !important; border: 1px solid var(--gold-border) !important; border-radius: var(--radius) !important; }
.card-header { background: rgba(229,184,88,0.07) !important; border-bottom: 1px solid var(--gold-border) !important; color: var(--gold) !important; }
.card-body { color: var(--text-white) !important; }
.list-star li { color: rgba(255,255,255,0.8); font-size: 0.88rem; margin-bottom: 0.3rem; }
.list-star li::before { content: '⭐ '; font-size: 0.7rem; }

/* ── Accordion ────────────────────────────────────────────── */
.accordion-button {
  background: rgba(20,20,20,0.9) !important;
  color: var(--text-white) !important;
  border: 1px solid var(--gold-border) !important;
}
.accordion-button:not(.collapsed) {
  background: rgba(229,184,88,0.1) !important;
  color: var(--gold) !important;
}
.accordion-body {
  background: rgba(12,12,12,0.9) !important;
  color: var(--text-white) !important;
}

/* ── Deposit countdown float ──────────────────────────────── */
.deposit-countdown {
  position: fixed;
  top: 30vh;
  right: 0;
  padding: 12px 15px;
  background: rgba(10,10,10,0.95);
  border: 1px solid var(--gold-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--text-white);
  font-size: 0.82rem;
  z-index: 999;
}
.deposit-countdown #countdown { color: var(--gold); font-weight: 600; }

/* ── Coin icon ────────────────────────────────────────────── */
.coin { display: inline-block; }

/* ══════════════════════════════════════════════════════════
   PAGE: LOGIN UFA / CASINO (/member/login_ufa)
   ══════════════════════════════════════════════════════════ */
.login-ufa-wrap { padding: 2rem; text-align: center; }
.login-ufa-wrap .game-btn {
  display: inline-block;
  padding: 1rem 3rem;
  border-radius: 50px;
  background: linear-gradient(180deg, #e5b858 0%, #8b5a00 55%, #e5b858 100%);
  color: #000;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(229,184,88,0.3);
  transition: var(--transition);
}
.login-ufa-wrap .game-btn:hover { transform: scale(1.03); box-shadow: 0 8px 30px rgba(229,184,88,0.5); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  body { background-attachment: scroll; }
  .bodyMember { padding-bottom: 100px; }
  .header-middle-area { display: none !important; } /* replaced by mobile header */
  .bmd-layout-container { display: block !important; }
  .navbar .container { padding: 0; }
  .navbar-nav .nav-link { padding: 0.7rem 1rem !important; }

  .deposit-layout { flex-direction: column; }
  .deposit-sidebar { width: 100%; flex-direction: row; }
  .deposit-sidebar-btn { flex: 1; flex-direction: row; padding: 1rem; }
  .deposit-sidebar-btn.active { border-bottom: 2px solid var(--gold); }

  .turnover-cards-row { flex-direction: column; }
  .exchange-grid { grid-template-columns: repeat(2, 1fr); }
  .countdown-box .num { font-size: 1.5rem; }
}

@media (max-width: 575px) {
  .login-card { padding: 1.8rem 1.2rem; border-radius: 16px; }
  .coupon-page-wrap { padding: 1rem; }
  .turnover-page-wrap, .deposit-page-wrap, .withdrawal-page-wrap,
  .lotto-page-wrap, .predict-page-wrap, .exchange-page-wrap { padding: 1rem; }
  .match-table thead th, .match-table tbody td { font-size: 0.75rem; padding: 0.5rem 0.4rem; }
  .exchange-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .channel-cards { gap: 0.5rem; }
  .channel-card { min-width: 70px; padding: 0.7rem 0.4rem; }
  .page-title-gold { font-size: 1.5rem !important; }
}

/* ── Animation utilities ──────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(90deg, #cb9b51 0%, #f6e27a 40%, #f6f2c0 50%, #f6e27a 60%, #cb9b51 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes glow {
  0%,100% { box-shadow: 0 0 10px rgba(229,184,88,0.2); }
  50% { box-shadow: 0 0 25px rgba(229,184,88,0.5); }
}
.glow-gold { animation: glow 2s ease-in-out infinite; }


/* ── Input bg fix ─────────────────────────────────────────── */
.input-bg-white {
  background: rgba(255,255,255,0.05) !important;
  color: var(--text-white) !important;
  border: 1px solid var(--gold-border) !important;
}

/* ── Fix white input backgrounds (high specificity to override Bootstrap 4) ── */
body .form-control,
body input[type="text"],
body input[type="number"],
body input[type="password"],
body input[type="tel"],
body input[type="email"],
body input[type="search"],
body textarea,
body select.form-control {
  background-color: rgba(15,10,5,0.85) !important;
  color: var(--text-white) !important;
  border-color: rgba(229,184,88,0.35) !important;
}
body .form-control:focus,
body input[type="text"]:focus,
body input[type="number"]:focus,
body input[type="password"]:focus,
body input[type="tel"]:focus,
body input[type="email"]:focus,
body input[type="search"]:focus,
body textarea:focus,
body select.form-control:focus {
  background-color: rgba(15,10,5,0.95) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(229,184,88,0.15) !important;
  outline: none !important;
  color: var(--text-white) !important;
}
body .form-control::placeholder,
body input::placeholder { color: #666 !important; }

/* ── Override Chrome autofill white background ── */
body input:-webkit-autofill,
body input:-webkit-autofill:hover,
body input:-webkit-autofill:focus,
body input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(15,10,5,0.95) inset !important;
  box-shadow: 0 0 0 1000px rgba(15,10,5,0.95) inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  border-color: rgba(229,184,88,0.35) !important;
}

/* ── Override .input-bg-white class used in fast-deposit ── */
body .input-bg-white,
body input.input-bg-white,
body .form-control.input-bg-white {
  background-color: rgba(15,10,5,0.85) !important;
  color: var(--text-white) !important;
  border-color: rgba(229,184,88,0.35) !important;
}
body .input-bg-white:focus,
body input.input-bg-white:focus,
body .form-control.input-bg-white:focus {
  background-color: rgba(15,10,5,0.95) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(229,184,88,0.15) !important;
  color: var(--text-white) !important;
}

/* ── Fix bmd-layout blank space ───────────────────────────── */
.bmd-layout-container {
  min-height: auto !important;
}
.bmd-layout-content {
  min-height: auto !important;
  overflow: visible !important;
}

/* ── Footer fix ───────────────────────────────────────────── */
.footer-content.bg-grey {
  background: rgba(5,5,5,0.9) !important;
  border-top: 1px solid rgba(229,184,88,0.15);
  position: relative;
  z-index: 2;
}

/* ── Page illustration accents ────────────────────────────── */
/* Deposit page: player-deposit image as decorative accent */
.bodyMember [class*="deposit"] > .container > .row::before,
.bodyMember .deposit-page::before {
  content: '';
  display: block;
}

/* ── Turnover card illustrations ──────────────────────────── */
.turnover-card[data-type="cashback"] .card-bg-img {
  content: url('../images/member-ufalove/player-turnover.png');
}
.turnover-card[data-type="trn"] .card-bg-img {
  content: url('../images/member-ufalove/player-deposit.png');
}

/* ── Activity trophy icon ─────────────────────────────────── */
.activity-trophy {
  width: 100px;
  height: auto;
  content: url('../images/member-ufalove/trophy-gold.png');
}

/* ── Coin/reward areas ────────────────────────────────────── */
.reward-icon-img {
  content: url('../images/member-ufalove/trophy-gold.png');
}

/* ── bgTab override (prevent old min-height 650px blank space) */
.bgTab1 {
  background-image: none !important;
  min-height: auto !important;
}

/* ── Style.css body background override ──────────────────── */
body.bgLogin {
  background-image: url('../images/member-ufalove/bg-login.jpg') !important;
  background-size: max(1400px, 100%) auto !important;
  background-repeat: no-repeat !important;
  background-color: #000 !important;
}

/* Prevent double background on non-login pages */
body:not(.bgLogin) {
  background-image: url('../images/member-ufalove/bg-labs.jpg') !important;
  background-attachment: fixed !important;
  background-position: center center !important;
  /* background-size: cover !important; */
  background-size: max(2700px, 100%) auto !important;
}
body#member_loginufa {
  background-image: url('../images/member-ufalove/bg-ufa-login.jpg') !important;
  background-size: max(1000px, 100%) auto !important;
  background-repeat: no-repeat !important;
  background-color: #000 !important;
}
body#activity_lotto_index {
  background-image: url('../images/member-ufalove/bg-lotto.jpg') !important;
  background-size: max(1000px, 100%) auto !important;
  background-repeat: no-repeat !important;
  background-color: #000 !important;
}
body#activity_exchange_index {
  background-image: url('../images/member-ufalove/bg-exchange.jpg') !important;
  background-size: max(1000px, 100%) auto !important;
  background-repeat: no-repeat !important;
  background-color: #000 !important;
}
body#activity_predict_index {
  background-image: url('../images/member-ufalove/bg-predict.jpg') !important;
  background-size: max(1000px, 100%) auto !important;
  background-repeat: no-repeat !important;
  background-color: #000 !important;
}
body#member_turnover, body#member_turnover-member-payback, body#member_turnover-member-receive {
  background-image: url('../images/member-ufalove/bg-turnover.jpg') !important;
  background-size: max(1000px, 100%) auto !important;
  background-repeat: no-repeat !important;
  background-color: #000 !important;
}
body#member_deposit, body#member_cdm, body#member_history {
  background-image: url('../images/member-ufalove/bg-deposit.jpg') !important;
  background-size: max(1000px, 100%) auto !important;
  background-repeat: no-repeat !important;
  background-color: #000 !important;
}
body#member_withdrawal {
  background-image: url('../images/member-ufalove/bg-withdrawal.jpg') !important;
  background-size: max(1000px, 100%) auto !important;
  background-repeat: no-repeat !important;
  background-color: #000 !important;
}

/* ══════════════════════════════════════════════════════════
   FIX: Dropdown menus Z-index (overlapping content fix)
   ══════════════════════════════════════════════════════════ */
/* Ensure the body content sits BELOW navigation */
.bodyMember {
  position: relative;
  z-index: 1;
}
/* Navbar must be above content for dropdown to work */
.navbar {
  z-index: 1030 !important;
  position: relative !important;
}
.header-middle-area {
  z-index: 1040 !important;
  position: relative !important;
}
/* Dropdown menu explicitly higher z-index */
.dropdown-menu {
  z-index: 9999 !important;
}
/* Fix the bmd mobile header */
.bmd-layout-header {
  z-index: 1050 !important;
}
.bmd-layout-drawer {
  z-index: 1060 !important;
}

/* ══════════════════════════════════════════════════════════
   FIX: Remove card/box border on bodyMember content
   ══════════════════════════════════════════════════════════ */
/* Remove the outer container border so content bleeds edge-to-edge */
.bodyMember > .container > .row > .col-12 > .bg-grey,
.bodyMember > .container > .row > [class*="col"] > .bg-grey {
  border-radius: var(--radius) !important;
}

/* ══════════════════════════════════════════════════════════
   FIX: Badge text visibility (Bootstrap badges in JS-rendered tables)
   ══════════════════════════════════════════════════════════ */
.badge {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 0.3em 0.65em !important;
  border-radius: 50px !important;
}
.badge-success {
  background: rgba(74,222,128,0.2) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74,222,128,0.4) !important;
}
.badge-danger {
  background: rgba(248,113,113,0.2) !important;
  color: #f87171 !important;
  border: 1px solid rgba(248,113,113,0.4) !important;
}
.badge-warning {
  background: rgba(229,184,88,0.2) !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold-border) !important;
}
.badge-info {
  background: rgba(99,179,237,0.2) !important;
  color: #63b3ed !important;
  border: 1px solid rgba(99,179,237,0.4) !important;
}
/* Fix label badges rendered as <label class="badge ..."> */
label.badge {
  margin-bottom: 0 !important;
  display: inline-block !important;
}

/* ══════════════════════════════════════════════════════════
   FIX: Quick amount buttons (deposit/withdrawal forms)
   ══════════════════════════════════════════════════════════ */
.quick-amounts {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin-bottom: 1rem !important;
  margin-top: 0.5rem !important;
}
.quick-amt-btn {
  background: rgba(229,184,88,0.08) !important;
  border: 1px solid rgba(229,184,88,0.3) !important;
  border-radius: 50px !important;
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 0.42rem 1rem !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  font-family: 'Prompt', sans-serif !important;
  outline: none !important;
  user-select: none !important;
}
.quick-amt-btn:hover,
.quick-amt-btn:focus {
  background: rgba(229,184,88,0.2) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  transform: translateY(-1px) !important;
}

/* ══════════════════════════════════════════════════════════
   FIX: Exchange grid columns (show 3 per row on desktop)
   ══════════════════════════════════════════════════════════ */
.exchange-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
}
@media (min-width: 768px) {
  .exchange-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (max-width: 576px) {
  .exchange-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.7rem !important;
  }
}

/* ══════════════════════════════════════════════════════════
   FIX: Deposit sidebar visible on both deposit AND withdrawal pages
   ══════════════════════════════════════════════════════════ */
.deposit-sidebar-btn {
  text-decoration: none !important;
}

/* ══════════════════════════════════════════════════════════
   FIX: History page - ensure tabs don't squish on mobile
   ══════════════════════════════════════════════════════════ */
.nav-tabs {
  flex-wrap: wrap !important;
}
.nav-tabs .nav-link {
  white-space: nowrap !important;
  min-width: auto !important;
  padding: 0.5rem 0.55rem !important;
  font-size: 0.85rem !important;
}
li.nav-item {
  border-top: unset !important;
}

/* ══════════════════════════════════════════════════════════
   FIX: Container max-width on member area
   ══════════════════════════════════════════════════════════ */
.bodyMember .container {
  max-width: 1200px;
}

/* ══════════════════════════════════════════════════════════
   FIX: Remove extra pt-5 padding from history sub-components
   ══════════════════════════════════════════════════════════ */
.tab-pane .bg-grey {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.tab-pane .bg-grey.p-3,
.tab-pane .bg-grey.pt-5 {
  padding: 0.5rem 0 !important;
}

/* ── Hover states on deposit/withdrawal sidebar buttons ── */
a.deposit-sidebar-btn { color: rgba(255,255,255,0.6) !important; }
/* a.deposit-sidebar-btn.active,
a.deposit-sidebar-btn:hover { color: var(--gold) !important; } */

.popover.show.bs-popover-top {
  z-index: 99999 !important;
}

/* -- Deposit adjust -- */
ul.thumbnails.image_picker_selector li {
  margin: 0 !important;
  width: 31%;
}

.promotion-select + ul li {
  width: 100% !important;
}
.promotion-select + ul li p, .channel-select + ul li p {
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
  /* color: #e5b858; */
}
.promotion-select + ul li .thumbnail {
  border: none !important;
  background: none !important;
}

.channel-select + ul {
  justify-content: center;
  align-items: stretch;
}
.channel-select + ul li img {
  width: 100%;
}
.channel-select + ul .thumbnail {
  /* border: none !important; */
  text-align: center;
  height: 100%;
  align-content: end;
}
.channel-select + ul .thumbnail>div {
  min-height: 22px;
  margin-bottom: 5px;
}

@media (max-width: 576px) {
  ul.thumbnails.image_picker_selector li {
    width: 48%;
  }
}

