/* ═══════════════════════════════════════════════════════════════════
   LI GAMING BD — WALLET BUTTON · SEARCH BAR · WALLET POPUP (pro 3D)
   Loaded last, so it intentionally wins over earlier header / finance rules.
   ═══════════════════════════════════════════════════════════════════ */

/* ───────────── 1) HEADER: three compact colour-coded 3D keys — Wallet (gold) · Profile (blue) · Cart (green) ───────────── */
html body #siteHeader#siteHeader .nav-wallet-btn,
html body #siteHeader#siteHeader .profile-nav,
html body #siteHeader#siteHeader .cart-nav {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 13px !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55) !important;
}
/* wallet: warm golden key — stands out from the dark header and from the blue wallet picture */
html body #siteHeader#siteHeader .nav-wallet-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .1) 48%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #ffe27d 0%, #ffbb30 54%, #f28f0c 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65) !important;
}
html body #siteHeader#siteHeader .nav-wallet-btn .nav-search-icon { background: none !important; }
html body #siteHeader#siteHeader .nav-wallet-btn .nav-search-icon img {
  display: block;
  width: 26px;
  height: auto;
  filter: drop-shadow(0 1px 1.5px rgba(70, 35, 0, .45));
  pointer-events: none;
}
html body #siteHeader#siteHeader .nav-wallet-btn .nav-search-label { color: #3a2300 !important; font-weight: 800 !important; }
/* profile: a round avatar with no tile, no ring and no border */
html body #siteHeader#siteHeader .profile-nav {
  background: none !important;
  box-shadow: none !important;
  border-radius: 50% !important;
  overflow: visible !important;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)) !important;
}
html body #siteHeader#siteHeader .profile-nav:hover { filter: brightness(1.1) drop-shadow(0 2px 3px rgba(0, 0, 0, .45)) !important; }
html body #siteHeader#siteHeader .profile-nav:active { box-shadow: none !important; }
html body #siteHeader#siteHeader .profile-nav .nav-avatar,
html body #siteHeader#siteHeader .profile-nav.logged .nav-avatar,
html body #siteHeader#siteHeader .profile-nav:not(.logged) .nav-avatar {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  overflow: hidden !important;
  box-shadow: none !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .08) 48%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #7cc4ff 0%, #3a86f2 54%, #2259c9 100%) !important;
}
html body #siteHeader#siteHeader .profile-nav .nav-avatar img {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
html body #siteHeader#siteHeader .profile-nav .nav-avatar .pp-i {
  width: 23px !important;
  height: 23px !important;
  filter: drop-shadow(0 1px 1px rgba(0, 40, 130, .5)) !important;
}
html body #siteHeader#siteHeader .profile-nav .nav-avatar.has-notification::after {
  top: 1px !important;
  right: 1px !important;
  width: 9px !important;
  height: 9px !important;
}/* cart: green */
html body #siteHeader#siteHeader .cart-nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .08) 48%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #74f0aa 0%, #25c368 54%, #13893f 100%) !important;
}
html body #siteHeader#siteHeader .cart-icon-v15 { color: #fff !important; }
html body #siteHeader#siteHeader .cart-icon-v15 svg { filter: drop-shadow(0 1px 1px rgba(0, 70, 30, .45)); }
/* glyph size */
html body #siteHeader#siteHeader .nav-wallet-btn .nav-search-icon,
html body #siteHeader#siteHeader .cart-icon-v15 { width: 26px !important; height: 26px !important; }
html body #siteHeader#siteHeader .cart-icon-v15 svg { width: 23px !important; height: 23px !important; }
@media (max-width: 380px) {
  html body #siteHeader#siteHeader .nav-wallet-btn,
  html body #siteHeader#siteHeader .profile-nav,
  html body #siteHeader#siteHeader .cart-nav { width: 35px !important; height: 35px !important; min-width: 35px !important; border-radius: 12px !important; }
  html body #siteHeader#siteHeader .nav-wallet-btn .nav-search-icon img { width: 24px; }
  html body #siteHeader#siteHeader .cart-icon-v15 svg { width: 21px !important; height: 21px !important; }
  html body #siteHeader#siteHeader .profile-nav .nav-avatar .pp-i { width: 21px !important; height: 21px !important; }
}
@media (min-width: 701px) {
  html body #siteHeader#siteHeader .nav-wallet-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 14px 0 9px !important;
  }
  html body #siteHeader#siteHeader .nav-wallet-btn .nav-search-label { font-size: 12.5px !important; letter-spacing: .02em !important; }
}

