/* ==========================================================================
   PLIXWIN – iOS-style Profile page (27 Oct)
   Built by renderProfile() in /teal/vip.js (class .pxp).
   iOS dark-grey look (no mint on this page): avatar + name, swipeable VIP level
   cards (tinted panel, frosted inner card, big "V3", status tag, badge), rewards
   strip, Deposit / Withdraw, grouped lists with thin outline icons.
   ========================================================================== */

/* grey page while the profile is open (header and bottom bar keep their glass) */
html[data-theme="teal"]:has(body[data-px="profile"]) { background: #1C1C1E !important; }
html[data-theme="teal"] body[data-px="profile"],
html[data-theme="teal"] body[data-px="profile"] main.app-shell { background: #1C1C1E !important; }

.pxp {
  /* iOS dark grouped palette */
  --bg: #1C1C1E;
  --cell: #2C2C2E;
  --cell-2: #3A3A3C;
  --sep: rgba(84, 84, 88, .6);
  --fg: #FFFFFF;
  --fg-2: rgba(235, 235, 245, .62);
  --fg-3: rgba(235, 235, 245, .32);
  --ic: #EBEBF0;
  --red: #FF453A;
  --r-lg: 22px; --r-md: 16px; --r-sm: 14px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  position: relative; max-width: 600px; margin: 0 auto; padding: 4px 0 40px;
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.pxp button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pxp button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.pxp .pxp-ic { width: 22px; height: 22px; flex: none; }
.pxp img { max-width: none; }

/* ---- top: avatar, name, bell */
.pxp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.pxp-me { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pxp-ava { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(180deg, #636366, #48484A); color: #FFFFFF; font-size: 24px; font-weight: 600; }
.pxp-ava img { width: 100%; height: 100%; object-fit: cover; }
.pxp .pxp-ava .pxp-ic { width: 26px; height: 26px; }
.pxp-who { min-width: 0; }
.pxp-name { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pxp-sub { margin-top: 2px; font-size: 14px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pxp .pxp-round { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ic); background: var(--cell);
  transition: transform .2s var(--ease), background .2s; }
.pxp .pxp-round:active { transform: scale(.94); background: var(--cell-2); }

/* ---- VIP level cards (swipe sideways) */
.pxp-cards { display: flex; gap: 10px; margin: 18px -16px 0; padding: 2px 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.pxp-cards::-webkit-scrollbar { display: none; }
.pxp-mc {
  /* panel (outer) / inner card / numerals / text, per level */
  --p1: #8E5F52; --p2: #C99383;
  --i1: #FFF4F0; --i2: #F3D6CB;
  --v1: #9C4A3A; --v2: #D9907C;
  --tx: #5B2C22; --tx2: rgba(91, 44, 34, .62);
  position: relative; flex: 0 0 calc(100% - 22px); scroll-snap-align: center; padding: 12px 12px 12px; border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(150deg, var(--p2), var(--p1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 30px -18px rgba(0, 0, 0, .8);
}
.pxp-mc1 { --p1: #5E626B; --p2: #A5A9B3; --i1: #FAFAFB; --i2: #DDDFE4; --v1: #3A3D44; --v2: #8E929C; --tx: #2E3036; --tx2: rgba(46, 48, 54, .6); }
.pxp-mc2 { --p1: #7C6334; --p2: #C9AA6B; --i1: #FFF9EB; --i2: #F0DDAF; --v1: #8A5A12; --v2: #D3A043; --tx: #573A0C; --tx2: rgba(87, 58, 12, .62); }
.pxp-mc3 { --p1: #5A4C9C; --p2: #A396DE; --i1: #F7F5FF; --i2: #DCD6F7; --v1: #3C2E9C; --v2: #8B7DE8; --tx: #2A2170; --tx2: rgba(42, 33, 112, .6); }
.pxp-mc4 { --p1: #0F0F12; --p2: #2E2D33; --v1: #C9A35A; --v2: #FFEBB8; --tx: #F3E6C4; --tx2: rgba(243, 230, 196, .6);
  background: radial-gradient(1.2px 1.2px at 18% 20%, rgba(255, 255, 255, .7), transparent), radial-gradient(1px 1px at 46% 12%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1px 1px at 72% 30%, rgba(255, 255, 255, .55), transparent), radial-gradient(1.3px 1.3px at 88% 64%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1px 1px at 30% 88%, rgba(255, 255, 255, .4), transparent),
    radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .1), transparent 60%), linear-gradient(150deg, var(--p2), var(--p1)); }

.pxp-mc-hd { display: flex; align-items: center; justify-content: center; position: relative; height: 26px; margin-bottom: 10px; color: #FFFFFF; }
.pxp-mc-hd > span { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.pxp-mc-hd button { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 1px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.pxp .pxp-mc-hd .pxp-ic { width: 14px; height: 14px; }

/* frosted inner card */
.pxp .pxp-mc-in { position: relative; display: block; width: 100%; min-height: 128px; padding: 32px 16px 16px; border-radius: var(--r-md); text-align: left; overflow: hidden; color: var(--tx);
  background: linear-gradient(115deg, var(--i1), var(--i2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .5);
  transition: transform .25s var(--ease); }
.pxp .pxp-mc-in:active { transform: scale(.985); }
.pxp-mc4 .pxp-mc-in { background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.pxp-tag { position: absolute; left: 0; top: 0; height: 22px; padding: 0 10px 0 12px; border-radius: 0 0 12px 0; display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; color: var(--tx2); background: rgba(255, 255, 255, .55); }
.pxp-mc.is-cur .pxp-tag { color: #FFFFFF; background: var(--v1); }
.pxp-mc4 .pxp-tag { background: rgba(255, 255, 255, .1); }
.pxp-mc4.is-cur .pxp-tag { color: #1A1508; background: linear-gradient(90deg, #E8C77E, #C9A35A); }
.pxp-mc-l { display: flex; align-items: baseline; gap: 8px; }
.pxp-mc-v { display: inline-block; font-size: 50px; line-height: .95; font-weight: 800; letter-spacing: -.04em; padding-right: 4px; transform: skewX(-10deg); transform-origin: left bottom;
  background: linear-gradient(180deg, var(--v2), var(--v1) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pxp-mc-n { font-size: 14px; font-weight: 600; color: var(--tx); }
.pxp-mc-line { display: flex; align-items: center; gap: 1px; margin-top: 10px; max-width: 62%; font-size: 13px; font-weight: 500; color: var(--tx2); }
.pxp .pxp-mc-line .pxp-ic { width: 13px; height: 13px; }
.pxp-mc-bar { position: relative; display: block; height: 4px; margin-top: 10px; max-width: 58%; border-radius: 4px; background: color-mix(in srgb, var(--tx) 12%, transparent); overflow: hidden; }
.pxp-mc-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--v2), var(--v1)); transition: width .9s var(--ease); }
.pxp-mc4 .pxp-mc-bar i { background: linear-gradient(90deg, #C9A35A, #FFEBB8); }
/* the badge sits on the right, rising above the inner card */
.pxp .pxp-mc-b { position: absolute; right: 18px; top: 34px; width: 116px; height: 116px; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .22)); }
.pxp-mc.is-lock .pxp-mc-in { opacity: .92; }

.pxp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.pxp-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); transition: width .25s var(--ease), background .25s; }
.pxp-dots i.on { width: 18px; background: #FFFFFF; }

/* ---- rewards ready strip (only when there is something to claim) */
.pxp .pxp-claim { display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; margin-top: 16px; padding: 0 8px 0 16px; border-radius: var(--r-md); text-align: left;
  background: var(--cell); transition: background .15s; }
.pxp .pxp-claim:active { background: var(--cell-2); }
.pxp .pxp-claim .pxp-ic { color: var(--ic); }
.pxp-claim > span:not(.pxp-claim-go) { flex: 1; min-width: 0; font-size: 15px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pxp-claim b { color: var(--fg); font-weight: 600; }
.pxp-claim-go { flex: none; height: 38px; padding: 0 18px; border-radius: 19px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: #000000; background: #FFFFFF; }

/* ---- Deposit / Withdraw */
.pxp-money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pxp .pxp-mb { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: var(--r-md);
  font-size: 16px; font-weight: 600; color: var(--fg); background: var(--cell); transition: transform .2s var(--ease), background .2s; }
.pxp .pxp-mb:active { transform: scale(.97); }
.pxp .pxp-mb.is-main { color: #000000; background: #FFFFFF; }
.pxp-mi { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--cell-2); }
.pxp .pxp-mb.is-main .pxp-mi { background: #E5E5EA; }
.pxp .pxp-mi .pxp-ic { width: 16px; height: 16px; stroke-width: 2.4; }

/* ---- grouped lists */
.pxp-group { margin-top: 20px; border-radius: var(--r-md); overflow: hidden; background: var(--cell); }
.pxp-group + .pxp-group { margin-top: 20px; }
.pxp .pxp-row { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 14px 0 16px; text-align: left; color: var(--fg); transition: background .15s; }
.pxp .pxp-row .pxp-ic { color: var(--ic); }
.pxp .pxp-row:active { background: var(--cell-2); }
@media (hover: hover) { .pxp .pxp-row:hover { background: #333336; } }
.pxp-row + .pxp-row::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: .5px; background: var(--sep); }
.pxp-lb { flex: 1; min-width: 0; font-size: 17px; font-weight: 400; letter-spacing: -.02em; }
.pxp-end { display: flex; align-items: center; gap: 8px; color: var(--fg-3); }
.pxp .pxp-chev { width: 16px; height: 16px; color: var(--fg-3); stroke-width: 2.4; }
.pxp-cnt { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--red); color: #FFFFFF; font: 600 13px/22px -apple-system, "Inter", sans-serif; font-style: normal; text-align: center; }
.pxp .pxp-out { justify-content: center; }
.pxp .pxp-out, .pxp .pxp-out .pxp-ic { color: var(--red); }
.pxp .pxp-out .pxp-lb { flex: none; }

/* ---- loading */
.pxp-sk { border-radius: var(--r-md); background: linear-gradient(90deg, #2C2C2E, #3A3A3C, #2C2C2E); background-size: 200% 100%; animation: pxp-sk 1.3s linear infinite; }
@keyframes pxp-sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pxp *, .pxp-sk { animation: none !important; transition: none !important; } }

@media (max-width: 370px) {
  .pxp-mc-v { font-size: 44px; }
  .pxp .pxp-mc-b { width: 100px; height: 100px; right: 12px; }
}
@media (min-width: 640px) {
  .pxp-cards { margin: 18px 0 0; padding: 2px 0 4px; scroll-padding: 0; }
  .pxp-mc { flex-basis: calc(100% - 60px); }
  .pxp .pxp-mc-in { min-height: 140px; }
  .pxp-mc-v { font-size: 58px; }
  .pxp .pxp-mc-b { width: 130px; height: 130px; right: 26px; top: 30px; }
}
@media (min-width: 900px) { .pxp { padding-top: 16px; } }
.pxp-mc-l { max-width: 64%; }
.pxp-mc-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pxp-mc4 .pxp-mc-n { font-size: 12.5px; }

/* ---- "Edit name" link under the name */
.pxp .pxp-edit { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.pxp .pxp-edit .pxp-ic { width: 14px; height: 14px; }
.pxp .pxp-edit:active { opacity: .6; }

/* ---- iOS sheet (Edit name): blurred backdrop, slides up on phones, centred on desktop */
.pxp-sheet { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: flex-end; justify-content: center; padding: 0;
  background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif; }
.pxp-sheet.open { opacity: 1; visibility: visible; transition: opacity .25s; }
.pxp-sheet-in { width: 100%; max-width: 520px; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; color: #FFFFFF;
  background: rgba(44, 44, 46, .92); -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  transform: translateY(100%); transition: transform .35s cubic-bezier(.32, .72, 0, 1); }
.pxp-sheet.open .pxp-sheet-in { transform: none; }
.pxp-grab { width: 36px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: rgba(235, 235, 245, .3); }
.pxp-sheet h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; text-align: center; }
.pxp-sheet p { margin: 8px 0 18px; font-size: 14px; line-height: 1.45; color: rgba(235, 235, 245, .62); text-align: center; }
.pxp-sheet p b { color: #FFFFFF; font-weight: 600; }
.pxp-field { display: block; }
.pxp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pxp-field input { width: 100%; height: 50px; padding: 0 16px; border: 0; border-radius: 14px; outline: none; font: 500 17px/1 inherit; font-family: inherit; color: #FFFFFF;
  background: rgba(118, 118, 128, .24); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s; }
.pxp-field input:focus { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.pxp-hint { display: block; margin: 8px 4px 0; font-size: 13px; color: rgba(235, 235, 245, .45); }
.pxp-err { margin: 10px 4px 0; font-size: 14px; color: #FF6961; }
.pxp-sheet-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.pxp-sheet .pxp-sb { height: 50px; border: 0; border-radius: 14px; font: inherit; font-size: 17px; font-weight: 600; color: #FFFFFF; background: rgba(118, 118, 128, .24); cursor: pointer; }
.pxp-sheet .pxp-sb.is-main { color: #000000; background: #FFFFFF; }
.pxp-sheet .pxp-sb:disabled { opacity: .5; cursor: default; }
.pxp-sheet .pxp-sb:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
@media (min-width: 640px) {
  .pxp-sheet { align-items: center; padding: 20px; }
  .pxp-sheet-in { border-radius: 22px; padding-bottom: 20px; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .3s cubic-bezier(.32, .72, 0, 1), opacity .2s; }
  .pxp-sheet.open .pxp-sheet-in { transform: none; opacity: 1; }
  .pxp-grab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pxp-sheet, .pxp-sheet-in { transition: none !important; } }

/* ==========================================================================
   VIP Club page in the same grey iOS look (27 Oct)
   ========================================================================== */
html[data-theme="teal"]:has(body[data-px="vip"]) { background: #1C1C1E !important; }
html[data-theme="teal"] body[data-px="vip"],
html[data-theme="teal"] body[data-px="vip"] main.app-shell { background: #1C1C1E !important; }

/* top: VIP level card + progress panel */
.pxv .pxv-top.pxp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; max-width: none; margin: 0; padding: 0; align-items: stretch; }
.pxv-hero .pxp-mc { width: 100%; height: 100%; display: flex; flex-direction: column; }
.pxv-hero .pxp-mc .pxp-mc-in { flex: 1; }
.pxv-panel { display: flex; flex-direction: column; padding: 20px; border-radius: 22px; background: #2C2C2E; color: #FFFFFF; }
.pxv-ph { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pxv-ph b { font-size: 15px; font-weight: 600; color: rgba(235, 235, 245, .62); font-variant-numeric: tabular-nums; }
.pxv-pbar { height: 6px; margin-top: 14px; border-radius: 6px; background: rgba(118, 118, 128, .32); overflow: hidden; }
.pxv-pbar i { display: block; height: 100%; width: 0; border-radius: 6px; background: #FFFFFF; transition: width .9s cubic-bezier(.32, .72, 0, 1); }
.pxv-pends { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; font-weight: 600; }
.pxv-pends span { display: flex; align-items: center; gap: 6px; }
.pxv .pxv-pends img { width: 24px; height: 24px; object-fit: contain; }
.pxv-pends .muted { color: rgba(235, 235, 245, .45); }
.pxv-pxp { margin-top: 6px; font-size: 13px; color: rgba(235, 235, 245, .55); font-variant-numeric: tabular-nums; }
.pxv-pxp b { color: #FFFFFF; font-weight: 600; }
.pxv-pguest { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: rgba(235, 235, 245, .62); }
.pxv-pacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 18px; }
.pxv .pxv-ib { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; border-radius: 14px; font-size: 15px; font-weight: 600; color: #FFFFFF;
  background: rgba(118, 118, 128, .24); transition: background .15s, transform .15s; }
.pxv .pxv-ib .pxp-ic { width: 18px; height: 18px; }
.pxv .pxv-ib:active { transform: scale(.97); }
.pxv .pxv-ib.is-main { background: #FFFFFF; color: #000000; }
.pxv .pxv-ib:disabled { background: rgba(118, 118, 128, .16); color: rgba(235, 235, 245, .35); cursor: default; }
.pxv .pxv-ib.is-busy { opacity: .6; pointer-events: none; }

/* rest of the page: grey cells, white buttons, no teal */
body[data-px="vip"] .pxv-title h1 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif; font-weight: 700; }
body[data-px="vip"] .pxv-card { background: #2C2C2E; border: 0; border-radius: 20px; }
body[data-px="vip"] .pxv .pxv-btn { border-radius: 14px; font-weight: 600; }
body[data-px="vip"] .pxv .pxv-btn.go { background: #FFFFFF; color: #000000; }
body[data-px="vip"] .pxv .pxv-btn.go:hover { background: #E5E5EA; }
body[data-px="vip"] .pxv .pxv-btn.go:disabled { background: rgba(118, 118, 128, .16); color: rgba(235, 235, 245, .35); }
body[data-px="vip"] .pxv .pxv-btn.dk { background: rgba(118, 118, 128, .24); }
body[data-px="vip"] .pxv .pxv-btn.lock { border: 0; background: rgba(118, 118, 128, .16); color: rgba(235, 235, 245, .62); }
body[data-px="vip"] .pxv-count { background: #FFFFFF; color: #000000; border-radius: 11px; }
body[data-px="vip"] .pxv-h2 .tl-duo { --du-s: #FFFFFF; --du-f: rgba(255, 255, 255, .25); --du-g: rgba(235, 235, 245, .4); }
body[data-px="vip"] .pxv-tc { border-radius: 20px; }

@media (max-width: 900px) {
  .pxv .pxv-top.pxp { grid-template-columns: 1fr; gap: 12px; }
}
body[data-px="vip"] .pxv-tc { background: #2C2C2E; border: 0; }
body[data-px="vip"] .pxv-tc::before { opacity: .6; }
body[data-px="vip"] .pxv-tc.cur { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
body[data-px="vip"] .pxv-tc .st { border-radius: 8px; background: rgba(118, 118, 128, .24); color: rgba(235, 235, 245, .7); letter-spacing: .02em; text-transform: none; font-size: 11px; font-weight: 600; }
body[data-px="vip"] .pxv-tc.cur .st { background: #FFFFFF; color: #000000; }

/* ==========================================================================
   Account windows (Wallet, Statistics, My bets, Transactions, Affiliate,
   Notifications, Settings): plain iOS dark sheets, solid grey, no glass (27 Oct)
   ========================================================================== */
html body .pxa-overlay.pxm, html body .pxa-pmenu.pxm-menu {
  --k-bg: #1C1C1E; --k-card: #2C2C2E; --k-field: #2C2C2E; --k-field-2: #3A3A3C;
  --k-line: #38383A; --k-line-2: #48484A;
  --k-text: #FFFFFF; --k-text-2: #EBEBF5; --k-muted: #8E8E93; --k-green: #FFFFFF; --k-green-2: #E5E5EA; --k-red: #FF453A;
  --px-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
}
html body .pxa-overlay.pxm {
  --pa-gold: #FFFFFF; --pa-gold-grad: #FFFFFF; --pw-gold: #FFFFFF; --pw-gold-solid: #FFFFFF; --pa-green: #FFFFFF;
  padding: 20px !important; background: rgba(0, 0, 0, .6) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
}
html body .pxa-overlay.pxm .pxm-card { border: 0; border-radius: 22px; background: #1C1C1E; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
/* header: title in the middle, round grey close button on the right */
html body .pxa-overlay.pxm .pxm-head { position: relative; justify-content: center; height: 58px; padding: 0 60px; border-bottom: 1px solid #2C2C2E; }
html body .pxa-overlay.pxm .pxm-ic { display: none; }
html body .pxa-overlay.pxm .pxm-head h3 { flex: none; font-family: var(--px-head) !important; font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-transform: none; text-align: center; color: #FFFFFF; }
html body .pxa-overlay.pxm .pxm-x { position: absolute; right: 14px; left: auto; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: #3A3A3C; color: #AEAEB2; }
html body .pxa-overlay.pxm .pxm-x:hover { background: #48484A; color: #FFFFFF; }
html body .pxa-overlay.pxm .pxm-x .px-ic-svg { width: 14px; height: 14px; }
html body .pxa-overlay.pxm .pxm-body { padding: 16px 16px 22px; scrollbar-width: none; }
html body .pxa-overlay.pxm .pxm-body::-webkit-scrollbar { display: none; }

/* iOS segmented control */
html body .pxm .pxw-tabs, html body .pxa-acc.pxm .pxa-view > .pxa-seg, html body .pxm .pxa-filter, html body .pxm .ios-seg {
  padding: 2px !important; gap: 2px !important; border: 0 !important; border-radius: 9px !important; background: #2C2C2E !important; }
html body .pxm .pxw-tabs button, html body .pxa-acc.pxm .pxa-view > .pxa-seg button, html body .pxm .pxa-filter button, html body .pxm .ios-seg button {
  height: 32px !important; padding: 0 12px !important; border: 0 !important; border-radius: 7px !important; background: transparent !important; box-shadow: none !important;
  font-family: inherit !important; font-size: 13.5px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; color: #FFFFFF !important; }
html body .pxm .pxw-tabs button.is-on, html body .pxa-acc.pxm .pxa-view > .pxa-seg button.is-active, html body .pxm .pxa-filter button.is-on, html body .pxm .ios-seg button.is-on {
  background: #636366 !important; font-weight: 600 !important; box-shadow: 0 2px 6px rgba(0, 0, 0, .25) !important; }
html body .pxm .pxw-methods button { border-radius: 10px; border-color: transparent; background: #2C2C2E; color: #FFFFFF; font-weight: 500; }
html body .pxm .pxw-methods button.is-on { border-color: #FFFFFF; background: #3A3A3C; }

/* solid grey cells */
html body .pxm .pxw-trig, html body .pxm .pxw-addr, html body .pxm .pxa-input, html body .pxm .pxa-card, html body .pxm .pxa-note, html body .pxm .pxa-aff-card,
html body .pxm .pxa-tx, html body .pxm .pxa-kpis > div, html body .pxm .pxst-hero, html body .pxm .pxst-tile, html body .pxm .pxn-item, html body .pxm .pxa-curchip, html body .pxm .pxa-method {
  background: #2C2C2E !important; border-color: transparent !important; border-radius: 12px !important; box-shadow: none !important; }
html body .pxm .pxw-label, html body .pxm .pxa-s .pxa-field > span { font-size: 13px !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .02em; color: #8E8E93 !important; }
html body .pxm .pxw-addr .pxw-icbtn { background: #3A3A3C; border-left: 1px solid #48484A; }
html body .pxm .pxw-addr .pxw-icbtn:hover { background: #48484A; }
html body .pxm .pxw-pop { background: #2C2C2E; border: 1px solid #3A3A3C; border-radius: 14px; }
html body .pxm .pxw-search { background: #1C1C1E; border-radius: 10px; }
html body .pxm .pxw-qr { border-radius: 14px; }
html body .pxm .pxw-warn, html body .pxm .pxw-warn .px-ic-svg { color: #FF9F0A; }
html body .pxm .pxw-warn b { color: #FFB340; }
html body .pxm .pxw-facts, html body .pxm .pxw-facts div { border-color: #38383A; }
html body .pxm .pxa-sec h4 { font-family: inherit !important; font-size: 13px !important; font-weight: 400 !important; letter-spacing: .02em; text-transform: uppercase; color: #8E8E93 !important; }
html body .pxm .pxa-sec h4::before, html body .pxm .pxa-sec > h4::after { display: none !important; }

/* buttons: solid white primary, grey secondary */
html body .pxm .pxw-btn, html body .pxm .pxa-btn-gold {
  min-height: 50px; border-radius: 12px !important; background: #FFFFFF !important; color: #000000 !important; border: 0 !important;
  font-family: inherit !important; font-size: 17px !important; font-weight: 600 !important; letter-spacing: -.01em; text-transform: none !important; box-shadow: none !important; }
html body .pxm .pxw-btn:hover, html body .pxm .pxa-btn-gold:hover:not(:disabled) { background: #E5E5EA !important; }
html body .pxm .pxw-history { border-radius: 12px; background: #2C2C2E; border-color: transparent; }

/* list icons, states and tags */
html body .pxm .pxa-tx-ic, html body .pxm .pxa-tx-ic[class*="is-"], html body .pxm .pxn-ic, html body .pxm .pxn-ic[class*="is-"] {
  background: #3A3A3C !important; color: #FFFFFF !important; --nav-icon-stroke: #FFFFFF; --nav-icon-accent: #8E8E93; border-radius: 50% !important; }
html body .pxm .pxa-status { border-radius: 6px; font-weight: 600; }
html body .pxm .pxa-status.is-completed { background: rgba(48, 209, 88, .16); color: #30D158; }
html body .pxm .pxa-status.is-pending { background: rgba(255, 159, 10, .16); color: #FF9F0A; }
html body .pxm .pxa-status.is-rejected, html body .pxm .pxa-status.is-cancelled, html body .pxm .pxa-status.is-failed { background: rgba(255, 69, 58, .16); color: #FF453A; }
html body .pxm .pxa-tag, html body .pxm .pxa-tag.is-ok, html body .pxm .pxa-tag.is-gold { background: #3A3A3C; color: #FFFFFF; border-radius: 6px; }
html body .pxm .pxa-curchip.is-on, html body .pxm .pxa-method.is-on { background: #3A3A3C !important; box-shadow: inset 0 0 0 1.5px #FFFFFF !important; }
html body .pxm .pxa-input:focus-within, html body .pxm .pxa-code:focus { box-shadow: inset 0 0 0 1.5px #8E8E93 !important; }
html body .pxm .pxa-aff-badge { background: #3A3A3C; color: #FFFFFF; box-shadow: none; }
html body .pxm .pxa-loading span { background: #8E8E93; }
html body .pxm .pxa-link, html body .pxm .pxn-all { color: #0A84FF; }
html body .pxm .is-win { color: #30D158 !important; }
html body .pxm .is-loss { color: #EBEBF5 !important; }

/* account menu (header dropdown): solid grey */
html body .pxa-pmenu.pxm-menu { background: #2C2C2E; border: 0; border-radius: 14px; padding: 6px; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .8); }
html body .pxm-menu .pxa-pm-item { font-weight: 400; font-size: 16px; border-radius: 10px; }
html body .pxm-menu .pxa-pm-item:hover { background: #3A3A3C; }
html body .pxm-menu .pxa-pm-line, html body .pxm-menu .pxa-pm-user { border-color: #38383A; }
html body .pxm-menu .pxa-pm-user .px-avatar { background: #48484A !important; color: #FFFFFF !important; }
html body .pxm-menu .pxa-pm-badge { background: #FF453A; color: #FFFFFF; }

/* phones: a normal iOS sheet from the bottom */
@media (max-width: 640px) {
  html body .pxa-overlay.pxm { padding: 0 !important; align-items: flex-end !important; }
  html body .pxa-overlay.pxm .pxm-card, html body .pxa-overlay.pxm .pxm-card[data-size] { max-width: none; max-height: calc(100dvh - 40px); border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  html body .pxa-overlay.pxm .pxm-card::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: #48484A; }
  html body .pxa-overlay.pxm .pxm-head { height: 56px; padding-top: 6px; }
  html body .pxa-overlay.pxm .pxm-body { padding: 14px 16px 22px; }
}

/* ---------------------------------------------------------------- iOS layouts inside the windows (27 Oct) */
.pxm .ios-ic { width: 20px; height: 20px; flex: none; }
.pxm .ios-h { margin: 22px 6px 8px; font-family: -apple-system, "SF Pro Text", "Inter", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: rgba(235, 235, 245, .5); }
.pxm .ios-h:first-child { margin-top: 4px; }
.pxm .ios-group { border-radius: 12px; overflow: hidden; background: #2C2C2E; }
.pxm .ios-group + .ios-group { margin-top: 14px; }
.pxm .ios-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px; border: 0; background: none; color: #FFFFFF; text-align: left; font: inherit; }
.pxm .ios-row + .ios-row::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: #38383A; }
.pxm .ios-group > .ios-row:not(:has(.ios-badge, .ios-num, .px-avatar)) + .ios-row::before, .pxm .ios-row:not(:has(.ios-badge, .ios-num, .px-avatar)) + .ios-row:not(:has(.ios-badge, .ios-num, .px-avatar))::before { left: 16px; }
.pxm .ios-row.is-nav { cursor: pointer; transition: background .15s; }
.pxm .ios-row.is-nav:active { background: rgba(255, 255, 255, .08); }
@media (hover: hover) { .pxm .ios-row.is-nav:hover { background: rgba(255, 255, 255, .04); } }
.pxm .ios-badge { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #3A3A3C; color: #FFFFFF; }
.pxm .ios-badge .ios-ic { width: 18px; height: 18px; }
.pxm .ios-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-weight: 700; }
.pxm .ios-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pxm .ios-main b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pxm .ios-main small { font-size: 13.5px; color: rgba(235, 235, 245, .55); line-height: 1.35; }
.pxm .ios-val { flex: none; max-width: 55%; font-size: 15.5px; color: rgba(235, 235, 245, .6); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pxm .ios-val.is-dim { font-size: 14px; }
.pxm .ios-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.pxm .ios-side small { font-size: 13px; color: rgba(235, 235, 245, .5); white-space: nowrap; }
.pxm .ios-amt { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: #FFFFFF; }
.pxm .ios-amt.is-up { color: #30D158; }
.pxm .ios-state.is-pending { color: #FF9F0A !important; }
.pxm .ios-state.is-rejected, .pxm .ios-state.is-failed, .pxm .ios-state.is-cancelled { color: #FF453A !important; }
.pxm .ios-cancel { margin-top: 2px; padding: 0; border: 0; background: none; color: #FF453A; font: 600 13px/1.2 inherit; cursor: pointer; }
.pxm .ios-chev { width: 16px; height: 16px; flex: none; color: rgba(235, 235, 245, .3); stroke-width: 2.4; }
.pxm .ios-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.pxm .ios-foot { margin: 10px 8px 0; font-size: 13px; line-height: 1.45; color: rgba(235, 235, 245, .45); }
.pxm .ios-more, .pxm .ios-textbtn { display: block; margin: 14px auto 0; padding: 8px 14px; border: 0; background: none; color: #FFFFFF; font: 600 15px/1 inherit; cursor: pointer; }
.pxm .ios-toolbar { display: flex; justify-content: flex-end; margin: -4px 0 -6px; }
.pxm .ios-toolbar .ios-textbtn { margin: 0; padding: 6px 4px; color: #0A84FF; }
.pxm .ios-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 20px; text-align: center; }
.pxm .ios-empty-ic { width: 40px; height: 40px; color: rgba(235, 235, 245, .35); margin-bottom: 6px; }
.pxm .ios-empty b { font-size: 17px; font-weight: 600; }
.pxm .ios-empty p { margin: 0; max-width: 260px; font-size: 14px; line-height: 1.45; color: rgba(235, 235, 245, .55); }
.pxm .pxa-loading { padding: 40px 0; }

/* segmented control (My bets currency filter) */
.pxm .ios-seg { display: flex; gap: 2px; padding: 2px; margin-bottom: 4px; border-radius: 9px; background: #2C2C2E; }
.pxm .ios-seg button { flex: 1; height: 32px; border: 0; border-radius: 7px; background: none; color: #FFFFFF; font: 500 13.5px/1 inherit; cursor: pointer; transition: background .2s, color .2s; }
.pxm .ios-seg button.is-on { background: rgba(255, 255, 255, .14); color: #FFFFFF; }

/* statistics: big number on top, iOS rows below */
.pxm .ios-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; text-align: center; }
.pxm .ios-hero small { font-size: 14px; font-weight: 500; color: rgba(235, 235, 245, .6); }
.pxm .ios-hero b { font-family: var(--px-head, inherit); font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pxm .ios-hero b.is-up { color: #30D158; }
.pxm .ios-hero b.is-down { color: #FF453A; }
.pxm .ios-hero span { font-size: 14px; color: rgba(235, 235, 245, .55); }
.pxm .ios-row.is-col { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px 16px; }
.pxm .ios-rtp { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; }
.pxm .ios-rtp b { font-variant-numeric: tabular-nums; }
.pxm .ios-meter { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pxm .ios-meter i { display: block; height: 100%; border-radius: 6px; background: #FFFFFF; }

/* notifications */
.pxm .ios-note { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
.pxm .ios-note-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pxm .ios-note-top time { flex: none; font-size: 13px; color: rgba(235, 235, 245, .45); }
.pxm .ios-note .ios-main small { white-space: normal; }
.pxm .ios-note.is-unread::after { content: ""; position: absolute; left: 6px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #0A84FF; }

/* affiliate share card */
.pxm .ios-share { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 18px 18px; border-radius: 12px; background: #2C2C2E; text-align: center; }
.pxm .ios-share-pct { font-family: var(--px-head, inherit); font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.pxm .ios-share > b { font-size: 19px; font-weight: 700; }
.pxm .ios-share p { margin: 0 0 6px; max-width: 320px; font-size: 14px; line-height: 1.45; color: rgba(235, 235, 245, .6); }
.pxm .ios-linkbox { display: flex; align-items: center; gap: 8px; width: 100%; height: 50px; padding: 0 6px 0 16px; border-radius: 10px; background: #1C1C1E; }
.pxm .ios-linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14.5px/1 -apple-system, "Inter", sans-serif; color: #FFFFFF; text-align: left; }
.pxm .ios-linkbox button, .pxm .ios-share-code button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #FFFFFF; cursor: pointer; }
.pxm .ios-share-code { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; color: rgba(235, 235, 245, .6); }
.pxm .ios-share-code b { color: #FFFFFF; letter-spacing: .06em; }
.pxm .ios-share-code button { width: 30px; height: 30px; border-radius: 9px; }
.pxm .ios-share-code .ios-ic { width: 15px; height: 15px; }
.pxm .ios-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; margin-top: 6px; border: 0; border-radius: 12px; cursor: pointer;
  font: 600 17px/1 inherit; color: #FFFFFF; background: #3A3A3C; }
.pxm .ios-btn.is-main { background: #FFFFFF; color: #000000; }
.pxm .ios-pill { flex: none; height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: #FFFFFF; color: #000000; font: 700 14px/1 inherit; cursor: pointer; }

/* settings: account header, navigation rows, sub pages */
.pxm .ios-acct { display: flex; align-items: center; gap: 14px; padding: 6px 4px 18px; }
.pxm .ios-acct .px-avatar { width: 64px; height: 64px; font-size: 26px; flex: none; }
.pxm .ios-acct b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.pxm .ios-acct small { display: block; margin-top: 2px; font-size: 14px; color: rgba(235, 235, 245, .55); }
.pxm .ios-back { display: inline-flex; align-items: center; gap: 2px; margin: -6px 0 0 -6px; padding: 6px 8px 6px 2px; border: 0; background: none; color: #0A84FF; font: 500 16px/1 inherit; cursor: pointer; }
.pxm .ios-back .ios-ic { width: 22px; height: 22px; stroke-width: 2.4; }
.pxm .ios-ptitle { margin: 4px 4px 16px; font-family: var(--px-head, inherit); font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: #FFFFFF; }
.pxm .ios-check { cursor: pointer; }
.pxm .ios-check input { position: absolute; opacity: 0; pointer-events: none; }
.pxm .ios-check .pxa-flag { width: 36px; height: 36px; flex: none; border: 0; background: rgba(255, 255, 255, .1); color: #FFFFFF; }
.pxm .ios-check + .ios-check::before { left: 64px; }
.pxm .ios-tick { width: 20px; height: 20px; flex: none; color: #0A84FF; stroke-width: 2.6; opacity: 0; }
.pxm .ios-check.is-on .ios-tick { opacity: 1; }
.pxm .pxa-s .pxa-sec { margin-top: 0; }
.pxm .pxa-s .pxa-field > span { font-size: 13px; font-weight: 600; color: rgba(235, 235, 245, .55); text-transform: uppercase; letter-spacing: .02em; }
.pxm .pxa-s .pxa-input, .pxm .pxa-s .pxa-code { min-height: 50px; border-radius: 12px !important; }
.pxm .pxa-s .pxa-2fa { border-radius: 12px; background: #2C2C2E; border: 0; }
.pxm .pxa-faq details { border-radius: 12px; background: #2C2C2E; border: 0; }
.pxm .ios-more[hidden], .pxm .ios-textbtn[hidden] { display: none; }