/* ───────────── 2) SEARCH BAR above "Contact Us" — inline search, blue 3D plate, no borders, no shadow underneath ───────────── */
html body .li-search-wrap {
  position: relative;
  width: 100%;
  margin: 0 0 var(--ls-gap, 36px);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
html body .li-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 9px 10px 9px 9px;
  border: 0;
  border-radius: 20px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .08) 49%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(80% 140% at 0% 0%, rgba(160, 215, 255, .5) 0%, rgba(160, 215, 255, 0) 60%),
    linear-gradient(180deg, #4f93ff 0%, #2d69ee 52%, #1c46bf 100%);
  box-shadow: none;
}
/* magnifier key: emerald 3D (clickable → search) */
html body .li-search-bar .lsb-tile {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .1) 49%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #4fe08c 0%, #19a850 54%, #0e7a37 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: filter .15s ease, transform .12s ease;
}
html body .li-search-bar .lsb-tile .pp-i { width: 22px; height: 22px; stroke-width: 3; filter: drop-shadow(0 1px 1px rgba(0, 60, 25, .55)); }
/* the typing field: deep blue, recessed, no outline */
html body .li-search-bar .lsb-field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  margin: 0;
  padding: 0 8px 0 15px;
  border-radius: 14px;
  cursor: text;
  background: linear-gradient(180deg, #0a1b52 0%, #12307d 100%);
  box-shadow: inset 0 3px 8px rgba(0, 8, 44, .6);
  transition: background .18s ease;
}
html body .li-search-bar .lsb-field:focus-within { background: linear-gradient(180deg, #0d2260 0%, #173a94 100%); }
html body .li-search-bar .lsb-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  caret-color: #5df0a0;
  font: 600 15.5px/1 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: .01em;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
html body .li-search-bar .lsb-input::placeholder { color: #c4d6ff; opacity: 1; font-weight: 600; letter-spacing: .02em; }
html body .li-search-bar .lsb-input:focus::placeholder { color: #9fb7f2; }
html body .li-search-bar .lsb-input::-webkit-search-cancel-button,
html body .li-search-bar .lsb-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
html body .li-search-bar .lsb-clear {
  flex: 0 0 auto;
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, .22);
}
html body .li-search-wrap.has-text .lsb-clear { display: grid; }
html body .li-search-bar .lsb-clear:hover { background: rgba(255, 255, 255, .36); }
html body .li-search-bar .lsb-clear .pp-i { width: 12px; height: 12px; stroke-width: 3.2; }
/* "Search" key: emerald 3D (clickable → search) */
html body .li-search-bar .lsb-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 42px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font: 800 12.5px/1 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 55, 22, .7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .1) 49%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #4fe08c 0%, #19a850 54%, #0e7a37 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: filter .15s ease, transform .12s ease;
}
html body .li-search-bar .lsb-tile:hover,
html body .li-search-bar .lsb-go:hover { filter: brightness(1.08); }
html body .li-search-bar .lsb-tile:active,
html body .li-search-bar .lsb-go:active { transform: translateY(2px); filter: brightness(.96); }
html body .li-search-bar .lsb-tile:focus-visible,
html body .li-search-bar .lsb-go:focus-visible { outline: 2px solid rgba(255, 255, 255, .85); outline-offset: 2px; }
/* suggestions drop down right under the bar (no popup) */
html body .li-search-results {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(62vh, 460px);
  padding: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 20px;
  background: linear-gradient(180deg, #232d52 0%, #19213f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 40px rgba(2, 6, 22, .5);
}
html body .li-search-results::-webkit-scrollbar { width: 0; height: 0; }
html body .li-search-results[hidden] { display: none !important; }
html body .li-search-results .lsr-item {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 8px 10px 8px 8px;
  border: 0;
  border-radius: 15px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: rgba(255, 255, 255, .07);
  font-family: inherit;
  transition: background .15s ease, transform .12s ease;
}
html body .li-search-results .lsr-item:hover { background: rgba(255, 255, 255, .13); }
html body .li-search-results .lsr-item:active { transform: translateY(1px); }
html body .li-search-results .lsr-thumb {
  display: block;
  width: 78px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
  background: #0d1430;
}
html body .li-search-results .lsr-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body .li-search-results .lsr-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
html body .li-search-results .lsr-copy strong {
  font: 700 14px/1.25 'Inter', system-ui, sans-serif;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body .li-search-results .lsr-copy small {
  font: 600 11px/1.2 'Inter', system-ui, sans-serif;
  color: #b3c1e6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body .li-search-results .lsr-price {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px 6px 12px;
  border-radius: 999px;
  font: 800 12.5px/1 'Inter', system-ui, sans-serif;
  white-space: nowrap;
  color: #3a2300;
  background: linear-gradient(180deg, #ffe58a 0%, #ffbb30 54%, #f09a0c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
html body .li-search-results .lsr-price b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 0; background: rgba(58, 35, 0, .16); }
html body .li-search-results .lsr-price b .pp-i { width: 11px; height: 11px; stroke-width: 3.2; }
html body .li-search-results .lsr-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 14px; text-align: center; }
html body .li-search-results .lsr-empty strong { font: 700 14.5px/1.3 'Inter', system-ui, sans-serif; color: #fff; }
html body .li-search-results .lsr-empty small { font: 500 12px/1.5 'Inter', system-ui, sans-serif; color: #b3c1e6; }
/* sit above the pearl contact bar in both places it appears */
html body .li-service-shell .li-search-wrap { max-width: 1100px; margin: 24px auto 0; }
html body .li-service-shell .li-search-wrap + .li-contact-bar { margin-top: var(--ls-gap, 36px) !important; }
/* equal spacing: Search bar ↔ Contact Us  ==  Contact Us ↔ Privacy Policy (one shared value) */
:root { --ls-gap: 36px; }
html body #support#support .li-search-wrap { margin: 0 0 var(--ls-gap, 36px); }
html body #support#support .li-search-wrap + .li-contact-bar { margin: 0 !important; }
html body #support#support { margin-bottom: 0 !important; padding-bottom: 0 !important; }
html body #mainSiteContent { padding-bottom: 0 !important; margin-bottom: 0 !important; }
html body #mainSiteContent > .wrap { padding-bottom: 0 !important; margin-bottom: 0 !important; }
html body #siteFooter#siteFooter { margin-top: 0 !important; padding-top: var(--ls-gap, 36px) !important; }
html body #siteFooter#siteFooter > .wrap { padding-top: 0 !important; }
html body #siteFooter#siteFooter .footer-legal-card { margin-top: 0 !important; padding-top: 0 !important; }
@media (max-width: 480px) {
  html body .li-search-bar { min-height: 54px; gap: 8px; padding: 7px 8px 7px 7px; border-radius: 18px; }
  html body .li-search-bar .lsb-tile { width: 38px; height: 38px; border-radius: 12px; }
  html body .li-search-bar .lsb-field { height: 38px; padding: 0 6px 0 12px; border-radius: 12px; }
  html body .li-search-bar .lsb-input { font-size: 15px; }
  html body .li-search-bar .lsb-go { height: 38px; padding: 0 13px; border-radius: 12px; font-size: 11.5px; }
  html body .li-search-results .lsr-item { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
  html body .li-search-results .lsr-thumb { width: 64px; height: 38px; }
}
/* ───────────── 3) WALLET POPUP — premium redesign ───────────── */
html body #financeModal#financeModal:not(#zz) .finance-modal-box {
  border: 0 !important;
  border-radius: 28px !important;
  background:
    linear-gradient(90deg, #ffe58a 0%, #f7bd16 34%, #34d482 100%) top / 100% 4px no-repeat,
    radial-gradient(120% 55% at 50% -8%, rgba(255, 214, 102, .17) 0%, rgba(255, 214, 102, 0) 62%),
    linear-gradient(180deg, #1c2449 0%, #131a38 55%, #0b1024 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(150, 172, 235, .24),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 30px 60px -18px rgba(0, 0, 0, .8) !important;
}

/* heading: gold wallet tile + title */
html body #financeModal#financeModal:not(#zz) .finance-modal-heading { gap: 13px !important; margin: 0 44px 16px 0 !important; align-items: center !important; }
html body #financeModal#financeModal:not(#zz) .finance-modal-icon {
  position: relative !important;
  width: 50px !important;
  height: 50px !important;
  flex: 0 0 50px !important;
  border-radius: 17px !important;
  font-size: 0 !important;
  color: transparent !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #ffe58a 0%, #f7bd16 56%, #dc9505 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -3px 0 rgba(140, 85, 0, .35), 0 3px 0 #8a5600 !important;
}
html body #financeModal#financeModal:not(#zz) .finance-modal-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a2600' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5A2.5 2.5 0 0 1 6.5 5H18v3'/%3E%3Cpath d='M4 7.5V17a2 2 0 0 0 2 2h12.5a1.5 1.5 0 0 0 1.5-1.5v-8A1.5 1.5 0 0 0 18.5 8H6.5A2.5 2.5 0 0 1 4 7.5z'/%3E%3Ccircle cx='16.2' cy='13.5' r='1.3' fill='%233a2600' stroke='none'/%3E%3C/svg%3E");
}
html body #financeModal#financeModal:not(#zz) .finance-modal-box:has(#financeRewardsView:not([hidden])) .finance-modal-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233a2600' stroke='%233a2600' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M12 2.8l2.8 5.8 6.4.9-4.6 4.5 1.1 6.3L12 17.3 6.3 20.3l1.1-6.3L2.8 9.5l6.4-.9z'/%3E%3C/svg%3E");
}
/* wallet view: the 3D coin-wallet picture replaces the gold tile (VIP & Rewards view keeps the star tile) */
html body #financeModal#financeModal:not(#zz) .finance-modal-box:has(#financeWalletView:not([hidden])) .finance-modal-icon {
  width: 62px !important;
  height: 58px !important;
  flex: 0 0 62px !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45));
}
html body #financeModal#financeModal:not(#zz) .finance-modal-box:has(#financeWalletView:not([hidden])) .finance-modal-icon::before {
  width: 100%;
  height: 100%;
  background-image: url("/assets/wallet-popup.png");
}html body #financeModal#financeModal:not(#zz) .finance-modal-heading small {
  color: #ffd95c !important;
  font: 800 10.5px/1 'Inter', system-ui, sans-serif !important;
  letter-spacing: .22em !important;
}
html body #financeModal#financeModal:not(#zz) .finance-modal-heading h2 {
  margin-top: 5px !important;
  font: 900 24px/1.05 'Sora', 'Inter', system-ui, sans-serif !important;
  letter-spacing: -.025em !important;
  color: #fff !important;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35) !important;
}
html body #financeModal#financeModal:not(#zz) .finance-modal-close {
  top: 14px !important;
  right: 14px !important;
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: linear-gradient(180deg, #4d5a8c 0%, #2b3560 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(150, 172, 235, .24) !important;
}

/* balance: credit-card style hero */
html body #financeModal#financeModal:not(#zz) .fm-wallet-overview {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 11px !important;
  margin-bottom: 12px !important;
}
html body #financeModal#financeModal:not(#zz) .fm-wallet-overview .fm-balance-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 112px !important;
  padding: 18px 20px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 22px !important;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(255, 214, 102, .32) 0%, rgba(255, 214, 102, 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, #3f4f9c 0%, #28337c 52%, #1a2257 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 0 0 1px rgba(160, 182, 242, .3) !important;
}
/* concentric rings watermark */
html body #financeModal#financeModal:not(#zz) .fm-wallet-overview .fm-balance-card::before {
  content: "";
  position: absolute;
  right: -42px;
  top: -46px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, rgba(255, 255, 255, .09) 0 2px, rgba(255, 255, 255, 0) 2px 16px);
  pointer-events: none;
}
/* gold card chip */
html body #financeModal#financeModal:not(#zz) .fm-wallet-overview .fm-balance-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 16px;
  width: 38px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(120, 70, 0, .35) 1px, rgba(0, 0, 0, 0) 1px) 12px 0 / 12px 100% repeat-x,
    linear-gradient(180deg, #ffe9a0 0%, #f2b919 55%, #d98f0a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(120, 70, 0, .4);
  pointer-events: none;
}
html body #financeModal#financeModal:not(#zz) .fm-wallet-overview .fm-balance-card > small {
  position: relative;
  z-index: 1;
  color: #c6d3f5 !important;
  font: 800 10.5px/1 'Inter', system-ui, sans-serif !important;
  letter-spacing: .2em !important;
}
html body #financeModal#financeModal:not(#zz) .fm-wallet-overview .fm-balance-card > strong {
  position: relative;
  z-index: 1;
  margin: 9px 0 0 !important;
  color: #ffe08a !important;
  font: 900 36px/1.05 'Sora', 'Inter', system-ui, sans-serif !important;
  letter-spacing: -.02em !important;
  text-shadow: 0 2px 0 #8a5600, 0 3px 0 #6b4200, 0 8px 14px rgba(0, 0, 0, .45) !important;
}
html body #financeModal#financeModal:not(#zz) .fm-add-money-shortcut {
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  border: 0 !important;
  border-radius: 16px !important;
  color: #3a2600 !important;
  font: 900 13.5px/1 'Sora', 'Inter', system-ui, sans-serif !important;
  letter-spacing: .06em !important;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #ffe58a 0%, #f7bd16 56%, #dc9505 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -3px 0 rgba(140, 85, 0, .3), 0 3px 0 #8a5600 !important;
}
html body #financeModal#financeModal:not(#zz) .fm-add-money-shortcut:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 #8a5600 !important; }

/* top-up panel */
html body #financeModal#financeModal:not(#zz) .fm-topup-form {
  gap: 10px !important;
  margin: 0 0 14px !important;
  padding: 12px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(8, 12, 30, .55) 0%, rgba(14, 20, 44, .55) 100%) !important;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(150, 172, 235, .16) !important;
}
html body #financeModal#financeModal:not(#zz) .fm-quick-amounts { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 7px !important; }
html body #financeModal#financeModal:not(#zz) .fm-quick-amounts button {
  min-height: 38px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #ffe08a !important;
  font: 800 12.5px/1 'Sora', 'Inter', system-ui, sans-serif !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 48%), linear-gradient(180deg, #34406f 0%, #242e55 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(150, 172, 235, .22), 0 3px 0 #10173a !important;
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
html body #financeModal#financeModal:not(#zz) .fm-quick-amounts button:hover { filter: brightness(1.15); }
html body #financeModal#financeModal:not(#zz) .fm-quick-amounts button:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 #10173a !important; }
html body #financeModal#financeModal:not(#zz) .fm-topup-row { display: flex !important; gap: 8px !important; align-items: stretch !important; }
html body #financeModal#financeModal:not(#zz) .fm-topup-row input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 46px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #fff !important;
  font: 800 16px/1 'Sora', 'Inter', system-ui, sans-serif !important;
  background: linear-gradient(180deg, #080c1f 0%, #111835 100%) !important;
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(150, 172, 235, .2) !important;
  outline: none !important;
}
html body #financeModal#financeModal:not(#zz) .fm-topup-row input:focus { box-shadow: inset 0 3px 7px rgba(0, 0, 0, .65), 0 0 0 2px rgba(247, 189, 22, .65) !important; }
html body #financeModal#financeModal:not(#zz) .fm-topup-row button {
  flex: 0 0 auto !important;
  height: 46px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #3a2600 !important;
  font: 900 12px/1 'Sora', 'Inter', system-ui, sans-serif !important;
  letter-spacing: .04em !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, #ffe58a 0%, #f7bd16 56%, #dc9505 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(140, 85, 0, .35), 0 3px 0 #8a5600 !important;
}
html body #financeModal#financeModal:not(#zz) .fm-topup-row button:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 #8a5600 !important; }

/* history */
html body #financeModal#financeModal:not(#zz) .fm-section-title { margin: 2px 0 9px !important; }
html body #financeModal#financeModal:not(#zz) .fm-section-title h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  color: #fff !important;
  font: 900 13px/1 'Sora', 'Inter', system-ui, sans-serif !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
}
html body #financeModal#financeModal:not(#zz) .fm-section-title h3::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffe58a, #f7bd16);
}
html body #financeModal#financeModal:not(#zz) .fm-ledger { display: grid !important; gap: 7px !important; }
html body #financeModal#financeModal:not(#zz) .fm-ledger-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 11px 13px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .03) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(150, 172, 235, .13) !important;
}
html body #financeModal#financeModal:not(#zz) .fm-ledger-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html body #financeModal#financeModal:not(#zz) .fm-ledger-main b { color: #fff !important; font: 800 13px/1.15 'Inter', system-ui, sans-serif !important; }
html body #financeModal#financeModal:not(#zz) .fm-ledger-main small { color: #9fb0d8 !important; font: 600 11px/1.1 'Inter', system-ui, sans-serif !important; }
html body #financeModal#financeModal:not(#zz) .fm-ledger-amount { font: 900 14.5px/1 'Sora', 'Inter', system-ui, sans-serif !important; white-space: nowrap; }
html body #financeModal#financeModal:not(#zz) .fm-ledger-amount.positive { color: #62f0a4 !important; }
html body #financeModal#financeModal:not(#zz) .fm-ledger-amount.negative { color: #ff8f9c !important; }
html body #financeModal#financeModal:not(#zz) .fm-empty {
  padding: 18px 12px !important;
  border-radius: 15px !important;
  text-align: center !important;
  color: #9fb0d8 !important;
  font: 700 12.5px/1.3 'Inter', system-ui, sans-serif !important;
  background: rgba(255, 255, 255, .03) !important;
  outline: 1px dashed rgba(150, 172, 235, .22);
  outline-offset: -1px;
}
html body #financeModal#financeModal:not(#zz) .fm-bottom-link {
  margin-top: 12px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 17px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 50%), linear-gradient(180deg, #34406f 0%, #242e55 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(150, 172, 235, .22), 0 3px 0 #10173a !important;
}
@media (max-width: 420px) {
  html body #financeModal#financeModal:not(#zz) .fm-wallet-overview .fm-balance-card > strong { font-size: 31px !important; }
  html body #financeModal#financeModal:not(#zz) .finance-modal-heading h2 { font-size: 21px !important; }
  html body #financeModal#financeModal:not(#zz) .fm-topup-row button { padding: 0 12px !important; font-size: 11px !important; }
}

/* ───────────── 4) PROFILE POPUP — only slightly brighter than the original dark card, same simple system font ───────────── */
html body #profileModal#profileModal:not(#zz) .premium-profile-box-v2 {
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #1b2538 0%, #141d2f 55%, #101828 100%) !important;
  border: 0 !important;
  border-radius: 26px !important;
  color: #fff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 60px rgba(2, 6, 18, .55) !important;
}
html body #profileModal#profileModal:not(#zz) .premium-profile-box-v2 * { font-family: inherit !important; }
/* close (×) button */
html body #profileModal#profileModal:not(#zz) .profile-close-v2 {
  top: 12px !important;
  right: 12px !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .1) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3) !important;
  transition: transform .2s ease, background .2s ease !important;
}
html body #profileModal#profileModal:not(#zz) .profile-close-v2 svg { width: 14px !important; height: 14px !important; stroke-width: 3 !important; }
html body #profileModal#profileModal:not(#zz) .profile-close-v2:hover {
  background: linear-gradient(180deg, #ff8a8a 0%, #ee4a55 100%) !important;
  transform: rotate(90deg) !important;
}
html body #profileModal#profileModal:not(#zz) .profile-close-v2:active { transform: rotate(90deg) scale(.92) !important; }
/* hero */
html body #profileModal#profileModal:not(#zz) .profile-hero-v3 { border-bottom: 1px solid rgba(255, 255, 255, .09) !important; }
html body #profileModal#profileModal:not(#zz) .profile-avatar-v3 { background: #0b1220 !important; border: 0 !important; }
html body #profileModal#profileModal:not(#zz) .profile-avatar-camera-icon-v3 { border: 2px solid #141d2f !important; }
html body #profileModal#profileModal:not(#zz) .profile-name-row-v3 h2 { color: #fff !important; font-weight: 700 !important; max-width: 170px !important; }
html body #profileModal#profileModal:not(#zz) .profile-edit-btn-v3 { background: rgba(255, 255, 255, .1) !important; border: 0 !important; color: #e9eefc !important; }
html body #profileModal#profileModal:not(#zz) .profile-edit-btn-v3:hover { background: rgba(255, 255, 255, .18) !important; color: #fff !important; }
html body #profileModal#profileModal:not(#zz) .profile-contact-v3,
html body #profileModal#profileModal:not(#zz) .profile-contact-v3 span { color: #b9c6e4 !important; }
html body #profileModal#profileModal:not(#zz) .badge-vip-v3 { background: rgba(255, 215, 0, .14) !important; border: 0 !important; }
html body #profileModal#profileModal:not(#zz) .vip-text { color: #ffd966 !important; }
html body #profileModal#profileModal:not(#zz) .badge-level-v3 { background: rgba(255, 255, 255, .1) !important; color: #d3dcf2 !important; }
/* VIP strip */
html body #profileModal#profileModal:not(#zz) .profile-vip-progress-v3 { background: rgba(255, 255, 255, .06) !important; border: 0 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important; }
html body #profileModal#profileModal:not(#zz) .vip-progress-icon-v3 { background: rgba(255, 215, 0, .16) !important; border: 0 !important; color: #ffd966 !important; }
html body #profileModal#profileModal:not(#zz) .vip-label-small { color: #a3b3d6 !important; }
html body #profileModal#profileModal:not(#zz) .vip-progress-title-row strong { color: #fff !important; }
html body #profileModal#profileModal:not(#zz) .vip-level-badge-small { background: rgba(255, 255, 255, .1) !important; color: #ffd966 !important; }
html body #profileModal#profileModal:not(#zz) .vip-progress-bar-wrap { background: rgba(0, 0, 0, .35) !important; }
html body #profileModal#profileModal:not(#zz) .vip-progress-footer-row,
html body #profileModal#profileModal:not(#zz) .vip-progress-footer-row span { color: #b9c6e4 !important; }
html body #profileModal#profileModal:not(#zz) .vip-points-text { color: #ffd966 !important; }
/* orders */
html body #profileModal#profileModal:not(#zz) .profile-orders-section-v3 { background: rgba(255, 255, 255, .045) !important; border: 0 !important; }
html body #profileModal#profileModal:not(#zz) .order-tab-item { background: rgba(255, 255, 255, .07) !important; border: 0 !important; color: #b4c0dc !important; }
html body #profileModal#profileModal:not(#zz) .order-tab-item.active {
  background: linear-gradient(180deg, #ffe58a 0%, #ffb92e 100%) !important;
  color: #3a2300 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6) !important;
}
html body #profileModal#profileModal:not(#zz) .orders-badge-v3 { background: #e2482f !important; color: #fff !important; }
html body #profileModal#profileModal:not(#zz) .empty-orders-state-v3 { background: rgba(255, 255, 255, .035) !important; border: 1px dashed rgba(255, 255, 255, .18) !important; }
html body #profileModal#profileModal:not(#zz) .empty-orders-state-v3 .empty-box-icon { color: #cfd9f1 !important; }
html body #profileModal#profileModal:not(#zz) .empty-title { color: #fff !important; }
html body #profileModal#profileModal:not(#zz) .empty-sub { color: #9fb0d3 !important; }
html body #profileModal#profileModal:not(#zz) .customer-order-card { background: rgba(255, 255, 255, .07) !important; border-color: rgba(255, 255, 255, .12) !important; color: #fff !important; }
html body #profileModal#profileModal:not(#zz) .customer-order-head strong { color: #fff !important; }
html body #profileModal#profileModal:not(#zz) .customer-order-head small,
html body #profileModal#profileModal:not(#zz) .customer-order-meta,
html body #profileModal#profileModal:not(#zz) .customer-order-meta span,
html body #profileModal#profileModal:not(#zz) .customer-order-note { color: #c3cfe8 !important; }
/* linked login methods */
html body #profileModal#profileModal:not(#zz) .profile-account-links::before { color: #a3b3d6 !important; }
html body #profileModal#profileModal:not(#zz) .pal-provider { background: linear-gradient(180deg, rgba(255, 255, 255, .17) 0%, rgba(255, 255, 255, .11) 100%) !important; border: 0 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22) !important; }
html body #profileModal#profileModal:not(#zz) .pal-provider b { color: #fff !important; }
html body #profileModal#profileModal:not(#zz) .pal-provider small { color: #c3d0ec !important; }
/* stats */
html body #profileModal#profileModal:not(#zz) .stat-card-v3 { background: rgba(255, 255, 255, .07) !important; border: 0 !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1) !important; }
html body #profileModal#profileModal:not(#zz) .stat-icon-v3 { color: #ffd966 !important; }
html body #profileModal#profileModal:not(#zz) .stat-card-v3 b { color: #fff !important; }
html body #profileModal#profileModal:not(#zz) .stat-card-v3 small { color: #a9b8d8 !important; }
/* logout */
html body #profileModal#profileModal:not(#zz) .logout-btn-v3 {
  background: linear-gradient(180deg, #f46f77 0%, #d9434d 100%) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4) !important;
}
html body #profileModal#profileModal:not(#zz) .logout-btn-v3 b,
html body #profileModal#profileModal:not(#zz) .logout-btn-v3 svg { color: #fff !important; }
html body #profileModal#profileModal:not(#zz) .logout-btn-v3:hover { background: linear-gradient(180deg, #f9808a 0%, #e2515b 100%) !important; }
/* name editor panel */
html body #profileModal#profileModal .profile-name-editor.show {
  background: linear-gradient(180deg, #27344f 0%, #1e2940 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 22px rgba(2, 6, 18, .4) !important;
}